/* ===========================================================
   Fermente — Brand stylesheet
   Palette pulled from the logo:
   Green  #589E2E   Deep Green #2F5A18   Gold #FFCE66   Cream #FBF7EC
   =========================================================== */

:root{
  --green:        #589E2E;
  --green-dark:   #3A6E1E;
  --green-deep:   #24440F;
  --gold:         #FFCE66;
  --gold-soft:    #FFE3A8;
  --cream:        #FBF7EC;
  --cream-dark:   #F3ECDC;
  --ink:          #22301A;
  --ink-soft:     #4E5C45;
  --white:        #FFFFFF;
  --radius:       18px;
  --radius-sm:    10px;
  --shadow:       0 10px 30px rgba(36,68,15,0.12);
  --shadow-sm:    0 4px 14px rgba(36,68,15,0.10);
  --maxw:         1180px;
  --font-head:    'Baloo 2', 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--green-deep);
  line-height:1.15;
  margin:0 0 .5em;
}
h1{ font-size:clamp(2.1rem,4vw,3.4rem); }
h2{ font-size:clamp(1.6rem,3vw,2.4rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; color:var(--ink-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding:76px 0; }
.section-tight{ padding:48px 0; }
.bg-cream-dark{ background:var(--cream-dark); }
.bg-green{ background:var(--green); color:var(--white); }
.bg-green *{ color:var(--white); }
.bg-deep{ background:var(--green-deep); color:var(--cream); }

.eyebrow{
  display:inline-block;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.75rem;
  color:var(--green);
  background:var(--gold-soft);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:14px;
}
.bg-green .eyebrow{ background:rgba(255,255,255,.18); color:var(--gold); }

.center{ text-align:center; }
.section-head{ max-width:640px; margin:0 auto 44px; text-align:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:.95rem;
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--green); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--green-dark); box-shadow:var(--shadow); }
.btn-gold{ background:var(--gold); color:var(--green-deep); box-shadow:var(--shadow-sm); }
.btn-gold:hover{ background:#ffc247; }
.btn-outline{ background:transparent; border-color:var(--white); color:var(--white); }
.btn-outline:hover{ background:var(--white); color:var(--green-deep); }
.btn-outline-dark{ background:transparent; border-color:var(--green); color:var(--green); }
.btn-outline-dark:hover{ background:var(--green); color:var(--white); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 18px; font-size:.85rem; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--green-deep);
  border-bottom:1px solid rgba(0,0,0,.15);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{
  height:40px; width:40px; object-fit:contain; object-position:center;
  background:var(--green); border-radius:50%; padding:6px; box-sizing:border-box;
}
.brand span{ font-family:var(--font-head); font-size:1.5rem; color:var(--cream); font-weight:700; }

.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{
  font-weight:600; font-size:.95rem; color:var(--cream); position:relative; padding:6px 0;
}
.nav-links a.active,.nav-links a:hover{ color:var(--gold); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px; background:var(--gold); border-radius:3px;
}

.header-actions{ display:flex; align-items:center; gap:14px; position:relative; z-index:3; }
.cart-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%; background:var(--white); color:var(--green);
}

.qty-stepper{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--green); border-radius:999px; padding:5px 10px;
}
.qty-stepper .qty-btn{
  width:24px; height:24px; border-radius:50%; border:none; background:var(--white); color:var(--green);
  font-size:1rem; font-weight:700; display:flex; align-items:center; justify-content:center; cursor:pointer; line-height:1; padding:0;
}
.qty-stepper .qty-value{
  color:var(--white); font-weight:700; min-width:14px; text-align:center; font-size:.95rem;
}
.cart-count{
  position:absolute; top:-4px; right:-4px; background:var(--gold); color:var(--green-deep);
  font-size:.7rem; font-weight:800; min-width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; border:2px solid var(--green-deep);
}
.nav-toggle{ display:none; background:none; border:none; padding:8px; }
.nav-toggle span{ display:block; width:26px; height:3px; background:var(--cream); margin:5px 0; border-radius:3px; }

