/* ==========================================================================
   FS Construction — Global Stylesheet
   Exterior construction · Massachusetts & surrounding areas
   Phone: (508) 215-9430 · contact@fsconstruction.pro
   1 Main St, Taunton, MA 02780 · Since 2022 · HIC #220796 · 1000+ projects
   --------------------------------------------------------------------------
   Mobile-first. Breakpoints: 640px · 768px · 900px · 1100px (desktop nav) · 1280px

   TABLE OF CONTENTS
    1.  Design tokens
    2.  Reset & base
    3.  Typography
    4.  Layout (container, sections, grids, split)
    5.  Icons
    6.  Buttons & links
    7.  Logo
    8.  Header & navigation (dropdown, hamburger, mobile panel)
    9.  Hero (home) & page hero (inner pages)
   10.  Breadcrumb
   11.  Trust bar & stats
   12.  Cards (base, service, feature, area, review, project)
   13.  Before / after slider
   14.  Timeline
   15.  Carousel
   16.  Accordion
   17.  Forms
   18.  Filters
   19.  Masonry
   20.  Lightbox
   21.  CTA band, contact list, hours, map, chips
   22.  Footer
   23.  Mobile sticky CTA bar
   24.  Image placeholders
   25.  Scroll animations
   26.  Utilities
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --navy: #1F3A5F;
  --navy-dark: #162B47;
  --navy-deep: #0F1F33;
  --copper: #B5651D;
  --copper-dark: #94511A;      /* hover + small copper text (better contrast) */
  --copper-light: #F4E8DC;
  --bg: #F7F5F2;
  --beige: #EFE6D8;            /* home "Our Services" section background */
  --text: #1A1A1A;
  --gray: #6B6B6B;

  /* Neutrals */
  --white: #FFFFFF;
  --line: #E6E1DA;
  --line-dark: rgba(255, 255, 255, .14);
  --placeholder: #D9D5CF;
  --placeholder-text: #57534D;

  /* States */
  --success: #2E6B47;
  --success-bg: #E8F3EC;
  --error: #B3261E;
  --error-bg: #FBEAE9;
  --star: #E0A526;

  /* Type */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-h1: clamp(2.5rem, 5.5vw + 1rem, 5rem);
  --fs-h2: clamp(2rem, 2.6vw + 1.1rem, 3.25rem);
  --fs-h3: clamp(1.3rem, .8vw + 1rem, 1.625rem);
  --fs-h4: 1.125rem;

  /* Shape & depth */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 51, .05), 0 2px 8px rgba(15, 31, 51, .05);
  --shadow-md: 0 4px 12px rgba(15, 31, 51, .06), 0 14px 36px rgba(15, 31, 51, .08);
  --shadow-lg: 0 10px 24px rgba(15, 31, 51, .08), 0 28px 70px rgba(15, 31, 51, .14);

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: 20px;
  --header-h: 76px;
  --section-y: clamp(4.5rem, 7vw + 1.5rem, 8.5rem);
  --gap: 24px;
  --mobile-cta-h: 64px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t: .35s;
  --t-slow: .8s;

  /* Layers */
  --z-mobile-cta: 80;
  --z-header: 100;
  --z-lightbox: 1000;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 88px;
    --gap: 28px;
  }
}

@media (min-width: 1100px) {
  :root { --gap: 32px; }
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* One-page site: menu anchors stop just below the fixed header */
main > section[id] { scroll-margin-top: var(--header-h); }
/* Form fields focused by the keyboard / validation also stay clear of the header */
.form-control,
.choice input { scroll-margin-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* room for the fixed mobile CTA bar */
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; color: inherit; }

:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }

hr { border: 0; height: 1px; background: var(--line); margin: 3rem 0; }

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

::selection { background: var(--copper); color: var(--white); }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-lightbox) + 1);
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--copper); }

p { margin: 0 0 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: #E7B98E; }
.text-center .eyebrow::after,
.section-header--center .eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem);
  line-height: 1.7;
  color: var(--gray);
}

.prose { max-width: 68ch; }
.prose p, .prose li { color: #3A3A3A; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li + li { margin-top: .4em; }

.check-list { display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15em;
  padding: 3px;
  border-radius: 50%;
  background: var(--copper-light);
  color: var(--copper);
  stroke-width: 3;
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(1440px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--white); }
.section--beige { background: var(--beige); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy .lead { color: rgba(255, 255, 255, .72); }
.section--navy .eyebrow { color: #E7B98E; }

.section-header { max-width: 720px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-header p { color: var(--gray); font-size: var(--fs-lg); }
.section--navy .section-header p { color: rgba(255, 255, 255, .72); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--split {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .section-header--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-header--split > :first-child { max-width: 640px; }
}

/* Grids */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
/* 5-up grid (services, 10 cards): 1 col phone · 2 cols tablet · 5 cols large desktop — never an orphan card */
@media (min-width: 640px) { .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .grid--5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .grid--5 .card__body { padding: 1.25rem 1.25rem 1.5rem; }
}
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* Split (text + image) */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr .85fr; }
  .split--reverse > :first-child { order: 2; }
}

.split__media {
  position: relative;
  border-radius: var(--radius);
}
/* architectural offset frame */
.split__media--frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--copper);
  border-radius: var(--radius);
  z-index: 0;
  pointer-events: none;
}
.split--reverse .split__media--frame::before { inset: 24px 24px -24px -24px; }
.split__media-inner {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  background: var(--placeholder);
}
.split__media-inner > img,
.split__media-inner > .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 899px) {
  .split__media-inner { aspect-ratio: 4 / 3; }
  .split__media--frame::before { inset: 16px -12px -16px 12px; }
}


