/* ============================================================
   NWGA Smart Homes -- Global Stylesheet
   Design: Mountain Modern -- Hunter, Sage, Brick, Vanilla
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* -------- Design Tokens -------- */
:root {
  /* Init palette: Vanilla Cream / Blushed Brick / Hunter / Sage / Yellow Green */
  --bg:           #f2e8cf; /* Vanilla Cream */
  --surface:      #FFFFFF;
  --dark:         #1B1E28;
  --dark-2:       #252B38;
  --primary:      #bc4749; /* Blushed Brick — CTAs */
  --primary-dark: #9a3436; /* Brick hover */
  --primary-text: #a33d3f; /* AA ≥4.5:1 on cream for small text */
  --primary-light:#f8e8e8; /* Soft brick wash */
  --accent:       #386641; /* Hunter Green — authority / trust */
  --accent-light: #e8f0e0; /* Soft sage tint from #6a994e */
  --sage:         #6a994e; /* Secondary surfaces / accents */
  --highlight:    #a7c957; /* Yellow Green — badges/highlights only */
  --text:         #2A2724;
  --text-muted:   #5c564e;
  --text-light:   #8a8378;
  --border:       #e0d6c0;
  --border-dark:  #cfc4a8;
  --light:        #ebe3c8; /* Deeper cream band */

  --shadow-xs: 0 1px 2px rgba(27,30,40,.06);
  --shadow-sm: 0 2px 8px rgba(27,30,40,.08);
  --shadow-md: 0 4px 20px rgba(27,30,40,.10);
  --shadow-lg: 0 8px 40px rgba(27,30,40,.12);
  --shadow-xl: 0 16px 60px rgba(27,30,40,.15);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease:      cubic-bezier(.25,.46,.45,.94);
  --ease-out:  cubic-bezier(.0,.0,.2,1);
  --t:         0.22s;
  --t-slow:    0.4s;

  --container: 1200px;
  --header-h:  76px;
  --section-v: clamp(64px, 8vw, 120px);

  /* 4pt spacing scale — use for gaps/padding rhythm */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* -------- Typography -------- */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.15; color: var(--dark); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; font-weight: 500; }
h1, h2, h3 { text-wrap: balance; }
p  { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.65; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-text);
}

/* -------- Layout -------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.section { padding-block: var(--section-v); }
.section--dark { background: var(--dark); }
.section--light { background: var(--light); }
.section--surface { background: var(--surface); }
.section--accent { background: var(--accent); }
.section--primary { background: var(--primary); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* Section headers */
.section-header { margin-bottom: clamp(40px, 5vw, 64px); }
.section-header--center { text-align: center; }
.section-header--center .section-header__body { max-width: 640px; margin-inline: auto; }
.section-header__eyebrow { margin-bottom: 12px; }
.section-header__title { margin-bottom: 16px; }
.section-header__body p { font-size: 1.1rem; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 16px rgba(188,71,73,.35); }