@media (max-width:880px){
  .nav-links{
    position:fixed; inset:70px 0 0 0; background:var(--green-deep); flex-direction:column;
    padding:30px 24px; gap:22px; transform:translateX(100%); transition:transform .25s ease;
    overflow-y:auto; z-index:2;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-toggle{ display:block; }
}

/* ===== Hero ===== */
.hero{
  background:var(--green);
  color:var(--white);
  position:relative;
  overflow:hidden;
  padding:70px 0 90px;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 85% 15%, rgba(255,206,102,.25), transparent 45%),
             radial-gradient(circle at 10% 90%, rgba(255,255,255,.12), transparent 40%);
}
.hero-grid{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.hero p{ color:rgba(255,255,255,.88); font-size:1.08rem; max-width:480px; }
.hero-actions{ display:flex; gap:16px; margin-top:28px; flex-wrap:wrap; }
.hero-art{ display:flex; justify-content:center; align-items:center; }
.hero-art img{ max-width:340px; filter:drop-shadow(0 20px 30px rgba(0,0,0,.18)); }
.hero-stats{ display:flex; gap:32px; margin-top:40px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:var(--font-head); font-size:1.6rem; color:var(--gold); }
.hero-stats div span{ font-size:.85rem; color:rgba(255,255,255,.8); }

@media (max-width:880px){
  .hero-grid{ grid-template-columns:1fr; text-align:center; }
  .hero p{ margin:0 auto; }
  .hero-actions{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .hero-art img{ max-width:220px; }
}

/* ===== Cards / Grids ===== */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:960px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--white); border-radius:var(--radius); padding:28px;
  box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.icon-badge{
  width:56px; height:56px; border-radius:16px; background:var(--gold-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.icon-badge svg{ width:28px; height:28px; }

/* Product cards */
.product-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.product-media{
  aspect-ratio:1/1; background:var(--cream-dark); display:flex; align-items:center; justify-content:center; position:relative;
}
.product-media img,.product-media svg{ width:62%; height:62%; }
.product-tag{
  position:absolute; top:12px; left:12px; background:var(--green); color:var(--white);
  font-size:.7rem; font-weight:700; padding:4px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:.04em;
}
.product-body{ padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-body h3{ margin:0; }
.product-meta{ font-size:.85rem; color:var(--ink-soft); }
.product-price-row{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:12px; }
.price{ font-family:var(--font-head); font-size:1.3rem; color:var(--green-deep); font-weight:700; }
.price-old{ text-decoration:line-through; color:#a3ac97; font-size:.9rem; margin-right:6px; }

.filter-bar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:36px; justify-content:center; }
.chip{
  padding:9px 18px; border-radius:999px; background:var(--white); border:2px solid var(--cream-dark);
  font-weight:600; font-size:.88rem;
}
.chip.active{ background:var(--green); border-color:var(--green); color:var(--white); }

/* Timeline / process */
.process-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; counter-reset:step; }
@media (max-width:880px){ .process-steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .process-steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding-top:8px; }
.step-num{
  width:40px; height:40px; border-radius:50%; background:var(--green); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; margin-bottom:14px;
}

/* Testimonial */
.quote-card{ background:var(--cream-dark); border-radius:var(--radius); padding:32px; }
.quote-card p{ font-size:1.1rem; font-style:italic; color:var(--ink); }
.quote-by{ font-weight:700; color:var(--green-deep); }

/* FAQ accordion (native details) */
.faq-item{ background:var(--white); border-radius:var(--radius-sm); margin-bottom:14px; padding:6px 22px; box-shadow:var(--shadow-sm); }
.faq-item summary{ cursor:pointer; font-weight:700; padding:16px 0; color:var(--green-deep); list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.4rem; color:var(--green); }
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ padding-bottom:16px; margin:0; }

/* Recipe card */
.recipe-card{ background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.recipe-media{ background:var(--gold-soft); aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; }
.recipe-media svg{ width:40%; }
.recipe-body{ padding:22px; }
.recipe-meta{ display:flex; gap:16px; font-size:.82rem; color:var(--ink-soft); margin-bottom:10px; }
.recipe-body details summary{ font-weight:700; color:var(--green); cursor:pointer; margin-top:12px; }
.recipe-body ol,.recipe-body ul{ padding-left:20px; list-style:disc; margin:10px 0; }
.recipe-body ol{ list-style:decimal; }
.recipe-body li{ margin-bottom:6px; color:var(--ink-soft); }

/* Forms */
.form-field{ margin-bottom:18px; text-align:left; }
.form-field label{ display:block; font-weight:700; margin-bottom:6px; font-size:.9rem; color:var(--green-deep); }
.form-field input,.form-field textarea,.form-field select{
  width:100%; padding:13px 16px; border-radius:var(--radius-sm); border:2px solid var(--cream-dark);
  font-family:inherit; font-size:.95rem; background:var(--white); color:var(--ink);
}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{ outline:none; border-color:var(--green); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.form-note{ font-size:.85rem; color:var(--ink-soft); }

/* Table (stockists) */
.stockist-table{ width:100%; border-collapse:collapse; background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.stockist-table th,.stockist-table td{ padding:16px 18px; text-align:left; border-bottom:1px solid var(--cream-dark); }
.stockist-table th{ background:var(--green); color:var(--white); font-family:var(--font-head); }
.stockist-table tr:last-child td{ border-bottom:none; }

/* Cart */
.cart-line{ display:grid; grid-template-columns:70px 1fr auto auto; gap:16px; align-items:center; padding:18px 0; border-bottom:1px solid var(--cream-dark); }
.cart-line img,.cart-line .thumb{ width:70px; height:70px; border-radius:12px; background:var(--cream-dark); display:flex; align-items:center; justify-content:center; }
.cart-line .thumb svg{ width:60%; }
.qty-control{ display:flex; align-items:center; border:2px solid var(--cream-dark); border-radius:999px; overflow:hidden; }
.qty-control button{ width:32px; height:32px; background:var(--white); border:none; font-weight:700; color:var(--green); }
.qty-control span{ width:32px; text-align:center; font-weight:700; }
.cart-summary{ background:var(--white); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); position:sticky; top:100px; }
.summary-row{ display:flex; justify-content:space-between; margin-bottom:10px; color:var(--ink-soft); }
.summary-row.total{ font-weight:800; color:var(--green-deep); font-size:1.2rem; border-top:2px dashed var(--cream-dark); padding-top:14px; margin-top:14px; }
.empty-state{ text-align:center; padding:60px 20px; }
.empty-state .icon-badge{ margin:0 auto 20px; width:80px; height:80px; }

/* Footer */
.site-footer{ background:var(--green-deep); color:var(--cream); padding:60px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--gold); font-size:1rem; margin-bottom:16px; }
.footer-grid a,.footer-grid p{ color:rgba(251,247,236,.75); font-size:.92rem; }
.footer-links li{ margin-bottom:10px; }
.footer-links a:hover{ color:var(--gold); }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:38px; }
.footer-brand span{ font-family:var(--font-head); font-size:1.3rem; color:var(--white); }
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; background:rgba(251,247,236,.1); display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background:var(--gold); color:var(--green-deep); }
.footer-bottom{ border-top:1px solid rgba(251,247,236,.15); padding-top:22px; text-align:center; font-size:.85rem; color:rgba(251,247,236,.6); }

/* Banner strip */
.promo-strip{ background:var(--gold); color:var(--green-deep); text-align:center; padding:10px 16px; font-weight:700; font-size:.88rem; }

/* Utility */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.flex{ display:flex; } .items-center{ align-items:center; } .gap-12{ gap:12px; } .justify-between{ justify-content:space-between; }
.text-center{ text-align:center; }
.badge-pill{ display:inline-block; background:var(--cream-dark); color:var(--green-deep); padding:5px 12px; border-radius:999px; font-size:.8rem; font-weight:700; }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--green-deep); color:var(--white); padding:14px 26px; border-radius:999px;
  font-weight:600; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:all .25s ease; z-index:999;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }


