/* ============================================================
   Blue Garden — Nourishment from the sea
   ============================================================ */

:root {
  --navy: #0F2A38;
  --navy-deep: #0A1D27;
  --teal: #2C7285;
  --teal-deep: #1F5563;
  --teal-light: #8AC6CE;
  --seafoam: #EAF1F1;
  --sand: #F1E9D8;
  --gold: #B08D57;
  --gold-light: #C9A968;
  --ink: #16262A;
  --paper: #FBF9F4;
  --line: rgba(15, 42, 56, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --max-w: 1180px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
p { margin: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(251, 249, 244, 0.5); }
.btn-outline:hover { border-color: var(--paper); background: rgba(251,249,244,0.08); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--navy-deep); }
.btn-soldout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(15, 42, 56, 0.5);
  cursor: not-allowed;
}
.btn-soldout::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(15, 42, 56, 0.35);
  display: inline-block;
}
.btn-soldout:disabled { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-family: var(--font-display); font-size: 1.28rem; color: var(--navy); font-weight: 600; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-size: 0.95rem; font-weight: 600;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 160ms ease;
}
.nav-links a:hover { border-color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 22px 32px 28px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: 0.88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--paper);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(10, 24, 32, 0.94) 0%,
      rgba(10, 24, 32, 0.88) 32%,
      rgba(10, 24, 32, 0.58) 56%,
      rgba(10, 24, 32, 0.22) 76%,
      rgba(10, 24, 32, 0.08) 100%
    );
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 150px 32px 170px;
  position: relative;
  z-index: 2;
}
.hero-inner > div { max-width: 640px; }
.hero-eyebrow { font-size: 1.02rem; color: var(--gold-light); margin-bottom: 18px; max-width: 34ch; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.7rem); color: var(--paper);
  font-style: italic; font-weight: 500; line-height: 1.08; max-width: 14ch;
}
.hero-sub { margin-top: 22px; font-size: 1.08rem; max-width: 46ch; color: rgba(251, 249, 244, 0.86); }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.wave-divider { display: block; width: 100%; line-height: 0; position: relative; z-index: 2; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ---------- Story ---------- */
.story { background: var(--seafoam); padding: 96px 0; }
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.story-art { height: 380px; border-radius: 3px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(15, 42, 56, 0.35); }
.story-art img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow-line { color: var(--teal); font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; }
.story h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); max-width: 16ch; }
.story p { margin-top: 20px; font-size: 1.04rem; max-width: 56ch; color: rgba(20, 35, 31, 0.85); }
.story p + p { margin-top: 14px; }

/* ---------- Ingredients ---------- */
.ingredients { background: var(--paper); padding: 100px 0 110px; }
.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: rgba(20,35,31,0.8); }

.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.ingredient-card { padding: 34px 28px 8px 0; border-right: 1px solid var(--line); }
.ingredient-card:last-child { border-right: none; }
.ingredient-card:not(:first-child) { padding-left: 28px; }
.ingredient-icon { width: 54px; height: 54px; margin-bottom: 22px; }
.ingredient-card .maori { color: var(--teal-deep); font-weight: 700; font-size: 1.02rem; }
.ingredient-card .latin { display: block; font-style: italic; color: rgba(20,35,31,0.55); font-size: 0.88rem; margin-top: 3px; margin-bottom: 14px; }
.ingredient-card p { font-size: 0.98rem; color: rgba(20,35,31,0.82); }
.ingredient-card .benefit-for { margin-top: 16px; font-size: 0.85rem; font-weight: 700; color: var(--navy); display:block; }

/* ---------- Products ---------- */
.products { background: var(--sand); padding: 100px 0 110px; }
.product-row {
  display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-row.reverse { grid-template-columns: 1.38fr 0.62fr; }
.product-row.reverse .product-media { order: 2; }
.product-row.reverse .product-copy { order: 1; }
.product-media { display: flex; justify-content: center; align-items: center; height: 380px; }
.product-media img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 24px 48px -20px rgba(15, 42, 56, 0.35);
}
.product-copy .no { color: var(--teal-deep); font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; display:block; }
.product-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.product-copy .tag { color: var(--gold); font-weight: 700; margin-top: 6px; font-size: 0.98rem; }
.product-copy p.desc { margin-top: 18px; font-size: 1.02rem; color: rgba(20,35,31,0.85); max-width: 56ch; }
.benefit-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.benefit-chips span {
  border: 1px solid var(--line); padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
  color: var(--navy); background: var(--paper);
}
.product-footline { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }

/* ---------- Sourcing ---------- */
.sourcing { background: linear-gradient(180deg, #123240 0%, var(--navy-deep) 100%); color: var(--paper); padding: 100px 0; }
.sourcing-head { max-width: 60ch; margin-bottom: 56px; }
.sourcing-head h2 { color: var(--paper); font-size: clamp(1.9rem, 3vw, 2.5rem); }
.sourcing-head p { margin-top: 16px; color: rgba(251,249,244,0.82); font-size: 1.05rem; }
.sourcing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { border-top: 1px solid rgba(251,249,244,0.22); padding-top: 20px; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-light); font-style: italic; }
.stat .label { margin-top: 8px; font-size: 0.98rem; color: rgba(251,249,244,0.82); max-width: 30ch; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); padding: 74px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.newsletter h2 { color: var(--paper); font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 20ch; font-style: italic; font-weight: 500; }
.newsletter p { color: rgba(251,249,244,0.75); margin-top: 10px; max-width: 42ch; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  background: transparent; border: 1px solid rgba(251,249,244,0.4); color: var(--paper);
  padding: 13px 16px; min-width: 260px; font-family: var(--font-body); font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(251,249,244,0.55); }
.newsletter-note { margin-top: 12px; font-size: 0.85rem; color: rgba(251,249,244,0.6); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(251,249,244,0.75); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(251,249,244,0.14);
}
.footer-brand .brand-word { color: var(--paper); }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 32ch; color: rgba(251,249,244,0.62); }
.footer h4 { color: var(--paper); font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { text-decoration: none; font-size: 0.92rem; color: rgba(251,249,244,0.7); }
.footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.83rem; color: rgba(251,249,244,0.5); flex-wrap: wrap; gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { padding: 110px 24px 120px; }
  .hero-inner > div { max-width: 100%; }
  .hero-scrim {
    background: rgba(10, 24, 32, 0.82);
  }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { height: 260px; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient-card { border-right: none; border-bottom: 1px solid var(--line); padding: 30px 0; }
  .ingredient-card:not(:first-child) { padding-left: 0; }
  .product-row, .product-row.reverse { grid-template-columns: 1fr; }
  .product-row.reverse .product-media, .product-row.reverse .product-copy { order: initial; }
  .product-media { height: 300px; }
  .sourcing-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}
