/* =========================================================
   Dapur Ibuku — Home page styles
   Warm artisanal kitchen · Light theme only
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --cream:        #FBF4EA;
  --cream-2:      #F4E8D7;
  --paper:        #FFFDF9;
  --clay:         #C2592F;   /* primary */
  --clay-dark:    #9C3F1E;
  --clay-soft:    #E8C7B4;
  --saffron:      #E39A2B;   /* accent */
  --saffron-soft: #F4C95B;
  --herb:         #5E7A4B;
  --herb-dark:    #445C36;
  --ink:          #2B211B;
  --ink-soft:     #6A5E54;
  --line:         rgba(43, 33, 27, .12);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* shape */
  --radius:    22px;
  --radius-lg: 32px;
  --radius-sm: 14px;
  --pill:      999px;

  /* shadow (warm tinted) */
  --shadow-sm: 0 4px 14px -6px rgba(120, 60, 30, .28);
  --shadow:    0 18px 40px -18px rgba(120, 60, 30, .35);
  --shadow-lg: 0 34px 70px -28px rgba(120, 60, 30, .45);

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  overflow-x: hidden;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(120, 60, 30, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; z-index: 200; background: var(--clay); color: #fff;
  padding: .6rem 1.1rem; border-radius: var(--pill); font-weight: 600; transition: transform .2s;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-dark); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--saffron); border-radius: 2px; }
.eyebrow-light { color: var(--saffron-soft); }
.eyebrow-light::before { background: var(--saffron-soft); }

.section-title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); color: var(--ink); }
.section-sub { color: var(--ink-soft); max-width: 46ch; margin-top: 1rem; }
.lead { color: var(--ink-soft); font-size: 1.075rem; }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head.align-start { margin-inline: 0; text-align: left; }
.section-head.align-start .eyebrow { justify-content: flex-start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: var(--pill);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  will-change: transform; white-space: nowrap;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--clay-dark); box-shadow: var(--shadow); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: .65rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-mini {
  padding: .5rem 1rem; font-size: .82rem; border-radius: var(--pill);
  background: var(--ink); color: var(--cream);
}
.btn-mini:hover { background: var(--clay); transform: translateY(-1px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 234, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgba(120,60,30,.25)); }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-tag { font-size: .68rem; letter-spacing: .04em; color: var(--ink-soft); }
.brand-name-lg { font-size: 1.8rem; }

.main-nav { display: flex; gap: 1.7rem; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: .3rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--clay); border-radius: 2px; transition: width .22s ease;
}
.main-nav a:hover { color: var(--clay); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.lang-btn { padding: .25rem .35rem; border-radius: 6px; color: var(--ink-soft); transition: color .15s; }
.lang-btn.is-active { color: var(--clay); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { opacity: .4; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav-toggle span { width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: .35rem;
  padding: .5rem var(--gutter) 1.6rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: .85rem .25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-copy { position: relative; z-index: 3; max-width: 600px; }
.hero-title { font-size: clamp(2.7rem, 1.5rem + 5.5vw, 5.4rem); color: var(--ink); margin-block: .2rem .1rem; }
.hero-title span { display: block; }
.title-accent { color: var(--clay); font-style: italic; font-weight: 500; }
.hero-sub { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); max-width: 48ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2.2rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.trust-row .tick { color: var(--saffron); font-size: .8rem; }

/* hero visual stack */
.hero-visual { position: relative; min-height: 440px; z-index: 2; }
.jar-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.hero-jar { width: clamp(220px, 30vw, 320px); filter: drop-shadow(0 30px 40px rgba(120,60,30,.32)); animation: floatY 6s ease-in-out infinite; }

.float-card {
  position: absolute; z-index: 5; background: var(--paper);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .15rem;
  border: 1px solid rgba(255,255,255,.8);
}
.card-bestseller { top: 6%; right: -2%; width: 200px; animation: floatY 7s ease-in-out infinite .4s; }
.card-bestseller .fc-badge {
  align-self: flex-start; background: var(--saffron); color: var(--clay-dark);
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--pill); margin-bottom: .35rem;
}
.fc-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.fc-meta { font-size: .82rem; color: var(--ink-soft); }
.fc-price { font-weight: 800; color: var(--clay); margin-top: .2rem; }

.card-love {
  bottom: 18%; left: -4%; flex-direction: row; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .9rem; animation: floatY 6.5s ease-in-out infinite .8s;
}
.card-love .heart { color: var(--clay); font-size: 1.1rem; }

.card-fresh {
  bottom: 2%; right: 8%; flex-direction: row; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .88rem; animation: floatY 7.5s ease-in-out infinite .2s;
}
.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--herb); box-shadow: 0 0 0 0 rgba(94,122,75,.5); animation: pulse 2s infinite; }

/* hero decorations */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; }
.blob-a { width: 520px; height: 520px; right: -8%; top: -12%;
  background: radial-gradient(circle at 30% 30%, var(--saffron-soft), transparent 62%); opacity: .5; }
