/* =========================================================
   Agro Dairy Hub — website styles
   Colours and type follow Brand Guidelines v1.0 (Dec 2026)
   ========================================================= */

:root {
  --deep-green: #1E5A3A;
  --milk-cream: #FBF6EA;
  --leaf-green: #7DBA4A;
  --sun-gold: #F2B632;
  --field-green: #3F7A22;
  --soil-ink: #17241C;
  --white: #FFFFFF;

  --muted: #4E5E54;            /* softer Soil Ink for secondary text */
  --line: #E6E0D0;             /* hairline on cream/white */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 36, 28, .06), 0 8px 24px rgba(23, 36, 28, .06);
  --max: 1160px;
  --font: "Plus Jakarta Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--soil-ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--field-green); }
a:hover { color: var(--deep-green); }
h1, h2, h3, h4 { color: var(--deep-green); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { width: 24px; height: 24px; flex: none; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--cream { background: var(--milk-cream); }
.section--green { background: var(--deep-green); color: var(--milk-cream); }
.section--green h2, .section--green h3 { color: var(--milk-cream); }

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--field-green);
  margin-bottom: 14px;
}
.section--green .label { color: var(--leaf-green); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 620px; }
.section--green .lead { color: rgba(251, 246, 234, .85); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Placeholder text you still need to replace — easy to spot */
.todo { background: rgba(242, 182, 50, .28); border-radius: 4px; padding: 0 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--font);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--deep-green); color: var(--milk-cream); }
.btn--primary:hover { background: var(--field-green); color: var(--white); }
.btn--gold { background: var(--sun-gold); color: var(--soil-ink); }
.btn--gold:hover { background: #e5a81f; color: var(--soil-ink); }
.btn--outline { border-color: var(--deep-green); color: var(--deep-green); background: transparent; }
.btn--outline:hover { background: var(--deep-green); color: var(--milk-cream); }
.btn--light { border-color: rgba(251, 246, 234, .5); color: var(--milk-cream); }
.btn--light:hover { background: var(--milk-cream); color: var(--deep-green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 44px; width: auto; }   /* main logo, above 120px min width */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--soil-ink);
  font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 999px;
}
.nav a:hover { color: var(--deep-green); background: var(--milk-cream); }
.nav a[aria-current="page"] { color: var(--deep-green); background: var(--milk-cream); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; padding: 12px 18px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--sun-gold); color: var(--soil-ink);
  font-size: 12px; font-weight: 700;
}
.menu-btn { display: none; background: none; border: 0; color: var(--deep-green); padding: 8px; cursor: pointer; }
.menu-btn .icon { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 10px; }
  .brand img { height: 38px; }
  .header-actions .btn-label { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--milk-cream); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 72px 0 88px;
}
.hero h1 span { color: var(--field-green); }
.hero .lead { margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--deep-green); }
.hero-points .icon { width: 20px; height: 20px; color: var(--field-green); }

/* Brand art panel built from the logo's drop, sun and fields */
.hero-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden;
  background: var(--deep-green);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.hero-art .sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--sun-gold); top: 20%; right: 22%; }
.hero-art svg.fields { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; }
.hero-art .badge {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--white); border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.hero-art .badge strong { display: block; color: var(--deep-green); font-size: 15px; }
.hero-art .badge span { font-size: 13px; color: var(--muted); }
.hero-art .badge .icon { color: var(--field-green); width: 30px; height: 30px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
  .hero-art { max-width: 460px; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.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-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.section--cream .card { border-color: transparent; box-shadow: var(--shadow); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--milk-cream); color: var(--deep-green); margin-bottom: 18px;
}
.section--cream .icon-badge { background: var(--milk-cream); border: 1px solid var(--line); }
.icon-badge .icon { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
.section--green .card { background: rgba(251, 246, 234, .06); border-color: rgba(251, 246, 234, .14); }
.section--green .card p { color: rgba(251, 246, 234, .8); }
.section--green .icon-badge { background: rgba(251, 246, 234, .1); color: var(--milk-cream); }

/* Photo slot — replace with your own farm photos */
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #F4EEDD 0 14px, #FBF6EA 14px 28px);
  border: 1.5px dashed #D9CFB4;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 14px; padding: 20px;
}
.photo-slot .icon { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--field-green); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-slot.tall { aspect-ratio: 4 / 5; }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-media {
  aspect-ratio: 16 / 9; background: var(--milk-cream);
  display: grid; place-items: center; color: var(--deep-green); position: relative;
}
.product-media .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--sun-gold); color: var(--soil-ink);
  padding: 6px 10px; border-radius: 999px;
}
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { font-size: 15px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; gap: 12px; }
.price { font-weight: 800; font-size: 1.25rem; color: var(--deep-green); }
.price small { font-weight: 600; font-size: 13px; color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--field-green); margin-top: 2px; }
.check-list strong { color: var(--deep-green); }

/* Steps (farm to door) */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--leaf-green);
  margin-bottom: 10px; display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--deep-green); color: var(--milk-cream);
  border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--milk-cream); margin-bottom: .3em; }
.cta-band p { color: rgba(251, 246, 234, .85); margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: var(--sun-gold); opacity: .9;
}
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--milk-cream); padding: 64px 0 56px; }
.page-hero .lead { margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font: 600 14px/1 var(--font); padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--soil-ink); cursor: pointer;
}
.chip:hover { border-color: var(--deep-green); }
.chip[aria-pressed="true"] { background: var(--deep-green); border-color: var(--deep-green); color: var(--milk-cream); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .shop-layout { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--deep-green); border-radius: 999px; }
.qty button:hover { background: var(--milk-cream); }
.qty button .icon { width: 16px; height: 16px; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.add-btn { padding: 11px 18px; font-size: 14px; }

.cart {
  position: sticky; top: 100px;
  background: var(--milk-cream); border-radius: var(--radius); padding: 26px;
}
.cart h3 { display: flex; align-items: center; gap: 10px; }
.cart-items { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item .name { font-weight: 700; color: var(--deep-green); font-size: 15px; }
.cart-item .sub { font-size: 13px; color: var(--muted); }
.cart-item .line { font-weight: 700; text-align: right; }
.cart-item .qty { grid-column: 1 / -1; justify-self: start; background: var(--white); }
.cart-empty { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; color: var(--deep-green); margin-bottom: 18px; }
.cart label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: var(--deep-green); }
.cart input, .cart textarea, .cart select {
  width: 100%; font: 15px var(--font); padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--soil-ink);
}
.cart input:focus, .cart textarea:focus, .cart select:focus { outline: 2px solid var(--leaf-green); border-color: var(--leaf-green); }
.cart .btn { width: 100%; justify-content: center; margin-top: 18px; }
.cart .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.cart-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-green); color: rgba(251, 246, 234, .85); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--milk-cream); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(251, 246, 234, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; }
.contact-line .icon { width: 18px; height: 18px; color: var(--leaf-green); margin-top: 3px; }
.footer-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(251, 246, 234, .15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px;
}
.site-footer .todo { background: rgba(242, 182, 50, .25); color: var(--milk-cream); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--deep-green); color: var(--milk-cream);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(23, 36, 28, .25);
}
.wa-float:hover { background: var(--field-green); color: var(--white); }
.wa-float .icon { width: 28px; height: 28px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--soil-ink); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Accessibility */
:focus-visible { outline: 2.5px solid var(--leaf-green); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