/* ==========================================================================
   5. ICONS (Lucide-style inline SVG)
   ========================================================================== */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--filled { fill: currentColor; }

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--copper-light);
  color: var(--copper);
  flex: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-box .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.icon-box--navy { background: rgba(31, 58, 95, .08); color: var(--navy); }
.icon-box--light { background: rgba(255, 255, 255, .08); color: #E7B98E; }


/* ==========================================================================
   6. BUTTONS & LINKS
   ========================================================================== */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .875rem 1.75rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled,
.btn.is-loading { opacity: .7; pointer-events: none; }

.btn--copper { --btn-bg: var(--copper); }
.btn--copper:hover { --btn-bg: var(--copper-dark); }

.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-dark); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-border: var(--white); }

.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--white:hover { --btn-bg: var(--bg); }

.btn--sm { min-height: 44px; padding: .625rem 1.25rem; font-size: var(--fs-xs); }
.btn--lg { min-height: 60px; padding: 1rem 2.25rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-group { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--copper); transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--copper-dark); border-bottom-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--white); }

a.is-placeholder { opacity: .5; cursor: not-allowed; }


/* ==========================================================================
   7. LOGO
   ========================================================================== */
.site-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 50px;
}
.site-logo__img { height: 50px; width: auto; }
.site-logo .site-logo__img--light { display: none; }   /* also hides the text-logo fallback */

/* Emblem (logo.png) + "FS Construction" text, side by side */
.site-logo { gap: .6rem; }
.site-logo__emblem { height: 42px; width: 42px; object-fit: contain; flex: none; }
@media (min-width: 900px) { .site-logo__emblem { height: 52px; width: 52px; } }
.site-header .site-logo { height: auto; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-logo .logo-text { color: var(--white); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-logo .logo-text__fs { color: #D88A45; }

/* Text fallback (inserted by JS when logo files are missing) */
.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--navy);
  white-space: nowrap;
}
.logo-text__fs { color: var(--copper); font-weight: 700; }
.logo-text.site-logo__img { height: auto; }
.logo-text--light,
.logo-text.site-logo__img--light,
.logo-text.footer-logo { color: var(--white); }
.logo-text--light .logo-text__fs,
.site-logo__img--light .logo-text__fs,
.footer-logo .logo-text__fs { color: #D88A45; }


/* ==========================================================================
   8. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition:
    background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    height var(--t) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 30px rgba(15, 31, 51, .08);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* push content below fixed header on pages without a hero */
body:not(.has-hero) main { padding-top: var(--header-h); }

/* Transparent header over hero (body.has-hero), until scrolled or menu opened */
.has-hero .site-header:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
}
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-logo__img--dark { display: none; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .site-logo__img--light { display: inline-flex; }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle span { background: var(--white); }
.has-hero:not(.nav-open) .site-header:not(.is-scrolled) .header-phone { color: var(--white); }
.has-hero.nav-open .site-header { background: var(--white); }

@media (min-width: 1100px) {
  .has-hero .site-header:not(.is-scrolled) .main-nav__link,
  .has-hero .site-header:not(.is-scrolled) .dropdown-toggle { color: var(--white); }
  .has-hero .site-header:not(.is-scrolled) .main-nav__link::after { background: var(--white); }
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header__actions .btn { display: none; }
@media (min-width: 640px) {
  .site-header__actions .btn { display: inline-flex; }
}

.header-phone {
  display: none;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--copper); }
.header-phone:hover { color: var(--copper-dark); }
@media (min-width: 1100px) {
  .header-phone { display: inline-flex; }
  .header-phone__text {   /* icon only between 1100–1279 */
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
}
@media (min-width: 1280px) {
  .header-phone__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Hamburger */
.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease), background var(--t) var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

/* Main nav — mobile panel (default) */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.nav-open .main-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
}

.main-nav__list { display: flex; flex-direction: column; }
.main-nav__item { position: relative; border-bottom: 1px solid var(--line); }
.main-nav__row { display: flex; align-items: center; justify-content: space-between; }

.main-nav__link {
  position: relative;
  display: block;
  flex: 1;
  padding: 1rem 0;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--navy);
}
.main-nav__link:hover,
.main-nav__link.is-active { color: var(--copper-dark); }

.dropdown-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.dropdown-toggle .icon { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }

.dropdown {
  display: none;
  padding: 0 0 1rem .25rem;
}
.has-dropdown.is-open > .dropdown { display: block; }
.dropdown__list { display: grid; gap: .125rem; }
.dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .625rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.dropdown__link .icon { width: 16px; height: 16px; color: var(--copper); opacity: 0; transform: translateX(-6px); transition: all var(--t-fast) var(--ease); }
.dropdown__link:hover,
.dropdown__link.is-active { background: var(--bg); color: var(--navy); }
.dropdown__link:hover .icon { opacity: 1; transform: none; }
.dropdown__footer {
  margin-top: .5rem;
  padding: .75rem .75rem 0;
  border-top: 1px solid var(--line);
}

.main-nav__cta { display: grid; gap: .75rem; }
.main-nav__cta .btn { width: 100%; }

/* Main nav — desktop */
@media (min-width: 1100px) {
  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    margin-left: auto;
  }
  .main-nav__list { flex-direction: row; align-items: center; gap: .25rem; }
  .main-nav__item { border: 0; }
  .main-nav__row { gap: 0; }
  .main-nav__link {
    padding: .5rem .75rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
  }
  .main-nav__link::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 2px;
    height: 1.5px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
  }
  .main-nav__link:hover::after,
  .main-nav__link.is-active::after { transform: scaleX(1); }
  .main-nav__link:hover,
  .main-nav__link.is-active { color: inherit; }

  .has-dropdown .main-nav__link { padding-right: .25rem; }
  .has-dropdown .main-nav__link::after { right: .25rem; }
  .dropdown-toggle { width: 28px; height: 36px; color: var(--text); }
  .dropdown-toggle .icon { width: 16px; height: 16px; }

  .dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 520px;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .dropdown::before {           /* hover bridge */
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -16px;
    height: 16px;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
  }
  .has-dropdown:hover .dropdown-toggle .icon { transform: rotate(180deg); }
  .dropdown__list { grid-template-columns: 1fr 1fr; }

  .main-nav__cta { display: none; }
}