.btn--outline { background: transparent; color: var(--primary-text); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline-dark:hover { background: var(--dark); color: #fff; }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn--dark:hover { background: var(--dark-2); border-color: var(--dark-2); }

.btn--ghost { background: transparent; color: var(--primary-text); border-color: transparent; padding-inline: 0; }
.btn--ghost:hover { color: var(--primary-dark); }

.btn--lg { padding: 15px 34px; font-size: 1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }
.btn--block { width: 100%; justify-content: center; }

/* -------- Navigation -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.nav.scrolled {
  background: rgba(27, 30, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.nav.nav--light {
  background: rgba(248, 245, 239, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav.nav--light.scrolled { background: rgba(248, 245, 239, 0.99); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo img { height: 36px; width: auto; display: block; }

/* Logo swap: dark nav (homepage) always uses white logo */
.nav .logo-white { display: block; }
.nav .logo-green  { display: none; }
/* Light nav uses green logo */
.nav--light .logo-white { display: none; }
.nav--light .logo-green  { display: block; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav--light .nav__links a { color: var(--text-muted); }
.nav--light .nav__links a:hover { color: var(--dark); background: var(--light); }
.nav__links a.active { color: var(--primary); }
.nav--light .nav__links a.active { color: var(--primary-text); }

.nav__phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  margin-right: 16px;
  white-space: nowrap;
  display: none;
}
.nav--light .nav__phone { color: var(--text-muted); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.nav--light .nav__toggle span { background: var(--dark); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Hero -------- */
/* INTERIM stock photo — replace with real job-site photography (see images/photos/SOURCES.md) */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(56, 102, 65, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 30%, rgba(188, 71, 73, 0.14) 0%, transparent 55%),
    linear-gradient(150deg, rgba(27, 30, 40, 0.9) 0%, rgba(31, 45, 24, 0.84) 55%, rgba(27, 30, 40, 0.9) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 40px) 80px;
  max-width: 780px;
}
.hero__eyebrow { color: var(--highlight); margin-bottom: 20px; }
.hero__headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero__headline em { font-style: italic; color: var(--highlight); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.72);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* -------- Services Grid -------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0; }
.service-card p { flex: 1; font-size: 0.9625rem; margin-bottom: 0; }
.service-card .btn--ghost {
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 500;
}
.service-card .btn--ghost::after { content: ' \203A'; }

/* -------- Why Section -------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.why-item { display: flex; flex-direction: column; gap: 12px; }
.why-item__check {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.why-item h4 { font-family: 'DM Sans', sans-serif; font-size: 1.0625rem; font-weight: 600; color: var(--dark); }
.why-item p { font-size: 0.9375rem; }

/* -------- Process Steps -------- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; counter-reset: step; }
.process-steps--stack { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
.process-step { display: flex; flex-direction: column; gap: 14px; position: relative; counter-increment: step; }
.process-step__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--primary-text);
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.process-step h4 { font-family: 'DM Sans', sans-serif; font-size: 1.0625rem; font-weight: 600; color: var(--dark); }
.process-step p { font-size: 0.9375rem; }

/* -------- Testimonials -------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card__stars { display: flex; gap: 4px; color: var(--primary); font-size: 1.05rem; }
.testimonial-card__body { font-size: 0.9625rem; line-height: 1.75; font-style: italic; color: var(--text-muted); flex: 1; }
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.testimonial-card__location { font-size: 0.8rem; color: var(--text-muted); }

/* -------- Service Area Preview -------- */
.area-counties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.area-tag {
  background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--sage) 28%, var(--border));
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--accent);
  white-space: nowrap;
}
.area-cta {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.area-cta__eyebrow { color: var(--accent); }
.area-cta__title { margin-bottom: 0; }

/* -------- Lead / Contact Forms -------- */
.form { position: relative; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 16px; }
.form-row--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
}
.form-group label .req { color: var(--primary-text); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.9625rem;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(188,71,73,.15);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; 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='%236E6660' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-check label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.form-check a { color: var(--primary-text); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.link-tel {
  color: var(--primary-text);
  font-weight: 500;
}

/* Form card wrapper */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.form-card__eyebrow { margin-bottom: 8px; }
.form-card__title { margin-bottom: 8px; }
.form-card__sub { margin-bottom: 28px; }

/* -------- CTA Strip -------- */
.cta-strip {
  background: var(--primary);
  padding-block: clamp(48px, 6vw, 80px);
}
.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-strip h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-strip p { color: rgba(255,255,255,.82); }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* -------- Page Hero (inner pages) -------- */
/* INTERIM stock photo — replace with real job-site photography (see images/photos/SOURCES.md) */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 15% 100%, rgba(44, 77, 26, 0.4) 0%, transparent 55%),
    linear-gradient(150deg, rgba(27, 30, 40, 0.92) 0%, rgba(32, 42, 22, 0.86) 60%, rgba(27, 30, 40, 0.92) 100%),
    url('../images/photos/hero-interior.jpg') center/cover no-repeat;
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0, transparent 1px, transparent 64px), repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0, transparent 1px, transparent 64px);
  pointer-events: none;
}
.page-hero { position: relative; overflow: hidden; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--primary); margin-bottom: 16px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero p { color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 620px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* -------- Content Splits -------- */
.split { display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
.split--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.split--why { align-items: start; }
.split__text { display: flex; flex-direction: column; gap: 20px; }
.split__text h2 { margin-bottom: 0; }
.split__text p { margin-bottom: 0; }
.split__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.split__visual--tall { aspect-ratio: 3 / 4; }
.stack-panel > .split__visual { margin-bottom: var(--space-md); }

/* -------- Feature List -------- */
.feature-list { display: flex; flex-direction: column; gap: var(--space-md); }
.feature-list--compact { gap: var(--space-sm); }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.why__cta { margin-top: var(--space-sm); align-self: flex-start; }
.feature-item__dot {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.feature-item h4 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.feature-item p { font-size: 0.9375rem; margin-bottom: 0; }

/* -------- Service Detail -------- */
.service-includes {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
}
.service-includes ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.service-includes li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.service-includes li::before { content: '\2713'; color: var(--accent); font-weight: 700; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.benefit-card__icon { font-size: 2rem; margin-bottom: 12px; }
.benefit-card h4 { font-family: 'DM Sans', sans-serif; font-size: 0.9625rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.benefit-card p { font-size: 0.875rem; margin-bottom: 0; }

/* -------- FAQ -------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--t);
}
.faq-item__q:hover { color: var(--primary-text); }
.faq-item__icon {
  width: 24px; height: 24px;
  border: 1.5px solid var(--border-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform var(--t), border-color var(--t), color var(--t);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); border-color: var(--primary); color: var(--primary); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-out), padding var(--t-slow) var(--ease-out);
}
.faq-item.open .faq-item__a { max-height: 400px; }
.faq-item__a p { padding-bottom: 20px; font-size: 0.9625rem; }

/* -------- Why aside + stats -------- */
.why-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: flex-start;
}
.why-aside__photo {
  width: 100%;
  box-shadow: var(--shadow-md);
}
.stats-panel {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border);
}
.stats-bar { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); }
.stat { display: flex; flex-direction: column; gap: var(--space-2xs); }
.stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary-text);
  line-height: 1.1;
}
.stat__label { font-size: 0.875rem; color: var(--text-muted); }

