/* ============================================================
   WeGrow — style.css
   Fustat typeface. Agricultural palette: forest green, leaf green,
   sage, warm ivory, earthy beige and dark charcoal.
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Core palette */
  --forest:      #183D2B;   /* deep forest green  */
  --leaf:        #527D46;   /* natural leaf green */
  --sage:        #A8B99A;   /* soft sage          */
  --ivory:       #F5F3E9;   /* warm ivory         */
  --beige:       #D6C5A3;   /* earthy beige       */
  --charcoal:    #252B25;   /* dark charcoal      */

  /* Derived tones */
  --leaf-text:   #3F6636;   /* leaf green tuned for small text on ivory (AA) */
  --leaf-dark:   #46703B;   /* hover state for leaf green fills */
  --paper:       #FBFAF4;   /* lifted surface for cards / form */
  --sand:        #EDE8D8;   /* alternate section background */

  /* Semantic tokens */
  --accent:      var(--leaf);
  --accent-dark: var(--leaf-dark);
  --dark:        var(--charcoal);
  --bg:          var(--ivory);
  --white:       var(--paper);
  --muted:       #5B6358;
  --light-text:  #687064;
  --card-bg:     var(--sand);
  --border:      #E1D8C2;

  --max-w:       1280px;
  --py:          100px;
  --px:          6%;
  --radius:      6px;
  --radius-lg:   10px;
  --nav-h:       72px;
  --shadow:      0 1px 2px rgba(37,43,37,0.06);
  --transition:  0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Fustat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.section { padding-block: var(--py); }

/* ── Typography helpers ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-text);
  margin-bottom: 14px;
}

.section-header {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Shared Buttons ─────────────────────────────────────────── */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}
.btn-dark:hover { background: var(--leaf); }

.btn-accent-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--beige);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
  border: none;
  margin-top: 12px;
}
.btn-accent-sm:hover { background: var(--sage); }

/* ── Scroll-reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.nav-logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--light-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--leaf-text);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--forest);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 20px;
  height: 40px;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--leaf); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--ivory);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px var(--px);
  gap: 4px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 18px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.nav-mobile .mobile-cta {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
}

/* Nav scroll shadow */
.nav.scrolled { box-shadow: 0 1px 10px rgba(37,43,37,0.06); }


/* ============================================================
   CINEMATIC SCROLLYTELLING HERO
   ============================================================ */
.hero-scrolly-container {
  position: relative;
  height: 450vh; /* Scrollytelling scroll depth for 238 frames */
  background: #111410;
}

.hero-scrolly-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111410;
}

/* Canvas edge-to-edge covering viewport */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Dark gradient vignette overlay to keep hero typography legible */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,22,16,0.88) 0%,
    rgba(14,22,16,0.45) 45%,
    rgba(14,22,16,0.20) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Scrolly stages container */
.hero-stages-wrapper {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
}

.hero-stages-container {
  position: relative;
  width: 100%;
  height: 380px;
}

.hero-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 820px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-stage.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-stage.right-aligned {
  left: auto;
  right: 0;
  text-align: right;
  margin-left: auto;
}
.hero-stage.right-aligned .hero-desc {
  margin-left: auto;
}

.hero-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,22,16,0.45);
  border: 1px solid rgba(168,185,154,0.45);
  color: var(--sage);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Scroll prompt */
.hero-scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(245,243,233,0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 18px;
}

.hero-scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(245,243,233,0.45);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.hero-scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--sage);
  border-radius: 2px;
  animation: mouseWheel 1.6s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Floating Timeline Indicator */
.hero-timeline-indicator {
  position: absolute;
  top: 96px;
  right: var(--px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,22,16,0.72);
  border: 1px solid rgba(245,243,233,0.18);
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* Scrolly Progress Track */
.hero-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(245,243,233,0.14);
  z-index: 4;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--sage);
  transition: width 0.05s linear;
}

/* Standard hero text styles */
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--beige);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 800;
  color: var(--ivory);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-bold { font-weight: 800; color: var(--ivory); }

.hero-desc {
  font-size: 17px;
  color: rgba(245,243,233,0.85);
  max-width: 580px;
  margin-bottom: 24px;
  line-height: 1.65;
}

/* CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ivory);
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  padding: 6px 6px 6px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: background var(--transition);
}
.hero-cta:hover { background: var(--beige); }

.hero-cta-arrow {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ivory);
  transition: background var(--transition);
  flex-shrink: 0;
}
.hero-cta:hover .hero-cta-arrow { background: var(--leaf); }

/* Stat badges */
.hero-stats {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-stats.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14,22,16,0.55);
  border: 1px solid rgba(245,243,233,0.2);
  border-radius: 4px;
  padding: 10px 18px;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.hero-stat-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--beige);
}