/* ==========================================================================
   9. HERO & PAGE HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 8vw, 7rem);
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { align-items: center; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s var(--ease-out) both;
}
.hero__media > img,
.hero__media > .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Home hero video — sits over the static image on every screen size; reduced motion sees the image only */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__video { display: block; }
}
.hero::after {          /* readability overlay */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 31, 51, .55) 0%, rgba(15, 31, 51, .15) 35%, rgba(15, 31, 51, .85) 100%);
}
@media (min-width: 900px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(15, 31, 51, .85) 0%, rgba(15, 31, 51, .45) 50%, rgba(15, 31, 51, .1) 100%),
      linear-gradient(180deg, rgba(15, 31, 51, .45) 0%, transparent 30%);
  }
}
/* Home hero on phones: vertical video (home-hero-mobile.mp4).
   The video fills exactly the first screen (above the fixed "Call / Free Estimate"
   bar). The house sits in the middle of the frame, so the text starts low
   (--hero-mobile-text-top) and continues below the first screen on solid navy;
   the overlay is light over the house and fades to solid navy at the bottom.
   Mude --hero-mobile-text-top para subir/descer o texto (ex.: 60svh sobe, 70svh desce). */
@media (max-width: 768px) {
  .hero.hero--home {
    --hero-mobile-video-h: calc(100svh - var(--mobile-cta-h) - env(safe-area-inset-bottom, 0px));
    --hero-mobile-text-top: 64svh;
    display: block;
    min-height: var(--hero-mobile-video-h);
    padding-top: var(--hero-mobile-text-top);
    padding-bottom: 2.5rem;
  }
  .hero.hero--home .hero__media {
    bottom: auto;
    height: var(--hero-mobile-video-h);
  }
  /* overlay is a bit taller than the video so the intro zoom (heroZoom, scale 1.1 → 1) never shows an unshaded strip */
  .hero.hero--home::after {
    bottom: auto;
    height: calc(var(--hero-mobile-video-h) * 1.07);
    background: linear-gradient(180deg,
      rgba(15, 31, 51, .45) 0%,
      rgba(15, 31, 51, 0) 13%,
      rgba(15, 31, 51, 0) 47%,
      rgba(15, 31, 51, .75) 62%,
      rgba(15, 31, 51, .95) 77%,
      rgb(15, 31, 51) 92%);           /* = --navy-deep, the hero background below the video */
  }
}

.hero__content { position: relative; max-width: 780px; }
.hero__title { color: var(--white); margin-bottom: 1.5rem; }
.hero__title em { color: #E7B98E; }
.hero__text {
  max-width: 580px;
  margin-bottom: 2.25rem;
  font-size: clamp(1.0625rem, .5vw + 1rem, 1.3rem);
  color: rgba(255, 255, 255, .85);
}
.hero .eyebrow { color: #E7B98E; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.hero__actions .btn { flex: 1 1 200px; }
@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .85);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta-item .icon { width: 18px; height: 18px; color: #E7B98E; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  display: none;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  transform: translateX(-50%);
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollCue 2s var(--ease) infinite;
}
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* Inner page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 56vh, 560px);
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.page-hero__media > img,
.page-hero__media > .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 31, 51, .6) 0%, rgba(15, 31, 51, .35) 40%, rgba(15, 31, 51, .88) 100%);
}
.page-hero__content { max-width: 760px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.25rem, 4vw + 1rem, 4rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: var(--fs-lg); max-width: 620px; }

