/* =========================================================
   AquaRoot Agri Systems — Stylesheet v2
   Editorial / architectural agri-tech design system
   ========================================================= */

:root {
  --porcelain: #fafaf8;
  --ink: #141a17;
  --ink-soft: #4b554f;
  --ink-faint: #80877f;

  --water: #1e5a78;
  --water-deep: #123e52;
  --water-bright: #4f93b0;

  --sage: #43593e;
  --sage-deep: #2e3f2a;

  --stone: #c7c1b2;
  --stone-light: #ece8dd;
  --line: #e2ddd0;

  --radius: 2px;
  --max: 1240px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 480; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 60ch; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 40px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.brand img { height: 66px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--water); }
.main-nav a.btn { color: var(--porcelain); }
.main-nav a.btn:hover { color: var(--porcelain); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: var(--porcelain); }
.btn-primary:hover { background: var(--water-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--porcelain); }
.btn-light { border-color: rgba(250,250,248,0.55); color: var(--porcelain); background: transparent; }
.btn-light:hover { background: rgba(250,250,248,0.12); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

/* ---------- Full-bleed hero ---------- */
.hero-full {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-full::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,23,0.15) 0%, rgba(18,20,17,0.15) 45%, rgba(15,17,15,0.82) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 2;
  color: var(--porcelain);
  padding: 0 40px 80px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(250,250,248,0.72);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero-full h1 { color: var(--porcelain); max-width: 14ch; margin-bottom: 20px; }
.hero-full-lede { color: rgba(250,250,248,0.86); font-size: 1.12rem; max-width: 46ch; margin-bottom: 30px; }
.hero-full-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.photo-credit {
  position: absolute;
  bottom: 14px; right: 40px;
  z-index: 2;
  font-size: 0.68rem;
  color: rgba(250,250,248,0.5);
}

/* Smaller page hero (non-home pages) */
.hero-page {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-page::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,23,0.1) 0%, rgba(15,17,15,0.78) 100%);
}
.hero-page-inner {
  position: relative; z-index: 2; color: var(--porcelain);
  padding: 0 40px 56px; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-page h1 { color: var(--porcelain); max-width: 20ch; }
.hero-page p { color: rgba(250,250,248,0.86); font-size: 1.05rem; max-width: 52ch; }

/* ---------- Editorial statement ---------- */
.statement {
  padding: 110px 0;
  text-align: center;
}
.statement p, .statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 450;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.3;
}

/* ---------- Capability strip ---------- */
.cap-strip { padding: 0 0 110px; }
.cap-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.cap-item {
  padding: 30px 26px 0;
  border-right: 1px solid var(--line);
}
.cap-item:last-child { border-right: none; }
.cap-item .n { font-family: var(--font-display); font-size: 0.95rem; color: var(--stone); display: block; margin-bottom: 14px; }
.cap-item h3 { font-size: 1.08rem; margin-bottom: 10px; }
.cap-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Alternating photo/text blocks ---------- */
.alt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.alt-block .text-col { display: flex; flex-direction: column; justify-content: center; padding: 72px 64px; }
.alt-block .photo-col { position: relative; min-height: 460px; background-size: cover; background-position: center; }
.alt-block.reverse .text-col { order: 2; }
.alt-block.reverse .photo-col { order: 1; }
.alt-block .text-col .kicker {
  font-size: 0.8rem; color: var(--water); font-weight: 500; margin-bottom: 16px;
}
.alt-block .photo-col .photo-credit { color: rgba(250,250,248,0.7); }

/* ---------- Hairline stat / list rows ---------- */
.hairline-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hairline-row .stat { padding: 40px 26px; border-right: 1px solid var(--line); }
.hairline-row .stat:last-child { border-right: none; }
.hairline-row .stat .num { font-family: var(--font-display); font-size: 2rem; display: block; color: var(--water-deep); }
.hairline-row .stat .label { font-size: 0.85rem; color: var(--ink-faint); margin-top: 6px; }