.blob-b { width: 460px; height: 460px; left: -14%; bottom: -18%;
  background: radial-gradient(circle at 60% 40%, var(--clay-soft), transparent 60%); opacity: .55; }
.doodle { position: absolute; width: 54px; opacity: .9; }
.doodle-chili { top: 14%; left: 6%; animation: floatY 8s ease-in-out infinite; }
.doodle-anise { bottom: 26%; right: 4%; width: 46px; animation: spinSlow 26s linear infinite; }
.doodle-leaf { top: 8%; right: 40%; width: 40px; animation: floatY 9s ease-in-out infinite 1s; }
.dots-1 {
  position: absolute; left: 44%; bottom: 16%; width: 120px; height: 70px;
  background-image: radial-gradient(var(--clay-soft) 2px, transparent 2px);
  background-size: 16px 16px; opacity: .7; border-radius: 8px;
}

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream-2); padding-block: .85rem; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--clay-dark);
  white-space: nowrap; padding-right: 0;
}

/* =========================================================
   STORY
   ========================================================= */
.story { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.story-visual { position: relative; min-height: 360px; }
.photo-card { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.photo-back {
  width: 72%; height: 78%; right: 0; top: 0; transform: rotate(5deg);
  background: repeating-linear-gradient(45deg, var(--saffron-soft) 0 14px, var(--saffron) 14px 28px);
  opacity: .9;
}
.photo-front {
  width: 78%; left: 0; bottom: 0; padding: 1rem; background: var(--paper);
  transform: rotate(-3deg); z-index: 2;
}
.story-stamp {
  position: absolute; z-index: 3; right: 4%; bottom: 6%;
  background: var(--clay); color: var(--cream); border-radius: 50%;
  width: 108px; height: 108px; display: grid; place-content: center; text-align: center;
  transform: rotate(-8deg); box-shadow: var(--shadow); line-height: 1.15;
}
.story-stamp span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.story-stamp strong { font-family: var(--font-display); font-size: 1.6rem; }

.story-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.2rem; margin-top: 2rem; }
.story-points li {
  display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink);
  background: var(--paper); padding: .8rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.sp-ico { font-size: 1.15rem; }

/* =========================================================
   PRODUCTS
   ========================================================= */
.products { background: var(--cream-2); overflow: hidden; }
.section-blob {
  position: absolute; width: 480px; height: 480px; right: -10%; top: 8%;
  background: radial-gradient(circle, rgba(227,154,43,.22), transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;     /* equal-height cards across each row */
  grid-auto-rows: 1fr;      /* keep every row the same height */
}
.product-card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(255,255,255,.7);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-art {
  position: relative; display: grid; place-items: center; padding: 1.6rem 1rem .6rem;
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--p) 18%, transparent), transparent 70%);
}
.p-art svg { width: clamp(86px, 30%, 120px); filter: drop-shadow(0 12px 16px rgba(120,60,30,.22)); }
.p-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--saffron); color: var(--clay-dark); font-size: .66rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; padding: .28rem .6rem; border-radius: var(--pill);
}
.p-body { padding: 0 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.p-name { font-size: 1.32rem; color: var(--ink); }
.p-desc { color: var(--ink-soft); font-size: .92rem; }
/* auto top-margin pins the price/Order row to the bottom of every card */
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.p-price { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--clay); }

.product-note { text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--ink-soft); font-size: .9rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--cream); }

