/* =================================================================
   OAKLEAF LANDSCAPES — styles.css
   Premium, earthy, mobile-first landscaping site.
   Organised: 1) Tokens 2) Base 3) Layout 4) Components
   5) Sections 6) Form 7) Footer 8) Utilities 9) Breakpoints
   ================================================================= */

/* ============================ 1. DESIGN TOKENS ============================ */
:root {
  /* --- Colour palette: earthy green + warm clay accent --- */
  --green-900: #14271b;   /* deepest forest */
  --green-800: #1c3526;
  --green-700: #234b33;   /* primary brand */
  --green-600: #2f6342;
  --green-500: #4a7c59;   /* moss */
  --green-300: #9bbf9f;
  --green-100: #e4efe4;

  --clay-600: #a8542a;
  --clay-500: #c2683a;    /* CTA / accent */
  --clay-400: #d98a5a;
  --clay-100: #f6e6da;

  --cream:    #faf7f0;    /* page background */
  --cream-2:  #f2ede1;    /* tinted sections */
  --sand:     #efe7d6;

  --ink:      #1a2a1f;    /* primary text (high contrast on cream) */
  --ink-soft: #44564a;    /* secondary text (4.5:1+ on cream) */
  --white:    #ffffff;
  --line:     #e2dccd;    /* borders */

  /* --- Semantic --- */
  --bg:        var(--cream);
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --primary:   var(--green-700);
  --accent:    var(--clay-500);

  /* --- Typography --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.375rem;
  --fs-700: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  --fs-800: clamp(2rem, 1.3rem + 3.4vw, 3.25rem);
  --fs-900: clamp(2.5rem, 1.4rem + 5vw, 4.25rem);

  /* --- Spacing scale --- */
  --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;

  /* --- Radius --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- Shadows (soft, natural) --- */
  --shadow-sm: 0 1px 2px rgba(20, 39, 27, 0.06), 0 2px 6px rgba(20, 39, 27, 0.05);
  --shadow-md: 0 6px 18px rgba(20, 39, 27, 0.08), 0 2px 6px rgba(20, 39, 27, 0.06);
  --shadow-lg: 0 18px 40px rgba(20, 39, 27, 0.14);
  --shadow-accent: 0 10px 24px rgba(168, 84, 42, 0.28);

  /* --- Layout --- */
  --container: 1200px;
  --header-h: 76px;

  /* --- Motion ---
     Strong custom easing curves (per Emil Kowalski). The built-in CSS
     easings are too weak to feel intentional. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);     /* enters/exits — responsive */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* on-screen movement */
  --t-fast: 150ms var(--ease-out);
  --t: 220ms var(--ease-out);
}

/* ============================ 2. BASE / RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* offset anchors for fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.015em;          /* tighter tracking reads more premium at display sizes */
  font-optical-sizing: auto;          /* let Fraunces use its optical axis for large type */
  text-wrap: balance;                 /* even, deliberate line breaks in headings */
}

p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* Visible focus for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clay-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--green-700);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-sm);
  z-index: 100;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ============================ 3. LAYOUT ============================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: var(--space-8); }
.section--tint { background: var(--cream-2); }
.section--dark {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #eaf1ea;
}
.section--dark h2,
.section--dark .section__title { color: #fff; }

.section__head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__title { font-size: var(--fs-800); }
.section__lead { color: var(--text-soft); font-size: var(--fs-500); }
.section--dark .section__lead { color: #c4d4c6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--clay-400); }

/* ============================ 4. COMPONENTS ============================ */

/* --- Buttons --- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-400);
  line-height: 1;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              box-shadow var(--t), transform 160ms var(--ease-out);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
/* Scale down on press: instant feedback so the button feels like it's listening */
.btn:active { transform: scale(0.97); transition-duration: 100ms; }

.btn--primary { --btn-bg: var(--green-700); box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: var(--green-800); box-shadow: var(--shadow-md); }

.btn--accent {
  --btn-bg: var(--clay-500);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { --btn-bg: var(--clay-600); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  border-color: var(--green-300);
}
.btn--ghost:hover { --btn-bg: var(--green-100); border-color: var(--green-500); }

.btn--lg { padding: 1.05em 1.9em; font-size: var(--fs-500); }
.btn--block { width: 100%; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 240, 0.96);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--green-800);
}
/* Image logo: hidden by default; .has-logo (added by JS once it loads) swaps
   the text wordmark out for the real logo. Keeps the header intact if the
   image file isn't present yet. */
.brand__logo { display: none; height: 52px; width: auto; }
.brand--footer .brand__logo { height: 56px; }
.brand.has-logo .brand__logo { display: block; }
.brand.has-logo .brand__wordmark { display: none; }
.brand__wordmark { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--green-700);
  color: #fff;
}
.brand__text { line-height: 1; display: flex; flex-direction: column; }
.brand__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list { display: flex; gap: var(--space-2); }
.nav__list a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--green-700); background: var(--green-100); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Shared check/leaf icon helper --- */
.ic {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: var(--green-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic .check { stroke: var(--clay-500); }

/* ============================ 5. SECTIONS ============================ */

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-7));
  padding-bottom: var(--space-8);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--green-100) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-900);
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.hero__subtitle {
  font-size: var(--fs-500);
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero__trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-5);
  font-weight: 500;
  font-size: var(--fs-300);
}
.hero__trust li { display: flex; align-items: center; gap: var(--space-2); }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.hero__badge strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--clay-600); }
.hero__badge span { font-size: var(--fs-300); color: var(--text-soft); max-width: 14ch; line-height: 1.3; }

