/* ==========================================================================
   Verdant & Vale — Garden & Landscape Studio
   Shared stylesheet
   --------------------------------------------------------------------------
   Contents
   1.  Design tokens (CSS custom properties)
   2.  Reset & base
   3.  Typography
   4.  Layout helpers
   5.  Buttons
   6.  Navigation (sticky, frosted-on-scroll, dropdown)
   7.  Mobile off-canvas menu
   8.  Hero
   9.  Sections & components
   10. Project / gallery grids
   11. Testimonials
   12. Forms (contact page)
   13. Footer
   14. Scroll-reveal animation
   15. Responsive breakpoints
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   Adjust the palette here and it flows through the whole site.
   ========================================================================== */
:root {
  /* --- Greens (built from a natural grass-green base) --- */
  --color-primary:      #4F7C3A;  /* base: healthy lawn green            */
  --color-primary-dark: #3A5C29;  /* deeper green for depth / hovers     */
  --color-primary-deep: #223815;  /* darkest green for overlays / footer */
  --color-primary-tint: #EAF1E3;  /* pale green section backgrounds      */
  --color-primary-soft: #DCE8CC;  /* soft green — form input fields      */
  --color-accent:       #8FB56A;  /* muted sage accent                   */

  /* --- Warm neutrals for breathing room --- */
  --color-cream:      #F8F6EF;    /* primary off-white background        */
  --color-cream-dark: #EEEADD;    /* alt neutral                         */
  --color-white:      #FFFFFF;

  /* --- Ink & text --- */
  --color-ink:    #1D2A16;        /* near-black green — headings/body    */
  --color-body:   #3A4732;        /* body copy                           */
  --color-muted:  #6B7A5E;        /* secondary / meta text               */
  --color-line:   #DAD6C8;        /* hairline borders                    */

  /* --- Typography --- */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Rhythm & shape --- */
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(29, 42, 22, 0.06);
  --shadow:    0 12px 30px rgba(29, 42, 22, 0.10);
  --shadow-lg: 0 20px 50px rgba(29, 42, 22, 0.18);

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* --- Motion (the deliberate 300ms used site-wide) --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 300ms;

  --nav-height: 76px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;           /* guard against accidental horizontal scroll */
}

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

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

ul, ol { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; }

/* Respect users who prefer reduced motion */
@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;
  }
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { max-width: 66ch; }

/* Small uppercase label — used above section titles ("eyebrow") */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--color-body);
}

.text-center { text-align: center; }
.text-center p,
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 820px; }

.section {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--tint  { background: var(--color-primary-tint); }
.section--cream { background: var(--color-cream-dark); }
.section--deep  { background: var(--color-primary-deep); color: #E9EFE0; }
.section--deep h1,
.section--deep h2,
.section--deep h3 { color: var(--color-white); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.text-center { margin-inline: auto; }

/* ==========================================================================
   5. Buttons
   Hover behaviour (required, applied to all buttons):
     - invert colours (swap bg <-> foreground)
     - scale up 10%  (transform: scale(1.1))
     - 300ms transition covering colour, transform & shadow together
     - larger shadow than resting state
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  /* transition colour + transform + shadow together for a smooth invert */
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn .btn__arrow { transition: transform var(--dur) var(--ease); }

.btn:hover,
.btn:focus-visible {
  background: var(--color-white);      /* invert */
  color: var(--color-primary);
  transform: scale(1.1);               /* +10% */
  box-shadow: var(--shadow-lg);        /* larger shadow */
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }

/* Outline variant — inverts to a solid fill on hover */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Light variant for dark backgrounds */
.btn--light {
  background: var(--color-white);
  color: var(--color-primary-deep);
  border-color: var(--color-white);
}
.btn--light:hover,
.btn--light:focus-visible {
  background: transparent;
  color: var(--color-white);
}

/* Ghost / on-image variant */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-white);
  color: var(--color-primary-deep);
  border-color: var(--color-white);
}

/* Text link with animated underline (not a .btn, so no scale) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover,
.link-arrow:focus-visible { gap: 1rem; color: var(--color-primary); }

/* Shared focus ring for keyboard users */
:where(a, button):focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--color-primary-deep);   /* solid at the top */
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}

