/* ==========================================================================
   Beyond Organic — Stylesheet
   ========================================================================== */

:root {
  --ink: #141311;
  --ink-soft: #1f1e1b;
  --paper: #ffffff;
  --paper-soft: #f7f5f1;
  --text-muted: #5b5a56;
  --text-on-dark-muted: #c9c7c1;
  --accent: #c98a2b;      /* turmeric gold */
  --accent-dark: #a86f1c;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe57;
  --radius-pill: 999px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.12);
  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
p { margin: 0 0 1em; }
sup { font-size: .6em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 820px; }
.center { text-align: center; }
.upper { text-transform: uppercase; letter-spacing: .02em; }

.section { padding: 88px 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--paper); }
.section.dark p { color: var(--text-on-dark-muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.icon-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; padding: 10px 20px; font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,8,.78) 0%, rgba(10,10,8,.35) 55%, rgba(10,10,8,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 24px 80px;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  margin-bottom: 32px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- Welcome ---------- */
.welcome h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .8em; }
.welcome p { color: var(--text-muted); font-size: 1.05rem; }
.welcome .btn { margin-top: 12px; }

/* ---------- Products ---------- */
.products { background: var(--paper-soft); }
.products h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 50px; }
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.product-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card p { color: var(--text-muted); text-align: center; }
.check-list, .dot-list {
  list-style: none;
  text-align: center;
  color: var(--text-muted);
}
.check-list li { padding: 3px 0; }
.check-list li::before { content: "✓ "; color: var(--accent-dark); font-weight: 700; }
.check-list.small { text-align: left; }
.section.dark .check-list.small li::before { color: var(--accent); }
.section.dark .check-list li,
.section.dark .dot-list li { color: var(--text-on-dark-muted); }

/* ---------- Farm to Market ---------- */
.farm-to-market h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 44px; }
.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.farm-media { border-radius: var(--radius-md); overflow: hidden; }
.farm-media img { width: 100%; height: 100%; object-fit: cover; }
.farm-copy p { max-width: 560px; margin-left: auto; margin-right: auto; }
.numbered-list, .dot-list { max-width: 420px; margin: 0 auto 28px; }
.numbered-list { list-style: none; counter-reset: item; }
.numbered-list li {
  counter-increment: item;
  padding: 6px 0;
  color: var(--text-on-dark-muted);
}
.numbered-list li::before {
  content: counter(item) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}
.dot-list { list-style: disc; padding-left: 22px; }
.dot-list li { padding: 3px 0; }

/* ---------- Promise strip ---------- */
.promise-strip { padding: 70px 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.strip-item {
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid #e4e2dc;
}
.strip-item:first-child { border-left: none; }
.strip-item h3 { font-size: 1.3rem; margin-bottom: .5em; }
.strip-item p { color: var(--text-muted); }

/* ---------- Pillars ---------- */
.pillars h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 56px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.pillar h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: .55em;
}
.pillar-icon { font-size: 1.3rem; }
.pillar p { color: var(--text-muted); }
.pillar .check-list.small { margin-bottom: 10px; }
.pillar-wide { grid-column: span 1; }
@media (min-width: 861px) {
  .pillars-grid { justify-items: stretch; }
}

/* ---------- Programs / Gallery ---------- */
.programs h2 { margin-bottom: 40px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 60px;
}
.gallery-item { overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.little-school-media { aspect-ratio: 21 / 9; overflow: hidden; margin-bottom: 0; }
.little-school-media img { width: 100%; height: 100%; object-fit: cover; }
.little-school-copy {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 40px 0 0;
}
.little-school-text h3 { font-size: 1.4rem; margin-bottom: .6em; }
.little-school-text p { color: var(--text-on-dark-muted); }
.little-school-quote p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.3;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,8,.92) 0%, rgba(10,10,8,.75) 45%, rgba(10,10,8,.45) 100%);
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
  color: #fff;
}
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-content p { color: var(--text-on-dark-muted); margin-bottom: 28px; }

/* ---------- Our Promise / Network / Map ---------- */
.our-promise { padding-bottom: 0; }
.our-promise > h2 { margin-bottom: 44px; }
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
}
.network-copy { color: #fff; padding: 64px 56px; }
.network-copy h3 { font-size: 1.5rem; margin-bottom: 1em; }
.network-block { margin-bottom: 26px; }
.network-block h4 { font-size: 1rem; color: var(--accent); margin-bottom: .3em; }
.network-block p { color: var(--text-on-dark-muted); margin: 0; }
.network-address { margin-top: 24px; color: var(--text-on-dark-muted); font-size: .92rem; }
.network-map { min-height: 420px; }
.network-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 30px 0; border-top: 1px solid #ececec; }
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: .88rem;
}
.footer-inner p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  z-index: 600;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .products-grid,
  .farm-grid,
  .little-school-copy,
  .network-grid { grid-template-columns: 1fr; }
  .farm-media { max-width: 420px; margin: 0 auto 32px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr; gap: 34px; }
  .strip-item { border-left: none; border-top: 1px solid #e4e2dc; padding-top: 28px; }
  .strip-item:first-child { border-top: none; padding-top: 0; }
  .network-copy { padding: 52px 32px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--ink);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(3) { grid-column: span 2; aspect-ratio: 2.5/1; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { min-height: 560px; }
  .hero-content { padding: 50px 20px 56px; }
  .header-inner { padding: 8px 16px; }
  .brand img { height: 38px; }
  .network-copy { padding: 42px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item:nth-child(3) { grid-column: auto; aspect-ratio: 1/1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