.page-hero--simple { min-height: 0; padding-top: calc(var(--header-h) + 4rem); }
.page-hero--simple::after { background: radial-gradient(ellipse at 80% 0%, rgba(181, 101, 29, .25), transparent 60%); }


/* ==========================================================================
   10. BREADCRUMB
   ========================================================================== */
.breadcrumb { margin-bottom: 1.25rem; font-size: var(--fs-xs); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: var(--gray); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--gray); }

.page-hero .breadcrumb li,
.page-hero .breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb a { color: var(--white); }
.page-hero .breadcrumb a:hover { color: #E7B98E; }


/* ==========================================================================
   11. TRUST BAR & STATS
   ========================================================================== */
.trust-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.trust-bar--overlap { margin-top: -3rem; }
@media (min-width: 900px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .trust-bar--overlap { margin-top: -4.5rem; }
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) {
  .trust-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.75rem;
    border-bottom: 0;
  }
  .trust-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
}
.trust-item .icon { width: 28px; height: 28px; color: var(--copper); stroke-width: 1.6; }
.trust-item__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.875rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}
.trust-item__label { display: block; font-size: var(--fs-xs); color: var(--gray); line-height: 1.4; }

/* Simple strip variant (logos/badges row) */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding-block: 2rem;
  border-block: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy);
}
.trust-strip__item { display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip__item .icon { color: var(--copper); }

/* Stats / counters */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem var(--gap);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: left; }
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 3vw + 1.25rem, 4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--gray);
}
.section--navy .stat__number { color: #E7B98E; }
.section--navy .stat__label { color: rgba(255, 255, 255, .72); border-color: var(--line-dark); }


/* ==========================================================================
   12. CARDS
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--placeholder);
}
.card__media > img,
.card__media > .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  padding: 1.75rem 1.5rem 1.75rem;
}
@media (min-width: 768px) { .card__body { padding: 2rem 2rem 2.25rem; } }
.card__title { margin-bottom: .5rem; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card__text { color: var(--gray); font-size: var(--fs-sm); }
.card__footer { margin-top: auto; padding-top: 1.25rem; }
.card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .35rem .75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Zoom-on-hover for any media wrapper */
.card__media > img,
.card__media > .img-placeholder,
.project-card__media > img,
.project-card__media > .img-placeholder,
.split__media-inner > img,
.zoom > img {
  transition: transform 1s var(--ease-out);
}
.card:hover .card__media > img,
.card:hover .card__media > .img-placeholder,
.project-card:hover .project-card__media > img,
.project-card:hover .project-card__media > .img-placeholder,
.split__media:hover .split__media-inner > img,
.zoom:hover > img {
  transform: scale(1.06);
}

/* Service card */
.service-card .card__body { gap: .5rem; }
.service-card .icon-box { margin-top: -3.75rem; margin-bottom: 1rem; position: relative; z-index: 1; background: var(--white); box-shadow: var(--shadow-sm); }
.service-card:hover .icon-box { background: var(--copper); color: var(--white); }

/* Feature (icon + text, no card chrome) */
.feature { display: flex; flex-direction: column; gap: 1rem; }
.feature--row { flex-direction: row; align-items: flex-start; gap: 1.25rem; }
.feature__title { font-size: 1.25rem; margin-bottom: .35rem; }
.feature__text { color: var(--gray); font-size: var(--fs-sm); }
.section--navy .feature__text { color: rgba(255, 255, 255, .7); }

/* Bordered card (no image) */
.card--plain {
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: none;
}
.card--plain:hover { border-color: transparent; }

/* Area card */
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: var(--navy);
}
.area-card__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1s var(--ease-out); }
.area-card__media > img, .area-card__media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.area-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(15, 31, 51, .9) 100%); }
.area-card:hover .area-card__media { transform: scale(1.06); }
.area-card__title { color: var(--white); margin-bottom: .25rem; }
.area-card__text { font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); }

