/* ==========================================================================
   Four Seasons Landscaping & Nursery — Design System
   Premium outdoor-living aesthetic: editorial photography, warm
   naturals, generous whitespace.
   ========================================================================== */

/* --------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------- */
:root {
  /* Brand palette (from logo + client spec) */
  --color-primary:       #196F45; /* logo green */
  --color-primary-dark:  #114F32; /* deepened for hover/contrast */
  --color-primary-light: #2C8E5C;
  --color-secondary:     #EADEBD; /* warm tan */
  --color-secondary-dark:#DCC9A0;
  --color-accent:        #C2693A; /* terracotta — fire-pit warmth */
  --color-accent-dark:   #A6532A;

  --color-near-black: #111a12; /* near-black with a hint of forest green */
  --color-ink:    #20261F;  /* near-black warm green-grey for body text */
  --color-ink-60: rgba(32, 38, 31, 0.64);
  --color-paper:  #FBF8F2;  /* warm off-white page background */
  --color-surface:#FFFFFF;
  --color-border: #E4DCC9;

  /* Feedback */
  --color-success: var(--color-primary);
  --color-error:   #B3441E;

  /* Typography
     Self-hosted woff2 recommended at build time: Fraunces (display)
     + Inter (body). System stacks below act as the fallback/FOIT-free
     baseline until the webfont files are added under /assets/fonts/. */
  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-2xl: clamp(2.75rem, 4.5vw + 1.25rem, 4.75rem);
  --text-xl:  clamp(2.25rem, 3.2vw + 1rem, 3.5rem);
  --text-lg:  clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  --text-md:  clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --text-base: 1rem;
  --text-sm:  0.875rem;
  --text-xs:  0.75rem;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadows — soft, layered */
  --shadow-sm: 0 1px 2px rgba(32, 38, 31, 0.06), 0 1px 1px rgba(32, 38, 31, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(32, 38, 31, 0.18), 0 2px 6px rgba(32, 38, 31, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(32, 38, 31, 0.28), 0 8px 20px -8px rgba(32, 38, 31, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-base: 0.5s;

  /* Header */
  --header-height: 84px;
}

/* --------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  font-weight: 600;
  color: var(--color-primary-dark);
}

h1 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; }

p {
  margin: 0 0 var(--space-4);
  max-width: 38em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25em;
}

/* Visible, high-contrast focus state for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--surface {
  background: var(--color-surface);
}

.section--tan {
  background-color: var(--color-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
}

.section--primary {
  background: var(--color-primary);
  color: #fff;
}

.section--primary h2,
.section--primary h3 {
  color: #fff;
}

.section-head {
  max-width: 46em;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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

/* --------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(251, 248, 242, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__brand img {
  height: 68px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}

.site-header.is-scrolled .site-header__brand img {
  height: 48px;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}

.site-nav__list a:hover {
  color: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav drawer */
.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-paper);
  padding: var(--space-6) var(--container-pad);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}

.site-nav.is-open {
  display: block;
  transform: translateX(0);
}

.site-nav .site-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.site-nav .site-nav__list a {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
}

.site-nav__cta {
  margin-top: var(--space-7);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    display: block;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
  }

  .site-nav .site-nav__list {
    flex-direction: row;
    align-items: center;
  }

  .site-nav .site-nav__list a {
    font-size: var(--text-sm);
    font-family: var(--font-body);
    font-weight: 600;
  }

  .site-nav__cta {
    display: none;
  }

  .site-header__phone {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media img[data-parallax] {
  position: absolute;
  width: 100%;
  height: 144%;
  top: -22%;
  object-fit: cover;
  object-position: center 35%;
  will-change: transform;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 27, 19, 0.35) 0%,
    rgba(17, 27, 19, 0.35) 40%,
    rgba(17, 27, 19, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-9) var(--space-8);
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: var(--space-5);
}

.hero__lead {
  max-width: 42ch;
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
}

.hero__trust-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
}

.hero__trust-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.card__title {
  margin: 0;
  font-size: var(--text-md);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-primary);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-ink-60);
  margin: 0;
}