/* --- Trust bar --- */
.trustbar { background: var(--green-800); color: #eaf1ea; }
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  padding-block: var(--space-5);
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-300);
  color: #c8d8ca;
}
.trustbar__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clay-400);
  letter-spacing: 0.02em;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--green-100);
  margin-bottom: var(--space-4);
}
.service-card__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--green-700);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: var(--fs-600); margin-bottom: var(--space-2); }
.service-card p { color: var(--text-soft); margin-bottom: 0; font-size: var(--fs-400); }

.service-card--feature {
  background: linear-gradient(160deg, var(--green-700), var(--green-800));
  border-color: transparent;
  color: #eef4ee;
}
.service-card--feature h3 { color: #fff; }
.service-card--feature p { color: #cdddcf; }
.service-card--feature .service-card__icon { background: rgba(255,255,255,0.12); }
.service-card--feature .service-card__icon svg { stroke: var(--clay-400); }
.service-card__link {
  display: inline-block;
  margin-top: var(--space-4);
  font-weight: 600;
  color: var(--clay-400);
  transition: color var(--t-fast), transform var(--t-fast);
}
.service-card__link:hover { color: #fff; }

/* --- About --- */
.about {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.about__stat {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  background: var(--clay-500);
  color: #fff;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about__stat strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.about__stat span { font-size: var(--fs-300); }

.about__points { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.about__points li { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 500; }

.about__stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.mini-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--green-700);
  line-height: 1;
}
.mini-stat span { font-size: var(--fs-300); color: var(--text-soft); }

/* --- Why choose us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  background: var(--clay-100);
  margin-bottom: var(--space-4);
}
.why-card__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--clay-600);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.why-card__icon .check { stroke: var(--clay-600); }
.why-card h3 { font-size: var(--fs-600); }
.why-card p { color: var(--text-soft); margin: 0; }

/* --- Gallery --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-300);
  padding: 0.6em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.filter-btn:active { transform: scale(0.96); }
.filter-btn.is-active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: opacity var(--t), transform var(--t);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4) var(--space-4);
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 39, 27, 0.82));
  font-size: var(--fs-300);
}
.gallery-item__cap strong { font-family: var(--font-display); font-size: var(--fs-500); }
.gallery-item.is-hidden { display: none; }
.gallery-cta { text-align: center; margin-top: var(--space-7); }

/* --- Service areas --- */
.areas {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.areas__grid li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.areas__grid li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clay-500);
  flex: none;
}
.areas__grid li:hover { border-color: var(--green-500); transform: translateX(3px); }

/* --- Testimonials slider --- */
.slider { max-width: 820px; margin: 0 auto; }
.slider__track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
}
.review {
  flex: 0 0 100%;
  margin: 0;
  padding: var(--space-6);
  text-align: center;
}
.review__stars { color: var(--clay-400); font-size: 1.5rem; letter-spacing: 0.15em; margin-bottom: var(--space-4); }
.review blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  line-height: 1.45;
  margin: 0 0 var(--space-5);
  color: #fff;
}
.review figcaption strong { display: block; color: #fff; }
.review figcaption span { color: var(--clay-400); font-size: var(--fs-300); }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.slider__btn { transition: background var(--t-fast), border-color var(--t-fast), transform 120ms var(--ease-out); }
.slider__btn:hover { background: var(--clay-500); border-color: var(--clay-500); }
.slider__btn:active { transform: scale(0.92); }
.slider__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__dots { display: flex; gap: var(--space-2); }
.slider__dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.slider__dots button.is-active { background: var(--clay-400); transform: scale(1.3); }

/* --- Process --- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  counter-reset: step;
}
.process__step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.process__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--green-300);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.process__step h3 { font-size: var(--fs-600); }
.process__step p { color: var(--text-soft); margin: 0; }

/* ============================ 6. CONTACT / FORM ============================ */
.contact {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.contact__list { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.contact__list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.contact__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-md);
  background: var(--green-100);
}
.contact__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--green-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__label { display: block; font-size: var(--fs-300); color: var(--text-soft); }
.contact__list a:hover { color: var(--clay-600); text-decoration: underline; }

.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.quote-form__title { font-size: var(--fs-600); margin-bottom: var(--space-5); }

.field { margin-bottom: var(--space-4); }
.field-row { display: grid; gap: var(--space-4); }
.field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-300);
  margin-bottom: var(--space-2);
}
.field label span { color: var(--clay-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  color: var(--ink);
  padding: 0.8em 1em;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa79c; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

/* Validation states */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c0392b;
  background: #fdf3f2;
}
.error {
  display: block;
  min-height: 1em;
  margin-top: var(--space-1);
  color: #c0392b;
  font-size: var(--fs-300);
  font-weight: 500;
}
.quote-form__note { font-size: var(--fs-300); color: var(--text-soft); text-align: center; margin: var(--space-3) 0 0; }

/* Success message */
.form-success {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--green-100);
  border: 1px solid var(--green-300);
  border-radius: var(--r-md);
}
.form-success svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--green-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-success strong { font-family: var(--font-display); font-size: var(--fs-500); color: var(--green-800); }
.form-success p { margin: var(--space-1) 0 0; color: var(--ink-soft); font-size: var(--fs-400); }