/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about { background: var(--bg); }
.about .section-header { margin-bottom: 0; }
.about .section-title { font-size: clamp(28px, 3.5vw, 44px); }

/* Tighten the padding that faces the transition strip */
.about.section { padding-bottom: calc(var(--py) * 0.5); }
.services.section { padding-top: calc(var(--py) * 0.55); }


/* ============================================================
   TRANSITION STRIP (About → Services)
   Close-up hydroponic lettuce that fades into the ivory section
   above and the sand section below.
   ============================================================ */
.field-strip {
  position: relative;
  height: 240px;
  background: var(--forest) url('field-strip.jpg') center 50% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(245,243,233,1) 0%,
      rgba(245,243,233,0) 32%,
      rgba(237,232,216,0) 68%,
      rgba(237,232,216,1) 100%),
    radial-gradient(ellipse 34% 55% at 50% 50%, rgba(20,32,22,0.38), rgba(20,32,22,0) 100%),
    linear-gradient(rgba(20,32,22,0.34), rgba(20,32,22,0.34));
}
.field-strip-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 1px 8px rgba(20,32,22,0.45);
  white-space: nowrap;
}
.field-strip-label::before,
.field-strip-label::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--beige);
}

@media (max-width: 600px) {
  .field-strip { height: 170px; background-position: 8% 50%; }
  .field-strip-label { font-size: 11px; letter-spacing: 0.16em; gap: 12px; }
  .field-strip-label::before,
  .field-strip-label::after { width: 28px; }
}


/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--card-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.service-card:hover { border-color: var(--sage); }

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-card-body {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}
.service-card-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 15px;
  margin-top: 14px;
  align-self: flex-end;
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}
.service-card-link:hover { background: var(--forest); color: var(--ivory); }


/* ============================================================
   FULL-WIDTH BANNER
   ============================================================ */
.banner {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18,34,25,0.64);
  z-index: 1;
}

.banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.banner-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 16px;
}

.banner-heading {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.banner-desc {
  font-size: 15px;
  color: rgba(245,243,233,0.8);
  line-height: 1.7;
}

.banner-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.banner-badge {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.banner-badge-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
}
.banner-badge-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}


/* ============================================================
   WHY WEGROW
   ============================================================ */
.why { background: var(--bg); }

.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.why-image-wrap {
  position: relative;
}
.why-image-clip {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.why-image-clip picture {
  position: absolute;
  inset: 0;
  display: block;
}
.why-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  display: block;
}
.why-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.why-badge-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}
.why-badge-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-feature {
  padding-left: 20px;
  border-left: 2px solid var(--leaf);
}
.why-feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 5px;
}
.why-feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}


/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--card-bg); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.process-step {
  padding: 32px 24px 32px 0;
  border-top: 2px solid var(--forest);
}
.process-step:not(:last-child) { margin-right: 24px; }

.process-step-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--leaf);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.process-step-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 8px;
}
.process-step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}


/* ============================================================
   HYDROPONIC SYSTEMS (dark)
   ============================================================ */
.systems {
  background: var(--forest);
  padding-block: var(--py);
}
.systems .section-title { color: var(--ivory); }
.systems .section-label { color: var(--sage); }

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.system-card {
  background: #1E4733;
  border: 1px solid rgba(168,185,154,0.22);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.system-card:hover { border-color: rgba(168,185,154,0.55); }

.system-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  flex-shrink: 0;
}
.system-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.system-card-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--sage);
  line-height: 1;
  letter-spacing: -0.04em;
}
.system-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.3;
}
.system-card-desc {
  font-size: 13px;
  color: rgba(245,243,233,0.72);
  line-height: 1.65;
  flex: 1;
}
.system-card-tag {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--beige);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 3px;
  align-self: flex-start;
  border: 1px solid rgba(214,197,163,0.4);
  margin-top: 4px;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info .section-desc {
  max-width: 44ch;
  line-height: 1.75;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-bottom: 8px;
}
.contact-detail-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color var(--transition);
}
a.contact-detail-value:hover { color: var(--leaf-text); }