/* editorial "unboxed" list — hairline dividers, outline numbers, line icons */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  padding: clamp(1.5rem, 3.2vw, 2.3rem) clamp(.4rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.service-item:hover {
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(8px);
  border-bottom-color: transparent;
}
.s-num {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--clay-soft);
  min-width: 1.7em;
  transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
.service-item:hover .s-num { color: var(--clay); -webkit-text-stroke-color: var(--clay); }
.s-text h3 { font-size: clamp(1.18rem, 2.4vw, 1.45rem); color: var(--ink); }
.s-text p { color: var(--ink-soft); font-size: .96rem; margin-top: .4rem; max-width: 54ch; }
.s-ico {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--clay); flex: none;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.s-ico svg { width: 27px; height: 27px; }
.service-item:hover .s-ico {
  background: var(--clay); color: var(--cream);
  border-color: var(--clay); transform: rotate(-8deg) scale(1.06);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: var(--cream); text-align: center; overflow: hidden; position: relative;
  border-radius: clamp(28px, 4vw, 48px); margin-inline: var(--gutter);
  margin-block: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-inner { position: relative; z-index: 2; max-width: 640px; }
.cta-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); color: var(--cream); }
.cta-sub { margin-top: 1rem; color: rgba(255,253,249,.82); font-size: 1.1rem; }
.cta-band .btn { margin-top: 2rem; }
.cta-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta-deco span { position: absolute; border-radius: 50%; }
.cta-deco span:nth-child(1) { width: 280px; height: 280px; left: -80px; top: -90px; background: radial-gradient(circle, rgba(244,201,91,.3), transparent 65%); }
.cta-deco span:nth-child(2) { width: 320px; height: 320px; right: -100px; bottom: -120px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%); }
.cta-deco span:nth-child(3) { width: 14px; height: 14px; right: 18%; top: 22%; background: var(--saffron-soft); opacity: .8; box-shadow: 60px 40px 0 -2px rgba(255,255,255,.5), -120px 120px 0 -3px var(--saffron-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { color: rgba(251,244,234,.7); margin-top: .8rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron-soft); margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; color: rgba(251,244,234,.82); font-weight: 500; transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--cream); transform: translateX(3px); }

.footer-bar { border-top: 1px solid rgba(251,244,234,.14); }
.footer-bar-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.4rem; }
.copyright { font-size: .85rem; color: rgba(251,244,234,.6); }
.powered {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(251,244,234,.07); border: 1px solid rgba(251,244,234,.16);
  padding: .55rem 1rem; border-radius: var(--pill); font-size: .9rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.powered:hover { background: rgba(227,154,43,.16); border-color: var(--saffron); transform: translateY(-2px); }
.powered-label { color: rgba(251,244,234,.7); }
.powered strong { color: var(--saffron-soft); font-weight: 700; }
.powered-arrow { color: var(--saffron-soft); }

/* =========================================================
   PREVIEW-EXPIRED OVERLAY (injected by JS)
   ========================================================= */
.preview-lock {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  display: grid; place-items: center; padding: var(--gutter); text-align: center;
}
.preview-lock-card {
  max-width: 460px; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(2rem, 5vw, 3.2rem);
}
.preview-lock-mark { width: 64px; margin: 0 auto 1.4rem; }
.preview-lock h2 { font-size: 1.8rem; color: var(--ink); margin-bottom: .8rem; }
.preview-lock p { color: var(--ink-soft); margin-bottom: 1.8rem; }
body.is-locked { overflow: hidden; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,122,75,.5); }
  70% { box-shadow: 0 0 0 10px rgba(94,122,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,122,75,0); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Scroll reveal is applied via inline styles in script.js (JS-only), so
   content is never left hidden if JS is disabled or fails to run. */

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { max-width: none; }
  .hero-visual { min-height: 380px; order: 2; margin-top: 1rem; }
  .card-bestseller { right: 4%; }
  .card-love { left: 2%; }

  .story-grid { grid-template-columns: 1fr; }
  .story-visual { min-height: 320px; max-width: 460px; margin-inline: auto; order: 2; }

  /* comfortable 2-up product grid on tablets */
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Switch to the hamburger nav before the desktop nav gets cramped */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}

/* Mobile */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .story-points { grid-template-columns: 1fr; }

  /* services: number + text only, drop the icon button on small screens */
  .service-item { grid-template-columns: auto 1fr; gap: 1rem 1.3rem; }
  .service-item:hover { transform: none; }
  .s-ico { display: none; }

  /* keep decorative doodles off the headline on small screens */
  .doodle-chili { display: none; }

  .trust-row { gap: .7rem 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .hero-actions .btn { flex: 1; }
  .card-bestseller { width: 170px; right: 0; }
}

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