/* ================================================================
   Oak & Beam Carpentry — styles.css
   Mobile-first, performance-optimised, Lighthouse-friendly CSS.

   TABLE OF CONTENTS
   1.  CSS Custom Properties (Design Tokens)
   2.  CSS Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Accessibility Utilities
   6.  Buttons
   7.  Header & Navigation
   8.  Hero Section
   9.  Services Section
   10. Projects / Gallery Section
   11. Why Choose Us Section
   12. Testimonials Section
   13. Service Area Section
   14. Contact Section
   15. FAQ Section
   16. Footer
   17. Animations & Transitions
   18. Media Queries
   ================================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand palette — natural wood tones, deep green, off-white, charcoal */
  --color-green-dark:   #1E3A20;   /* deep forest green */
  --color-green:        #2C4A2E;   /* primary brand green */
  --color-green-mid:    #3D6640;   /* mid green for hovers */
  --color-green-light:  #EBF2EB;   /* very light green tint */
  --color-wood-dark:    #6B4226;   /* dark walnut */
  --color-wood:         #8B5E3C;   /* warm oak brown */
  --color-wood-mid:     #A0784A;   /* mid wood tone */
  --color-wood-light:   #C09060;   /* light honey wood */
  --color-cream:        #F7F3EE;   /* warm off-white */
  --color-cream-dark:   #EDE7DC;   /* slightly darker cream */
  --color-charcoal:     #2A2A2A;   /* near-black text */
  --color-charcoal-mid: #4A4A4A;   /* secondary text */
  --color-charcoal-soft:#6A6A6A;   /* tertiary text */
  --color-white:        #FFFFFF;
  --color-border:       #DDD4C5;   /* warm border */
  --color-star:         #D4962A;   /* star rating gold */

  /* Semantic aliases */
  --color-text-primary:   var(--color-charcoal);
  --color-text-secondary: var(--color-charcoal-mid);
  --color-text-muted:     var(--color-charcoal-soft);
  --color-bg-primary:     var(--color-white);
  --color-bg-alt:         var(--color-cream);
  --color-accent:         var(--color-green);
  --color-accent-hover:   var(--color-green-mid);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Segoe UI', Arial, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-5);
  --section-pad:   var(--space-16);

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;
  --border-width: 1px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index scale */
  --z-base:   0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-modal:  200;
}


/* ── 2. CSS RESET & BASE ──────────────────────────────────────── */

/*
   LIGHTHOUSE PERF: box-sizing reset and minimal resets
   avoid unexpected layout shift and reduce paint cost.
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* overflow-x: hidden on <html> breaks position:sticky — DO NOT add it here.
     Horizontal overflow is controlled on <body> using overflow-x:clip instead,
     which prevents horizontal scrollbars without creating a new scroll container. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Respect user's motion preference — important for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  /* overflow-x:clip prevents horizontal scrollbars on mobile WITHOUT
     creating a new scroll container, so position:sticky on the header
     continues to work correctly. Never use overflow-x:hidden here. */
  overflow-x: clip;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-green-mid); }

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-charcoal);
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Prevent table overflow */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────────── */

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 700; }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); font-weight: 600; }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 700; }

p { max-width: 68ch; }

strong { font-weight: 700; }

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-padding {
  padding-block: var(--section-pad);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-intro {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin-inline: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: var(--space-3);
}

.section-footer-cta {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.section-footer-cta p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

/* ── 5. ACCESSIBILITY UTILITIES ──────────────────────────────── */

/*
   LIGHTHOUSE A11Y: Skip link allows keyboard users to bypass
   navigation and jump to main content. Visible on focus.
*/
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-green);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-wood-light);
  outline-offset: 2px;
}