.contact-locations {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-locations-title {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}
.contact-location {
  min-width: 0;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-location .contact-detail-label {
  margin-bottom: 6px;
}

.contact-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 8px;
}

/* Form card */
.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

#leadForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input,
.form-select,
.form-textarea {
  border: 1px solid #CFC5AB;
  border-radius: 4px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--light-text); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 2px rgba(82,125,70,0.18);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6358' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-submit {
  background: var(--forest);
  color: var(--ivory);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: 0.01em;
}
.form-submit:hover { background: var(--leaf); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; }

#status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  display: none;
  font-weight: 500;
  line-height: 1.5;
}
#status.success {
  display: block;
  background: rgba(82,125,70,0.12);
  color: #2F5A2A;
  border: 1px solid rgba(82,125,70,0.35);
}
#status.error {
  display: block;
  background: rgba(154,74,53,0.09);
  color: #8A3F2C;
  border: 1px solid rgba(154,74,53,0.3);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ivory);
  letter-spacing: -0.02em;
  display: block;
}
.footer-logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(245,243,233,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(245,243,233,0.62);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 14px;
  color: rgba(245,243,233,0.65);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--beige); }

.footer-contact-item {
  margin-bottom: 14px;
}
.footer-contact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}
.footer-contact-value {
  font-size: 14px;
  color: rgba(245,243,233,0.72);
  line-height: 1.4;
}
.footer-cta { display: inline-flex; margin-top: 8px; }

/* Footer bar */
.footer-bar {
  border-top: 1px solid rgba(245,243,233,0.12);
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(245,243,233,0.58); }
.footer-bar-links { display: flex; gap: 24px; }
.footer-bar-link {
  font-size: 13px;
  color: rgba(245,243,233,0.58);
  transition: color var(--transition);
}
.footer-bar-link:hover { color: rgba(245,243,233,0.85); }


/* ============================================================
   RESPONSIVE — 1280px
   Hero stages are absolutely positioned and ignore the container
   padding, so below the max-width they sat flush with the screen
   edge. Restore the standard page gutter there.
   ============================================================ */
@media (max-width: 1280px) {
  .hero-stage { padding-inline: var(--px); }
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  :root { --px: 5%; }
  .services-grid { gap: 16px; }
  .systems-grid { gap: 16px; }
  .footer-grid { gap: 32px; }
  .process-step:not(:last-child) { margin-right: 16px; }
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  :root { --py: 72px; --nav-h: 64px; }

  /* Scrollytelling hero */
  .hero-scrolly-container { height: 380vh; }
  .hero-stages-wrapper { padding-bottom: 80px; }
  .hero-stages-container { height: 340px; }
  .hero-timeline-indicator { top: 76px; font-size: 11px; padding: 6px 14px; }
  .hero-heading { font-size: clamp(32px, 6vw, 52px); }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Section header → single column */
  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  /* Services → 2-col */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Banner → stack */
  .banner-inner { grid-template-columns: 1fr; gap: 36px; }
  .banner { background-attachment: scroll; }

  /* Why → balanced tablet columns */
  .why-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }

  /* Process → 3-col */
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step { margin-right: 0 !important; padding-right: 16px; padding-bottom: 24px; }

  /* Systems → 2-col */
  .systems-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact → stack */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Footer → 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  :root { --py: 56px; --px: 5%; }

  .hero-scrolly-container { height: 320vh; }
  .hero-stages-wrapper { padding-bottom: 64px; }
  .hero-stages-container { height: 320px; }
  .hero-timeline-indicator { top: 72px; font-size: 10px; padding: 5px 12px; }
  .hero-heading { font-size: 30px; letter-spacing: -0.025em; line-height: 1.15; }
  .hero-desc { font-size: 14px; margin-bottom: 16px; }
  .hero-stats { gap: 6px; padding-bottom: 12px; }
  .hero-stat { font-size: 11px; padding: 6px 12px; }
  .hero-cta { font-size: 13px; padding: 5px 5px 5px 18px; }

  .section-title { font-size: 28px; }

  /* Services → 1-col */
  .services-grid { grid-template-columns: 1fr; }

  /* Process → 2-col */
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step-num { font-size: 36px; }

  /* Systems → 1-col */
  .systems-grid { grid-template-columns: 1fr; }

  /* Form row → stack */
  .form-row { grid-template-columns: 1fr; }

  /* Footer → 1-col */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-tagline { max-width: 100%; }

  .banner-badges { grid-template-columns: 1fr 1fr; }
  .banner-heading { font-size: 26px; }

  .contact-details,
  .contact-locations { grid-template-columns: 1fr; }
  .contact-locations { grid-column: auto; }
  .contact-locations-title { grid-column: auto; }
}
