/* ==========================================================================
   416 Roofing Inc. — Site Styles (v2)
   Brand: crimson red + black + warm off-white. Slab-serif headlines.
   Mobile-first. No framework.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --red: #A8222A;
  --red-700: #8E1B22;
  --red-100: #FBE9EA;
  --black: #0E0E0E;
  --black-700: #1A1A1A;
  --char: #2A2A2A;
  --slate: #4A4A4A;
  --slate-300: #D5D5D5;
  --slate-100: #ECECEC;
  --bg: #F7F4EF;          /* warm off-white (cream) */
  --bg-alt: #EEE9E0;
  --white: #FFFFFF;
  --ink: #161616;
  --ink-soft: #2D2D2D;
  --success: #2F7D4F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 6px 18px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.14), 0 6px 16px rgba(0,0,0,.08);
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-slab: "Roboto Slab", "Zilla Slab", "Rockwell", "Georgia", "Times New Roman", serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-slab);
  color: var(--black);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--black); color: #D8D8D8; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--bg); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #FF6B6B; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 64ch; }
.section--dark .lead { color: #C7C7C7; }
.text-center { text-align: center; }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--red-700); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.85); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--black);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 48px; width: auto; display: block;
  max-width: 100%;
}
@media (max-width: 720px) {
  .brand-logo { height: 38px; }
}
.brand-name {
  display: none;
  flex-direction: column;
  font-family: var(--font-slab);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -.01em;
}
.brand-name small {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .65rem;
  color: var(--slate);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (min-width: 520px) { .brand-name { display: inline-flex; } }

.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 10px 14px;
  color: var(--ink); font-weight: 700; font-size: .95rem;
  border-radius: 6px;
}
.nav-links a:hover { background: var(--slate-100); text-decoration: none; }
.nav-links a.active { color: var(--red); }
.nav-cta { display: inline-flex; gap: 10px; align-items: center; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone:hover { text-decoration: none; color: var(--red); }
.nav-phone svg { color: var(--red); flex-shrink: 0; }
.nav-phone-text { display: inline; }
/* Tablet & smaller desktop: hide phone number text, keep icon clickable */
@media (max-width: 1080px) {
  .nav-phone-text { display: none; }
}

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--slate-300);
  border-radius: 8px; padding: 8px 10px;
  color: var(--black);
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--slate-100);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-open .nav-links a { padding: 14px 12px; border-bottom: 1px solid var(--slate-100); border-radius: 0; }
  .nav-open .nav-cta .btn { display: inline-flex; margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: brightness(.55) saturate(.85);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 100%),
    radial-gradient(circle at 12% 18%, rgba(168,34,42,.45), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 92px 0 100px;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.2fr .8fr; align-items: end; padding: 120px 0 120px; } }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent {
  color: #fff;
  background: linear-gradient(180deg, transparent 65%, var(--red) 65%, var(--red) 92%, transparent 92%);
  padding: 0 4px;
}
.hero p.lead { color: #E8E1D9; font-size: 1.2rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px;
  color: #C7C0B7; font-size: .92rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: #FF6B6B; flex-shrink: 0; }

/* Hero quote card */
.quote-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red);
}
.quote-card h3 { margin-bottom: 6px; font-family: var(--font-slab); }
.quote-card .muted { font-size: .92rem; }
.form-row { display: grid; gap: 12px; margin-top: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .form-row.two { grid-template-columns: 1fr; } }
label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--slate-300);
  border-radius: 8px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(168,34,42,.15);
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--slate); margin-top: 10px; }