/* Review card */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review-card__stars { display: flex; gap: 2px; color: var(--star); }
.review-card__stars .icon { width: 18px; height: 18px; fill: currentColor; stroke-width: 1.5; }
.review-card__text { margin: 0; font-size: var(--fs-base); line-height: 1.75; color: #333; }
.review-card__text p::before { content: "\201C"; }
.review-card__text p::after { content: "\201D"; }
.review-card__author {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.review-card__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  flex: none;
}
.review-card__name { display: block; font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.review-card__source { display: block; font-size: var(--fs-xs); color: var(--gray); }
.review-card--placeholder { border: 1.5px dashed #CFC8BE; box-shadow: none; background: #FBFAF8; }
.review-card--placeholder .review-card__text { color: var(--gray); font-style: italic; }
.review-card--placeholder .review-card__text p::before,
.review-card--placeholder .review-card__text p::after { content: none; }

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  color: var(--navy);
}
.rating-badge .review-card__stars .icon { width: 16px; height: 16px; }

/* Project card */
.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  color: var(--white);
  cursor: zoom-in;
  isolation: isolate;
}
.project-card__media { position: relative; overflow: hidden; }
.project-card__media > img,
.project-card__media > .img-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-card--portrait .project-card__media > img,
.project-card--portrait .project-card__media > .img-placeholder { aspect-ratio: 4 / 5; }
.project-card--square .project-card__media > img,
.project-card--square .project-card__media > .img-placeholder { aspect-ratio: 1; }
.grid .project-card__media > img,
.grid .project-card__media > .img-placeholder { aspect-ratio: 4 / 3; }

.project-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 3.5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 31, 51, .88) 100%);
  transition: padding var(--t) var(--ease);
}
.project-card:hover .project-card__overlay { padding-bottom: 1.6rem; }
.project-card__tag {
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  background: var(--copper);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.project-card__title { margin: 0; color: var(--white); font-size: 1.2rem; }
.project-card__meta { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); }
.project-card__meta .icon { width: 14px; height: 14px; }
.project-card__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.project-card__zoom .icon { width: 18px; height: 18px; }
.project-card:hover .project-card__zoom,
.project-card:focus-visible .project-card__zoom { opacity: 1; transform: none; }


/* ==========================================================================
   13. BEFORE / AFTER SLIDER
   ========================================================================== */
.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;               /* vertical scroll stays native; horizontal drag moves the handle */
  cursor: ew-resize;
}
@media (max-width: 639px) { .ba-slider { aspect-ratio: 4 / 3; } }

.ba-slider__img,
.ba-slider .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-slider__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-slider__before .img-placeholder { background-color: #C9C4BC; }

.ba-slider__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: .35rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 31, 51, .75);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba-slider__label--before { left: 1rem; }
.ba-slider__label--after { right: 1rem; background: var(--copper); }

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  outline: none;
}
.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ba-slider__knob .icon { width: 22px; height: 22px; }
.ba-slider:hover .ba-slider__knob,
.ba-slider.is-dragging .ba-slider__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-slider.is-dragging .ba-slider__knob,
.ba-slider__handle:focus-visible .ba-slider__knob { background: var(--copper); color: var(--white); }
.ba-slider__handle:focus-visible .ba-slider__knob { outline: 2px solid var(--white); outline-offset: 3px; }

.ba-caption { margin-top: 1rem; font-size: var(--fs-sm); color: var(--gray); }


/* ==========================================================================
   14. TIMELINE
   ========================================================================== */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, var(--copper), var(--line));
}
.timeline__item { position: relative; padding-bottom: 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  top: 0;
  left: -3rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--copper);
  color: var(--copper);
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg);
}
.section--white .timeline__marker { box-shadow: 0 0 0 6px var(--white); }
.timeline__step {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.timeline__title { font-size: 1.375rem; margin-bottom: .5rem; }
.timeline__text { color: var(--gray); max-width: 520px; }

@media (min-width: 900px) {
  .timeline--center { padding-left: 0; }
  .timeline--center::before { left: 50%; }
  .timeline--center .timeline__item { width: 50%; padding-right: 4rem; text-align: right; }
  .timeline--center .timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 4rem; text-align: left; }
  .timeline--center .timeline__marker { left: auto; right: -16px; }
  .timeline--center .timeline__item:nth-child(even) .timeline__marker { right: auto; left: -16px; }
  .timeline--center .timeline__item:nth-child(odd) .timeline__text { margin-left: auto; }
}


/* ==========================================================================
   15. CAROUSEL (scroll-snap based — native swipe on touch)
   ========================================================================== */
.carousel { --per-view: 1; --carousel-gap: var(--gap); position: relative; }
@media (min-width: 768px) { .carousel { --per-view: 2; } }
@media (min-width: 1100px) { .carousel--3 { --per-view: 3; } }
.carousel--single { --per-view: 1 !important; }

.carousel__track {
  position: relative;
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: .5rem .25rem 1.5rem;
  margin: -.5rem -.25rem 0;
  outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: var(--radius); }

.carousel__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--carousel-gap)) / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.carousel.is-static .carousel__controls { display: none; }

.carousel__arrows { display: flex; gap: .75rem; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  transition: all var(--t-fast) var(--ease);
}
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.section--navy .carousel__btn { background: transparent; border-color: var(--line-dark); color: var(--white); }
.section--navy .carousel__btn:hover { background: var(--white); color: var(--navy); }

