/* ============================================================
   NorthCrest Construction — Design Tokens
   ============================================================ */
:root {
  /* Color */
  --ink: #1E1712;
  --ink-soft: #2B221C;
  --ink-softer: #372C24;
  --gold: #BE8F3B;
  --gold-deep: #9C7128;
  --gold-light: #D9B876;
  --cream: #F6F1E7;
  --cream-deep: #EFE6D2;
  --paper: #FFFFFF;
  --text: #221A14;
  --text-muted: #6B5D4F;
  --border: #E3D9C6;
  --border-dark: #46392C;
  --danger: #A6362A;
  --success: #2F6B3D;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  --fs-4xl: clamp(2.75rem, 1.9rem + 3.6vw, 4.75rem);

  /* Spacing (8px rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(30, 23, 18, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 23, 18, 0.12);
  --shadow-lg: 0 24px 64px rgba(30, 23, 18, 0.18);

  color-scheme: light;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Header is position:fixed, so any in-page anchor jump needs room to clear it. */
:where(section[id], [id].financing-banner) { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 var(--sp-4); color: var(--ink); }
p { margin: 0 0 var(--sp-4); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 1024px) { .container { padding-inline: var(--sp-8); } }

.section { padding-block: var(--sp-12); }
@media (max-width: 767px) { .section { padding-block: var(--sp-10); } }

.section--alt { background: var(--cream-deep); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-3);
}
.section--dark .eyebrow { color: var(--gold-light); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block; }

.section-head { max-width: 640px; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); }
.section--dark .section-head p { color: #C9BBA8; }
.section--dark p { color: #C9BBA8; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              background-color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--on-dark { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--on-dark:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(246,241,231,0.4); }
.btn--ghost-light:hover { background: rgba(246,241,231,0.12); border-color: var(--cream); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.3rem; font-size: var(--fs-xs); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-3);
  gap: var(--sp-5);
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.brand .brand__dark { display: none; }
.site-header.is-scrolled .brand .brand__dark { display: block; }
.site-header.is-scrolled .brand .brand__light { display: none; }

.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--sp-6); }
  .nav-desktop a {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--cream);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    padding-block: var(--sp-2);
    border-bottom: 2px solid transparent;
    transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
  }
  .nav-desktop a:hover { color: var(--gold-light); border-color: var(--gold-light); }
  .site-header.is-scrolled .nav-desktop a { color: var(--text); text-shadow: none; }
  .site-header.is-scrolled .nav-desktop a:hover { color: var(--gold-deep); border-color: var(--gold); }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.header-phone {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.site-header.is-scrolled .header-phone { color: var(--ink); text-shadow: none; }
@media (min-width: 1140px) { .header-phone { display: inline-flex; } }
.header-phone svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.site-header.is-scrolled .header-phone svg { color: var(--gold-deep); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(246, 241, 231, 0.5);
  background: transparent;
  cursor: pointer;
  color: var(--cream);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.site-header.is-scrolled .nav-toggle { border-color: var(--border-dark); color: var(--ink); }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-standard);
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-8); }
.nav-mobile__close {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(246,241,231,0.4); background: transparent; color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-mobile__close svg { width: 20px; height: 20px; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.nav-mobile a {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  padding-block: var(--sp-3);
  border-bottom: 1px solid rgba(246,241,231,0.14);
}
.nav-mobile__footer { margin-top: auto; padding-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.nav-mobile__phone { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-lg); color: var(--gold-light); }
.nav-mobile__phone svg { width: 20px; height: 20px; }
body.nav-open { overflow: hidden; }

/* ============================================================
   Intro preloader
   ============================================================ */
body.preloader-active { overflow: hidden; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preloader__text {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-3), 3vw, var(--sp-6));
}
.preloader__word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 1rem + 5vw, 4.25rem);
  color: var(--ink);
  white-space: nowrap;
}
.preloader__media {
  position: relative;
  display: block;
  width: 6px;
  height: clamp(50px, 8vw, 90px);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  flex: none;
}
.preloader__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--ink); }

/* Static photo hero. The fixed site header floats transparently over the top
   of it until .is-scrolled. */