/*
   LIGHTHOUSE A11Y: visually-hidden utility hides elements from
   sighted users while keeping them accessible to screen readers.
*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/*
   LIGHTHOUSE A11Y: Visible focus styles for keyboard navigation.
   Uses outline offset to prevent obscuring focus rings.
*/
:focus-visible {
  outline: 3px solid var(--color-wood);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ── 6. BUTTONS ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
  /* Minimum touch target size for accessibility */
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-primary:hover {
  background-color: var(--color-green-mid);
  border-color: var(--color-green-mid);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}
.btn-outline:hover {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-outline--white {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline--white:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-full { width: 100%; }

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  min-height: 40px;
}


/* ── 7. HEADER & NAVIGATION ───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1;
}
.logo-amp { color: var(--color-wood); }
.logo--light .logo-text { color: var(--color-white); }
.logo--light .logo-amp  { color: var(--color-wood-light); }

/* Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.primary-nav a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal-mid);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.primary-nav a:hover {
  color: var(--color-green);
  background-color: var(--color-green-light);
}

.nav-cta {
  background-color: var(--color-green) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-5) !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background-color: var(--color-green-mid) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
.nav-toggle[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── 8. HERO SECTION — full-viewport background ───────────────── */

/*
  The hero is a full-viewport section (100vw × 100vh).
  It sits directly below the sticky nav. The <img> is stretched
  to cover the entire section with object-fit:cover, and three
  layers sit above it:
    z=0  .hero-image   — the actual photo
    z=1  .hero-overlay — dark gradient, ensures text legibility
    z=2  .hero-texture — subtle dot/grain texture for depth
    z=3  .hero-content — all text, buttons, trust badges
*/

.hero {
  position: relative;
  width: 100%;
  /* 100dvh uses the dynamic viewport height on mobile (excludes
     browser chrome), falling back to 100vh for older browsers.
     This prevents the "short hero" bug on iOS Safari. */
  height: 100dvh;
  min-height: 600px;   /* floor so tiny screens still look good */
  max-height: 1000px;  /* ceiling so the hero isn't absurdly tall on 4K */
  display: flex;
  align-items: center;
  color: var(--color-white);
  /* No overflow:hidden here — that would break sticky nav */
}

/* ── Background image ── */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor the focal point — adjust to suit your photo.
     'center 30%' works well for photos where the interesting
     subject is in the upper portion of the frame. */
  object-position: center 30%;
  z-index: 0;
  /* No lazy loading — this IS the LCP element */
}

/* ── Dark gradient overlay ── */
/*
  Left-heavy gradient: very dark on the left (where the text sits)
  fading to a lighter tint on the right. This gives maximum
  contrast for the headline without completely obscuring the photo.
  Adjust the opacity values to suit how bright/dark your image is.
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Top vignette — keeps the nav readable */
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 25%
    ),
    /* Main directional overlay */
    linear-gradient(
      110deg,
      rgba(20, 38, 22, 0.90) 0%,
      rgba(20, 38, 22, 0.75) 40%,
      rgba(20, 38, 22, 0.35) 70%,
      rgba(20, 38, 22, 0.10) 100%
    ),
    /* Bottom fade — pulls text and badge row off the image edge */
    linear-gradient(to top,
      rgba(0, 0, 0, 0.50) 0%,
      transparent 30%
    );
}

/* ── Subtle texture overlay ── */
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: var(--space-16);
  /* Nudge content slightly above true center for visual balance */
  margin-top: -3vh;
}

/* Inner content width cap — prevents text stretching too wide */
.hero-content > *:not(.hero-trust):not(.hero-scroll-cue) {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-wood-light);
  margin-bottom: var(--space-4);
  /* Pill background for readability over busy images */
  background: rgba(0,0,0,0.20);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow:
    0 2px 4px  rgba(0,0,0,0.30),
    0 4px 24px rgba(0,0,0,0.20);
  /* Responsive type — large on desktop, readable on mobile */
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(var(--text-base), 2.2vw, var(--text-xl));
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/* ── CTA buttons ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero-actions .btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.hero-actions .btn-outline:hover {
  background-color: rgba(255,255,255,0.20);
  border-color: var(--color-white);
  color: var(--color-white);
}
.hero-actions .btn-primary {
  /* Slightly warmer green on the dark hero for contrast */
  background-color: var(--color-green-mid);
  border-color: var(--color-green-mid);
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
}
.hero-actions .btn-primary:hover {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

/* ── Trust badges ── */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-12);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 4px rgba(0,0,0,0.30);
}
.trust-badge svg {
  color: var(--color-wood-light);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.30));
}