.carousel__dots { display: flex; flex-wrap: wrap; gap: .5rem; }
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #CFC8BE;
  transition: width var(--t) var(--ease), background var(--t) var(--ease);
}
.carousel__dot[aria-current="true"] { width: 28px; background: var(--copper); }
.section--navy .carousel__dot { background: rgba(255, 255, 255, .25); }


/* ==========================================================================
   16. ACCORDION
   ========================================================================== */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { margin: 0; font-size: inherit; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
.accordion__trigger:hover { color: var(--copper-dark); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon { background: var(--copper); border-color: var(--copper); color: var(--white); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content { overflow: hidden; }
.accordion__content > div { padding: 0 3.5rem 1.75rem 0; color: var(--gray); }


/* ==========================================================================
   17. FORMS
   ========================================================================== */
.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-card__title { margin-bottom: .5rem; }
.form-card__intro { color: var(--gray); margin-bottom: 2rem; }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-group--full { grid-column: 1 / -1; }
}

.form-group { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }

.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.form-label .required { color: var(--copper); margin-left: 2px; }
.form-label .optional { color: var(--gray); font-weight: 400; font-size: var(--fs-xs); }

.form-control {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;              /* 16px avoids iOS zoom */
  line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: #9A958E; }
.form-control:hover { border-color: #D3CCC2; }
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, .1);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231F3A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-control.is-invalid,
.form-control[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.form-control.is-valid { border-color: #9CC2AA; }

.form-error {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--error);
}
.form-error:empty { display: none; }
.form-hint { font-size: var(--fs-xs); color: var(--gray); }

.form-check { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--fs-sm); color: var(--gray); cursor: pointer; }
.form-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: .15em;
  accent-color: var(--copper);
}

/* Chip-style checkbox/radio group (e.g. "Which services?") */
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  padding: .55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
.form-note { font-size: var(--fs-xs); color: var(--gray); }

.form-status {
  margin-top: 1rem;
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.form-status--error { background: var(--error-bg); color: var(--error); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
  animation: fadeUp .6s var(--ease-out) both;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}
.form-success__icon .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.form-success h3 { margin: 0; }
.form-success p { color: var(--gray); max-width: 440px; }


/* ==========================================================================
   18. FILTERS
   ========================================================================== */
.filters {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .25rem;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .filters { flex-wrap: wrap; justify-content: center; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
.filter-btn {
  flex: none;
  min-height: 44px;
  padding: .6rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active,
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-btn__count { margin-left: .35rem; opacity: .6; font-size: .8em; }

.filter-empty { padding: 3rem 1rem; text-align: center; color: var(--gray); }

.is-hidden { display: none !important; }


/* ==========================================================================
   19. MASONRY (CSS columns)
   ========================================================================== */
.masonry { column-count: 1; column-gap: var(--gap); }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1000px) { .masonry { column-count: 3; } }
.masonry > * {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--gap);
  width: 100%;
}


/* ==========================================================================
   20. LIGHTBOX (built by JS)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem;
  background: rgba(10, 18, 30, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
  touch-action: pan-y;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t) var(--ease), visibility 0s;
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(1200px, 100%);
  transform: scale(.97);
  transition: transform var(--t) var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__media { display: grid; place-items: center; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100svh - 11rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: fadeIn .4s var(--ease) both;
}
.lightbox__placeholder { width: min(900px, 90vw); aspect-ratio: 4 / 3; border-radius: var(--radius); }
.lightbox__caption { color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); text-align: center; }
.lightbox__counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, .7);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background var(--t-fast) var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close .icon,
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
@media (max-width: 639px) {
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}
.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__counter { display: none; }


/* ==========================================================================
   21. CTA BAND, CONTACT LIST, HOURS, MAP, CHIPS
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta-band__media > img,
.cta-band__media > .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(181, 101, 29, .35), transparent 55%),
    linear-gradient(90deg, rgba(22, 43, 71, .96) 0%, rgba(22, 43, 71, .82) 100%);
}
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-group { justify-content: flex-end; } }
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { font-size: var(--fs-lg); }

/* Contact list */
.contact-list { display: grid; gap: 1.5rem; }
.contact-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: .2rem; }
.contact-list__value { font-size: var(--fs-lg); font-weight: 500; color: var(--navy); word-break: break-word; }
a.contact-list__value:hover { color: var(--copper-dark); }

/* Hours */
.hours-list { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.hours-list__day { font-weight: 500; }
.hours-list__time { color: var(--gray); text-align: right; white-space: nowrap; }
.hours-list li.is-today { color: var(--copper-dark); }
.hours-list li.is-today .hours-list__time { color: inherit; font-weight: 600; }

.open-status { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 600; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--success); }
.open-status.is-closed { color: var(--gray); }

/* Map */
.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .map-embed { aspect-ratio: 16 / 9; } }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* Chips (cities, tags) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.chip .icon { width: 16px; height: 16px; color: var(--copper); }
a.chip:hover { border-color: var(--copper); color: var(--copper-dark); }
.section--navy .chip { background: transparent; border-color: var(--line-dark); color: var(--white); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  background: var(--copper-light);
  color: var(--copper-dark);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}


/* ==========================================================================
   22. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .7);
  font-size: var(--fs-sm);
  padding-top: clamp(4rem, 7vw, 6rem);
}
.footer-grid {
  display: grid;
  gap: 3rem 2rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 3rem; } }

.footer-brand { max-width: 320px; }
.footer-brand .site-logo { margin-bottom: 1.5rem; }
.footer-logo { height: 50px; width: auto; }
.logo-text.footer-logo { height: auto; font-size: 1.625rem; }
.footer-brand .site-logo { height: auto; gap: .85rem; }
.footer-brand .site-logo__emblem.footer-emblem { height: 70px; width: 70px; }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E7B98E;
}
.footer-links { display: grid; gap: .65rem; }
.footer-links a { display: inline-block; color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: var(--white); transform: translateX(3px); }
.footer-links a { transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }

.footer-contact { display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: .2em; color: #E7B98E; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: var(--white); }
.site-footer .hours-list { width: 100%; gap: .3rem; }
.site-footer .hours-list li { font-size: var(--fs-xs); }
.site-footer .hours-list__day { color: rgba(255, 255, 255, .85); }
.site-footer .hours-list__time { color: rgba(255, 255, 255, .6); }
.site-footer .hours-list li.is-today .hours-list__day,
.site-footer .hours-list li.is-today .hours-list__time { color: #E7B98E; }

.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .55);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom__links a:hover { color: var(--white); }

.social-links { display: flex; gap: .625rem; }
.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--white);
  transition: all var(--t-fast) var(--ease);
}
.social-link .icon { width: 18px; height: 18px; }
.social-link:hover { background: var(--copper); border-color: var(--copper); }


/* ==========================================================================
   23. MOBILE STICKY CTA BAR
   ========================================================================== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-cta);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(15, 31, 51, .1);
  transition: transform var(--t) var(--ease);
}
.mobile-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.mobile-cta__btn .icon { width: 18px; height: 18px; }
.mobile-cta__btn--call { background: var(--navy); color: var(--white); }
.mobile-cta__btn--estimate { background: var(--copper); color: var(--white); }
.mobile-cta__btn:active { transform: scale(.98); }
.nav-open .mobile-cta,
.lightbox-open .mobile-cta { transform: translateY(110%); }
@media (min-width: 900px) { .mobile-cta { display: none; } }


/* ==========================================================================
   24. IMAGE PLACEHOLDERS (inserted by JS when an image file is missing)
   ========================================================================== */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  padding: 1rem;
  background-color: var(--placeholder);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px);
  color: var(--placeholder-text);
  text-align: center;
  overflow: hidden;
}
.img-placeholder > span {
  max-width: 90%;
  padding: .4em .8em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .75);
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.4;
  word-break: break-all;
}
img.img-placeholder { display: block; }