/* -------- Craftsmanship proof band -------- */
.craft-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(var(--space-xl), 5vw, var(--space-3xl));
  align-items: center;
}
.craft-proof__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 36ch;
}
.craft-proof__copy h2 { margin: 0; }
.craft-proof__copy p { margin: 0; font-size: 1.1rem; }
.craft-proof__figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Letterbox matches concrete wall when img uses object-fit: contain */
  background: #c9c5bd;
  box-shadow: var(--shadow-md);
}
.craft-proof__figure img {
  display: block;
  width: 100%;
  /* Landscape band — do not let a square/tall photo stretch the section */
  aspect-ratio: 16 / 10;
  max-height: min(52vh, 480px);
  object-fit: contain;
  object-position: center;
}
.craft-proof__caption {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* -------- Breadcrumb -------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: rgba(255,255,255,.5); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--t); }
.breadcrumb a:hover { color: rgba(255,255,255,.85); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* -------- Related Services -------- */
.related-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.related-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card__icon { width: 40px; height: 40px; background: var(--accent-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.related-card__icon svg { width: 20px; height: 20px; }
.related-card__text h4 { font-family: 'DM Sans', sans-serif; font-size: 0.9375rem; font-weight: 600; color: var(--dark); margin-bottom: 0; }
.related-card__text p { font-size: 0.8rem; margin-bottom: 0; }

/* -------- Featured / callout / problem cards (shared) -------- */
.service-card--featured {
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}
.stack-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border);
}
.panel--pad-lg { padding: 40px; }
.panel--accent {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}
.panel--dark {
  background: var(--dark);
  border: none;
}
.callout__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}
.panel--dark .callout__title,
.panel--dark .eyebrow {
  color: var(--highlight);
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-card h4,
.benefit-card h4,
.approach-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 1.0625rem;
}
.problem-card p,
.approach-card p { font-size: 0.9375rem; margin: 0; }
.approach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approach-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.includes-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.thankyou-eyebrow { margin-bottom: 12px; }
.thankyou-hours { font-size: 0.875rem; color: var(--text-light); }
.thankyou-urgent {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}
.footer__bottom--solo {
  border-top: none;
  padding-top: 0;
  padding-block: 28px;
}
.prose-wrap { max-width: 800px; }
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.prose h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.coverage-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.check-list,
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li,
.plain-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-list li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
}
.phone-panel__label {
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.phone-panel__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--highlight);
  display: block;
  margin-bottom: 8px;
}
.phone-panel__hours {
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
}
.phone-panel__num--sm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-text);
}
.estimate-aside {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.estimate-aside__or {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.estimate-aside__or-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.thankyou-urgent__title {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}
.thankyou-urgent__body {
  font-size: 0.9rem;
  margin-bottom: 0;
}
.contact-methods {
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.contact-method {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-method__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contact-method h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}
.contact-method__link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary-text);
}
.contact-method__plain {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
}
.contact-method__more {
  font-size: 0.875rem;
  color: var(--primary-text);
}
.contact-method p {
  font-size: 0.875rem;
  margin: 0;
}
.contact-forms {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}
@media (max-width: 700px) {
  .coverage-cols { grid-template-columns: 1fr; }
}

/* -------- Footer -------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { max-width: 320px; }
.footer__brand img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.footer__tagline { font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; color: rgba(255,255,255,.55); }
.footer__contact-mini { display: flex; flex-direction: column; gap: 6px; }
.footer__contact-mini a { font-size: 0.875rem; color: rgba(255,255,255,.6); transition: color var(--t); }
.footer__contact-mini a:hover { color: var(--primary); }
.footer__hours { font-size: 0.875rem; color: rgba(255,255,255,.4); }

.footer__col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.9rem; color: rgba(255,255,255,.6); transition: color var(--t); }
.footer__col a:hover { color: rgba(255,255,255,.9); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
}
.footer__bottom a { color: rgba(255,255,255,.3); transition: color var(--t); }
.footer__bottom a:hover { color: rgba(255,255,255,.6); }
.footer__legal { display: flex; gap: 20px; }

/* -------- Utility Classes -------- */
.text-primary { color: var(--primary) !important; }
.text-dark    { color: var(--dark) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: #fff !important; }
.text-white-72{ color: rgba(255,255,255,.72) !important; }
.bg-dark      { background: var(--dark); }
.bg-light     { background: var(--light); }
.bg-surface   { background: var(--surface); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.divider { width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 24px; }
.divider--center { margin-inline: auto; }

/* -------- Scroll Animations --------
   Scoped to html.js (set by main.js) so content stays visible without JS. */
.js .fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.js .fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* -------- Thank You Page -------- */
.thankyou-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding-block: 80px;
}
.thankyou-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  max-width: 600px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-card__icon {
  width: 72px; height: 72px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: 2rem;
}
.thankyou-card h1 { font-size: 2.5rem; margin-bottom: 16px; }
.thankyou-card p { margin-bottom: 16px; }
.thankyou-card__phone {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-block: 24px;
}
.thankyou-card__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* -------- Responsive -------- */
@media (min-width: 768px) {
  .nav__phone { display: block; }
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: 100%; }
  .craft-proof {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .craft-proof__copy { max-width: none; }
}

@media (max-width: 700px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark-2);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 32px;
    gap: 12px;
    /* Slide fully clear of the header (and any preview banner above it),
       then hide for real so it can't cover the logo/toggle or catch taps */
    transform: translateY(-100%) translateY(-160px);
    visibility: hidden;
    transition: transform var(--t-slow) var(--ease), visibility 0s var(--t-slow);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav__menu.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--t-slow) var(--ease);
  }
  .nav__links { flex-direction: column; align-items: stretch; margin-right: 0; gap: 2px; }
  .nav__links a { padding: 12px 16px; color: rgba(255,255,255,.8); font-size: 1rem; }
  .nav__phone { display: none; }
  .nav__cta { width: 100%; justify-content: center; margin-top: 4px; }
  .hero__content {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 48px;
  }
  /* Absolute scroll cue overlaps stacked CTAs on short viewports */
  .hero__scroll { display: none; }
  .cta-strip__inner { flex-direction: column; }
  .cta-strip__actions { width: 100%; }
  .cta-strip__actions .btn { flex: 1; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__col { }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats-bar { gap: 24px 32px; }
}

