/* ==========================================================================
   Green Yard Design — Main Stylesheet
   Design tokens → CSS custom properties. Everything is derived from these.
   ========================================================================== */

/* ── Google Fonts are loaded in head.php ── */

/* ── 1. Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:            #F7F5F0;
  --color-surface:       #FFFFFF;
  --color-surface-alt:   #EEF0EA;
  --color-text:          #1E2A1A;
  --color-text-muted:    #5C6B56;
  --color-primary:       #3A6B35;
  --color-primary-hover: #2D5229;
  --color-primary-active:#1F3A1C;
  --color-accent:        #7FAF44;
  --color-earth:         #8B6F47;
  --color-border:        #D3D8CE;
  --color-border-focus:  #3A6B35;
  --color-success:       #2E7D32;
  --color-success-bg:    #EDF7ED;
  --color-error:         #C62828;
  --color-error-bg:      #FDECEA;
  --color-overlay:       rgba(30, 42, 26, 0.72);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  1.875rem;  /* 30px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */
  --text-5xl:  3.75rem;   /* 60px */

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(30,42,26,0.08);
  --shadow-md:  0 4px 16px rgba(30,42,26,0.10);
  --shadow-lg:  0 12px 40px rgba(30,42,26,0.14);

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ── 3. Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl);  font-weight: 600; line-height: 1.3; letter-spacing: 0; }
h4 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600;
     letter-spacing: 0.01em; line-height: 1.4; }

p {
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-md);
  line-height: 1.6;
}

@media (min-width: 960px) {
  h1        { font-size: var(--text-4xl); }
  h1.hero-h1{ font-size: var(--text-5xl); }
  h2        { font-size: var(--text-3xl); }
  h3        { font-size: var(--text-2xl); }
  h4        { font-size: var(--text-lg);  }
}

/* ── 4. Layout helpers ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px)  { .container { padding-inline: var(--space-8);  } }
@media (min-width: 1200px) { .container { padding-inline: var(--space-10); } }

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

@media (min-width: 640px)  { section { padding-block: var(--space-16); } }
@media (min-width: 960px)  { section { padding-block: var(--space-20); } }

/* ── 5. Accessibility ─────────────────────────────────────────────────────── */
.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;
}

:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 3px;
}

/* ── 6. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  padding: 12px 28px;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: #FFFFFF;
}
.btn-primary:active {
  background-color: var(--color-primary-active);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 26px;
}
.btn-secondary:hover {
  background-color: rgba(58,107,53,0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--color-primary);
}
.btn-secondary:active {
  background-color: rgba(58,107,53,0.14);
  transform: translateY(0);
}

@media (min-width: 960px) {
  .btn         { padding: 14px 32px; }
  .btn-secondary { padding: 12px 30px; }
}

/* ── 7. Header / Navigation ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow 250ms ease, border-color 250ms ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.site-logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Desktop nav */
.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 150ms ease;
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* Header CTA */
.header-cta {
  display: none;
  margin-left: var(--space-6);
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: color 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { color: var(--color-primary); }

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1),
              opacity 280ms cubic-bezier(0.4,0,0.2,1);
}
.nav-toggle-icon {
  position: relative;
  margin: 5px 0;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

/* Open state */
.nav-open .nav-toggle-icon {
  background: transparent;
}
.nav-open .nav-toggle-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-open .nav-toggle-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms cubic-bezier(0.4,0,0.2,1);
}

.mobile-nav-panel.is-open {
  display: block;
  max-height: 600px;
}

.mobile-nav-panel ul {
  list-style: none;
}

