/* ==========================================================================
   Silver Saw — Handyman & Home Improvement
   Main stylesheet (shared by index.html, gallery.html, quote.html)

   Contents
   1.  Design tokens (colors, fonts, spacing)
   2.  Base / reset
   3.  Layout helpers & typography
   4.  Buttons & icons
   5.  Header & navigation
   6.  Hero & page banners
   7.  Home sections (trust strip, about, services, steps, why us,
       gallery preview, testimonials, service area, CTA banner)
   8.  Gallery page (filters, grid, lightbox, before/after)
   9.  Quote page (form, contact card, FAQ)
   10. Footer & mobile action bar
   11. Scroll-in animations
   12. Responsive breakpoints
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  /* Palette pulled from the Silver Saw logo:
     charcoal hex background, brushed silver, and aqua/teal roofline. */
  --ink: #121317;          /* logo background charcoal */
  --ink-2: #1b1d23;        /* raised dark surfaces */
  --ink-3: #2a2e36;        /* borders on dark */
  --steel: #5b636e;        /* muted text on light */
  --silver: #c4cad1;       /* silver highlights */
  --silver-2: #e6e9ed;     /* light borders */
  --mist: #f4f6f8;         /* alternate light section bg */
  --white: #ffffff;

  --aqua: #72cacc;         /* logo accent — use on DARK backgrounds */
  --aqua-bright: #84dddb;  /* hover state on dark */
  --teal: #0b6e71;         /* accessible accent on LIGHT backgrounds (≥5:1) */
  --teal-dark: #08575a;

  --text: #1d2026;         /* body text on light */
  --star: #f5b301;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(18, 19, 23, .06);
  --shadow: 0 12px 32px rgba(18, 19, 23, .10);
  --shadow-lg: 0 24px 60px rgba(18, 19, 23, .18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base / reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Dark html background: on iPhone the page runs edge to edge (viewport-fit=cover),
   so the status-bar area and overscroll match the dark header instead of showing white. */
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  /* iOS 26 Safari tints the status bar from the body background (it ignores
     theme-color), so body is dark to match the header; the white page
     background lives on <main> instead. */
  background: var(--ink);
  padding-top: calc(var(--header-h) + 1px + env(safe-area-inset-top)); /* room for the fixed header (+1px border) */
  -webkit-font-smoothing: antialiased;
}
main { background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--aqua); color: var(--ink); }

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--aqua); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  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. Layout helpers & typography ------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--silver); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Small label above section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .banner .eyebrow, .cta-banner .eyebrow { color: var(--aqua); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--steel); }
.section--dark .lead { color: var(--silver); }

.accent { color: var(--aqua); }

/* 4. Buttons & icons ------------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

/* Primary: aqua on charcoal text — matches the logo roofline */
.btn--primary { background: var(--aqua); color: var(--ink); box-shadow: 0 8px 24px rgba(114, 202, 204, .35); }
.btn--primary:hover { background: var(--aqua-bright); color: var(--ink); box-shadow: 0 12px 30px rgba(114, 202, 204, .45); }

/* Ghost: for use on dark backgrounds/photos */
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }

/* Dark: for use on light backgrounds */
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--teal); color: var(--white); }

.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }


/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  /* Fixed (not sticky) and solid: iOS 26 Safari takes the status-bar color from
     fixed elements, so this keeps the top of the screen dark like the header.
     body gets matching padding-top so content starts below it. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--ink-3);
  transition: box-shadow .25s, transform .3s var(--ease);
}
/* Phones: header slides away while scrolling down, back on scroll up (see main.js) */
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; border-radius: 6px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--silver); text-decoration: none; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; border-radius: 2px;
  background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }
/* Current page highlight */
.main-nav a[aria-current="page"] { color: var(--aqua); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-call { flex: none; }
.header-call .btn-label-short { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; flex: none;
  border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 6. Hero & page banners --------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: center;
  padding-block: 120px 160px; color: var(--silver-2);
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Dark overlay keeps the text readable on any photo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 23, .94) 0%, rgba(18, 19, 23, .78) 45%, rgba(18, 19, 23, .35) 100%),
    linear-gradient(0deg, rgba(18, 19, 23, .7) 0%, transparent 40%);
}
.hero__content { max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .accent { display: block; }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 600px; margin-bottom: 34px; color: #d5dade; }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: .95rem; color: var(--silver); }
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { color: var(--aqua); }

/* Inner page banner (gallery / quote) */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(80px, 11vw, 140px) clamp(56px, 8vw, 96px);
  background: var(--ink); color: var(--silver-2);
}
.banner__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 19, 23, .93), rgba(18, 19, 23, .6)); }
.banner h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 12px; }
.banner p { max-width: 620px; font-size: 1.15rem; margin: 0; color: #d5dade; }
.breadcrumb { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; font-size: .9rem; color: var(--silver); }
.breadcrumb a { color: var(--aqua); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* 7. Home sections --------------------------------------------------------- */

/* Trust strip — overlaps the bottom of the hero */
.trust { position: relative; z-index: 2; margin-top: -80px; }
.trust__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trust__item { display: flex; align-items: center; gap: 16px; padding: 28px 26px; }
.trust__item + .trust__item { border-left: 1px solid var(--silver-2); }
.trust__icon {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px;
  background: var(--ink); color: var(--aqua);
}
.trust__icon .icon { width: 26px; height: 26px; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); line-height: 1.1; }
.trust__item span { font-size: .92rem; color: var(--steel); }

/* About — photo + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* Decorative steel frame offset behind the photo */
.split__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
  border: 3px solid var(--aqua); border-radius: var(--radius);
}
.split--reverse .split__media::before { inset: 24px 24px -24px -24px; }
.media-badge {
  position: absolute; left: -20px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg);
}
.split--reverse .media-badge { left: auto; right: -20px; }
.media-badge .icon { width: 34px; height: 34px; color: var(--aqua); }
.media-badge strong { display: block; font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.media-badge span { font-size: .88rem; color: var(--silver); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 32px; }
.pill-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--silver-2); font-weight: 600; font-size: .95rem;
}
.pill-list .icon { color: var(--teal); width: 18px; height: 18px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--silver-2); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
/* Accent bar that slides in on hover */
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; margin-bottom: 22px;
  background: var(--ink); color: var(--aqua); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.service-card__icon .icon { width: 30px; height: 30px; stroke-width: 1.75; }
.service-card:hover .service-card__icon { background: var(--aqua); color: var(--ink); transform: rotate(-6deg); }
.service-card h3 { margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.service-card p { color: var(--steel); font-size: 1rem; margin: 0; }

/* How it works — 3 steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 36px 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-3); }
.step__num {
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-head); font-size: 4.5rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-3);
}
.step__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--aqua); color: var(--ink); margin-bottom: 22px; }
.step__icon .icon { width: 28px; height: 28px; }
.step h3 { color: var(--white); text-transform: uppercase; }
.step p { margin: 0; color: var(--silver); }
/* Arrow connectors between steps (desktop) */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 64px; right: -22px; z-index: 1;
  width: 16px; height: 16px; border-top: 3px solid var(--aqua); border-right: 3px solid var(--aqua); transform: rotate(45deg);
}