/* Background-image elements ([data-bg]) whose file is missing */
.bg-placeholder {
  background-color: var(--placeholder) !important;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px) !important;
}
.bg-placeholder::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  max-width: 90%;
  padding: .4em .8em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .75);
  color: var(--placeholder-text);
  font-family: var(--font-mono);
  font-size: .8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* In heroes the file name sits near the top so it never hides the headline */
.hero .img-placeholder,
.page-hero .img-placeholder { align-items: flex-start; padding-top: calc(var(--header-h) + 1rem); }
.hero__media.bg-placeholder::before,
.page-hero__media.bg-placeholder::before { top: calc(var(--header-h) + 1.75rem); }

.bg-placeholder:not([class*="__media"]) { position: relative; }


/* ==========================================================================
   25. SCROLL ANIMATIONS (IntersectionObserver — see main.js)
   Usage: data-animate="fade-up | fade | slide-left | slide-right | zoom"
          data-delay="200"      → delay in ms
          data-stagger="120"    → on a parent: staggers its [data-animate] children
   Only hidden when JS is running (<html class="js">), so content is visible without JS.
   ========================================================================== */
.js [data-animate] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-animate="fade"] { transform: none; }
.js [data-animate="slide-left"] { transform: translate3d(-48px, 0, 0); }
.js [data-animate="slide-right"] { transform: translate3d(48px, 0, 0); }
.js [data-animate="zoom"] { transform: scale(.94); }
.js [data-animate].is-visible { opacity: 1; transform: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Hero intro (plays on load, no observer needed) */
.hero__content > * { animation: fadeUp 1s var(--ease-out) both; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }
.hero__content > *:nth-child(5) { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-animate] { opacity: 1; transform: none; }
  .carousel__track { scroll-behavior: auto; }
}


/* ==========================================================================
   26. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-copper { color: var(--copper-dark); }
.text-navy { color: var(--navy); }
.text-gray { color: var(--gray); }
.text-white { color: var(--white); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); }
.rounded { border-radius: var(--radius); overflow: hidden; }
.shadow { box-shadow: var(--shadow-md); }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mx-auto { margin-inline: auto; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1; }
.object-cover { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   27. HOME PAGE ADDITIONS (index.html)
   ========================================================================== */