.hero__scroller { position: relative; }
.hero__pin {
  position: relative;
  /* Fills the screen, but grows if the copy is taller (short phones) instead of clipping it. */
  min-height: max(100vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 11, 7, 0.6) 0%, rgba(15, 11, 7, 0.12) 32%, rgba(15, 11, 7, 0.22) 55%, rgba(15, 11, 7, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding-top: 110px;
  padding-bottom: var(--sp-8);
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(246, 241, 231, 0.12);
  border: 1px solid rgba(246, 241, 231, 0.35);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__badge svg { width: 16px; height: 16px; }
.hero__badge--link {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
  cursor: pointer;
}
.hero__badge--link:hover { background: var(--gold-light); transform: translateY(-1px); }
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -0.01em; margin-bottom: var(--sp-5); color: var(--cream); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { font-size: var(--fs-md); color: rgba(246, 241, 231, 0.88); max-width: 56ch; margin-inline: auto; margin-bottom: var(--sp-6); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }

.hero__stats-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding-block: var(--sp-5) var(--sp-6);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: var(--sp-6) var(--sp-8);
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, auto); gap: var(--sp-8); } }
.hero__stats div { border-left: 2px solid var(--gold); padding-left: var(--sp-3); text-align: left; }
.hero__stats strong { display: block; font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--cream); }
.hero__stats span { font-size: var(--fs-xs); color: rgba(246, 241, 231, 0.75); text-transform: uppercase; letter-spacing: 0.05em; }

/* Compact hero content on short/narrow screens so it always fits above the stats
   bar within the pinned 100vh section, no matter how much the copy wraps. */
@media (max-width: 480px), (max-height: 780px) {
  .hero__content { padding-top: 88px; padding-bottom: var(--sp-4); gap: 0; }
  .hero__badges { margin-bottom: var(--sp-3); }
  .hero__badge { padding: 0.4rem 0.85rem; font-size: 11px; }
  .hero h1 { font-size: clamp(1.75rem, 1.3rem + 5vw, 2.5rem); margin-bottom: var(--sp-3); }
  .hero p.lead { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
  .hero__stats-bar { padding-block: var(--sp-3) var(--sp-4); }
  .hero__stats { gap: var(--sp-3) var(--sp-5); }
  .hero__stats strong { font-size: var(--fs-md); }
  .hero__stats span { font-size: 10px; }
}


/* ============================================================
   Situations ("what's going on with your roof?")
   ============================================================ */
.section--tight { padding-block: var(--sp-10); }
.situations-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .situations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .situations-grid { grid-template-columns: repeat(4, 1fr); } }
.situation-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  color: inherit;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.situation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.situation-card h3 { font-size: var(--fs-md); line-height: 1.3; margin: 0; }
.situation-card p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; flex: 1; }
.situation-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--gold-deep);
}
.situation-card__cta svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-standard); }
.situation-card:hover .situation-card__cta svg { transform: translateX(4px); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--sp-5);
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
  justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--cream-deep);
  color: var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 0; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
.about-media { position: relative; }
.about-media__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5/4;
}
.about-grid > * { min-width: 0; }
.about-media__frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  /* Stretch the photo to match the text column's full height instead of
     centering a fixed-aspect frame, which left empty space above/below it
     whenever the copy column ran taller than a 5:4 crop. Declared after the
     base rules above so it actually wins the cascade at this width. */
  .about-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .about-media { height: 100%; }
  .about-media__frame { height: 100%; min-height: 320px; aspect-ratio: auto; }
}
.about-media__badge {
  position: absolute;
  bottom: -28px;
  right: -20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  width: 168px;
  text-align: center;
}
.about-media__badge strong { display: block; font-family: var(--font-serif); font-size: var(--fs-2xl); color: var(--gold-light); }
.about-media__badge span { font-size: var(--fs-xs); letter-spacing: 0.04em; color: #D9CBB6; }

.about-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); margin-bottom: var(--sp-8); }
.about-list li { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); color: var(--text-muted); }
.about-list svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.about-list strong { color: var(--text); }
.about-list--grid li { font-weight: 600; color: var(--text); }
@media (min-width: 480px) {
  .about-list--grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); }
}
.section--dark .about-list li,
.section--dark .about-list--grid li { color: var(--cream); }
.section--dark .about-list svg { color: var(--gold-light); }

.section--dark .about-media__badge { background: var(--gold); }
.section--dark .about-media__badge strong { color: var(--ink); }
.section--dark .about-media__badge span { color: rgba(30, 23, 18, 0.75); }

/* ============================================================
   Badges of honor
   ============================================================ */