/* Service / icon cards */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.service-card:hover .service-card__icon {
  transform: scale(1.18) rotate(8deg);
  background: var(--color-primary);
  color: #fff;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
}

.service-card h3 {
  margin: 0;
  font-size: var(--text-md);
}

.service-card a.service-card__link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  margin-top: auto;
}

.service-card a.service-card__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------
   8. CTA band
   -------------------------------------------------------------------- */
.cta-band {
  background-color: var(--color-primary);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(rgba(17, 79, 50, 0.87), rgba(17, 79, 50, 0.87)),
    var(--cta-bg-image, none);
  background-size: 200px 200px, cover, cover;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0;
  max-width: 24ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
}

/* --------------------------------------------------------------------
   9. Seasons strip
   -------------------------------------------------------------------- */
.seasons {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .seasons {
    grid-template-columns: repeat(4, 1fr);
  }
}

.season-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5) var(--space-6);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background-image: var(--season-bg, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.season-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Solid background-color is the fallback when no photo is supplied */
.season-card--spring { background-color: #2C8E5C; }
.season-card--summer { background-color: var(--color-primary); }
.season-card--fall   { background-color: var(--color-accent-dark); }
.season-card--winter { background-color: #2E4754; }

/* Bottom-to-top vignette: almost opaque at the bottom (text zone),
   fading to barely-there at the top so the photo reads clearly */
.season-card::before {
  content: "";
  position: absolute;
  inset: 0;
}

.season-card--spring::before {
  background: linear-gradient(to top, rgba(26, 85, 50, 0.97) 0%, rgba(44, 142, 92, 0.68) 55%, rgba(44, 142, 92, 0.16) 100%);
}
.season-card--summer::before {
  background: linear-gradient(to top, rgba(17, 79, 50, 0.97) 0%, rgba(25, 111, 69, 0.68) 55%, rgba(25, 111, 69, 0.16) 100%);
}
.season-card--fall::before {
  background: linear-gradient(to top, rgba(116, 58, 22, 0.97) 0%, rgba(194, 105, 58, 0.68) 55%, rgba(194, 105, 58, 0.16) 100%);
}
.season-card--winter::before {
  background: linear-gradient(to top, rgba(20, 36, 48, 0.97) 0%, rgba(74, 107, 122, 0.68) 55%, rgba(74, 107, 122, 0.16) 100%);
}

.season-card__name {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.season-card__text {
  position: relative;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: var(--leading-snug);
}

/* --------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------- */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial__stars {
  color: var(--color-accent);
  font-size: var(--text-md);
  letter-spacing: 0.1em;
}

.testimonial__quote {
  font-size: var(--text-md);
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  flex: 1;
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.testimonial__meta {
  font-size: var(--text-xs);
  color: var(--color-ink-60);
}

/* --------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-near-black);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(rgba(10, 20, 11, 0.88), rgba(10, 20, 11, 0.88)),
    var(--footer-bg-image, none);
  background-size: 200px 200px, cover, cover;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-8) var(--space-7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: var(--text-sm);
  max-width: 32ch;
}

.footer-col h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom ul {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------
   12. Mobile sticky action bar
   -------------------------------------------------------------------- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px -12px rgba(32, 38, 31, 0.25);
}

.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  min-height: 56px;
}

.mobile-action-bar a:first-child {
  color: var(--color-primary-dark);
  border-right: 1px solid var(--color-border);
}

.mobile-action-bar a:last-child {
  background: var(--color-accent);
  color: #fff;
}

@media (min-width: 1024px) {
  .mobile-action-bar {
    display: none;
  }
}

body {
  /* leave room for the mobile action bar */
  padding-bottom: 56px;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------
   13. Scroll reveal
   -------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

/* Direction variants — must come before .is-visible so it wins when both apply */
.reveal[data-reveal="left"]  { transform: translateX(-56px); }
.reveal[data-reveal="right"] { transform: translateX(56px); }
.reveal[data-reveal="scale"] { transform: scale(0.93); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger container: reveals children individually */
[data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}

.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

[data-reveal="stagger"].is-visible .reveal-child {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------
   14. Utilities
   -------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------
   15. Hero animate-in
   -------------------------------------------------------------------- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow {
    animation: hero-rise 0.8s var(--ease-out) 0.15s both;
  }

  .hero h1 {
    animation: hero-rise 0.9s var(--ease-out) 0.3s both;
  }

  .hero__lead {
    animation: hero-rise 0.8s var(--ease-out) 0.48s both;
  }

  .hero .btn-row {
    animation: hero-rise 0.8s var(--ease-out) 0.62s both;
  }

  .hero__trust {
    animation: hero-rise 0.7s var(--ease-out) 0.82s both;
  }
}

/* --------------------------------------------------------------------
   16. Editorial split section
   Image spans full width underneath; green panel overlays the right half
   -------------------------------------------------------------------- */

/* Mobile: image on top, content stacked below */
.split-feature {
  display: grid;
  grid-template-rows: 320px auto;
  overflow: hidden;
}

.split-feature__media {
  position: relative;
  overflow: hidden;
}

.split-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s var(--ease-out);
}

.split-feature:hover .split-feature__media img {
  transform: scale(1.04);
}

.split-feature__content {
  position: relative;
  z-index: 2;
  background-color: rgba(17, 79, 50, 0.82);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-9) var(--space-7);
}

/* Desktop: image goes full-width underneath, content overlays right half */
@media (min-width: 768px) {
  .split-feature {
    display: block;
    position: relative;
    min-height: 580px;
  }

  .split-feature__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Soft gradient at the left edge of the panel — image bleeds through */
  .split-feature::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 72px);
    width: 72px;
    background: linear-gradient(to right, transparent, rgba(17, 79, 50, 0.82));
    z-index: 1;
    pointer-events: none;
  }

  .split-feature__content {
    margin-left: 50%;
    min-height: 580px;
  }
}

.split-feature__eyebrow {
  color: var(--color-secondary) !important;
}

.split-feature__eyebrow::before {
  background: var(--color-secondary);
}

.split-feature__content h2 {
  color: #fff;
  margin-bottom: var(--space-5);
}

.split-feature__content p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-5);
}