/* ---------- Upload zone (photos field) ---------- */
.upload-zone {
  position: relative;
  border: 2px dashed var(--slate-300);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(247, 244, 239, .5);
  transition: border-color .15s ease, background .15s ease;
}
.upload-zone:hover { border-color: var(--red); background: rgba(168, 34, 42, .04); }
.upload-zone:focus-visible { border-color: var(--red); outline: 3px solid var(--red); outline-offset: 2px; }
.upload-zone.dragover { border-color: var(--red); background: rgba(168, 34, 42, .08); border-style: solid; }
.upload-zone.has-files { padding: 14px; text-align: left; }
.upload-prompt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--slate);
  pointer-events: none;
}
.upload-prompt strong { color: var(--ink); font-weight: 700; }
.upload-prompt svg { color: var(--red); margin-bottom: 4px; }
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.upload-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--slate-100);
  box-shadow: var(--shadow-sm);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview .icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
  font-size: .7rem; font-weight: 700; text-align: center; padding: 8px;
}
.upload-preview .remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; padding: 0;
  background: rgba(0, 0, 0, .72); color: #fff;
  border: 0; border-radius: 50%;
  font-size: 14px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.upload-preview .remove:hover { background: var(--red); }
.upload-preview .filename {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: .7rem; padding: 4px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-add-more {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px dashed var(--slate-300);
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  color: var(--slate);
  font-size: 1.8rem; font-weight: 300; line-height: 1;
  background: var(--white);
  transition: border-color .15s ease, color .15s ease;
}
.upload-add-more:hover { border-color: var(--red); color: var(--red); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--slate-100);
  padding: 26px 0;
}
.trust-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px;
  align-items: stretch;
}
@media (min-width: 760px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li {
  font-weight: 800; color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: .98rem;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
}
.trust-strip svg { color: var(--red); flex-shrink: 0; }
/* Elevate the warranty item — it's the highest-trust signal in the row */
.trust-strip li.headline {
  background: var(--red);
  color: #fff;
}
.trust-strip li.headline svg { color: #fff; }
@media (max-width: 760px) {
  .trust-strip li.headline { grid-column: 1 / -1; }
}

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Services grid ---------- */
.services {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.service-card.featured { border-top: 4px solid var(--red); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--red-100); color: var(--red);
  border-radius: 10px;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; font-family: var(--font-slab); }
.service-card p { color: var(--slate); margin-bottom: 16px; }
.service-card .more {
  margin-top: auto; font-weight: 800; color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 24px; right: 24px;
  color: rgba(255,107,107,.35);
  font-family: var(--font-slab);
  font-weight: 900; font-size: 2.6rem; line-height: 1;
  letter-spacing: -.02em;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 18px;
}
.step h3 { color: #fff; margin-bottom: 6px; font-family: var(--font-slab); }
.step p { color: #C7C0B7; font-size: .95rem; margin: 0; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.stars { color: #F5A623; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--ink-soft); }
.review .who { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--slate); }
.review .who strong { color: var(--black); }

/* ---------- Brand strip (materials/builder logos) ---------- */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 22px 44px;
  align-items: center; justify-content: center;
  color: var(--slate);
}
.brand-strip .brand-tag {
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--slate-300);
  border-radius: 999px;
  font-weight: 700;
  color: var(--black);
}
/* Builder partners — soft rounded tiles, echoing the site's radius language.
   No borders, no heavy shadows; the rounded white-on-cream contrast does the work. */
.builder-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4px 8px;
}
.builder-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 10px 18px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  opacity: .94;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.builder-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.builder-logo img {
  max-height: 64px;
  width: auto; height: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: none;
}
@media (min-width: 600px) {
  .builder-logos { gap: 14px; }
  .builder-logo { height: 96px; padding: 12px 22px; }
  .builder-logo img { max-height: 74px; max-width: 230px; }
}
@media (min-width: 900px) {
  .builder-logos { gap: 16px; }
  .builder-logo { height: 108px; padding: 14px 26px; }
  .builder-logo img { max-height: 84px; max-width: 260px; }
}