/* Why choose us — checklist */
.checklist { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.checklist .check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--white); }
.checklist .check .icon { width: 18px; height: 18px; stroke-width: 3; }
.checklist strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.checklist span { color: var(--steel); font-size: 1rem; }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px 28px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--silver-2); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review::before {
  content: "\201C"; position: absolute; top: 4px; right: 22px;
  font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--silver-2);
}
.stars { display: flex; gap: 3px; color: var(--star); margin-bottom: 16px; }
.stars .icon { width: 20px; height: 20px; }
.review blockquote { margin: 0 0 24px; flex: 1; font-size: 1.02rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--silver-2); padding-top: 18px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--aqua); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; flex: none; }
.review figcaption strong { display: block; line-height: 1.2; }
.review figcaption span { font-size: .88rem; color: var(--steel); }
/* Clearly visible label so placeholders don't go live by accident */
.placeholder-tag {
  position: absolute; top: -11px; left: 24px; padding: 3px 10px; border-radius: 6px;
  background: #fff4d6; color: #7a5300; border: 1px dashed #d49b00; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.town-list { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.town-list li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--silver-2); font-weight: 600;
  transition: border-color .2s, transform .2s var(--ease);
}
.town-list li:hover { border-color: var(--teal); transform: translateX(3px); }
.town-list .icon { color: var(--teal); }
.travel-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--ink); color: var(--silver); font-size: .98rem; }
.travel-note .icon { color: var(--aqua); width: 24px; height: 24px; margin-top: 2px; }
.travel-note strong { color: var(--white); }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--silver-2); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Final CTA banner */
.cta-banner { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 9vw, 110px); color: var(--silver-2); background: var(--ink); }
.cta-banner__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(18, 19, 23, .95) 30%, rgba(11, 110, 113, .82)); }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { margin: 0; font-size: 1.15rem; max-width: 560px; }

/* 8. Gallery page ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  min-height: 44px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--silver-2); background: var(--white); color: var(--ink);
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--aqua); }

/* Masonry layout with CSS columns */
.masonry { columns: 3 300px; column-gap: 18px; }
.g-item { break-inside: avoid; margin: 0 0 18px; }
.g-item[hidden] { display: none; }
.g-item.is-entering { animation: fadeUp .45s var(--ease) both; }
.g-link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); cursor: zoom-in; }
.g-link img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.g-link:hover img, .g-link:focus-visible img { transform: scale(1.05); opacity: .55; }
.g-caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; color: var(--white);
  background: linear-gradient(0deg, rgba(18, 19, 23, .92), transparent);
  transform: translateY(12px); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.g-link:hover .g-caption, .g-link:focus-visible .g-caption { transform: none; opacity: 1; }
.g-caption strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.g-caption span { font-size: .9rem; color: var(--aqua); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.g-zoom { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--aqua); color: var(--ink); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.g-link:hover .g-zoom, .g-link:focus-visible .g-zoom { opacity: 1; transform: none; }
.gallery-empty { text-align: center; color: var(--steel); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 11, 14, .94);
  padding: calc(64px + env(safe-area-inset-top)) 72px calc(64px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.lightbox__img { max-height: calc(100vh - 180px); width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s; }
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption { margin-top: 16px; color: var(--silver); }
.lightbox__caption strong { color: var(--white); font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 10px; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.lb-btn:hover { background: var(--aqua); color: var(--ink); }
.lb-btn .icon { width: 26px; height: 26px; }
.lb-close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; top: 28px; left: 24px; color: var(--silver); font-family: var(--font-head); letter-spacing: .1em; font-size: 1.1rem; }
body.no-scroll { overflow: hidden; }

/* Before / after slider */
/* Portrait (3:4) slider beside a landscape (4:3) one: 9fr / 16fr gives both the same height */
.ba-grid { display: grid; grid-template-columns: 9fr 16fr; gap: 28px; max-width: 1100px; margin-inline: auto; }
.ba-card h3 { text-transform: uppercase; margin: 18px 0 4px; }
.ba-card p { color: var(--steel); margin: 0; font-size: 1rem; }
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--ink);
  box-shadow: var(--shadow); user-select: none; touch-action: pan-y;
}
.ba--landscape { aspect-ratio: 4 / 3; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--white); pointer-events: none;
}
.ba__handle::after {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--aqua); color: var(--ink); font-weight: 800; font-size: 1.4rem; line-height: 48px; text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.ba__label { position: absolute; bottom: 14px; padding: 4px 12px; border-radius: 6px; background: rgba(18, 19, 23, .8); color: var(--white); font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; pointer-events: none; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
/* Invisible range input on top = keyboard + touch accessible control */
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* 9. Quote page ------------------------------------------------------------ */
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--silver-2); box-shadow: var(--shadow); }
.form-card { padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .98rem; color: var(--ink); }
.req { color: #b42318; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid #c9cfd6; background: var(--white); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23121317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 110, 113, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.field-error { display: none; color: #b42318; font-size: .9rem; font-weight: 500; }
.field.has-error .field-error { display: block; }
.hint { font-size: .88rem; color: var(--steel); }

/* Preferred contact — segmented radio buttons */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.segmented label { position: relative; flex: 1; min-width: 90px; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid #c9cfd6; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
  transition: border-color .2s, background-color .2s, color .2s;
}
.segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--aqua); }
.segmented input:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Drag & drop style file input */
.upload {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-sm);
  border: 2px dashed #c9cfd6; background: var(--mist); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.is-dragover { border-color: var(--teal); background: #eaf6f6; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--aqua); flex: none; }