/* Frosted glass once the page is scrolled (class toggled in JS) */
.site-header.scrolled {
  background: rgba(34, 56, 21, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__mark { white-space: nowrap; }
.brand span { color: var(--color-accent); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}
.brand__mark { display: block; }

/* Primary nav list */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
  color: var(--color-white);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.35rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav__cta { margin-left: 0.5rem; padding: 0.7rem 1.4rem; }

/* --- Dropdown under "Projects" --- */
.nav__item--has-dropdown { position: relative; }

.nav__dropdown-toggle .chev {
  width: 10px; height: 10px;
  transition: transform var(--dur) var(--ease);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 340px;
  padding: 0.9rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
  /* gentle reveal */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}
/* little bridge so the pointer can travel from link to panel */
.dropdown::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}

.nav__item--has-dropdown:hover .dropdown,
.nav__item--has-dropdown:focus-within .dropdown,
.dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__item--has-dropdown:hover .chev,
.nav__item--has-dropdown:focus-within .chev { transform: rotate(180deg); }

.dropdown__grid { display: grid; gap: 0.25rem; }
.dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  color: var(--color-ink);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dropdown__link:hover,
.dropdown__link:focus-visible {
  background: var(--color-primary-tint);
  transform: translateX(4px);
}
.dropdown__ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}
.dropdown__link:hover .dropdown__ico { background: var(--color-white); }
.dropdown__title { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.dropdown__desc  { font-size: 0.8rem; color: var(--color-muted); line-height: 1.3; }
.dropdown__foot {
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem 0.35rem;
  border-top: 1px solid var(--color-line);
}

/* Hamburger button (mobile only) */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  border-radius: 10px;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle span { top: 22px; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }

/* ==========================================================================
   7. Mobile off-canvas menu
   ========================================================================== */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 42, 22, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 110;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(88vw, 360px);
  background: var(--color-primary-deep);
  color: var(--color-white);
  z-index: 120;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);          /* off-canvas */
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* Open state (toggled in JS on <body>) */
body.menu-open .nav__overlay { opacity: 1; visibility: visible; }
body.menu-open .mobile-menu { transform: translateX(0); }
body.menu-open { overflow: hidden; }     /* lock scroll behind the panel */

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-menu__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0; border-radius: 10px;
  color: var(--color-white);
  font-size: 1.4rem; line-height: 1;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-menu__close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.mobile-menu__list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu__list a {
  display: block;
  padding: 0.9rem 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible { color: var(--color-accent); padding-left: 1rem; }

/* Nested project links inside the mobile menu */
.mobile-menu__sub {
  padding-left: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}
.mobile-menu__sub a {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.66);
  padding: 0.6rem 0.5rem;
  border-bottom: 0;
}
.mobile-menu__foot { margin-top: auto; padding-top: 1.5rem; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__contact {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.mobile-menu__contact a { color: var(--color-accent); }

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  color: var(--color-white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Readability overlay — subtle gradient, darker toward the text */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 42, 22, 0.30) 0%, rgba(29, 42, 22, 0) 30%),
    linear-gradient(90deg, rgba(15, 26, 9, 0.78) 0%, rgba(15, 26, 9, 0.34) 45%, rgba(15, 26, 9, 0) 78%);
}
.hero__inner {
  padding-block: clamp(3rem, 8vw, 6.5rem);
  max-width: 720px;
}
.hero .eyebrow { color: var(--color-accent); }
.hero .eyebrow::before { background: var(--color-accent); }
.hero h1 { color: var(--color-white); margin-bottom: 1.5rem; text-wrap: balance; }
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Small stat strip that overlaps the bottom of the hero */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__stat { padding: 1.5rem 0.5rem 0; }
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}
.hero__stat span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

/* Compact page header used on inner pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  color: var(--color-white);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,9,0.62), rgba(15,26,9,0.72));
}
.page-hero h1 { color: var(--color-white); margin-bottom: 1rem; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; max-width: 60ch; }
.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}
.breadcrumb a:hover { color: var(--color-white); }

/* ==========================================================================
   9. Sections & components
   ========================================================================== */

/* Two-column intro (text + framed image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--tall img { aspect-ratio: 3 / 4; }

/* floating caption card on framed images */
.media-badge {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  background: var(--color-white);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2.5rem);
}
.media-badge b { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); line-height: 1; }
.media-badge span { font-size: 0.8rem; color: var(--color-muted); line-height: 1.3; }

