/* =========================================================
   THE SAUCERY — COMBINED PAGE
   Built from the parts the client loved:
   · Doorway hero + moving banner + "more flavors" .... V1
   · Display font: Bodoni Moda ........................ V2
   · Story section ................................... The SauceryA
   · "Made with purpose" cards (fun + colorful) ...... The SauceryB
   Type: Bodoni Moda (display) · Hanken Grotesk (body)
   ========================================================= */

:root {
  /* --- client palette (exact hex from reference) --- */
  --yellow:      #FBE87D;
  --amber:       #F0B547;
  --teal:        #7FC6CA;
  --coral:       #EB8986;
  --deep-coral:  #E1615E;
  --white:       #FFFFFF;

  /* the actual green of the Ají Verde sauce — used as the contrast pop */
  --sauce-green: #7FB23C;
  --sauce-green-deep: #4E7A22;

  /* warm neutrals — the canvas */
  --cream:   #FBF4E4;
  --cream-2: #F6EAD0;
  --ink:     #2A2118;
  --ink-soft:#6A5E4E;

  /* door tones — warm, cohesive (NOT a rainbow) */
  --door-frame: #C0544E;
  --door-leaf:  #E08A47;
  --door-leaf-2:#D6783A;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-script: "Bricolage Grotesque", system-ui, sans-serif; /* accents use the same display face */

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
}

/* accent words — Bodoni italic (the dramatic look the client liked) */
.hero__script,
.flavors__head .hero__script,
.contact .hero__script {
  font-family: var(--font-script);
  font-weight: 700;
  letter-spacing: 0;
}

/* shared kicker */
.section-kicker {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--deep-coral);
  margin-bottom: 1rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: transparent; /* sits flush on the dark hero at the top */
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
/* once scrolled off the hero: solid bar, always legible over any section */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -16px color-mix(in srgb, var(--ink) 70%, transparent);
  padding-block: .6rem;
}
.brand__logo {
  height: 80px; width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
  transition: height .3s var(--ease), filter .3s var(--ease);
}
/* cream logo would vanish on the cream stuck bar — darken it so it stays legible */
.site-header.is-stuck .brand__logo { height: 62px; filter: brightness(0.18); }

.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2.5vw, 2rem); margin-left: auto; margin-right: clamp(1rem, 3vw, 2rem); }
/* top state: light text on the dark hero */
.site-nav a {
  position: relative;
  font-weight: 600; font-size: 1.02rem;
  color: #fff; opacity: .92;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
/* animated underline on hover */
.site-nav a::after,
.site-nav__cta::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: #154B3D;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after,
.site-nav__cta:hover::after { transform: scaleX(1); }
/* "Say hello" — plain link, same as the other header links */
.site-nav__cta {
  position: relative;
  color: #fff; opacity: .92; font-weight: 600; font-size: 1.02rem;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.site-nav__cta:hover { opacity: 1; }
/* scrolled state: dark text on the solid cream bar */
.site-header.is-stuck .site-nav a { color: var(--ink-soft); }
.site-header.is-stuck .site-nav a:hover { color: var(--ink); }
.site-header.is-stuck .site-nav__cta { color: var(--ink-soft); }
.site-header.is-stuck .site-nav__cta:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: .7rem; }

/* hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: stretch; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; outline: none; cursor: pointer; z-index: 110;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus, .nav-toggle:focus-visible { outline: none; }
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #fff; transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck .nav-toggle span { background: var(--ink); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  /* compact dropdown anchored right; text left-aligned inside; translucent panel */
  .site-nav {
    position: absolute; top: calc(100% + 6px); right: var(--gutter); left: auto;
    flex-direction: column; align-items: flex-start; text-align: left; gap: 0;
    min-width: 200px; margin: 0;
    background: color-mix(in srgb, var(--ink) 62%, transparent);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: .3rem 1.1rem;
    box-shadow: 0 18px 36px -18px rgba(0,0,0,.45);
    opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .site-header.nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a {
    color: color-mix(in srgb, var(--cream) 88%, transparent) !important;
    opacity: 1; font-size: .92rem; padding: .58rem 0; width: 100%;
    border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { color: var(--amber) !important; }
  /* "Say hello" stays in the top bar (outside the dropdown) as a plain link */
  .site-nav__cta { font-size: .88rem; }
  /* open-state: morph hamburger into an X */
  .site-header.nav-open .nav-toggle span { background: var(--ink); border-radius: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  /* fully collapse + hide the middle bar so its rounded caps can't show as dots on mobile */
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); background: transparent; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   ARCH PRIMITIVE — flat-bottomed, fully-rounded top
   ========================================================= */
.arch { border-radius: 50% 50% 0 0 / 92% 92% 0 0; }

/* =========================================================
   HERO — dark editorial, oversized type + rotating lid stamp
   (design from SAGI-v2)
   ========================================================= */
.link-underline {
  font-weight: 700; letter-spacing: .02em;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.link-underline:hover { color: var(--amber); }

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink) url("../img/hero.webp") center / cover no-repeat;
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
}
/* dark scrim so the headline stays legible over the bright doorway image */
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background: linear-gradient(90deg,
    rgba(20,16,12,.74) 0%,
    rgba(20,16,12,.50) 40%,
    rgba(20,16,12,.18) 70%,
    rgba(20,16,12,.04) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }
/* circular jar on the right (round crop hides the photo's background box) */
.hero__jar {
  position: absolute; z-index: 2;
  right: clamp(2rem, 6vw, 7rem); top: 66%; transform: translateY(-50%);
  width: clamp(280px, 35vw, 540px);
}
.hero__jar img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  /* on small screens drop the jar into the empty lower-right corner, smaller */
  .hero__jar {
    width: clamp(200px, 50vw, 320px);
    right: 1.1rem; top: auto; bottom: 1.4rem;
    transform: none;
  }
}
.hero__eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  margin-bottom: 2rem;
}
.hero__eyebrow .line { width: 48px; height: 2px; background: var(--amber); }
.hero__title {
  font-size: clamp(2.9rem, 9.2vw, 7.1rem);
  line-height: 1.0;
  font-weight: 700;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--amber); }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-top: 2.8rem;
}
.hero__foot p { max-width: 30em; color: color-mix(in srgb, var(--cream) 78%, transparent); font-size: 1.08rem; }
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.1vw, 2.2rem) !important;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream) !important;
  max-width: none !important;
  white-space: nowrap;
}
.hero__tagline em { font-style: normal; color: var(--amber); }