/* -------- Print -------- */
@media print {
  .nav, .cta-strip, .footer { display: none; }
  .page-hero { background: none !important; color: var(--dark) !important; }
}

/* ============================================================
   Dark Mode Toggle Button
   ============================================================ */
.nav__darkmode {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
}
.nav__darkmode:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav--light .nav__darkmode { color: var(--text-muted); }
.nav--light .nav__darkmode:hover { color: var(--dark); background: var(--light); }

.nav__darkmode .icon-sun  { display: none; }
.nav__darkmode .icon-moon { display: block; }

/* ============================================================
   Dark Mode — Variable Overrides
   ============================================================ */
html.dark {
  --bg:           #111318;
  --surface:      #1C1F2B;
  --light:        #171A22;
  --border:       #292D3D;
  --border-dark:  #373C50;
  --text:         #E8E3DC;
  --text-muted:   #9E9690;
  --text-light:   #6A645E;
  --primary-light: rgba(188,71,73,.15);
  --accent-light:  rgba(106,153,78,.18);
  --primary-text:  #E8888A; /* lighter brick for AA contrast on dark bg */
  --sage:          #8BB870;
  --highlight:     #B8D97A;
}

/* Show sun icon in dark mode, hide moon */
html.dark .nav__darkmode .icon-sun  { display: block; }
html.dark .nav__darkmode .icon-moon { display: none; }