/* Feature / value list */
.tick-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--color-body);
}
.tick-list li::before {
  content: "";
  flex: none;
  margin-top: 0.35rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Service cards */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card:hover .card__ico { background: var(--color-primary); color: var(--color-white); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.96rem; color: var(--color-muted); }
.card__meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

/* Numbered process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -0.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-accent);
  line-height: 1;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; color: var(--color-muted); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  border-radius: 0;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,26,9,0.86) 0%, rgba(15,26,9,0.62) 60%, rgba(15,26,9,0.4) 100%);
}
.cta-band h2 { color: var(--color-white); margin-bottom: 1rem; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ==========================================================================
   10. Project / gallery grids
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.project {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-primary-deep);
  min-height: 340px;
  isolation: isolate;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  z-index: -1;
  transition: transform 600ms var(--ease);
}
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,9,0) 35%, rgba(15,26,9,0.85) 100%);
  transition: background var(--dur) var(--ease);
}
.project:hover img { transform: scale(1.06); }
.project__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}
.project__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
  background: var(--color-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.project__body h3 { color: var(--color-white); margin-bottom: 0.35rem; }
.project__body p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 0; }
.project__more {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.project:hover .project__more,
.project:focus-visible .project__more { opacity: 1; transform: translateY(0); }
.project--wide { grid-column: span 2; min-height: 420px; }
.project--wide .project__body { min-height: 420px; }

/* Editorial masonry-ish gallery */
.gallery {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%;
  transition: transform 600ms var(--ease), filter var(--dur) var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* Category filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-body);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.filter:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.filter.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
/* project item hidden by filter */
.project[hidden] { display: none; }

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.testimonial {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem);
  line-height: 1.35;
  color: var(--color-ink);
  margin-bottom: 2rem;
  text-wrap: balance;
}
.testimonial__quote::before { content: "\201C"; color: var(--color-accent); }
.testimonial__quote::after  { content: "\201D"; color: var(--color-accent); }
.testimonial__author { display: inline-flex; align-items: center; gap: 0.9rem; }
.testimonial__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.testimonial__name { font-weight: 600; color: var(--color-ink); text-align: left; line-height: 1.3; }
.testimonial__role { font-size: 0.85rem; color: var(--color-muted); }
.stars { color: #E2A93B; letter-spacing: 2px; margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Review cards row */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.review {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review .stars { font-size: 0.95rem; margin-bottom: 1rem; }
.review p { font-size: 0.96rem; color: var(--color-body); margin-bottom: 1.5rem; }
.review__by { display: flex; align-items: center; gap: 0.75rem; }
.review__by .testimonial__avatar { width: 44px; height: 44px; font-size: 1rem; }

/* ==========================================================================
   12. Forms (contact page)
   Focus behaviour (required):
     - 4px ring with 2px offset
     - input background is a soft, lighter green tint
     - 300ms transitions
   ========================================================================== */
.form-grid { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.field .req { color: var(--color-primary); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-primary-soft);       /* soft green tint field */
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              outline-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  appearance: none;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.input::placeholder,
.textarea::placeholder { color: #7C8B6C; }

.input:hover,
.textarea:hover,
.select:hover { border-color: var(--color-accent); }

.input:focus,
.textarea:focus,
.select:focus {
  background: #EFF5E6;                          /* brighter tint on focus */
  border-color: var(--color-primary);
  /* 4px ring with a 2px offset */
  outline: 4px solid var(--color-primary);
  outline-offset: 2px;
}

.select {
  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='%233A5C29' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.checkbox-field input {
  margin-top: 0.2rem;
  width: 20px; height: 20px;
  accent-color: var(--color-primary);
  flex: none;
}
.form-note { font-size: 0.85rem; color: var(--color-muted); }

/* Success / feedback message */
.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  border: 1px solid var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 500;
  display: none;
}
.form-status.is-visible { display: block; }

/* Contact detail tiles */
.contact-tile {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.contact-tile__ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}
.contact-tile h4 { margin-bottom: 0.25rem; }
.contact-tile a, .contact-tile p { color: var(--color-muted); font-size: 0.95rem; }
.contact-tile a:hover { color: var(--color-primary); }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}
.footer__brand .brand { font-size: 1.6rem; margin-bottom: 1.25rem; }
.footer__brand p { font-size: 0.95rem; max-width: 34ch; margin-bottom: 1.5rem; }
.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { font-size: 0.95rem; transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.footer__links a:hover { color: var(--color-white); padding-left: 4px; }
.footer__contact p { font-size: 0.95rem; margin-bottom: 0.6rem; line-height: 1.5; }
.footer__contact a:hover { color: var(--color-white); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer__bar a { color: var(--color-accent); }
.footer__bar a:hover { color: var(--color-white); }

/* ==========================================================================
   14. Scroll-reveal animation
   Elements with [data-reveal] fade/rise in when they enter the viewport.
   JS adds .is-visible; if JS is off, a fallback keeps them visible.
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 90ms; }
[data-reveal][data-delay="2"] { transition-delay: 180ms; }
[data-reveal][data-delay="3"] { transition-delay: 270ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   15. Responsive breakpoints (mobile-first refinements)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  /* Swap desktop nav for the hamburger */
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .grid--3,
  .reviews { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .gallery { columns: 2; }
}

@media (max-width: 640px) {
  :root { --nav-height: 66px; }
  .grid--2,
  .grid--4,
  .projects-grid,
  .form-row { grid-template-columns: 1fr; }
  .project--wide { grid-column: span 1; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; }
  .hero__stat { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.14); }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .hero__actions .btn { flex: 1 1 auto; }
}