/* ---------- Service-area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px; align-items: center;
}
@media (min-width: 880px) { .area-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px;
}
.area-list li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-weight: 600;
}
.area-list li::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--black);
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-family: var(--font-slab);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--red); font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- Final CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
}
.cta-banner-inner {
  display: grid; gap: 22px;
  grid-template-columns: 1fr; align-items: center;
  padding: 60px 0;
}
@media (min-width: 820px) { .cta-banner-inner { grid-template-columns: 1.4fr auto; padding: 70px 0; } }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.94); margin: 0; }
.cta-banner .btn--primary { background: #fff; color: var(--red); }
.cta-banner .btn--primary:hover { background: var(--black); color: #fff; }
.cta-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #B8B8B8;
  padding: 64px 0 24px;
  font-size: .95rem;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-family: var(--font-slab); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B8B8B8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-logo { filter: brightness(1.05); }
.footer-legal {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: #888; font-size: .85rem;
}
.social-row {
  display: flex; gap: 10px; margin-top: 14px;
}
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: #C7C7C7;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--black);
  color: #fff;
  border-top: 2px solid var(--red);
  padding: 10px;
  gap: 10px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.3);
}
.call-bar .btn { padding: 14px 12px; }
/* Call action takes 60% width — primary action on mobile is to call */
.call-bar .btn.call-primary { flex: 1.6; background: var(--red); color: #fff; border-color: var(--red); }
.call-bar .btn.call-primary:hover { background: var(--red-700); border-color: var(--red-700); }
.call-bar .btn.quote-secondary { flex: 1; }
@media (max-width: 760px) {
  .call-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--black);
  color: #fff;
  padding: 92px 0 70px;
  position: relative;
  isolation: isolate;
}
.page-hero.with-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  background-image: var(--page-hero-bg, none);
  filter: brightness(.45) saturate(.85);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%),
              radial-gradient(circle at 90% 100%, rgba(168,34,42,.35), transparent 50%);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #E8E1D9; max-width: 60ch; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: #B5A99B; margin-bottom: 18px; }
.crumbs a { color: #B5A99B; }
.crumbs a:hover { color: #fff; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: #fff;
  display: block;
  background: var(--black);
}
.gallery .tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery .tile:hover img { transform: scale(1.04); }
.gallery .tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.7));
}
.gallery .tile .caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
}
.gallery .tile .caption span {
  display: block; font-weight: 800; font-size: 1rem; font-family: var(--font-slab);
}
.gallery .tile .caption small {
  display: block; color: #D9D0C6; font-size: .82rem; margin-top: 2px;
}

/* ---------- Service detail rows (services.html) ---------- */
.svc-row {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  padding: 60px 0;
  border-bottom: 1px solid var(--slate-100);
}
.svc-row:last-child { border-bottom: 0; }
@media (min-width: 880px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .svc-row.flip > .svc-visual { order: -1; }
}
.svc-visual {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: var(--black);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.svc-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.svc-visual .label {
  position: absolute; left: 22px; bottom: 22px;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  background: rgba(0,0,0,.7);
  padding: 8px 14px; border-radius: 6px;
  backdrop-filter: blur(6px);
  font-family: var(--font-slab);
}
.svc-body h2 { margin-bottom: 12px; }
.svc-body ul {
  padding: 0; margin: 16px 0 22px; list-style: none;
}
.svc-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.svc-body ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 800;
}

/* ---------- About / split layout ---------- */
.split {
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }
.stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 30px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-slab);
  font-size: 2.4rem; font-weight: 900;
  color: var(--red); line-height: 1; margin-bottom: 6px;
}
.stat-label { color: var(--slate); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Photo block (rounded image used in About/Builders) ---------- */
.photo-block {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--black);
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Utilities ---------- */
@media (max-width: 720px) { .hide-sm { display: none !important; } }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--slate-100); margin: 24px 0; }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--black); color: #fff; padding: 8px 14px;
  border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Projects map (gallery.html) ---------- */