/* Hero — longer H1 on the home page */
.hero--home .hero__content { max-width: 920px; }
.hero--home .hero__title { font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem); }

/* Trust band — full-width navy strip under the hero */
.trust-band { background: var(--navy); }
.trust-bar--navy { background: transparent; box-shadow: none; border-radius: 0; }
.trust-bar--navy .trust-item { border-color: var(--line-dark); }
.trust-bar--navy .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
.trust-bar--navy .trust-item .icon { color: #E7B98E; }
.trust-bar--navy .trust-item__value { color: var(--white); }
.trust-bar--navy .trust-item__label { color: rgba(255, 255, 255, .7); }
.trust-item__note { display: block; margin-top: .2rem; font-size: .7rem; letter-spacing: .04em; color: var(--gray); line-height: 1.3; }
.trust-bar--navy .trust-item__note { color: rgba(255, 255, 255, .55); }
.footer-license { font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) {
  .trust-bar--navy .trust-item { padding-block: 2.5rem; }
}

/* Small centered note under a grid */
.section-note { margin-top: 2.5rem; text-align: center; font-size: var(--fs-sm); color: var(--gray); }
.section-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Feature list (Why FS) */
.features-grid { display: grid; gap: 1.75rem; margin-block: 2.5rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.features-grid .icon-box { width: 48px; height: 48px; }
.features-grid .icon-box .icon { width: 22px; height: 22px; }
.features-grid .feature__title { font-size: 1.125rem; }

/* Before/after grid */
.ba-grid { display: grid; gap: var(--gap); }
@media (min-width: 900px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .ba-item--featured { grid-column: 1 / -1; }
  .ba-item--featured .ba-slider { aspect-ratio: 21 / 9; }
}
.ba-item { margin: 0; }
.ba-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }

/* City list (Service areas) */
.city-list { border-top: 1px solid var(--line); margin-block: 2rem; }
.city-list a,
.city-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem .25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, .6vw + 1rem, 1.4rem);
  font-weight: 600;
  color: var(--navy);
}
.city-list .icon { width: 20px; height: 20px; color: var(--copper); }
.city-list__arrow { margin-left: auto; color: var(--gray); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.city-list a:hover { color: var(--copper-dark); }
.city-list a:hover .city-list__arrow { transform: translateX(4px); color: var(--copper); }

/* Full-bleed section with background photo + navy overlay (final CTA) */
.section--image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .82);
}
.section__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.section--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(15, 31, 51, .96) 0%, rgba(31, 58, 95, .88) 55%, rgba(31, 58, 95, .78) 100%);
}
.section--image h2 { color: var(--white); }
.section--image .eyebrow { color: #E7B98E; }
.section--image .lead { color: rgba(255, 255, 255, .8); }
.section--image .contact-list__label { color: rgba(255, 255, 255, .6); }
.section--image .contact-list__value { color: var(--white); }
.section--image a.contact-list__value:hover { color: #E7B98E; }
.section__media.bg-placeholder::before { top: 1.25rem; left: auto; right: 1.25rem; transform: none; }
@media (min-width: 900px) { .split--form { grid-template-columns: .9fr 1.1fr; align-items: start; } }

/* Fieldset used as a form group (Residential / Commercial) */
fieldset.form-group { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.form-group legend { padding: 0; margin-bottom: .5rem; }
.section--image .hours-list { min-width: 240px; }
.section--image .hours-list__day { color: var(--white); }
.section--image .hours-list__time { color: rgba(255, 255, 255, .7); }
.section--image .hours-list li.is-today .hours-list__day,
.section--image .hours-list li.is-today .hours-list__time { color: #E7B98E; }
/* Form card always uses dark text, even inside dark sections */
.form-card { color: var(--text); }


/* ==========================================================================
   ABOUT · REVIEWS · CONTACT pages
   ========================================================================== */
/* Big highlighted numbers (2022 | 1000+) */
.stats--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
@media (min-width: 900px) { .stats--2 { grid-template-columns: repeat(2, 1fr); } }
.stats--2 .stat { text-align: center; }
.stats--2 .stat__number { font-size: clamp(3.25rem, 6vw + 1rem, 6.5rem); }

/* Photo grid (about.html) */
.photo-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid__item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--placeholder);
  box-shadow: var(--shadow-sm);
}
.photo-grid__item > img,
.photo-grid__item > .img-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Average rating summary (reviews.html) */
.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 520px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rating-summary__value {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 5vw + 1rem, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}
.rating-summary__value small { font-size: .35em; font-weight: 500; color: var(--gray); }
.rating-summary .review-card__stars .icon { width: 26px; height: 26px; }
.review-card__stars .icon--off { fill: none; opacity: .35; }
.rating-summary__count { color: var(--gray); font-size: var(--fs-sm); }
.rating-summary .btn { margin-top: .75rem; }
