/* ============================================================
   Green Poshan — Shared design system
   Linked by index.html and start-here.html in <head>, AFTER the
   Google Fonts <link> and BEFORE each page's own inline <style>.
   Page-specific styles live in each page's inline <style> block.
   ============================================================ */

:root {
  /* Brand tokens */
  --green: #3A9E2E;
  --green-deep: #2E7A24;
  --green-light: #E8F2E4;
  --green-pale: #F4F8F0;
  --amber: #C8922A;
  --amber-light: #F2E5C7;
  --amber-pale: #FBF6E8;
  --espresso: #3B2A1A;
  --mid: #4A4A4A;
  --light: #8A8A8A;
  --cream: #F9F5EE;
  --cream-dark: #EFE9DD;
  --white: #FFFFFF;
  --rule: #E5DFD2;

  /* Typography tokens */
  --serif: 'Lora', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}

/* ----- Resets & base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- Container ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Announcement bar ----- */
.announce {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-align: center;
}
.announce span { opacity: 0.7; margin: 0 6px; }

/* ----- Header ----- */
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* Primary nav (base). Page-specific nav internals — dropdowns on the
   homepage, the flat active-link nav on start-here — live in-page. */
.nav {
  display: none;
  align-items: center;
  justify-self: center;
  gap: 32px;
  margin: 0 40px;
  font-size: 14px;
  font-weight: 400;
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--green-deep); }
.nav a.active {
  color: var(--green-deep);
  font-weight: 500;
  position: relative;
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}
.cart {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-pill {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--white);
}
.cart-count {
  background: var(--green-deep);
  color: var(--cream);
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--espresso);
}

@media (min-width: 700px) {
  .logo img { height: 34px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* ----- Header nav: kitchen-language dropdowns + mobile menu ----- */
.nav-primary,
.nav-secondary {
  display: flex;
  align-items: center;
}
.nav-primary { gap: 26px; }
.nav-secondary { gap: 24px; }

.nav-link,
.nav-trigger {
  transition: color 0.2s;
  white-space: nowrap;
  color: inherit;
}
.nav-link:hover { color: var(--green); }

/* Desktop dropdowns */
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger { color: var(--green); }
.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  opacity: 0.55;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(225deg) translateY(1px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 248px;
  padding-top: 16px;            /* invisible bridge so hover doesn't drop */
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-inner {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 4px 24px rgba(28, 28, 28, 0.06);
  padding: 8px 0;
}
.dropdown a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--espresso);
  padding: 11px 8px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.dropdown a:hover { color: var(--green); background: var(--cream); }

.dropdown-featured {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}
.dropdown-featured a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  padding-top: 12px;
  padding-bottom: 14px;
}
.feat-label {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}

/* ----- Mega menu: icon list + featured "faves" panel ----- */
/* Override the centered, narrow dropdown for the wide two-column panel. */
/* Centered under the trigger (inherits base .dropdown centering), so the
   panel grows symmetrically on both sides as featured content widens. */
.dropdown.mega-dropdown {
  min-width: 660px;
  max-width: calc(100vw - 48px);
}

.mega {
  display: grid;
  grid-template-columns: 1fr 342px;   /* featured col fits a ~320px-wide 16:9 image */
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(28, 28, 28, 0.12);
  padding: 22px;
}
.mega-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  margin: 4px 0 12px 12px;
}

.mega-links { display: grid; gap: 2px; }
.mega-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--espresso);
  transition: background 0.18s, color 0.18s;
}
.mega-link:hover { background: var(--green-pale); color: var(--green-deep); }
.mega-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--green-deep);
  transition: background 0.18s, color 0.18s;
}
.mega-link:hover .mega-ico { background: var(--green-deep); color: var(--cream); }
.mega-ico svg { width: 18px; height: 18px; }

/* Featured column */
.mega-feat {
  border-left: 1px solid var(--rule);
  padding-left: 22px;
}
.mega-feat .mega-heading { margin-left: 0; }
.mega-feat-card { display: block; padding: 0; }
.mega-feat-media {
  position: relative;
  aspect-ratio: 16 / 9;   /* ~320 × 180 at the current column width */
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--amber-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.mega-feat-card:hover .mega-feat-media img { transform: scale(1.04); }
.mega-feat-ph { color: var(--amber); opacity: 0.8; }   /* placeholder until a photo is dropped in */
.mega-feat-ph svg { width: 52px; height: 52px; }
.mega-feat-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.2;
  color: var(--espresso);
  transition: color 0.18s;
}
.mega-feat-card:hover .mega-feat-name { color: var(--green-deep); }
.mega-feat-shop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.mega-feat-shop svg { width: 12px; height: 12px; }

/* Mobile menu */
.mobile-nav { display: none; }
.mobile-nav.open {
  display: block;
  border-top: 1px solid var(--rule);
  background: var(--cream);
}
.mobile-nav .container { padding-top: 4px; padding-bottom: 20px; }
.m-group { border-bottom: 1px solid var(--rule); }
.m-group > summary,
.mobile-nav a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 16px;
  color: var(--espresso);
  list-style: none;
  cursor: pointer;
}
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary .nav-caret { transition: transform 0.2s; }
.m-group[open] > summary .nav-caret { transform: rotate(225deg) translateY(1px); }
.m-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 0 18px 16px;
}
.m-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mid);
  transition: color 0.2s;
}
.m-sub a:hover { color: var(--green); }
.m-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-deep);
}
.m-ico svg { width: 16px; height: 16px; }
.m-sub a.m-featured {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--espresso);
}
.m-section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 4px 0 0;
}

/* ----- Eyebrow labels (mono uppercase) ----- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow::before {
  content: '— ';
  color: var(--amber);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* ----- Inline emphasis: paragraphs are sans, but <em> stays Lora italic
   so editorial emphasis remains distinctive after the serif→sans switch ----- */
p em,
.intro-lede em,
.feature-text em,
.turmeric-body em,
.voice-quote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* ----- Buttons ----- */
.btn-primary {
  background: var(--green-deep);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 0;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover { background: var(--espresso); }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-text {
  font-size: 14px;
  color: var(--espresso);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn-text:hover { color: var(--green-deep); }

.btn-cream {
  background: var(--cream);
  color: var(--espresso);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-cream:hover { background: var(--white); }

.btn-outline {
  border: 1px solid var(--cream);
  color: var(--cream);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--cream); color: var(--espresso); }

.arrow {
  display: inline-block;
  font-family: var(--mono);
}

/* ----- Footer ----- */
.footer {
  background: var(--cream-dark);
  color: var(--espresso);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; }
}
.logo-footer { margin-bottom: 16px; }
.logo-footer img { height: 34px; }
.footer-brand .logo-footer img { height: 36px; }
.footer-tagline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 24px;
  max-width: 28ch;
}
.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--espresso);
  padding-bottom: 8px;
  max-width: 320px;
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--espresso);
  padding: 8px 0;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--light); }
.newsletter-form button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--espresso);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-deep); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mid);
}
@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-legal { text-transform: uppercase; }