/* ── Scroll cue arrow ── */
.hero-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-full);
  transition:
    color var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-normal);
  /* Bouncing animation draws the eye downward */
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll-cue:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(3px);
  animation: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.65; }
  50%       { transform: translateY(6px); opacity: 1;    }
}

/* Pause animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}


/* ── 9. SERVICES SECTION ──────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-green);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.service-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* CTA card variant */
.service-card--cta {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
}
.service-card--cta .service-card-cta-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-white);
  max-width: none;
}
.service-card--cta p {
  color: rgba(255,255,255,0.85);
}
.service-card--cta .btn-primary {
  background-color: var(--color-wood);
  border-color: var(--color-wood);
  margin-inline: auto;
}
.service-card--cta .btn-primary:hover {
  background-color: var(--color-wood-mid);
  border-color: var(--color-wood-mid);
}


/* ── 10. GALLERY SECTION ──────────────────────────────────────── */

/* ── Filter bar ── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-5);
}

.gallery-filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-charcoal-mid);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  min-height: 44px;
}
.gallery-filter-btn:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}
.gallery-filter-btn.is-active,
.gallery-filter-btn[aria-pressed="true"] {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

/* Count readout */
.gallery-count {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  min-height: 1.4em; /* prevents layout shift when text changes */
}

/* ── Photo grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

/* Transition for filter show/hide */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-cream-dark);
  /* Prevent layout shift — images are 3:2 ratio */
  aspect-ratio: 3 / 2;
}

.gallery-item[hidden] {
  display: none;
}

/* Animate items back in after filtering */
.gallery-item.is-showing {
  animation: galleryFadeIn 0.3s ease forwards;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* The clickable button wraps the image */
.gallery-item-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.gallery-item-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item-btn:hover img,
.gallery-item-btn:focus-visible img {
  transform: scale(1.04);
}

/* Zoom-icon overlay on hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 50, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.gallery-item-btn:hover .gallery-item-overlay,
.gallery-item-btn:focus-visible .gallery-item-overlay {
  opacity: 1;
}

/* Caption below each item */
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-6) var(--space-3) var(--space-3);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
  pointer-events: none;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Empty state */
.gallery-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-12);
  font-size: var(--text-lg);
}


/* ── LIGHTBOX ─────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

/* Semi-opaque backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 10, 0.92);
  cursor: pointer;
}

/* Inner layout: prev | stage | next */
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-16) var(--space-8) var(--space-8);
  gap: var(--space-4);
  box-sizing: border-box;
}

/* The image container */
.lightbox-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  max-height: 90vh;
  gap: var(--space-3);
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  object-fit: contain;
  /* Prevent layout shift during load */
  display: block;
}

.lightbox-caption {
  color: rgba(255,255,255,.9);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  max-width: none;
}

.lightbox-counter {
  color: rgba(255,255,255,.5);
  font-size: var(--text-sm);
  text-align: center;
  max-width: none;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Prev / Next buttons */
.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,.2);
}
.lightbox-prev:hover { transform: translateX(-2px); }
.lightbox-next:hover { transform: translateX(2px); }
.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Lightbox open — prevent body scroll */
body.lightbox-open {
  overflow: hidden;
}


/* ── 11. WHY CHOOSE US SECTION ────────────────────────────────── */

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.why-card {
  padding: var(--space-8);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-green);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.why-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.why-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-green-dark);
}
.why-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Credentials bar */
.credentials-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
  background: var(--color-green-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
}

.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
.credential strong {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-wood-light);
}
.credential span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
}

.credential-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  display: none;
}