/* =========================================================
   MARQUEE (moving banner)
   ========================================================= */
.marquee {
  background: #161616;
  overflow: hidden; padding: 1.1rem 0;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 1.4rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  animation: scroll-x 90s linear infinite;
  will-change: transform;
}
.marquee .dot { color: #555; font-weight: 400; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   STORY
   ========================================================= */
.story {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4.5rem, 11vw, 8rem) var(--gutter);
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) { .story { grid-template-columns: 0.85fr 1fr; } }
.story__media { position: relative; }
.arch-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
  background: var(--cream-2);
}
.arch-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.story__copy h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1.4rem; }
.story__copy h2 em { color: var(--deep-coral); }
.story__copy p:not(.section-kicker) { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.1rem; max-width: 36em; }
.story__copy p em { color: var(--ink); font-style: italic; }
.story__signoff { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink) !important; }

/* =========================================================
   FLAGSHIP — Ají Verde (the Bodoni font showcase)
   ========================================================= */
.flagship {
  background: radial-gradient(140% 90% at 50% 0%, var(--cream-2), var(--cream) 60%);
  padding: clamp(4.5rem, 11vw, 8rem) var(--gutter);
  position: relative;
}
.flagship__head { max-width: 760px; margin: 0 auto; text-align: center; }
.flagship__head h2 {
  font-size: clamp(3.4rem, 13vw, 8rem);
  color: var(--sauce-green-deep);
  font-weight: 900;
  letter-spacing: -.02em;
}
.flagship__tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem,3vw,1.7rem); margin-top: .3rem; }
.flagship__tag em { color: var(--deep-coral); font-style: normal; }
.flagship__desc { margin: 1.4rem auto 0; max-width: 40em; color: var(--ink-soft); font-size: 1.08rem; }

/* =========================================================
   MADE WITH PURPOSE — fun + colorful cards
   (client liked the content, wanted it less boring)
   ========================================================= */
.purpose {
  background: var(--cream);
  padding: clamp(4.5rem, 11vw, 8rem) var(--gutter);
}
.purpose__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem,6vw,4rem); }
.purpose__head h2 { font-size: clamp(2.4rem, 8vw, 4.6rem); }
.purpose__head h2 em { color: var(--deep-coral); font-style: normal; }
.purpose__head p:not(.section-kicker) { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; }

.purpose__grid {
  display: grid; gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: 1fr;
  max-width: var(--maxw); margin-inline: auto;
}
@media (min-width: 620px) { .purpose__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .purpose__grid { grid-template-columns: repeat(3, 1fr); } }