/* ============================================
   Elegant refresh layer (added)
   Additive, non-destructive polish pass:
   softer surfaces, calmer motion, refined type
   ============================================ */

body{ -webkit-font-smoothing:antialiased; }

.eyebrow{
  background:transparent;
  color:var(--green-deep);
  padding:0;
  border-radius:0;
  position:relative;
  padding-left:28px;
}
.eyebrow::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  transform:translateY(-50%);
  width:20px; height:2px;
  background:var(--gold);
}
.bg-green .eyebrow, .bg-deep .eyebrow{ color:var(--gold); }
.bg-green .eyebrow::before, .bg-deep .eyebrow::before{ background:rgba(255,255,255,.7); }

.btn{ transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.btn:hover{ transform:translateY(-2px); }
.btn-gold{ box-shadow:0 8px 20px rgba(255,206,102,.35); }
.btn-gold:hover{ box-shadow:0 12px 26px rgba(255,206,102,.45); }

.hero{ background:linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%) !important; }
.hero, .hero *{ color:var(--ink) !important; }
.hero h1{ color:var(--green-deep) !important; letter-spacing:-0.01em; }
.hero p{ color:var(--ink-soft) !important; }
.hero .eyebrow{ color:var(--green-deep) !important; }
.hero .eyebrow::before{ background:var(--gold) !important; }
.hero-stats > div > div:first-child{ color:var(--green-deep) !important; }

.hero-art img{
  max-width:100%;
  width:480px;
  border-radius:24px;
  box-shadow:0 24px 48px rgba(36,68,15,.18), 0 4px 12px rgba(36,68,15,.10);
}

.card, .benefit-card, .product-card, .recipe-card, .faq-item, .quote-card{
  transition:transform .25s ease, box-shadow .25s ease;
}

section{ padding-top:96px; padding-bottom:96px; }

@media (max-width:768px){
  section{ padding-top:56px; padding-bottom:56px; }
  .hero-art img{ width:100%; border-radius:18px; }
}


/* Sub-page banner (About/Shop/Recipes/FAQ/Stockists/Contact) — matches homepage hero treatment */
.page-hero{
  background:linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%) !important;
  color:var(--ink) !important;
}
.page-hero *{ color:var(--ink) !important; }
.page-hero h1, .page-hero h2{ color:var(--green-deep) !important; letter-spacing:-0.01em; }
.page-hero p{ color:var(--ink-soft) !important; }
.page-hero .eyebrow{ color:var(--green-deep) !important; }
.page-hero .eyebrow::before{ background:var(--gold) !important; }