/* ── 12. TESTIMONIALS SECTION ─────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
/* Decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-border);
  pointer-events: none;
}

.stars {
  color: var(--color-star);
  font-size: var(--text-lg);
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
  font-style: italic;
  flex: 1;
}

.testimonial-card footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.testimonial-card cite {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-style: normal;
}
.testimonial-card cite strong {
  color: var(--color-charcoal);
  font-size: var(--text-base);
}
.testimonial-card cite span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Review platform links */
.review-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}
.review-platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.review-platform-link:hover {
  border-color: var(--color-green);
  box-shadow: var(--shadow-sm);
  color: var(--color-charcoal);
}
.review-platform-name {
  font-weight: 700;
  font-size: var(--text-sm);
}
.review-rating {
  color: var(--color-star);
  font-weight: 700;
  font-size: var(--text-lg);
}
.review-count {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}


/* ── 13. SERVICE AREA SECTION ─────────────────────────────────── */

.service-area-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.service-area-text h2 {
  margin-bottom: var(--space-4);
}
.service-area-text > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-6);
  margin-bottom: var(--space-8);
}
.area-list li {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.area-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
}

/* Map placeholder */
.service-area-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-placeholder {
  background: var(--color-cream-dark);
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-8);
}
.map-placeholder svg { opacity: 0.4; }
.map-placeholder p { max-width: none; }
.map-note { font-size: var(--text-sm); color: var(--color-charcoal-soft); }


/* ── 14. CONTACT SECTION ──────────────────────────────────────── */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

/* Contact details sidebar */
.contact-details {
  background: var(--color-green-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.contact-details h3 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--color-wood-light); }
.contact-item a, .contact-item address {
  color: rgba(255,255,255,.9);
  font-size: var(--text-base);
  text-decoration: none;
}
.contact-item a:hover { color: var(--color-white); text-decoration: underline; }

/* Opening hours in sidebar */
.opening-hours {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15);
}
.opening-hours h4 {
  color: var(--color-wood-light);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hours-row dt { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.hours-row dd { color: rgba(255,255,255,.9); font-size: var(--text-sm); font-weight: 500; }

.response-promise {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: rgba(255,255,255,.7);
  font-size: var(--text-sm);
  max-width: none;
}
.response-promise svg { color: #6BAF72; flex-shrink: 0; }

/* Contact form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}
.required { color: #B91C1C; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  /* Minimum touch height */
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(44,74,46,.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236A6A6A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Checkbox label */
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 400 !important;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-green);
  cursor: pointer;
}
.checkbox-label span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.checkbox-label a {
  color: var(--color-green);
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  min-height: var(--space-5);
}
.form-status.success { color: #15803D; }
.form-status.error   { color: #B91C1C; }


/* ── 15. FAQ SECTION ──────────────────────────────────────────── */

.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-charcoal);
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: var(--space-4);
  transition: background-color var(--transition-fast);
  /* Remove default marker */
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* Chevron icon via pseudo-element */
.faq-question::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232C4A2E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--transition-fast);
}

.faq-item[open] > .faq-question::after {
  transform: rotate(180deg);
}

.faq-item[open] > .faq-question {
  background-color: var(--color-green-light);
  color: var(--color-green-dark);
}

.faq-answer {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-cream);
}
.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 68ch;
}


/* ── 16. FOOTER ───────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(255,255,255,.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-3);
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.social-links a:hover {
  background: var(--color-green);
  color: var(--color-white);
}

/* Footer nav */
.footer-nav h4 {
  color: var(--color-wood-light);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--color-white); }

/* Footer contact */
.footer-contact h4 {
  color: var(--color-wood-light);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-contact address {
  font-style: normal;
  color: rgba(255,255,255,.65);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.footer-contact address p {
  margin-bottom: var(--space-2);
}
.footer-contact address a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-contact address a:hover { color: var(--color-white); }

.footer-hours {
  margin-bottom: var(--space-6);
}
.footer-hours > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-hours dt {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
}
.footer-hours dd {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--space-5);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.4);
  max-width: none;
}
.footer-license { color: rgba(255,255,255,.35) !important; }


