:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef2e8;
  --ink: #152018;
  --muted: #526255;
  --line: rgba(21, 32, 24, 0.12);
  --green: #214f2f;
  --green-2: #3f7d33;
  --gold: #d7a11e;
  --dark: #122116;
  --shadow: 0 18px 45px rgba(18, 33, 22, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 244, 0.84);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo-wrap {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.brand-logo-wrap:hover {
  transform: scale(1.06);
}
.brand-logo {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero {
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at top right, rgba(215, 161, 30, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfcf8 0%, #f7f8f4 100%);
}
.hero-small {
  padding: 64px 0 28px;
}
.hero-grid,
.contact-grid,
.spec-layout,
.strip,
.cta-panel,
.footer-row {
  display: grid;
  gap: 28px;
}
.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.eyebrow,
.section-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-2);
  font-size: 0.8rem;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(1.8rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 10ch;
}
h2 {
  font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
h3 { font-size: 1.15rem; margin-bottom: 10px; }
.hero-copy,
.section-heading p,
.strip p,
.contact-grid p,
.spec-layout p,
.cta-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  box-shadow: var(--shadow);
}
.btn-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.8);
}
.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.hero-card,
.card,
.contact-card,
.spec-table,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 22px; }
.hero-photo-card {
  display: grid;
  gap: 18px;
}
.premium-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(215, 161, 30, 0.16), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f4f7ef 100%);
}
.quote-mark {
  position: absolute;
  right: 18px;
  top: -8px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(33, 79, 47, 0.12);
  margin: 0;
  font-weight: 800;
}
.hero-card h3 { margin-top: 8px; font-size: 1.4rem; }
.hero-card p { color: var(--muted); }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-grid article {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 18px;
}
.stat-grid strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.stat-grid span { color: var(--muted); font-size: 0.92rem; }
.media-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #dfe6da;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame-hero {
  aspect-ratio: 4 / 2.8;
}
.media-card {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
}
.media-inline {
  aspect-ratio: 4 / 2.7;
  margin-top: 22px;
}
.media-tall {
  aspect-ratio: 4 / 4.6;
}
.photo-story {
  padding-top: 12px;
}
.photo-story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.photo-story-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}
.image-card {
  padding-top: 18px;
}
.section { padding: 72px 0; }
.muted-section { background: #f0f4eb; }
.brand-band {
  padding-top: 24px;
  padding-bottom: 24px;
}
.trust-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-band span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(33, 79, 47, 0.06);
  border: 1px solid rgba(33, 79, 47, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
}
.dark-section {
  background: linear-gradient(180deg, #173020 0%, #112417 100%);
  color: white;
}
.dark-section .section-label,
.dark-section .section-heading p,
.dark-section .card p { color: rgba(255,255,255,0.78); }
.accent-section {
  background: linear-gradient(135deg, rgba(215,161,30,0.14), rgba(63,125,51,0.1));
}
.section-heading { max-width: 760px; margin-bottom: 28px; }
.cards {
  display: grid;
  gap: 18px;
}
.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.soft-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-grid span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-weight: 600;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.timeline-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  font-weight: 800;
}
.timeline-step p { color: var(--muted); margin-bottom: 0; }
.strip,
.spec-layout,
.contact-grid,
.cta-panel,
.footer-row { grid-template-columns: 1fr 1fr; align-items: start; }
.spec-table {
  overflow: hidden;
}
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.spec-table div:last-child { border-bottom: 0; }
.spec-table span { color: var(--muted); }
.check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.contact-card {
  padding: 26px;
  display: grid;
  gap: 12px;
}
.contact-card a {
  font-weight: 600;
  color: var(--green);
}
.contact-note { margin-top: 10px; color: var(--muted); }
.card,
.timeline-step,
.hero-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover,
.timeline-step:hover,
.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(18, 33, 22, 0.11);
}
.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
}
.footer-row { border-top: 1px solid var(--line); padding-top: 20px; }

/* ── SPA Page Routing ──────────────────────────────────────────────────────── */

.page {
  display: none;
}

.page.page--active {
  display: block;
  animation: pageFadeIn 0.28s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Active nav link ───────────────────────────────────────────────────────── */

.nav-links a {
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-2);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a.active {
  color: var(--green);
  font-weight: 700;
}

.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links a:hover {
  color: var(--green);
}

/* ── Header scroll state ───────────────────────────────────────────────────── */

.site-header.scrolled {
  box-shadow: 0 2px 18px rgba(18, 33, 22, 0.08);
}

/* ── Mobile nav toggle ─────────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s 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; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Scroll-triggered animations ──────────────────────────────────────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.44s ease, transform 0.44s ease;
}

[data-animate-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s;     }
[data-animate-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.07s;  }
[data-animate-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s;  }
[data-animate-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s;  }
[data-animate-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s;  }
[data-animate-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.35s;  }
[data-animate-stagger].is-visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.42s; }

/* ── Back to top ───────────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* ── Contact page text links ───────────────────────────────────────────────── */

.text-link {
  color: var(--green);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* ── Card perspective for tilt ─────────────────────────────────────────────── */

.card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* Tablet: 768px – 900px */
@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    min-height: unset;
  }
  .brand-logo-wrap { width: 56px; height: 56px; max-width: 56px; max-height: 56px; }
  .brand-logo { width: 56px; height: 56px; max-width: 56px; max-height: 56px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }
  .nav-links.nav--open { display: flex; }
  .nav-links a { padding: 8px 4px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .hero-grid,
  .three-up,
  .two-up,
  .strip,
  .spec-layout,
  .contact-grid,
  .cta-panel,
  .footer-row,
  .timeline-grid,
  .photo-story-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 36px; }
}

/* Mobile: up to 640px */
@media (max-width: 640px) {
  h1 { max-width: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .container { width: min(1120px, calc(100% - 24px)); }
  .back-to-top { bottom: 18px; right: 18px; }
  .brand-logo-wrap { width: 48px; height: 48px; max-width: 48px; max-height: 48px; }
  .brand-logo { width: 48px; height: 48px; max-width: 48px; max-height: 48px; }
  .hero { padding: 36px 0 28px; }
  .hero-points { font-size: 0.9rem; }
  .hero-copy { font-size: 0.95rem; }
  .section { padding: 40px 0; }
  .section-heading { margin-bottom: 20px; }
  .card { padding: 18px; }
  .spec-table div { padding: 12px 16px; font-size: 0.9rem; }
}

/* Small phones: up to 400px */
@media (max-width: 400px) {
  .brand-logo-wrap { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
  .brand-logo { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
  .stat-grid { grid-template-columns: 1fr; }
  .btn { font-size: 0.9rem; padding: 0 14px; min-height: 44px; }
}