.pcard {
  position: relative;
  background: var(--c);
  color: var(--ink);
  border-radius: 26px 26px 18px 18px / 60px 60px 18px 18px; /* arched top, keeps the doorway motif */
  padding: clamp(2rem, 3.4vw, 2.6rem) clamp(1.6rem,2.6vw,2rem) clamp(1.8rem,2.8vw,2.2rem);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard::before { /* playful blob accent */
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: color-mix(in srgb, #fff 30%, transparent);
  pointer-events: none;
}
.pcard:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 28px 50px -22px color-mix(in srgb, var(--ink) 65%, transparent); }
.pcard__icon {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: color-mix(in srgb, #fff 55%, transparent);
  color: var(--ink);
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.pcard__icon svg { width: 28px; height: 28px; }
.pcard h3 { font-size: 1.45rem; margin-bottom: .5rem; color: var(--ink); position: relative; z-index: 1; }
.pcard p { font-size: 1rem; line-height: 1.55; color: color-mix(in srgb, var(--ink) 82%, transparent); position: relative; z-index: 1; }

/* =========================================================
   MORE FLAVORS — row of arched doorways
   ========================================================= */
.flavors {
  background: var(--ink); color: var(--cream);
  padding: clamp(4.5rem, 11vw, 8rem) var(--gutter);
}
.flavors__head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem,6vw,4rem); }
.flavors__head .section-kicker { color: var(--amber); }
.flavors__head h2 { font-size: clamp(2.4rem, 8vw, 5rem); }
.flavors__head .hero__script { color: var(--amber); font-size: 1.1em; }
.flavors__head p { color: color-mix(in srgb, var(--cream) 70%, transparent); margin-top: 1rem; }

.flavors__grid {
  display: grid; gap: clamp(.8rem, 2vw, 1.4rem);
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--maxw); margin-inline: auto;
}
@media (min-width: 720px) { .flavors__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px){ .flavors__grid { grid-template-columns: repeat(7, 1fr); } }

.flavor-arch {
  position: relative;
  background: var(--c);
  color: var(--ink);
  border-radius: 50% 50% 8px 8px / 26% 26% 8px 8px;
  padding: clamp(1.6rem,3vw,2.2rem) 1rem 1.1rem;
  min-height: 168px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  text-align: center;
  transition: transform .35s var(--ease);
}
.flavor-arch:hover { transform: translateY(-8px); }
.flavor-arch__region {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  opacity: .7;
}
.flavor-arch__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.05; }
.flavor-arch--live { color: #fff; box-shadow: 0 0 0 3px var(--amber); }
.flavor-arch__badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink);
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .5rem; border-radius: 999px;
}

/* =========================================================
   CONTACT / FOOTER  (email + social only)
   ========================================================= */
.contact { background: var(--cream); padding: clamp(4.5rem,11vw,8rem) var(--gutter) 2.5rem; }
.contact__top { text-align: center; }
.contact__top h2 { font-size: clamp(2.6rem, 9vw, 5.5rem); }
.contact__top .hero__script { color: var(--deep-coral); font-size: 1.05em; }
.contact__email {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--ink); border-bottom: 2px solid var(--deep-coral);
  padding-bottom: .15rem;
  transition: color .25s var(--ease);
}
.contact__email:hover { color: var(--deep-coral); }
.contact__social { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; justify-content: center; }
.contact__social a {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.contact__social a:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }

.contact__foot { text-align: center; margin-top: clamp(3rem,7vw,5rem); padding-top: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.contact__logo { height: 64px; width: auto; margin: 0 auto 1rem; mix-blend-mode: multiply; }
.contact__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; }
.contact__magic { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.7rem; color: var(--deep-coral); margin: .2rem 0 1.4rem; }
.contact__copy { font-size: .82rem; color: var(--ink-soft); }

/* =========================================================
   SCROLL REVEAL (progressive enhancement)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* =========================================================
   RESPONSIVE — phones / small tablets
   ========================================================= */
@media (max-width: 680px) {
  .hero { padding: 6.5rem var(--gutter) 3rem; }
  /* keep the tagline on one line — scale it down with the viewport so it fits */
  .hero__tagline {
    white-space: nowrap;
    font-size: clamp(.8rem, 4.4vw, 1.6rem) !important;
    letter-spacing: .01em;
  }
  .hero__foot { margin-top: 2rem; }
  .flagship__head h2 { font-size: clamp(2.8rem, 18vw, 4.2rem); }
  .pcard h3 { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  /* keep the flavor doorways from getting too cramped */
  .flavors__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