.project-map {
  height: clamp(520px, 65vh, 760px);
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
  background: var(--slate-100);
  position: relative;
  z-index: 0;
}
@media (max-width: 720px) { .project-map { height: clamp(420px, 60vh, 560px); } }
.project-map .map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-weight: 700;
  z-index: 1;
}
.map-error { padding: 32px; text-align: center; color: var(--slate); }
.map-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
}
@media (max-width: 760px) {
  .map-toolbar { grid-template-columns: 1fr; }
  .filter-reset { justify-self: flex-start; }
}
.map-stats {
  font-size: 1rem; color: var(--ink-soft);
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--slate-100);
  white-space: nowrap;
}
.map-stats strong {
  font-family: var(--font-slab);
  font-size: 1.35rem;
  color: var(--red);
  letter-spacing: -.01em;
  margin-right: 4px;
}
.map-filters {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;     /* allow horizontal-scroll children to shrink */
}
.map-filters fieldset {
  border: 0; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
/* Horizontal scrolling pill row — keeps map dominant on the page */
.map-filters .filter-pills {
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  scroll-snap-type: x proximity;
}
.map-filters .filter-pills::after {
  content: ''; flex: 0 0 4px;
}
.map-filters .filter-pills .pill { scroll-snap-align: start; flex: 0 0 auto; }
.filter-label {
  font-size: .78rem; font-weight: 800;
  color: var(--slate); letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: 4px;
  min-width: 70px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }   /* default; overridden inside .map-filters to single-row scrollable */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid var(--slate-300);
  border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.active { background: var(--red); border-color: var(--red); color: #fff; }
.pill.active .pill-count { background: rgba(255,255,255,.25); color: #fff; }
.pill-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 0 6px; height: 18px;
  background: var(--slate-100); color: var(--slate);
  border-radius: 999px;
  font-size: .72rem; font-weight: 800;
}
.pill--service { font-size: .78rem; padding: 5px 11px; }
.filter-reset {
  margin-left: auto;
  align-self: flex-end;
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--slate);
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.filter-reset:hover { color: var(--red); }
.map-note {
  margin-top: 14px; font-size: .82rem; color: var(--slate);
  display: flex; align-items: flex-start; gap: 8px;
}

/* Google Maps InfoWindow popup */
.gmaps-popup {
  width: 280px;
  font-family: var(--font-sans);
  color: var(--ink);
  padding-bottom: 14px;     /* breathing room so the CTA descenders aren't clipped */
}
.gmaps-popup__sv {
  margin: 0 0 10px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-100);
}
.gmaps-popup__sv img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.gmaps-popup__body { padding: 0 14px; }
.gmaps-popup__addr {
  display: block;
  font-family: var(--font-slab);
  font-weight: 900; font-size: 1.02rem;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 2px;
}
.gmaps-popup__region {
  font-size: .72rem; color: var(--slate);
  text-transform: uppercase; letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 8px;
}
.gmaps-popup__svcs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 6px 0 8px;
}
.gmaps-popup__svc {
  display: inline-block;
  background: var(--red-100);
  color: var(--red);
  font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: .01em;
}
.gmaps-popup__photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin: 8px 0;
}
.gmaps-popup__photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 4px;
}
.gmaps-popup__year {
  font-size: .76rem; color: var(--slate);
  margin-top: 4px;
}
.gmaps-popup__cta {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800; font-size: .85rem;
  color: var(--red);
}
.gmaps-popup__cta:hover { color: var(--red-700); text-decoration: none; }

/* Strip Google's default InfoWindow chrome — clean edge-to-edge popup */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.20) !important;
  max-width: 320px !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
  padding: 0 !important;
}
/* Pull the close button up and overlay it on top of the Street View image */
.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  height: auto !important;
  padding: 0 !important;
  z-index: 5;
}
.gm-style .gm-style-iw-chr button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  margin: 8px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.94) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  /* Centre Google's inner <span> icon regardless of its own positioning */
  display: grid !important;
  place-items: center !important;
}
.gm-style .gm-style-iw-chr button:hover { background: #fff !important; }
/* Force the inner X icon to centre — override Google's offsets */
.gm-style .gm-style-iw-chr button > span,
.gm-style .gm-style-iw-chr button > * {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  position: static !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
}
/* The little tail arrow pointing down at the marker */
.gm-style .gm-style-iw-tc::after {
  background: #fff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,.1) !important;
}

.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;
}

/* Print */
@media print {
  .site-header, .call-bar, .cta-banner, .site-footer, .hero-actions, .quote-card { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