/* ---- Headings ---- */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4 { color: #E8E3DC; }

html.dark .feature-item h4,
html.dark .why-item h4,
html.dark .process-step h4,
html.dark .related-card__text h4,
html.dark .benefit-card h4,
html.dark .faq-item__q { color: #E8E3DC; }

/* Inline color:var(--dark) overrides */
html.dark [style*="color:var(--dark)"] { color: rgba(232,227,220,.9) !important; }

/* ---- Navigation ---- */
html.dark .nav--light {
  background: rgba(17,19,24,.97) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
html.dark .nav--light.scrolled { background: rgba(17,19,24,.99) !important; }
/* Dark mode: light nav switches to white logo */
html.dark .nav--light .logo-white { display: block; }
html.dark .nav--light .logo-green  { display: none; }
html.dark .nav--light .nav__links a { color: rgba(255,255,255,.72); }
html.dark .nav--light .nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
html.dark .nav--light .nav__phone { color: rgba(255,255,255,.55); }
html.dark .nav--light .nav__toggle span { background: #fff; }
html.dark .nav--light .nav__darkmode { color: rgba(255,255,255,.65); }
html.dark .nav--light .nav__darkmode:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---- Buttons ---- */
html.dark .btn--outline-dark {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.28);
}
html.dark .btn--outline-dark:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
/* --primary-dark is too dark on dark surfaces; brighten ghost hover */
html.dark .btn--ghost:hover { color: var(--primary); }

/* ---- Forms ---- */
html.dark .form-control {
  background: var(--surface);
  border-color: var(--border-dark);
  color: var(--text);
}
html.dark .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(188,71,73,.18);
}
html.dark .form-control::placeholder { color: var(--text-light); }
html.dark .form-group label { color: var(--text); }
html.dark select.form-control {
  background-color: var(--surface);
  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='%239E9690' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ---- Thank-you page ---- */
html.dark .craft-proof__caption {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

/* ---- Mobile nav in dark mode ---- */
@media (max-width: 700px) {
  html.dark .nav--light .nav__menu {
    background: #1C1F2B;
    border-top-color: rgba(255,255,255,.08);
  }
}

/* ============================================================
   Accessibility
   ============================================================ */

/* -------- Skip link (visually hidden until focused) -------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.skip-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Skip-link target: section receives programmatic focus; no ring needed */
#main:focus { outline: none; }

/* -------- Visible focus states (keyboard navigation) -------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* .form-control sets outline:none for mouse focus (it has its own
   border + box-shadow ring); restore an explicit keyboard outline. */
.form-control:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Lighter outline on dark backgrounds for sufficient contrast */
.nav:not(.nav--light) :focus-visible,
html.dark .nav :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section--dark :focus-visible,
.section--accent :focus-visible,
.cta-strip :focus-visible,
.footer :focus-visible,
.btn--primary:focus-visible,
.btn--dark:focus-visible {
  outline-color: #fff;
}

/* -------- Blog -------- */
.article-meta {
  color: rgba(255,255,255,.62);
  font-size: 0.95rem;
  margin-top: 8px;
}
.blog-hero-media {
  max-width: 800px;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.blog-hero-media img,
.blog-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 8px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  transition: color 0.2s ease;
}
.blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 4px;
}
.blog-card:hover .blog-card__title { color: var(--primary); }
.blog-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.blog-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--dark);
}
.blog-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.55;
  flex: 1;
}
.blog-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.blog-related {
  max-width: 800px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.blog-related h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.blog-related ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.blog-related__cta { margin: 0; }

/* -------- Gallery -------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--dark);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-align: left;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}
.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

/* Homepage teaser strip */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: clamp(28px, 4vw, 40px);
}
.gallery-teaser__link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--dark);
}
.gallery-teaser__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-teaser__link:hover img,
.gallery-teaser__link:focus-visible img {
  transform: scale(1.05);
}
.gallery-teaser__more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}
.gallery-teaser__more:hover,
.gallery-teaser__more:focus-visible {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 720px) {
  .gallery-teaser {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox — full-viewport flex center (defeat UA dialog top-left defaults) */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: auto; /* UA dialogs use margin; keep auto with inset for safety */
  padding: 16px;
  border: none;
  background: transparent;
  color: #fff;
  box-sizing: border-box;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(8, 12, 10, 0.88);
  backdrop-filter: blur(4px);
}
.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(96vw, 1100px);
  max-width: 100%;
  max-height: calc(100vh - 32px);
  padding: 48px 48px 16px;
  box-sizing: border-box;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.lightbox__caption {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 40rem;
}
.lightbox__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  z-index: 1;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  opacity: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  z-index: 1;
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: var(--primary);
}
@media (max-width: 640px) {
  .lightbox__nav { display: none; }
  .lightbox__inner { padding: 48px 12px 16px; }
}

html.dark .gallery-item__caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .btn:active { transform: none; }
  .gallery-item img,
  .gallery-teaser__link img {
    transition: none;
  }
  .gallery-item:hover img,
  .gallery-item:focus-visible img,
  .gallery-teaser__link:hover img,
  .gallery-teaser__link:focus-visible img {
    transform: none;
  }
}