.badge-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8) var(--sp-5);
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 760px) { .badge-row { grid-template-columns: repeat(4, 1fr); } }

.badge-medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); }
.badge-medal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--cream-deep), 0 8px 20px rgba(30, 23, 18, 0.15);
  color: var(--gold-light);
  margin-bottom: var(--sp-2);
}
.badge-medal__icon svg { width: 32px; height: 32px; }
.badge-medal strong { font-family: var(--font-serif); font-size: var(--fs-md); color: var(--ink); }
.badge-medal span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ============================================================
   Gallery
   ============================================================ */
#gallery .section-head h2 { font-style: italic; }
.gallery-grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-cta { text-align: center; margin-top: var(--sp-10); }
.gallery-cta h3 { font-family: var(--font-serif); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }

.gallery-card {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--ink);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  background: linear-gradient(180deg, transparent, rgba(20,15,10,0.75) 55%, rgba(20,15,10,0.92) 100%);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
}

/* ============================================================
   Before / After sliders
   ============================================================ */
.ba-slider {
  --pos: 50%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ba-slider__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  background: var(--ink);
  user-select: none;
}
.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--cream);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.ba-slider__divider svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.ba-slider__tag {
  position: absolute;
  top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 1;
}
.ba-slider__tag--before { left: var(--sp-4); background: var(--ink-soft); color: #FFFFFF; }
.ba-slider__tag--after { right: var(--sp-4); background: var(--gold); color: var(--ink); }

/* The range input covers the whole frame so you can drag anywhere on the photo;
   its native track/thumb are made invisible and .ba-slider__divider (pointer-events:none,
   positioned via the same --pos variable) is the only visible handle. */
.ba-slider__range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  /* Without this, touch browsers can't tell whether a drag here means "move
     the slider" or "scroll the page", which made the handle feel unreliable
     or unresponsive on phones. pan-y keeps vertical page scroll working while
     reserving horizontal drags for the slider itself. */
  touch-action: pan-y;
}
.ba-slider__range:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: -3px; }
.ba-slider__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ba-slider__range::-moz-range-track { height: 100%; background: transparent; }
.ba-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.ba-slider__range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.ba-slider__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin: var(--sp-2) 0 0;
}

/* A normal-flow caption below the frame, not an overlay: .ba-slider has no
   position/aspect-ratio of its own (only .ba-slider__frame does), so reusing
   the absolutely-positioned .gallery-card__caption style here collapsed the
   card's box to just the frame's height and pinned the caption over the
   photo itself once the scroll-reveal transform kicked in, burying the
   before/after comparison it's supposed to label. */
.ba-slider__caption {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 860px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: var(--sp-6); }
.process-step__num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}
.process-step__num::before { content: counter(step); }
.process-step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.process-step p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 0; }
.section--dark .process-step p { color: #C9BBA8; }
@media (min-width: 860px) {
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(50% + 40px);
    width: calc(100% - 56px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  }
}

/* ============================================================
   Reviews (real Google reviews, carousel)
   ============================================================ */
.google-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: var(--sp-1) var(--sp-3);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.google-rating-row:hover { background: var(--paper); }
.google-rating-row:hover .google-rating-row__count { text-decoration: underline; }
.google-g { width: 22px; height: 22px; flex: none; }
.google-rating-row__score { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.google-rating-row__stars { display: flex; gap: 1px; color: var(--gold); }
.google-rating-row__stars svg { width: 16px; height: 16px; }
.google-rating-row__count { font-size: var(--fs-sm); color: var(--text-muted); margin-left: var(--sp-1); }

/* Continuous auto-scrolling marquee: main.js duplicates the card set once so
   -50% translateX loops seamlessly; hover/focus/touch pauses it (still scrollable
   by hand since overflow-x is auto), and reduced-motion disables the animation
   entirely in favour of plain horizontal scroll. */
.review-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.review-carousel::-webkit-scrollbar { display: none; }
.review-track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
  padding-block: var(--sp-2) var(--sp-4);
  animation: reviewMarquee 60s linear infinite;
}
.review-carousel:hover .review-track,
.review-carousel:focus-within .review-track,
.review-track.is-paused { animation-play-state: paused; }
@keyframes reviewMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
}

.review-card {
  flex: 0 0 300px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 560px) { .review-card { flex-basis: 320px; } }