.hairline-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hairline-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: baseline;
  color: var(--ink-soft);
}
.hairline-list li .li-label { font-family: var(--font-display); color: var(--water); font-size: 0.95rem; min-width: 30px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-stone { background: var(--stone-light); }
.section-dark { background: var(--ink); color: var(--porcelain); }
.section-dark h2, .section-dark p { color: var(--porcelain); }
.section-dark p { opacity: 0.82; }

.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head .kicker { font-size: 0.8rem; color: var(--water); font-weight: 500; margin-bottom: 14px; display: block; }

/* ---------- Dark CTA band ---------- */
.cta-dark {
  background: var(--ink);
  color: var(--porcelain);
  padding: 88px 0;
  text-align: center;
}
.cta-dark h2 { color: var(--porcelain); max-width: 26ch; margin: 0 auto 14px; }
.cta-dark p { color: rgba(250,250,248,0.8); max-width: 46ch; margin: 0 auto 32px; }

/* ---------- Simple two-col (no card) ---------- */
.editorial-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

/* ---------- Notice ---------- */
.notice {
  border-left: 2px solid var(--water);
  padding: 16px 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 32px 0;
  background: var(--stone-light);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: -6px; margin-bottom: 24px; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.spec-table th { width: 38%; color: var(--ink-faint); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,250,248,0.72); padding: 70px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(250,250,248,0.55); font-size: 0.9rem; }
.site-footer h4 { color: var(--porcelain); font-family: var(--font-body); font-size: 0.85rem; margin-bottom: 16px; font-weight: 500; }
.site-footer a { color: rgba(250,250,248,0.62); font-size: 0.9rem; display: block; margin-bottom: 10px; transition: color .15s ease; }
.site-footer a:hover { color: var(--porcelain); }
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(250,250,248,0.12);
  font-size: 0.78rem; color: rgba(250,250,248,0.4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1e5a78;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  z-index: 200;
}
.whatsapp-fab svg { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .alt-block, .editorial-2col, .footer-grid { grid-template-columns: 1fr; }
  .alt-block .text-col { padding: 56px 32px; order: 2 !important; }
  .alt-block .photo-col { min-height: 340px; order: 1 !important; }
  .cap-strip-row, .hairline-row { grid-template-columns: repeat(2, 1fr); }
  .cap-item, .hairline-row .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 86px; left: 0; right: 0; bottom: 0;
    background: var(--porcelain); flex-direction: column; align-items: flex-start;
    padding: 32px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .cap-strip-row, .hairline-row { grid-template-columns: 1fr; }
  .cap-item, .hairline-row .stat { border-bottom: 1px solid var(--line); }
}

/* ---------- v3 additions: process journey & farm-to-market ---------- */
.journey { padding: 20px 0 40px; }
.journey-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  border-top: 1px solid var(--line);
}
.journey-step {
  padding: 30px 30px 0 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.journey-step:last-child { border-right: none; padding-right: 0; }
.journey-step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--water);
  display: block;
  margin-bottom: 14px;
}
.journey-step h3 { font-size: 1.05rem; margin-bottom: 10px; text-transform: none; letter-spacing: 0.01em; }
.journey-step p { font-size: 0.94rem; margin-bottom: 0; }

.flow-progression {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 30px 0;
}
.flow-step { text-align: center; padding: 0 18px; }
.flow-step .flow-label { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); display: block; margin-bottom: 10px; }
.flow-step p { margin: 0 auto; font-size: 0.92rem; max-width: 24ch; }
.flow-arrow { color: var(--stone); font-size: 1.4rem; text-align: center; }

@media (max-width: 720px) {
  .journey-row { grid-template-columns: 1fr; }
  .journey-step { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .journey-step:first-child { padding-top: 0; }
  .flow-progression { grid-template-columns: 1fr; gap: 22px; }
  .flow-arrow { transform: rotate(90deg); }
}

/* Current / Future produce framing */
.produce-current-future { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 1px solid var(--line); }
.produce-current-future .cf-current { padding: 56px; border-right: 1px solid var(--line); }
.produce-current-future .cf-future { padding: 56px; background: var(--stone-light); display: flex; flex-direction: column; justify-content: center; }
.tag-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--water);
  border: 1px solid var(--water);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
@media (max-width: 980px) {
  .produce-current-future { grid-template-columns: 1fr; }
  .produce-current-future .cf-current { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- v4 addition: simple photo band (visual break, no overlay text) ---------- */
.photo-band {
  position: relative;
  height: 46vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.photo-band .photo-credit { color: rgba(20,26,23,0.55); background: rgba(250,250,248,0.55); padding: 3px 8px; border-radius: 2px; }