.mobile-nav-panel a {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color 150ms ease;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a[aria-current="page"] {
  color: var(--color-primary);
}

.mobile-nav-cta {
  margin-top: var(--space-6);
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 960px) {
  .site-nav    { display: flex; align-items: center; }
  .header-cta  { display: inline-flex; }
  .nav-toggle  { display: none; }
  .mobile-nav-panel { display: none !important; }
}

/* ── 8. Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-text);
  color: rgba(247,245,240,0.85);
  padding-block: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(247,245,240,0.7);
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247,245,240,0.5);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(247,245,240,0.7);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-contact-item {
  font-size: var(--text-sm);
  color: rgba(247,245,240,0.7);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.footer-contact-item a {
  color: rgba(247,245,240,0.7);
  transition: color 150ms ease;
}
.footer-contact-item a:hover { color: #FFFFFF; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer-social a {
  color: rgba(247,245,240,0.6);
  transition: color 150ms ease;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
}
.footer-social a:hover { color: #FFFFFF; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(211,216,206,0.2);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(247,245,240,0.5);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .footer-links { align-items: flex-start; }
  .footer-contact-item { justify-content: flex-start; }
  .footer-social { justify-content: flex-start; }
  .footer-logo { display: flex; }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* ── 9. Global CTA Band ───────────────────────────────────────────────────── */
.cta-band {
  background-color: var(--color-surface-alt);
  text-align: center;
  padding-block: var(--space-16);
}

.cta-band h2 {
  margin-bottom: var(--space-4);
}

.cta-band p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.cta-band-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── 10. Hero Section ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-16);
}

@media (min-width: 640px)  { .hero { min-height: 70vh; } }
@media (min-width: 960px)  { .hero { min-height: 90vh; max-height: 800px; } }

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 26, 0.50);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

@media (min-width: 960px) {
  .hero-content {
    text-align: left;
    max-width: 60%;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero .lead {
  color: rgba(255,255,255,0.90);
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 960px) {
  .hero-cta { justify-content: flex-start; }
}

.btn-hero-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 10px 26px;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
  text-decoration: none;
}

/* ── 11. Page Banner (inner pages) ───────────────────────────────────────── */
.page-banner {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-8);
  overflow: hidden;
  background-color: var(--color-surface-alt);
}

@media (min-width: 960px) { .page-banner { height: 260px; } }

.page-banner-bg {
  position: absolute;
  inset: 0;
}

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

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 26, 0.45);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-banner h1 {
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-3);
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.breadcrumb a:hover { color: #FFFFFF; }
.breadcrumb-sep { opacity: 0.5; }

/* No-image banner variant */
.page-banner-simple {
  background-color: var(--color-surface-alt);
  padding-block: var(--space-12);
}

@media (min-width: 960px) { .page-banner-simple { padding-block: var(--space-16); } }

.page-banner-simple h1 { margin-bottom: var(--space-4); }
.page-banner-simple .lead { color: var(--color-text-muted); }

/* ── 12. Trust Signal Strip ───────────────────────────────────────────────── */
.trust-strip {
  background-color: var(--color-surface);
  padding-block: var(--space-8);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  justify-items: center;
}

@media (min-width: 640px) {
  .trust-strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .trust-strip-inner {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.trust-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.trust-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── 13. Section headers (centered text band) ─────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.section-header h2 { margin-bottom: var(--space-4); }
.section-header p  { color: var(--color-text-muted); }

/* ── 14. Service Cards ────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) { .service-card { padding: var(--space-6); } }

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

.service-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: var(--space-2);
}

.service-card-outcome {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-4);
  text-decoration: none;
  transition: gap 150ms ease;
}
.service-card-link:hover {
  gap: var(--space-2);
  text-decoration: none;
}

/* ── 15. Portfolio Grid ───────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-surface-alt);
}

.portfolio-item-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.portfolio-item:hover .portfolio-item-img {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,42,26,0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity 200ms ease;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-within .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--space-1);
}

.portfolio-badge {
  display: inline-block;
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* Portfolio filter bar */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ── 16. Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-overlay);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: lb-enter 220ms ease-out forwards;
}

@keyframes lb-enter {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  background: rgba(30,42,26,0.9);
  padding: var(--space-4);
  color: #FFFFFF;
}

.lightbox-caption-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.lightbox-caption-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.80);
}

.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(0,0,0,0.5);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  z-index: 1;
  transition: background-color 150ms ease;
}
.lightbox-close:hover { background: rgba(0,0,0,0.8); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color 150ms ease;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.8); }
.lightbox-prev { left: var(--space-3); }
.lightbox-next { right: var(--space-3); }