/* ── STICKY NAV — scrolled state ─────────────────────────────── */
/*
   The .is-scrolled class is toggled by JS when window.scrollY > 40.
   This deepens the shadow and slightly reduces header height so the
   nav feels "tighter" and content below it gets more breathing room.
   Pure CSS change — no layout shift, no repaints on scroll.
*/
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  border-bottom-color: rgba(0,0,0,.08);
}
.site-header.is-scrolled .header-inner {
  height: 58px; /* shrinks from 68px — subtle but noticeable */
  transition: height 0.25s ease;
}
.site-header .header-inner {
  transition: height 0.25s ease;
}


/* ── BACK TO TOP BUTTON ───────────────────────────────────────── */
/*
   Positioned fixed, bottom-right. Hidden by default (opacity 0,
   pointer-events none, slight downward offset). Becomes visible
   when the <header> gets the .is-scrolled class — we use a
   sibling-agnostic approach via :has() where supported, and the
   JS adds .btt-visible to the button as a fallback.

   No extra scroll listener — the existing header scroll watcher
   in script.js also adds .btt-visible to this button.
*/
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-sticky);

  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);

  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0,0,0,.20);

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* Hidden state */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;

  transition:
    opacity     0.25s ease,
    transform   0.25s ease,
    background  0.15s ease,
    box-shadow  0.15s ease;
}

/* Visible state — class added by JS */
.back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-green-mid);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transform: translateY(-2px);
  color: var(--color-white);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Keep it above the lightbox nav buttons on mobile */
@media (max-width: 639px) {
  .back-to-top {
    bottom: var(--space-5);
    right: var(--space-4);
    width: 44px;
    height: 44px;
  }
}


/* ── 17. ANIMATIONS ───────────────────────────────────────────── */

/*
   PERFORMANCE: CSS-only fade-in animation for section reveals.
   Uses IntersectionObserver in JS to add .is-visible class.
   No GSAP or heavy animation libraries needed.
*/

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }


/* ── 18. MEDIA QUERIES ────────────────────────────────────────── */

/* Tablet: ≥ 640px */
@media (min-width: 640px) {
  :root {
    --container-pad: var(--space-8);
    --section-pad: var(--space-20);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credential-divider { display: block; }

  .hero-trust {
    gap: var(--space-6);
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: ≥ 900px */
@media (min-width: 900px) {
  :root {
    --container-pad: var(--space-10);
    --section-pad: var(--space-24);
  }

  /* Navigation */
  .nav-toggle { display: none; }
  .primary-nav { display: block !important; }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Make the last item (CTA card) span 4 columns to fill the row */
  .services-grid .service-card--cta {
    grid-column: span 4;
    flex-direction: row;
    text-align: left;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-10) var(--space-12);
  }
  .services-grid .service-card--cta .service-card-cta-text {
    flex: 1;
  }
  .services-grid .service-card--cta p {
    flex: 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-area-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr 1.6fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  /* Lightbox nav buttons larger on desktop */
  .lightbox-prev,
  .lightbox-next {
    width: 60px;
    height: 60px;
  }
}

/* Wide desktop: ≥ 1100px */
@media (min-width: 1100px) {
  .hero-content {
    max-width: 760px;
  }
}

/* Mobile: ≤ 639px */
@media (max-width: 639px) {
  /* Nav toggle button visible */
  .nav-toggle {
    display: flex;
  }

  /* Mobile menu: hidden by default, shown when aria-expanded = true */
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
    padding: var(--space-4);
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: var(--space-1);
  }
  .primary-nav a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Hero: stack buttons, ensure content doesn't overflow */
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* On small screens make the hero a touch shorter so the
     scroll cue arrow is hinting at content below the fold */
  .hero {
    min-height: 92dvh;
    max-height: none;
  }

  /* Tighten heading on very small screens */
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .services-grid .service-card--cta {
    grid-column: span 1;
  }
}

/* Print styles */
@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .contact-form,
  .footer-bottom {
    display: none;
  }
  body { font-size: 12pt; }
  h1   { font-size: 24pt; }
  h2   { font-size: 18pt; }
}