.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
}
.review-card__stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.review-card__name { font-size: var(--fs-sm); }
.review-card__text { color: var(--text); font-size: var(--fs-sm); margin-bottom: 0; }

.reviews-cta { display: flex; justify-content: center; margin-top: var(--sp-6); }

/* ============================================================
   Service area
   ============================================================ */
.area-grid { display: grid; gap: var(--sp-10); align-items: center; }
@media (min-width: 960px) { .area-grid { grid-template-columns: 1fr 1fr; } }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
.area-list li { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-sm); }
.area-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.area-cta { margin-top: var(--sp-8); }
.area-trust {
  margin: var(--sp-3) 0 0;
  color: #9A8B78;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.area-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  aspect-ratio: 4/3;
  background: var(--ink-soft);
  box-shadow: 0 20px 48px rgba(20, 15, 10, 0.35), inset 0 0 0 1px rgba(190, 143, 59, 0.12);
}
.area-map::after {
  /* vignette so the map reads as a framed piece rather than a raw embed.
     z-index must stay below the pins/ring/web layers (4/3/2) — it was
     previously 500, which buried any pin near the edge (e.g. Burlington,
     close to the bottom edge) under the darkened border. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px 12px rgba(20, 15, 10, 0.55);
  border-radius: inherit;
  z-index: 1;
}
.area-map__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.area-map__img.is-active { opacity: 1; }
.area-map__img--styled { filter: sepia(0.35) saturate(1.4) hue-rotate(-10deg) brightness(0.82) contrast(1.08); }
/* Satellite imagery needs to stay legible (real rooftops, not a vector style),
   so it gets only a light warm grade instead of the full styled-map filter. */
.area-map__img--satellite { filter: sepia(0.12) saturate(1.15) hue-rotate(-6deg) brightness(0.88) contrast(1.05); }

.map-view-toggle {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  z-index: 4;
  display: flex;
  background: rgba(30, 23, 18, 0.85);
  border: 1px solid rgba(190, 143, 59, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 6px 18px rgba(20, 15, 10, 0.35);
  backdrop-filter: blur(2px);
}
.map-view-toggle__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #D9CBB6;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.map-view-toggle__btn:hover { color: var(--cream); }
.map-view-toggle__btn.is-active {
  background: var(--gold);
  color: var(--ink);
}

.area-map__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.area-map__web-line {
  stroke: var(--gold-light);
  stroke-width: 2.75;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  opacity: 0.7;
  animation: mapWebDash 20s linear infinite;
}
@keyframes mapWebDash {
  to { stroke-dashoffset: -270; }
}

.map-coverage-ring {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  border: 1.5px solid rgba(190, 143, 59, 0.55);
  background: rgba(190, 143, 59, 0.06);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: mapRingPulse 3.6s ease-in-out infinite;
}
@keyframes mapRingPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.area-map__pins { position: absolute; inset: 0; z-index: 4; }
.area-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}
.map-pin__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.map-pin--hq {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(190, 143, 59, 0.35);
}
.map-pin--hq::before {
  /* soft radar-style pulse to draw the eye to HQ first */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  opacity: 0;
  animation: mapPinPulse 2.6s ease-out infinite;
}
@keyframes mapPinPulse {
  0% { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(1.9); opacity: 0; }
}
.map-label {
  order: 1;
  white-space: nowrap;
  background: rgba(30, 23, 18, 0.88);
  border: 1px solid var(--border-dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(20, 15, 10, 0.3);
}
.map-label--hq {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .map-coverage-ring, .map-pin--hq::before, .area-map__web-line { animation: none !important; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq-item { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-item__q svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; transition: transform var(--dur-base) var(--ease-standard); }
.faq-item[data-open="true"] .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a {
  padding: 0 var(--sp-5);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-standard), padding var(--dur-base) var(--ease-standard);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.faq-item[data-open="true"] .faq-item__a { padding-bottom: var(--sp-5); }

.financing-banner {
  margin-top: var(--sp-8);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 720px) { .financing-banner { grid-template-columns: auto 1fr auto; } }
.financing-banner__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.financing-banner__icon svg { width: 28px; height: 28px; }
.financing-banner h3 { color: var(--cream); font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.financing-banner p { color: #D9CBB6; margin-bottom: 0; font-size: var(--fs-sm); }

/* ============================================================
   Contact / Quote form
   ============================================================ */
.contact-grid { display: grid; gap: var(--sp-10); }
.contact-grid > * { min-width: 0; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info__item { display: flex; gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid rgba(246,241,231,0.14); }
.contact-info__item:first-child { padding-top: 0; }
.contact-info__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(190,143,59,0.16); color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__item strong { display: block; font-size: var(--fs-sm); color: var(--cream); }
.contact-info__item > div { min-width: 0; }
.contact-info__item span, .contact-info__item a { font-size: var(--fs-sm); color: #C9BBA8; overflow-wrap: anywhere; }
.contact-info__item a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.contact-info__item a:hover { color: var(--gold-light); }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-row { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; margin-bottom: var(--sp-5); }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(190,143,59,0.25);
}
.field textarea { resize: vertical; min-height: 120px; }
.field small.hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field small.error {
  font-size: var(--fs-xs);
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 4px;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] small.error { display: flex; }

.form-error-summary {
  display: none;
  background: #FBEAE7;
  border: 1.5px solid var(--danger);
  color: #7A2A20;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
}
.form-error-summary.is-visible { display: block; }
.form-error-summary h3 { font-size: var(--fs-sm); color: #7A2A20; margin-bottom: var(--sp-2); }
.form-error-summary ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 4px; }
.form-error-summary a { text-decoration: underline; font-weight: 600; }

.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  background: #EAF3EC;
  border: 1.5px solid var(--success);
  color: #1E4A28;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; color: var(--success); }

.form-submit-error {
  display: none;
  background: #FBEAE8;
  border: 1.5px solid var(--danger);
  color: #7A241C;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-submit-error a { text-decoration: underline; color: inherit; }
.form-submit-error.is-visible { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #C9BBA8; padding-block: var(--sp-12) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; margin-bottom: var(--sp-10); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { font-size: var(--fs-sm); max-width: 32ch; margin-top: var(--sp-4); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(246,241,231,0.24);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: var(--cream); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { display: inline-block; padding-block: 8px; margin-block: -8px; font-size: var(--fs-sm); overflow-wrap: anywhere; transition: color var(--dur-fast) var(--ease-standard); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(246,241,231,0.14);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #9A8B78;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-standard), transform var(--dur-slow) var(--ease-standard);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { top: var(--sp-4); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), visibility var(--dur-base);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(30, 23, 18, 0.12);
}
.mobile-cta-bar .btn { flex: 1; }
.mobile-cta-bar .btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
@media (max-width: 899px) {
  /* Keeps the floating scroll-to-top button clear of the CTA bar, and gives
     the footer's last line breathing room instead of sitting under the bar. */
  .back-to-top { bottom: calc(var(--sp-5) + 68px); }
  .site-footer { padding-bottom: 96px; }
}

/* Touch-friendly sizes on phones */
@media (max-width: 899px) {
  .map-view-toggle__btn { padding: 9px 14px; font-size: 12.5px; }
  .hero__badge--link { min-height: 40px; }
}

/* Very narrow phones (320px-class): keep header, form, and CTA bar inside the screen */
.form-row > *, .field { min-width: 0; }
.field select, .field input, .field textarea { max-width: 100%; }
.mobile-cta-bar .btn { min-width: 0; padding-inline: var(--sp-3); }
@media (max-width: 380px) {
  .site-header__inner { gap: var(--sp-3); }
  .brand img { height: 34px; }
  .header-actions { gap: var(--sp-2); }
  .header-actions .btn { padding: 0.6rem 0.9rem; font-size: 13px; }
  .mobile-cta-bar { gap: var(--sp-2); padding-inline: var(--sp-3); }
}

/* Pins near an edge or crowding a neighbour put their label beside the dot instead of above it */
.area-map__pin--left, .area-map__pin--right { flex-direction: row; }
.area-map__pin--left { transform: translate(calc(-100% + 6px), -50%); }
.area-map__pin--right { transform: translate(-6px, -50%); }
.area-map__pin--right .map-pin { order: 1; }
.area-map__pin--right .map-label { order: 2; }
@media (max-width: 599px) {
  .map-label { font-size: 11px; padding: 2px 7px; }
  .area-map__pin { gap: 4px; }
}

/* Intro wordmark: size to the screen on phones so "NorthCrest | Construction" never runs off the edges */
@media (max-width: 480px) {
  .preloader__word { font-size: 7vw; }
  .preloader__text { gap: 8px; }
}