.split-feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.82);
}

.split-feature__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.split-feature__list li::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--color-secondary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------
   17. Photo mosaic strip
   -------------------------------------------------------------------- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 240px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .photo-mosaic {
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .photo-mosaic {
    height: 460px;
  }
}

.photo-mosaic__item {
  position: relative;
  overflow: hidden;
}

.photo-mosaic__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  top: -7.5%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}

.photo-mosaic__item:hover img {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------
   18. Motion enhancements
   -------------------------------------------------------------------- */

/* Scroll progress bar — thin gradient line at the top of the viewport */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  z-index: 300;
  pointer-events: none;
}

/* Split section: image subtly drifts on scroll; content slides in from right on desktop */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .split-feature__content {
    opacity: 0;
    transform: translateX(44px);
    transition: opacity 0.7s var(--ease-out) 0.18s, transform 0.7s var(--ease-out) 0.18s;
  }

  .split-feature.is-visible .split-feature__content {
    opacity: 1;
    transform: none;
  }
}

/* Section heading stagger — children use a slightly longer interval */
.section-head.is-visible .reveal-child:nth-child(2) { transition-delay: 100ms; }
.section-head.is-visible .reveal-child:nth-child(3) { transition-delay: 200ms; }

/* Testimonial card: lift on hover (they currently have no hover state) */
.testimonial {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Photo mosaic: alternate tilt on hover for visual interest */
.photo-mosaic__item:nth-child(odd):hover img  { transform: scale(1.07) translateY(-1%); }
.photo-mosaic__item:nth-child(even):hover img { transform: scale(1.07) translateY(1%); }

/* Footer: subtle fade-up entrance */
.site-footer {
  transition: opacity 0.01ms; /* ensure transitions work if class added */
}

/* Reduced motion overrides for new additions */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }

  .split-feature__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