.upload strong { display: block; }
.upload__text .hint { display: block; }
.upload input:focus-visible ~ .upload__text { outline: 3px solid var(--aqua); outline-offset: 4px; border-radius: 4px; }

.form-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.form-actions .btn { min-height: 58px; font-size: 1.3rem; }
.form-actions .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-note { font-size: .88rem; color: var(--steel); text-align: center; margin: 0; }
.hp-field { position: absolute; left: -9999px; }

.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-error { display: block; background: #fdecea; color: #8a1c12; border: 1px solid #f3c3bd; }

/* Success state replaces the form */
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.is-visible { display: block; animation: fadeUp .5s var(--ease) both; }
.form-success__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--aqua); color: var(--ink); }
.form-success__icon .icon { width: 42px; height: 42px; stroke-width: 2.5; }
.form-success p { color: var(--steel); max-width: 440px; margin-inline: auto; }

/* Contact info card */
.contact-card { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; background: var(--ink); color: var(--silver); border-color: var(--ink-3); }
.contact-card__logo { background: var(--ink); padding: 26px 26px 0; }
.contact-card__logo img { width: 100%; max-width: 280px; border-radius: 8px; }
.contact-card__body { padding: 26px; }
.contact-card h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--aqua); }
.contact-list small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa3ad; font-weight: 600; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { color: var(--aqua); }
.contact-list p { margin: 0; color: var(--silver-2); }
.contact-card .btn { width: 100%; }

/* FAQ accordion (native <details>) */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--silver-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mist); color: var(--teal); font-size: 1.5rem; font-family: var(--font-body); font-weight: 400; transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--aqua); color: var(--ink); }
.faq summary:hover { color: var(--teal); }
.faq details p { padding: 0 4px 22px; margin: 0; color: var(--steel); max-width: 720px; }

/* 10. Footer & mobile action bar ----------------------------------------- */
.site-footer { background: var(--ink); color: var(--silver); padding-top: clamp(56px, 7vw, 88px); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--aqua), var(--silver)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 220px; border-radius: 8px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: .98rem; }
.site-footer h3 { color: var(--white); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--silver); text-decoration: none; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--aqua); padding-left: 4px; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.footer-phone .icon { color: var(--aqua); }
.footer-phone:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid var(--ink-3); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: #9aa3ad; }
.footer-bottom p { margin: 0; }

/* Sticky "Call Now / Get Quote" bar — phones only */
.mobile-bar { display: none; }

/* Floating Google rating card ("G  4.9 ★★★★★ / 116 Google reviews") — links to the Google Maps listing.
   Update the score and count in the badge markup on every page when they change. */
.reviews-badge {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; border-radius: 16px;
  background: var(--white); color: var(--ink); border: 1px solid rgba(18, 19, 23, .06);
  box-shadow: 0 6px 24px rgba(18, 19, 23, .14);
  font-family: var(--font-body); line-height: 1.2; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.reviews-badge:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(18, 19, 23, .2); }