/* ── 17. Process Steps ────────────────────────────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 960px) {
  .process-steps {
    flex-direction: row;
    gap: var(--space-6);
  }
}

.process-step {
  flex: 1;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 960px) {
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.process-step h4 {
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── 18. Two-column split ─────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
  .split-reverse > :last-child  { order: 1; }
}

.split-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 959px) {
  .split-img { aspect-ratio: 4 / 3; }
}

/* ── 19. Service detail blocks (Services page) ────────────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 960px) {
  .service-detail { grid-template-columns: 1fr 1fr; align-items: center; }
}

.service-detail-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

@media (min-width: 960px) {
  .service-detail-img { aspect-ratio: 3 / 4; }
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-badge {
  display: inline-block;
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.service-detail h2 {
  margin-bottom: var(--space-2);
}

.service-detail h3.benefit-headline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}

.service-detail p {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.included-list {
  list-style: none;
  margin-bottom: var(--space-6);
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.included-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237FAF44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,8 6,12 14,4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 2px;
}

/* Process callout (S4 — inverted green band) */
.process-callout {
  background-color: var(--color-primary);
  color: #FFFFFF;
  text-align: center;
  padding-block: var(--space-16);
}

.process-callout h2 {
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

.process-callout p {
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.process-callout-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
}

.process-callout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: 160px;
}

.process-callout-step-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-callout-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-callout-step-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
}

.process-callout-arrow {
  font-size: var(--text-2xl);
  color: rgba(255,255,255,0.4);
  align-self: center;
}

/* ── 20. FAQ ──────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding-block: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color 150ms ease;
}

.faq-question:hover { color: var(--color-primary); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 280ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── 21. About page ───────────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 { margin-bottom: var(--space-3); }
.value-card p  { font-size: var(--text-sm); color: var(--color-text-muted); }

.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.credentials-list li:last-child { border-bottom: none; }

.credential-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 2px;
}

.service-area-box {
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 4px solid var(--color-primary);
}

/* ── 22. Contact form ─────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 3fr 2fr; }
}

.form-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

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

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.required-marker {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-sm);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-error);
}

.form-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='%235C6B56' stroke-width='2' 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 var(--space-4) center;
  padding-right: calc(var(--space-4) + 24px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-helper {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: calc(var(--space-1) * -1);
}

.form-error-msg {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: calc(var(--space-1) * -1);
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.form-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.form-alert {
  grid-column: 1 / -1;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-alert-error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
}

.form-success-icon {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-success);
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
}

/* Contact sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-box {
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sidebar-box-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.sidebar-contact-item a {
  color: var(--color-primary);
}

.sidebar-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 1px;
}

.mini-process {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mini-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.mini-step-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  min-width: 32px;
}

.mini-step-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-top: var(--space-1);
}

/* ── 23. Service area reminder (compact band) ─────────────────────────────── */
.area-band {
  background-color: var(--color-surface-alt);
  text-align: center;
  padding-block: var(--space-8);
}

.area-band p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ── 24. Stats / Numbers strip ────────────────────────────────────────────── */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  min-width: 120px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── 25. Reduced Motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 26. Utilities ────────────────────────────────────────────────────────── */
.bg-surface      { background-color: var(--color-surface); }
.bg-surface-alt  { background-color: var(--color-surface-alt); }
.bg-bg           { background-color: var(--color-bg); }
.text-center     { text-align: center; }
.text-muted      { color: var(--color-text-muted); }
.mt-8            { margin-top: var(--space-8); }
.mt-10           { margin-top: var(--space-10); }
.mb-8            { margin-bottom: var(--space-8); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 150ms ease;
}
.link-arrow:hover { gap: var(--space-2); text-decoration: none; }

/* ── 27. Skip link ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-4);
  background: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  font-size: var(--text-sm);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── 28. Contact page area-map image ─────────────────────────────────────── */
.area-map-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  margin-top: var(--space-6);
}

/* ── 29. Two-col portfolio + captions (Portfolio page) ───────────────────── */
.portfolio-project {
  margin-bottom: var(--space-12);
}

.portfolio-project h2 {
  margin-bottom: var(--space-2);
}

.portfolio-project-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.portfolio-project dl {
  margin-top: var(--space-4);
}

.portfolio-project dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-3);
}

.portfolio-project dd {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-left: 0;
}

/* Footer hours */
.footer-hours {
  font-size: var(--text-xs);
  color: rgba(247,245,240,0.55);
  margin-top: var(--space-2);
}

/* Icon inside trust strip SVG */
svg.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