/* ============================ 7. FOOTER ============================ */
.footer { background: var(--green-900); color: #c4d4c6; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-6);
}
.brand--footer { color: #fff; margin-bottom: var(--space-3); }
.brand--footer .brand__mark { background: var(--green-600); }
.footer__brand p { max-width: 36ch; font-size: var(--fs-300); color: #a8bdab; }

.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--t-fast);
}
.footer__social a:hover { background: var(--clay-500); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.footer__col h4 { color: #fff; font-size: var(--fs-500); margin-bottom: var(--space-4); }
.footer__col ul { display: grid; gap: var(--space-2); }
.footer__col a { color: #a8bdab; transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
.footer__contact .btn { margin-top: var(--space-4); }

.footer__bar { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  font-size: var(--fs-300);
  color: #8ba38e;
}
.footer__legal a:hover { color: #fff; }

/* Back to top */
.to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 40;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--green-800); }
.to-top.is-visible:active { transform: scale(0.92); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ 8. UTILITIES / ANIMATION ============================ */
/* Scroll-reveal: hidden by default, revealed via JS .is-visible.
   A faint blur(6px) → 0 gives a premium "focus-in" rather than a plain slide. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 520ms var(--ease-out),
              transform 520ms var(--ease-out),
              filter 520ms var(--ease-out);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Stagger: when a grid of cards enters together, cascade them in.
   --i is set once on any nth-child and consumed only by the grids below. */
.reveal:nth-child(1) { --i: 1; }
.reveal:nth-child(2) { --i: 2; }
.reveal:nth-child(3) { --i: 3; }
.reveal:nth-child(4) { --i: 4; }
.reveal:nth-child(5) { --i: 5; }
.reveal:nth-child(6) { --i: 6; }
.reveal:nth-child(7) { --i: 7; }
.reveal:nth-child(8) { --i: 8; }
.reveal:nth-child(9) { --i: 9; }
.reveal:nth-child(10) { --i: 10; }
.services-grid > .reveal,
.why-grid > .reveal,
.gallery-grid > .reveal,
.process > .reveal {
  transition-delay: calc((var(--i, 1) - 1) * 55ms);
}
/* Hero: let the copy land first, then the image */
.hero__media.reveal { transition-delay: 120ms; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; transition-delay: 0ms; }
}

/* ============================ 9. BREAKPOINTS ============================ */
/* Tablet (>= 640px) */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .areas__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Laptop (>= 900px) */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__trust { max-width: 30rem; }
  .about { grid-template-columns: 0.9fr 1.1fr; }
  .areas { grid-template-columns: 0.9fr 1.1fr; }
  .contact { grid-template-columns: 0.85fr 1.15fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .section { padding-block: var(--space-9); }
}

/* Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .hero { padding-bottom: var(--space-9); }
}

/* --- Mobile navigation (< 900px): slide-in panel --- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-5);
    background: var(--cream);
    box-shadow: -10px 0 40px rgba(20, 39, 27, 0.18);
    transform: translateX(105%);
    transition: transform var(--t);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: var(--space-1); }
  .nav__list a { padding: var(--space-3) var(--space-4); font-size: var(--fs-500); }
  .nav__cta { margin-top: var(--space-3); }

  /* Dim background when menu open */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(20, 39, 27, 0.4);
    z-index: 45;
    animation: fade 250ms ease;
  }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Tiny phones: reduce hero trust to single column */
@media (max-width: 380px) {
  .hero__trust { grid-template-columns: 1fr; }
  .trustbar__inner { justify-content: flex-start; }
}