.reviews-badge:focus-visible { outline-color: var(--teal); border-radius: 16px; }
.reviews-badge__g { width: 26px; height: 26px; flex: none; }
.reviews-badge__body { display: grid; gap: 3px; }
.reviews-badge__top { display: flex; align-items: center; gap: 8px; }
.reviews-badge__score { font-size: 1.35rem; font-weight: 700; line-height: 1; color: var(--ink); }
.reviews-badge__stars { display: inline-flex; gap: 1px; color: var(--star); }
.reviews-badge__stars .icon { width: 14px; height: 14px; }
.reviews-badge__count { font-size: .8rem; color: #5f6368; }

/* 11. Scroll-in animations ------------------------------------------------- */
/* Only hide elements when JS is running (html.js), so content is never lost */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Sideways slide-ins must never cause horizontal scrolling */
main { overflow-x: clip; }
@media (max-width: 720px) {
  .js [data-reveal="left"]:not(.is-visible), .js [data-reveal="right"]:not(.is-visible) { transform: translateY(28px); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--silver-2); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 46px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-call { margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-3); box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s var(--ease), visibility .35s;
  }
  .main-nav.is-open { max-height: 400px; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px var(--gutter) 22px; }
  .main-nav a { padding: 16px 4px; font-size: 1.35rem; border-bottom: 1px solid var(--ink-3); }
  .main-nav a::after { left: 4px; right: auto; width: 40px; bottom: 10px; }

  .split, .area, .quote-layout { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 560px; }
  .split__media img { aspect-ratio: 4 / 3; }
  .contact-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -22px; right: auto; left: 50px; transform: rotate(135deg); }
  .ba-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; padding-bottom: 72px; } /* room for mobile bar */
  .header-call .btn-label { display: none; }
  .header-call { padding: 0; width: 46px; min-height: 46px; height: 46px; }
  .hero { min-height: auto; padding-block: 88px 140px; }
  .hero::before { background: linear-gradient(0deg, rgba(18, 19, 23, .92), rgba(18, 19, 23, .75)); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .services-grid, .reviews { grid-template-columns: 1fr; }
  .trust { margin-top: -70px; }
  .trust__item { flex-direction: column; text-align: center; gap: 10px; padding: 22px 12px; }
  .trust__item strong { font-size: 1.15rem; }
  .trust__item span { font-size: .82rem; }
  .media-badge { left: 12px; bottom: 12px; padding: 14px 16px; }
  .split--reverse .media-badge { right: 12px; }
  .split__media::before { inset: 14px -10px -14px 14px; }
  .split--reverse .split__media::before { inset: 14px 14px -14px -10px; }
  .town-list { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner__inner .btn-row { width: 100%; }
  .cta-banner__inner .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lightbox { padding: calc(64px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom)); }
  .lb-prev, .lb-next { top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }

  /* Mobile action bar */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 19, 23, .97); border-top: 1px solid var(--ink-3); box-shadow: 0 -8px 24px rgba(0, 0, 0, .3);
  }
  .mobile-bar .btn { min-height: 50px; padding: 8px 12px; font-size: 1.1rem; }
  .reviews-badge { left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); gap: 10px; padding: 8px 14px 8px 11px; border-radius: 14px; }
  .reviews-badge__g { width: 22px; height: 22px; }
  .reviews-badge__score { font-size: 1.15rem; }
  .reviews-badge__stars .icon { width: 12px; height: 12px; }
  .reviews-badge__count { font-size: .72rem; }
}

@media (max-width: 420px) {
  .town-list { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
}

/* Print: drop decorative chrome */
@media print {
  .site-header, .mobile-bar, .hero__bg, .cta-banner, .lightbox, .reviews-badge { display: none !important; }
  body { padding: 0; }
}
