/* Elite Roofing Company of Miami. One shared stylesheet. */

:root {
  --ink: #14283a;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #d7e2ee;
  --muted: #3e5164;
  --c-primary: #0b3a6e;
  --c-accent: #e15a12;
  --c-tint: #e7f3fc;
  --c-deep: #0b3a6e;
  --c-on-deep: #ffffff;
  --c-on-accent: #1c1408;
  --accent: var(--c-accent);
  --accent-ink: #9a3412;
  --header: #ffffff;
  --max: 1120px;
  --pad: max(1.25rem, 20px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }

.wrap { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--card);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}
.skip:focus { top: 0.75rem; }

.site-header {
  background: #ffffff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid var(--c-primary);
}

.site-header a { color: var(--ink); text-decoration: none; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 9.5rem; height: auto; background: transparent; }
.brand-name { display: none; }

.nav-links { display: flex; gap: 1.15rem; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 0.98rem; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.call, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 0.95rem;
  background: var(--c-accent);
  color: var(--c-on-accent) !important;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--c-accent);
}
.ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--c-primary);
}
.hero-scrim .ghost {
  color: #ffffff !important;
  border-color: #ffffff;
}
.nav-toggle {
  display: none;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--c-primary);
  min-height: 2.7rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 700;
}

.hero { position: relative; min-height: 78vh; color: var(--c-on-deep); background: var(--c-deep); }
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: relative;
  min-height: 78vh;
  background: linear-gradient(90deg, var(--c-deep) 0%, var(--c-deep) 42%, color-mix(in srgb, var(--c-deep) 78%, transparent) 70%, color-mix(in srgb, var(--c-deep) 28%, transparent) 100%);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}
.hero-scrim h1, .hero-scrim .lede, .hero-scrim .eyebrow, .hero-scrim p { color: var(--c-on-deep); }
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.lede { font-size: 1.2rem; max-width: 38rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero-scrim > .wrap {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}
.hero-solo { grid-template-columns: 1fr; }
.hero-solo > div:first-child { max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.band { padding: 5rem 0; }
.band-dark { background: var(--c-deep); color: var(--c-on-deep); }
.band-dark a { color: #ffffff; }
.band-paper { background: var(--paper); }
.band-card { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.photo-band { position: relative; min-height: 28rem; color: var(--c-on-deep); }
.photo-band .hero-scrim { min-height: 28rem; align-items: flex-end; padding: 3rem 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c-deep) 10%, transparent), var(--c-deep) 78%); }
.photo-band h2, .photo-band p { color: var(--c-on-deep); max-width: 40rem; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.frame { border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; max-height: 32rem; object-fit: cover; }

.grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.svc {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.band-dark .svc { background: color-mix(in srgb, var(--c-deep) 82%, white); border-color: color-mix(in srgb, var(--c-deep) 70%, white); color: var(--c-on-deep); }
.svc img { width: 100%; height: 12rem; object-fit: cover; }
.svc div { padding: 1rem 1rem 1.2rem; }
.svc h3 { margin-bottom: 0.35rem; }
.svc p { color: var(--muted); margin: 0; }
.band-dark .svc p { color: #f4f8fb; }

.places { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.place h3 { margin-bottom: 0.3rem; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.step { border-top: 2px solid var(--accent); padding-top: 0.8rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.band-dark .step { border-top-color: var(--accent); }

.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.band-dark .faq details { border-top-color: color-mix(in srgb, var(--c-on-deep) 35%, transparent); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 0.6rem; }

.form-panel {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1.2rem;
}
.form-panel h2 { font-size: 1.6rem; }
.form-panel a { color: var(--accent-ink); }
form { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-weight: 650; font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  width: 100%;
}
textarea { min-height: 6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
button[type="submit"], .step-next, .step-back {
  font: inherit;
  font-weight: 700;
  background: var(--c-accent);
  color: var(--c-on-accent);
  border: 0;
  min-height: 2.9rem;
  cursor: pointer;
}
.step-back { background: transparent; color: var(--ink); border: 1px solid var(--c-primary); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status[data-error="true"] { color: #8a1f12; }

.site-footer { background: var(--c-deep); color: var(--c-on-deep); padding: 3rem 0 5.5rem; }
.site-footer a { color: var(--c-on-deep); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.fine { color: color-mix(in srgb, var(--c-on-deep) 82%, var(--c-deep)); font-size: 0.92rem; }

.mobile-call { display: none; }

@media (max-width: 800px) {
  .header-bar { flex-wrap: wrap; padding: 0.6rem 0; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .grid-3, .grid-2, .places, .steps, .foot-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .hero, .hero-scrim { min-height: 0; }
  .band { padding: 3.2rem 0; }
  .mobile-call {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--c-deep);
    border-top: 4px solid var(--c-accent);
  }
  .mobile-call a {
    color: var(--c-on-deep);
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    padding: 0.95rem 0.4rem;
  }
  .mobile-call a.call { background: var(--c-accent); color: var(--c-on-accent); }
}

.hero-scrim .ghost { color: #ffffff !important; border-color: #ffffff; }
.band-tint { background: var(--c-tint); }
.band-paper { background: var(--c-tint); }
.band-card { background: #ffffff; }

body[data-city="miami-beach"] { --c-primary: #0891b2; --c-accent: #e11d48; --c-tint: #e0f2fe; --c-deep: #0e7490; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #9f1239; }
body[data-city="aventura"] { --c-primary: #0f3d4c; --c-accent: #a16207; --c-tint: #f7f1e3; --c-deep: #0f3d4c; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #854d0e; }
body[data-city="coral-gables"] { --c-primary: #c45c26; --c-accent: #4d7c0f; --c-tint: #f6efe4; --c-deep: #8c3a16; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #3f6212; }
body[data-city="doral"] { --c-primary: #1d4e89; --c-accent: #ea580c; --c-tint: #e8eef6; --c-deep: #163a66; --c-on-deep: #ffffff; --c-on-accent: #1c1408; --accent-ink: #9a3412; }
body[data-city="fort-lauderdale"] { --c-primary: #0369a1; --c-accent: #dc2626; --c-tint: #f8fbff; --c-deep: #075985; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #991b1b; }
body[data-city="hialeah"] { --c-primary: #f97316; --c-accent: #ca8a04; --c-tint: #fff7ed; --c-deep: #7f1d1d; --c-on-deep: #ffffff; --c-on-accent: #1c1408; --accent-ink: #854d0e; }
body[data-city="homestead"] { --c-primary: #3f6212; --c-accent: #a16207; --c-tint: #f4f7e8; --c-deep: #365314; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #854d0e; }
body[data-city="kendall"] { --c-primary: #0f766e; --c-accent: #ca8a04; --c-tint: #f0fdfa; --c-deep: #115e59; --c-on-deep: #ffffff; --c-on-accent: #1c1408; --accent-ink: #854d0e; }
body[data-city="miami"] { --c-primary: #0b3a6e; --c-accent: #e15a12; --c-tint: #e7f3fc; --c-deep: #0b3a6e; --c-on-deep: #ffffff; --c-on-accent: #1c1408; --accent-ink: #9a3412; }
body[data-city="north-miami-beach"] { --c-primary: #14919b; --c-accent: #e11d48; --c-tint: #f4e9d8; --c-deep: #0f6b63; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #9f1239; }
body[data-city="pinecrest"] { --c-primary: #1f4d3a; --c-accent: #a16207; --c-tint: #f7f4ec; --c-deep: #16382a; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #854d0e; }
body[data-city="weston"] { --c-primary: #1b6ca8; --c-accent: #3f6212; --c-tint: #f3f7f4; --c-deep: #145484; --c-on-deep: #ffffff; --c-on-accent: #ffffff; --accent-ink: #365314; }

body[data-city="coral-gables"] h1,
body[data-city="coral-gables"] h2,
body[data-city="pinecrest"] h1,
body[data-city="pinecrest"] h2 { font-family: Fraunces, "Source Serif 4", Georgia, serif; font-weight: 560; }
body[data-city="aventura"] h1,
body[data-city="doral"] h1,
body[data-city="weston"] h1,
body[data-city="hialeah"] h1 { font-family: Outfit, "Source Sans 3", sans-serif; letter-spacing: -0.03em; }
body[data-city="fort-lauderdale"] h1 { font-family: Newsreader, "Source Serif 4", Georgia, serif; font-weight: 550; }
body[data-city="homestead"] h1,
body[data-city="kendall"] h1 { font-family: Barlow, "Source Sans 3", sans-serif; }

.hero-bleed { min-height: 88vh; }
.hero-bleed .hero-scrim { min-height: 88vh; align-items: flex-end; background: linear-gradient(180deg, color-mix(in srgb, var(--c-deep) 8%, transparent) 0%, var(--c-deep) 76%); }
.hero-bleed .lede { max-width: 40rem; }

.hero-panel, .hero-split, .hero-diagonal, .hero-bold, .hero-formleft, .hero-editorial {
  display: grid;
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.hero-panel { grid-template-columns: 1.15fr 0.85fr; }
.hero-split { grid-template-columns: 1.05fr 0.95fr; background: #f6efe4; }
.hero-formleft { grid-template-columns: 0.86fr 1.14fr; }
.hero-formleft .hero-copy { order: 1; }
.hero-formleft .hero-media { order: 2; }
.hero-editorial { grid-template-columns: 1.25fr 0.75fr; background: #f7f4ec; }
.hero-bold { grid-template-columns: 0.9fr 1.1fr; background: var(--c-primary); color: #1c1408; }
.hero-diagonal { grid-template-columns: 1fr 1fr; background: var(--c-tint); }
.hero-panel .hero-media,
.hero-split .hero-media,
.hero-formleft .hero-media,
.hero-editorial .hero-media,
.hero-bold .hero-media,
.hero-diagonal .hero-media {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 34rem;
  object-fit: cover;
}
.hero-copy, .hero-panel .form-panel, .hero-split .hero-copy, .hero-bold .hero-copy, .hero-formleft .form-panel, .hero-editorial .hero-copy {
  padding: 2.2rem var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1, .hero-copy .lede, .hero-copy .eyebrow, .hero-copy p { color: var(--ink); }
.hero-bold .hero-copy { background: #f97316; }
.hero-bold .hero-copy h1, .hero-bold .hero-copy .lede, .hero-bold .hero-copy .eyebrow { color: #1c1408; }
.hero-split .hero-copy { background: #f6efe4; }
.hero-editorial .hero-copy { background: #f7f4ec; }
.hero-panel .form-panel { margin: 1.25rem; }
.hero-diagonal .hero-media { clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.hero-diagonal .hero-copy { background: #ffffff; }

.hero-wide { min-height: 0; background: var(--c-tint); color: var(--ink); }
.hero-wide .hero-media { position: relative; height: 46vh; min-height: 16rem; }
.hero-wide .service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: var(--c-deep);
  color: var(--c-on-deep);
  padding: 0.9rem var(--pad);
}
.hero-wide .service-strip span {
  border: 1px solid color-mix(in srgb, white 45%, transparent);
  padding: 0.35rem 0.7rem;
  font-weight: 700;
}
.hero-wide .wide-copy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; padding: 2rem 0 2.4rem; color: var(--ink); }
.hero-wide h1, .hero-wide .lede, .hero-wide .eyebrow { color: var(--ink); }

.hero-horizon { min-height: 0; background: var(--c-tint); color: var(--ink); }
.hero-horizon .hero-media { position: relative; height: 38vh; min-height: 14rem; object-fit: cover; }
.hero-horizon .horizon-copy { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; padding: 2rem 0 2.5rem; }
.hero-horizon h1, .hero-horizon .lede, .hero-horizon .eyebrow { color: var(--ink); }

.hero-stack { min-height: 0; background: var(--c-tint); }
.hero-stack .hero-media { position: relative; height: 42vh; min-height: 15rem; }
.hero-stack .stack-band { background: var(--c-deep); color: var(--c-on-deep); padding: 2.2rem 0 2.6rem; }
.hero-stack .stack-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start; }
.hero-stack h1, .hero-stack .lede, .hero-stack .eyebrow, .hero-stack p { color: var(--c-on-deep); }

.hero-center { min-height: 0; background: #e7f0e4; color: var(--ink); text-align: center; }
.hero-center .hero-media { position: relative; height: 46vh; min-height: 16rem; }
.hero-center .center-copy { width: min(40rem, calc(100% - (var(--pad) * 2))); margin: 0 auto; padding: 2.2rem 0 1rem; }
.hero-center h1, .hero-center .lede, .hero-center .eyebrow { color: var(--ink); }
.hero-center .form-panel { text-align: left; margin: 0 auto 2.5rem; width: min(40rem, calc(100% - (var(--pad) * 2))); }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 0.4rem; }
.choice-grid, .check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.choice-grid label, .check-grid label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-weight: 650;
  border: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  background: #ffffff;
}
.choice-grid input, .check-grid input { width: auto; margin-top: 0.2rem; }
.wizard-steps { display: flex; gap: 0.4rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.wizard-steps li { flex: 1; height: 0.35rem; background: #d7e2ee; }
.wizard-steps li[aria-current="step"] { background: var(--c-primary); }
.wizard-nav { display: flex; gap: 0.6rem; }
.wizard-nav .step-next, .wizard-nav button[type="submit"] { flex: 1; }
.review-list { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; }
.review-list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.4rem; }
.review-list dt { font-weight: 700; }
.city-figure { margin: 1.2rem 0 0; }
.city-figure img { width: 100%; max-height: 28rem; object-fit: cover; }
body[data-city="miami-beach"] .places { grid-template-columns: repeat(3, 1fr); }
body[data-city="miami-beach"] .place { background: #ffffff; border-top: 6px solid var(--c-primary); padding: 0.8rem; }
body[data-city="aventura"] .places { grid-template-columns: 1fr 1fr; }
body[data-city="aventura"] .place { min-height: 100%; background: #ffffff; padding: 1rem; border-left: 6px solid #a16207; }
body[data-city="coral-gables"] .place { background: #fffaf3; padding: 0.9rem 1rem; border-bottom: 1px solid #e7d7c4; }
body[data-city="doral"] .places { grid-template-columns: 1fr; }
body[data-city="doral"] .place { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; background: #ffffff; padding: 0.8rem 1rem; border-left: 6px solid var(--c-accent); }
body[data-city="fort-lauderdale"] .places { grid-template-columns: 1fr 1fr; }
body[data-city="fort-lauderdale"] .place { background: #ffffff; padding: 0.9rem; box-shadow: 8px 8px 0 var(--c-tint); }
body[data-city="hialeah"] .band { border-left: 0; }
body[data-city="hialeah"] .place { background: #ffffff; border-left: 10px solid var(--c-primary); padding: 0.75rem 0.9rem; }
body[data-city="homestead"] .places { grid-template-columns: 1fr 1fr; }
body[data-city="homestead"] .place { background: #ffffff; padding: 1rem; }
body[data-city="kendall"] .places { grid-template-columns: 1fr 1fr; }
body[data-city="miami"] .place { border-top: 4px solid var(--c-accent); padding-top: 0.6rem; }
body[data-city="north-miami-beach"] .places { grid-template-columns: 1fr; }
body[data-city="pinecrest"] .band .wrap { width: min(760px, calc(100% - (var(--pad) * 2))); }
body[data-city="pinecrest"] .places { grid-template-columns: 1fr; }
body[data-city="weston"] .places { grid-template-columns: repeat(3, 1fr); }
body[data-city="weston"] h2 { text-align: center; }

@media (max-width: 800px) {
  .hero-panel, .hero-split, .hero-diagonal, .hero-bold, .hero-formleft, .hero-editorial,
  .hero-wide .wide-copy, .hero-horizon .horizon-copy, .hero-stack .stack-grid,
  .choice-grid, .check-grid, body[data-city] .places, body[data-city="doral"] .place, .review-list div {
    grid-template-columns: 1fr;
  }
  .hero-panel .hero-media, .hero-split .hero-media, .hero-formleft .hero-media,
  .hero-editorial .hero-media, .hero-bold .hero-media, .hero-diagonal .hero-media { min-height: 16rem; }
  .hero-diagonal .hero-media { clip-path: none; }
  .hero, .hero-scrim, .hero-bleed, .hero-bleed .hero-scrim { min-height: 0; }
}

/* Revision 3b. Home, service, and material heroes. City bleed heroes opt in below. */
.hero.hero-open {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.hero.hero-open .hero-media {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}
.hero.hero-open .hero-scrim {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.hero.hero-open .hero-scrim h1,
.hero.hero-open .hero-scrim .lede,
.hero.hero-open .hero-scrim .eyebrow,
.hero.hero-open .hero-scrim p {
  color: var(--ink);
}
.hero.hero-open .eyebrow { color: var(--c-primary); }
.hero.hero-open .hero-grid { grid-template-columns: 1fr; }
.hero.hero-open .hero-scrim .ghost,
.hero.hero-open .ghost {
  color: var(--ink) !important;
  border-color: var(--c-primary);
}
.hero-scrim .form-panel,
.hero-scrim .form-panel h2,
.hero-scrim .form-panel p,
.hero-scrim .form-panel label {
  color: var(--ink);
}
.hero-scrim .form-panel .form-status[data-error="true"] { color: #8a1f12; }
.photo-band.photo-open {
  display: grid;
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.photo-band.photo-open .hero-media {
  position: relative;
  inset: auto;
  width: 100%;
  height: 22rem;
  object-fit: cover;
}
.photo-band.photo-open .hero-scrim {
  min-height: 0;
  align-items: flex-start;
  padding: 1.6rem 0 2rem;
  background: transparent;
  color: var(--ink);
}
.photo-band.photo-open h2,
.photo-band.photo-open p {
  color: var(--ink);
}
.band-warm { background: #fff4e8; }
#services h2, #materials h2 { color: var(--c-primary); }
@media (max-width: 800px) {
  .hero.hero-open { grid-template-columns: 1fr; }
  .hero.hero-open .hero-media {
    grid-column: 1;
    grid-row: 1;
    height: 16rem;
    min-height: 16rem;
  }
  .hero.hero-open .hero-scrim { grid-column: 1; grid-row: 2; }
}

/* Main pages with no photo. Light panel, no navy wall. */
.hero.hero-plain {
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.hero.hero-plain .hero-scrim {
  min-height: 0;
  background: var(--c-tint);
  color: var(--ink);
}
.hero.hero-plain .hero-scrim h1,
.hero.hero-plain .hero-scrim .lede,
.hero.hero-plain .hero-scrim .eyebrow,
.hero.hero-plain .hero-scrim p {
  color: var(--ink);
}
.hero.hero-plain .eyebrow { color: var(--c-primary); }
.hero.hero-plain .hero-scrim .ghost,
.hero.hero-plain .ghost {
  color: var(--ink) !important;
  border-color: var(--c-primary);
}

/* City pages. Light panel, photo uncovered. The steps band stays the one deep band. */
.hero-bold {
  background: var(--c-tint);
  color: var(--ink);
}
.hero-bold .hero-copy { background: var(--c-tint); }
.hero-bold .hero-copy h1,
.hero-bold .hero-copy .lede,
.hero-bold .hero-copy p { color: var(--ink); }
.hero-bold .hero-copy .eyebrow { color: var(--c-primary); }
.hero-stack .stack-band {
  background: var(--c-tint);
  color: var(--ink);
}
.hero-stack h1,
.hero-stack .lede,
.hero-stack p { color: var(--ink); }
.hero-stack .eyebrow { color: var(--c-primary); }
.hero-wide .service-strip {
  background: #fff4e8;
  color: var(--ink);
}
.hero-wide .service-strip span {
  border-color: var(--c-primary);
  color: var(--ink);
}
.hero-diagonal .hero-media { clip-path: none; }
.photo-band.photo-open .city-figure { margin: 0; }
.photo-band.photo-open .city-figure img {
  width: 100%;
  height: 22rem;
  max-height: none;
  object-fit: cover;
}
.hero.hero-bleed.hero-open .hero-media {
  height: 36rem;
  min-height: 0;
  max-height: 36rem;
}
.hero.hero-bleed.hero-open .hero-scrim { align-items: center; }
@media (max-width: 800px) {
  .hero.hero-bleed.hero-open .hero-media {
    height: 16rem;
    min-height: 16rem;
    max-height: 16rem;
  }
}

/* Revision 3c. Quote card. City color stays on the ribbon, the step, and the button. */
.quote-card {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  border: 0;
  border-radius: 1.35rem;
  box-shadow: 0 18px 44px rgba(20, 40, 58, 0.16);
  padding: 1.35rem 1.15rem 1.15rem;
  max-width: 34rem;
  overflow: hidden;
}
.hero.hero-open .hero-scrim .quote-card p,
.hero-copy .quote-card p,
.hero-stack .quote-card p,
.wide-copy .quote-card p,
.horizon-copy .quote-card p,
.quote-card .quote-kicker,
.quote-card .quote-label,
.quote-card .quote-sub,
.quote-card .quote-error,
.quote-card .quote-step h2,
.quote-card .quote-review dt,
.quote-card .quote-review dd,
.quote-card .quote-tile-title,
.quote-card .quote-tile-note {
  color: var(--ink);
}
.quote-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--c-deep);
  color: #ffffff !important;
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-left-radius: 0.75rem;
}
.quote-kicker { margin: 0 5.4rem 0.75rem 0; color: var(--ink); font-weight: 650; line-height: 1.35; }
.quote-reach { margin: 0 0 0.8rem; }
.quote-card a.quote-phone {
  background: var(--c-deep);
  color: #ffffff !important;
  border-color: var(--c-deep);
  border-radius: 999px;
}
.quote-card form { display: block; }
.quote-card [hidden] { display: none !important; }
.quote-stepper {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0.2rem 0 1rem;
  padding: 0;
}
.quote-stepper li { flex: 1; text-align: center; position: relative; }
.quote-stepper li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: -50%;
  right: 50%;
  height: 2px;
  background: #d5e0ea;
}
.quote-stepper li:first-child::before { display: none; }
.quote-stepper button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
}
.quote-stepper .step-mark {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto 0.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #d5e0ea;
  background: #ffffff;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.quote-stepper li.is-now .step-mark,
.quote-stepper li.is-done .step-mark {
  background: var(--c-deep);
  border-color: var(--c-deep);
  color: #ffffff;
}
.quote-stepper li.is-now::before,
.quote-stepper li.is-done::before { background: var(--c-deep); }
.quote-stepper li.is-done .step-mark { color: transparent; }
.quote-stepper li.is-done .step-mark::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 0.22rem;
  width: 0.32rem;
  height: 0.62rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.quote-step h2 { font-size: 1.45rem; margin: 0 0 0.25rem; color: var(--ink); }
.quote-step .quote-sub { margin: 0 0 0.8rem; color: var(--ink); }
.quote-label { margin: 0.85rem 0 0.4rem; font-weight: 750; }
.quote-tiles, .quote-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.quote-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.quote-card label.quote-tile,
.quote-card label.quote-chip {
  position: relative;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #d5e0ea;
  cursor: pointer;
  font-weight: 700;
}
.quote-card label.quote-tile {
  min-height: 0;
  border-radius: 0.95rem;
  padding: 0.85rem 0.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}
.quote-card label.quote-tile > span:not(.quote-ico) {
  width: 100%;
  text-align: center;
}
.quote-card label.quote-chip {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  white-space: normal;
  max-width: 100%;
}
.quote-card .quote-tile input,
.quote-card .quote-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.quote-ico { color: var(--c-deep); width: 2.4rem; height: 2.4rem; flex: 0 0 auto; }
.quote-ico svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-tile-title { display: block; color: var(--ink); }
.quote-tile-note { display: block; font-weight: 550; font-size: 0.82rem; color: var(--ink); }
.quote-card label.quote-tile:hover,
.quote-card label.quote-chip:hover { transform: translateY(-3px); }
.quote-card label.quote-chip:has(input:checked) {
  border-color: var(--c-deep);
  background: var(--c-tint);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(20, 40, 58, 0.1);
}
.quote-card label.quote-tile:has(input:checked) {
  border-color: var(--c-deep);
  background: var(--c-deep);
  color: var(--c-on-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(20, 40, 58, 0.1);
}
.quote-card label.quote-tile:has(input:checked) .quote-ico,
.quote-card label.quote-tile:has(input:checked) .quote-tile-title,
.quote-card label.quote-tile:has(input:checked) .quote-tile-note {
  color: var(--c-on-deep);
}
.quote-card label.quote-tile:has(input:checked)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.7rem;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--c-on-deep);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.quote-tile:focus-within,
.quote-chip:focus-within,
.quote-card input:focus-visible,
.quote-card textarea:focus-visible,
.quote-card button:focus-visible {
  outline: 2px solid var(--c-deep);
  outline-offset: 2px;
}
.quote-card .quote-field { margin-top: 0.55rem; color: var(--ink); }
.quote-card .quote-field input,
.quote-card .quote-field textarea { border-radius: 0.7rem; }
.quote-nav { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.quote-card .step-next,
.quote-card button[type="submit"] {
  flex: 1;
  background: var(--c-deep);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
}
.quote-card .step-back {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--c-deep);
  border-radius: 999px;
  min-width: 5.5rem;
}
.quote-error { min-height: 1.1rem; margin: 0.45rem 0 0; color: #8a1f12; font-weight: 700; }
.quote-error:empty { min-height: 0; margin: 0; }
.quote-emergency { display: none; margin: 0.8rem 0 0; }
.quote-card:has(input[data-emergency]:checked) .quote-emergency { display: block; }
.quote-emergency .quote-phone { width: 100%; min-height: 3.3rem; font-size: 1.05rem; }
.quote-review { display: grid; gap: 0.45rem; margin: 0; }
.quote-review div { display: grid; grid-template-columns: 7.2rem 1fr auto; gap: 0.4rem; align-items: start; }
.quote-review dt { font-weight: 750; }
.quote-review dd { margin: 0; }
.quote-edit {
  background: transparent;
  border: 0;
  color: var(--c-deep);
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.quote-thanks {
  background: var(--c-tint);
  color: var(--ink);
  border-radius: 1rem;
  padding: 1rem;
  border-top: 6px solid var(--c-deep);
}
.quote-thanks h2,
.quote-thanks p { color: var(--ink); }
@keyframes quote-slide {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.quote-step:not([hidden]) { animation: quote-slide 0.28s ease; }
@media (prefers-reduced-motion: reduce) {
  .quote-step:not([hidden]),
  .quote-card label.quote-tile:hover,
  .quote-card label.quote-chip:hover { animation: none; transform: none; }
}
.hero.hero-bleed.hero-open:has(.quote-card) { display: block; min-height: 0; background: var(--c-tint); }
.hero.hero-bleed.hero-open:has(.quote-card) .hero-media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 15rem;
  min-height: 0;
  max-height: 15rem;
}
.hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim {
  display: block;
  min-height: 0;
  background: var(--c-tint);
  padding-top: 1.2rem;
}
.hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34rem, 48%);
  column-gap: 1.4rem;
  align-items: start;
}
.hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim > .wrap > .quote-card {
  grid-column: 2;
  grid-row: 1 / span 8;
}
.hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim > .wrap > :not(.quote-card) { grid-column: 1; }
.hero-panel:has(.quote-card),
.hero-split:has(.quote-card),
.hero-diagonal:has(.quote-card),
.hero-bold:has(.quote-card),
.hero-formleft:has(.quote-card),
.hero-editorial:has(.quote-card),
.hero.hero-open:not(.hero-bleed):has(.quote-card) {
  display: block;
  min-height: 0;
}
.hero-panel:has(.quote-card) .hero-media,
.hero-split:has(.quote-card) .hero-media,
.hero-diagonal:has(.quote-card) .hero-media,
.hero-bold:has(.quote-card) .hero-media,
.hero-formleft:has(.quote-card) .hero-media,
.hero-editorial:has(.quote-card) .hero-media,
.hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-media {
  width: 100%;
  height: 15rem;
  min-height: 15rem;
  max-height: 15rem;
  object-fit: cover;
}
.hero-copy:has(.quote-card),
.hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(34rem, 46%);
  column-gap: 1.4rem;
  align-items: start;
}
.hero-copy:has(.quote-card) > .quote-card,
.hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-grid > .quote-card {
  grid-column: 2;
  grid-row: 1 / span 8;
  margin: 0;
}
.hero-copy:has(.quote-card) > :not(.quote-card) { grid-column: 1; }
@media (max-width: 800px) {
  .quote-tiles { grid-template-columns: 1fr; }
  .quote-card { max-width: none; }
  .quote-review div {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.45rem;
    text-align: left;
  }
  .quote-review dt { flex: 0 0 auto; text-align: left; }
  .quote-review dd { flex: 1 1 auto; min-width: 0; margin: 0; text-align: left; overflow-wrap: anywhere; }
  .quote-review .quote-edit { margin-left: auto; flex: 0 0 auto; text-align: right; white-space: nowrap; }
  .hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim > .wrap,
  .hero-copy:has(.quote-card),
  .wide-copy:has(.quote-card),
  .horizon-copy:has(.quote-card),
  .stack-grid:has(.quote-card),
  .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-grid {
    display: flex;
    flex-direction: column;
  }
  .hero:has(.quote-card) .quote-card { order: -1; }
  .hero-formleft:has(.quote-card) .hero-media { order: 0; }
  .hero-formleft:has(.quote-card) .hero-copy { order: 1; }
  .hero-center:has(.quote-card) { display: flex; flex-direction: column; }
  .hero-center:has(.quote-card) .hero-media { order: 0; }
  .hero-center:has(.quote-card) .quote-card { order: 1; }
  .hero-center:has(.quote-card) .center-copy { order: 2; }
}

/* Revision 3c review. Desktop only: hero text lines up with the logo, and the photo covers the hero. */
@media (min-width: 801px) {
  .hero.hero-bleed.hero-open:has(.quote-card),
  .hero-panel:has(.quote-card),
  .hero-split:has(.quote-card),
  .hero-diagonal:has(.quote-card),
  .hero-bold:has(.quote-card),
  .hero-formleft:has(.quote-card),
  .hero-editorial:has(.quote-card),
  .hero.hero-open:not(.hero-bleed):has(.quote-card) {
    position: relative;
    overflow: hidden;
  }
  .hero.hero-bleed.hero-open:has(.quote-card) .hero-media,
  .hero-panel:has(.quote-card) .hero-media,
  .hero-split:has(.quote-card) .hero-media,
  .hero-diagonal:has(.quote-card) .hero-media,
  .hero-bold:has(.quote-card) .hero-media,
  .hero-formleft:has(.quote-card) .hero-media,
  .hero-editorial:has(.quote-card) .hero-media,
  .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: cover;
    z-index: 0;
  }
  .hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim,
  .hero-panel:has(.quote-card) .hero-copy,
  .hero-split:has(.quote-card) .hero-copy,
  .hero-diagonal:has(.quote-card) .hero-copy,
  .hero-bold:has(.quote-card) .hero-copy,
  .hero-formleft:has(.quote-card) .hero-copy,
  .hero-editorial:has(.quote-card) .hero-copy,
  .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-scrim {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--c-tint) 0%, var(--c-tint) 54%, color-mix(in srgb, var(--c-tint) 72%, transparent) 68%, transparent 82%);
  }
  .hero-panel:has(.quote-card) .hero-copy,
  .hero-split:has(.quote-card) .hero-copy,
  .hero-diagonal:has(.quote-card) .hero-copy,
  .hero-bold:has(.quote-card) .hero-copy,
  .hero-formleft:has(.quote-card) .hero-copy,
  .hero-editorial:has(.quote-card) .hero-copy {
    padding-left: max(var(--pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--pad), calc((100% - var(--max)) / 2));
  }
}

/* Revision 3e. Saturated first screen and photo tiles. Form steps stay. */
.quote-kicker,
.quote-reach { display: none; }
body[data-city] .quote-ribbon { display: none; }
.quote-card {
  padding: 0.85rem 0.8rem 0.75rem;
}
.quote-stepper { margin: 0.1rem 0 0.4rem; }
body:not([data-city]) .quote-stepper { padding-right: 3.4rem; }
.quote-stepper .step-mark { width: 1.35rem; height: 1.35rem; }
.quote-stepper button { font-size: 0.68rem; }
.quote-step h2 { font-size: 1.15rem; margin: 0 0 0.15rem; }
.quote-step .quote-sub { margin: 0 0 0.35rem; font-size: 0.92rem; }
.quote-label { margin: 0.25rem 0 0.3rem; font-size: 0.82rem; }
.quote-tiles { gap: 0.4rem; }
.quote-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
.quote-card label.quote-chip {
  justify-content: center;
  text-align: center;
  padding: 0.28rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.2;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--c-deep) 18%, #ffffff);
  border-color: color-mix(in srgb, var(--c-deep) 28%, #ffffff);
  color: var(--ink);
}
.quote-card label.quote-chip:has(input:checked) {
  background: var(--c-deep);
  color: #ffffff;
  border-color: var(--c-deep);
  box-shadow: none;
  transform: none;
}
.quote-card label.quote-tile {
  padding: 0.45rem 0.4rem;
  gap: 0.25rem;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 0.75rem;
}
.quote-card label.quote-tile:not([style*="--tile"]) {
  background: var(--c-deep);
  color: #ffffff;
  min-height: 5.05rem;
  justify-content: center;
}
.quote-card label.quote-tile:not([style*="--tile"]) .quote-ico,
.quote-card label.quote-tile:not([style*="--tile"]) .quote-tile-title,
.quote-card label.quote-tile:not([style*="--tile"]) .quote-tile-note { color: #ffffff; }
.quote-card label.quote-tile:not([style*="--tile"]) .quote-ico { width: 2.15rem; height: 2.15rem; }
.quote-card label.quote-tile:not([style*="--tile"]) .quote-ico svg {
  width: 2.15rem;
  height: 2.15rem;
  stroke: #ffffff;
  stroke-width: 2.65;
}
.quote-card label.quote-tile[style*="--tile"] {
  min-height: 5.15rem;
  padding: 0;
  justify-content: flex-end;
  gap: 0;
  background-color: var(--c-deep);
  background-image: var(--tile);
  background-size: cover;
  background-position: var(--tile-pos, center);
}
.quote-card label.quote-tile[style*="--tile"] .quote-ico { display: none; }
.quote-card label.quote-tile[style*="--tile"] > span:last-child {
  display: block;
  width: 100%;
  background: var(--c-deep);
  padding: 0.32rem 0.4rem 0.38rem;
}
.quote-card label.quote-tile[style*="--tile"] .quote-tile-title,
.quote-card label.quote-tile[style*="--tile"] .quote-tile-note { color: #ffffff; }
.quote-card label.quote-tile:has(input:checked) {
  border: 4px solid var(--c-accent);
  transform: none;
  box-shadow: none;
}
.quote-card label.quote-tile[style*="--tile"]:has(input:checked) {
  background-color: var(--c-deep);
  background-image: var(--tile);
  background-size: cover;
  background-position: var(--tile-pos, center);
}
.quote-card label.quote-tile:has(input:checked)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.quote-card label.quote-tile:has(input:checked)::after {
  top: 0.55rem;
  right: 0.82rem;
  width: 0.38rem;
  height: 0.7rem;
  border: solid var(--c-deep);
  border-width: 0 3px 3px 0;
  background: transparent;
}
.quote-nav { margin-top: 0.45rem; }
.quote-card .step-next,
.quote-card button[type="submit"] { min-height: 2.45rem; }
.quote-thanks { background: #ffffff; }
.quote-thanks h2 { color: var(--c-deep); }
.quote-thanks-copy { display: grid; gap: 0.2rem; margin: 0.35rem 0 0.7rem; }
.quote-thanks-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.quote-thanks-row span:first-child { font-weight: 750; color: var(--c-deep); }
.quote-card:has(.quote-thanks:not([hidden])) .quote-ribbon,
.quote-card:has(.quote-thanks:not([hidden])) .quote-kicker,
.quote-card:has(.quote-thanks:not([hidden])) .quote-reach { display: none; }

@media (min-width: 801px) {
  body[data-city] .hero:has(.quote-card) {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: var(--c-deep);
  }
  body[data-city] .hero:has(.quote-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--c-deep) 0%, var(--c-deep) 56%, color-mix(in srgb, var(--c-deep) 62%, transparent) 76%, color-mix(in srgb, var(--c-deep) 24%, transparent) 100%);
  }
  body[data-city] .hero.hero-bleed.hero-open:has(.quote-card),
  body[data-city] .hero-panel:has(.quote-card),
  body[data-city] .hero-split:has(.quote-card),
  body[data-city] .hero-diagonal:has(.quote-card),
  body[data-city] .hero-bold:has(.quote-card),
  body[data-city] .hero-formleft:has(.quote-card),
  body[data-city] .hero-editorial:has(.quote-card),
  body[data-city] .hero-wide:has(.quote-card),
  body[data-city] .hero-horizon:has(.quote-card),
  body[data-city] .hero-stack:has(.quote-card),
  body[data-city] .hero-center:has(.quote-card) {
    display: block;
  }
  body[data-city] .hero:has(.quote-card) > .hero-media,
  body[data-city] .hero.hero-bleed.hero-open:has(.quote-card) .hero-media,
  body[data-city] .hero-wide:has(.quote-card) .hero-media,
  body[data-city] .hero-horizon:has(.quote-card) .hero-media,
  body[data-city] .hero-stack:has(.quote-card) .hero-media,
  body[data-city] .hero-center:has(.quote-card) .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: cover;
    z-index: 0;
  }
  body[data-city="doral"] .hero:has(.quote-card) > .hero-media {
    object-position: center 78%;
  }
  body[data-city] .hero.hero-bleed.hero-open:has(.quote-card) .hero-scrim,
  body[data-city] .hero-panel:has(.quote-card) .hero-copy,
  body[data-city] .hero-split:has(.quote-card) .hero-copy,
  body[data-city] .hero-diagonal:has(.quote-card) .hero-copy,
  body[data-city] .hero-bold:has(.quote-card) .hero-copy,
  body[data-city] .hero-formleft:has(.quote-card) .hero-copy,
  body[data-city] .hero-editorial:has(.quote-card) .hero-copy,
  body[data-city] .hero-wide:has(.quote-card),
  body[data-city] .hero-horizon:has(.quote-card),
  body[data-city] .hero-stack:has(.quote-card),
  body[data-city] .hero-stack:has(.quote-card) .stack-band,
  body[data-city] .hero-center:has(.quote-card),
  body[data-city] .wide-copy:has(.quote-card),
  body[data-city] .horizon-copy:has(.quote-card) {
    position: relative;
    z-index: 2;
    background: transparent;
    color: #ffffff;
  }
  body[data-city] .hero:has(.quote-card) h1,
  body[data-city] .hero:has(.quote-card) .hero-line,
  body[data-city] .hero:has(.quote-card) .lede,
  body[data-city] .hero:has(.quote-card) .eyebrow {
    color: #ffffff;
  }
  body[data-city] .hero:has(.quote-card) h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.92;
    margin-bottom: 0.35rem;
  }
  body[data-city] .hero:has(.quote-card) .hero-line {
    font-size: 1.2rem;
    font-weight: 650;
    max-width: 28rem;
    margin: 0 0 0.55rem;
  }
  body[data-city] .hero:has(.quote-card) .lede { max-width: 34rem; }
  body[data-city] .hero-scrim > .wrap:has(.quote-card),
  body[data-city] .hero-copy:has(.quote-card),
  body[data-city] .wide-copy:has(.quote-card),
  body[data-city] .horizon-copy:has(.quote-card),
  body[data-city] .stack-grid:has(.quote-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(32rem, 46%);
    column-gap: 1.2rem;
    align-items: start;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }
  body[data-city] .hero-scrim > .wrap:has(.quote-card) > .quote-card,
  body[data-city] .hero-copy:has(.quote-card) > .quote-card,
  body[data-city] .wide-copy:has(.quote-card) > .quote-card,
  body[data-city] .horizon-copy:has(.quote-card) > .quote-card,
  body[data-city] .stack-grid:has(.quote-card) > .quote-card {
    grid-column: 2;
    grid-row: 1 / span 8;
    margin: 0;
  }
  body[data-city] .hero-center:has(.quote-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(32rem, 46%);
    column-gap: 1.2rem;
    align-items: start;
    text-align: left;
    padding: 1.15rem max(var(--pad), calc((100% - var(--max)) / 2));
  }
  body[data-city] .hero-center:has(.quote-card) .center-copy {
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  body[data-city] .hero-center:has(.quote-card) .quote-card {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0;
  }
  body[data-city] .hero:has(.quote-card) .quote-card h2,
  body[data-city] .hero:has(.quote-card) .quote-card p,
  body[data-city] .hero:has(.quote-card) .quote-card .quote-tile-title,
  body[data-city] .hero:has(.quote-card) .quote-card label { color: var(--ink); }
  body[data-city] .hero:has(.quote-card) .quote-card label.quote-tile:not([style*="--tile"]),
  body[data-city] .hero:has(.quote-card) .quote-card label.quote-tile:not([style*="--tile"]) .quote-tile-title,
  body[data-city] .hero:has(.quote-card) .quote-card label.quote-tile[style*="--tile"] .quote-tile-title,
  body[data-city] .hero:has(.quote-card) .quote-card label.quote-chip:has(input:checked) { color: #ffffff; }
}

@media (max-width: 800px) {
  .quote-tiles { grid-template-columns: 1fr 1fr; }
  .quote-chips { grid-template-columns: 1fr 1fr; }
  body[data-city] .header-bar {
    flex-wrap: nowrap;
    min-height: 0;
    height: 4.25rem;
    padding: 0;
    gap: 0.45rem;
  }
  body[data-city] .brand img { width: 6.3rem; }
  body[data-city] .header-actions .call { display: none; }
  body[data-city] .nav-toggle { min-height: 2.15rem; padding: 0.2rem 0.55rem; }
  body[data-city] .hero:has(.quote-card) {
    position: relative;
    background: var(--c-deep);
  }
  body[data-city] .hero:has(.quote-card)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8.5rem;
    z-index: 1;
    pointer-events: none;
    background: color-mix(in srgb, var(--c-deep) 78%, transparent);
  }
  body[data-city] .hero.hero-open:has(.quote-card),
  body[data-city] .hero-center:has(.quote-card) { display: block; }
  body[data-city] .hero:has(.quote-card) > .hero-media,
  body[data-city] .hero.hero-open:has(.quote-card) .hero-media,
  body[data-city] .hero-wide:has(.quote-card) .hero-media,
  body[data-city] .hero-horizon:has(.quote-card) .hero-media,
  body[data-city] .hero-stack:has(.quote-card) .hero-media,
  body[data-city] .hero-center:has(.quote-card) .hero-media {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 8.5rem;
    min-height: 0;
    max-height: 8.5rem;
    object-fit: cover;
    z-index: 0;
    grid-column: auto;
    grid-row: auto;
  }
  body[data-city="doral"] .hero:has(.quote-card) > .hero-media {
    object-position: center 78%;
  }
  body[data-city] .hero-scrim > .wrap:has(.quote-card),
  body[data-city] .hero-copy:has(.quote-card),
  body[data-city] .wide-copy:has(.quote-card),
  body[data-city] .horizon-copy:has(.quote-card),
  body[data-city] .stack-grid:has(.quote-card),
  body[data-city] .hero-center:has(.quote-card) {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: transparent;
  }
  body[data-city] .wide-copy > div:first-child,
  body[data-city] .horizon-copy > div:first-child,
  body[data-city] .stack-grid > div:first-child,
  body[data-city] .center-copy { display: contents; }
  body[data-city] .hero:has(.quote-card) h1,
  body[data-city] .hero:has(.quote-card) .hero-line { order: 1; }
  body[data-city] .hero:has(.quote-card) .quote-card { order: 2; }
  body[data-city] .hero:has(.quote-card) .lede,
  body[data-city] .hero:has(.quote-card) .hero-actions,
  body[data-city] .hero:has(.quote-card) .eyebrow { order: 4; }
  body[data-city] .hero:has(.quote-card) h1 {
    margin: -7.15rem 0 0;
    min-height: 6.3rem;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 0.95;
    padding: 0 0 0.35rem;
  }
  body[data-city] .hero:has(.quote-card) .hero-line {
    background: var(--c-deep);
    color: #ffffff;
    margin: 0;
    padding: 0.4rem 0 0.5rem;
    font-weight: 650;
  }
  body[data-city] .hero:has(.quote-card) .lede,
  body[data-city] .hero:has(.quote-card) .eyebrow { color: var(--ink); }
  body[data-city] .hero-stack:has(.quote-card) .stack-band { background: transparent; padding: 0; }
  body[data-city] .hero:has(.quote-card) .quote-card { margin-top: 0.35rem; }
}

/* Revision 3f. Weston stacking, ribbon, tile crops, chip tint, home hero. */
body[data-city] .quote-ribbon { display: block; z-index: 4; }
.quote-card:has(.quote-thanks:not([hidden])) .quote-ribbon { display: none; }
body[data-city] .quote-stepper { padding-right: 4.6rem; }
.quote-card label.quote-chip {
  background: color-mix(in srgb, var(--c-deep) 42%, #ffffff);
  border-color: color-mix(in srgb, var(--c-deep) 58%, #ffffff);
  color: var(--ink);
}
.quote-card label.quote-tile[style*="--tile"] {
  background-color: transparent;
  background-origin: border-box;
  background-clip: border-box;
  border-radius: 0.75rem;
  transform: translateZ(0);
}
.quote-card label.quote-tile[style*="--tile"] > span:last-child {
  padding: 0.14rem 0.4rem 0.18rem;
  background: color-mix(in srgb, var(--c-deep) 92%, #000000);
}
.quote-card label.quote-tile[style*="--tile"] .quote-tile-title {
  font-size: 0.78rem;
  line-height: 1.15;
}
body.home .hero.hero-open .quote-card label[style*="do-commercial"] {
  --tile-pos: center 100%;
}

@media (min-width: 801px) {
  body[data-city="weston"] .hero-center:has(.quote-card) .center-copy,
  body[data-city="weston"] .hero-center:has(.quote-card) > .quote-card {
    position: relative;
    z-index: 3;
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card) {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--c-deep);
    color: #ffffff;
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-media {
    position: absolute;
    inset: 0;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 70%;
    z-index: 0;
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--c-deep) 0%, var(--c-deep) 52%, color-mix(in srgb, var(--c-deep) 58%, transparent) 76%, color-mix(in srgb, var(--c-deep) 22%, transparent) 100%);
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-scrim {
    position: relative;
    z-index: 2;
    grid-column: auto;
    grid-row: auto;
    background: transparent;
    color: #ffffff;
  }
  body.home .hero.hero-open .hero-scrim h1,
  body.home .hero.hero-open .hero-scrim .lede,
  body.home .hero.hero-open .hero-scrim .eyebrow {
    color: #ffffff;
  }
  body.home .hero.hero-open .wrap.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(32rem, 46%);
    column-gap: 1.2rem;
    align-items: start;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }
  body.home .hero.hero-open .wrap.hero-grid > .quote-card {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  body.home .hero.hero-open h1 {
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 0.95;
    color: #ffffff;
  }
  body.home .hero.hero-open .quote-card h2,
  body.home .hero.hero-open .quote-card p,
  body.home .hero.hero-open .quote-card label { color: var(--ink); }
  body.home .hero.hero-open .quote-card label.quote-tile[style*="--tile"] .quote-tile-title,
  body.home .hero.hero-open .quote-card label.quote-chip:has(input:checked) { color: #ffffff; }
}

@media (max-width: 800px) {
  /* Revision 3g. One home photo band, Kendall stepper gaps, Weston subline on the city color. */
  body[data-city="weston"] .hero-center:has(.quote-card) {
    padding-left: 0;
    padding-right: 0;
    background: var(--c-deep);
    color: #ffffff;
  }
  body[data-city="weston"] .hero-center:has(.quote-card) > .hero-media {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  body[data-city="weston"] .hero:has(.quote-card) h1,
  body[data-city="weston"] .hero:has(.quote-card) .hero-line {
    padding-left: var(--pad);
    padding-right: var(--pad);
    text-align: left;
  }
  body[data-city="weston"] .hero:has(.quote-card) .hero-line {
    background: transparent;
    color: #ffffff;
  }
  body[data-city="weston"] .hero-center:has(.quote-card) > .quote-card {
    margin-left: var(--pad);
    margin-right: var(--pad);
  }
  body[data-city="kendall"] .hero-copy:has(.quote-card) {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  body[data-city="kendall"] .hero-copy:has(.quote-card) > .quote-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
    box-sizing: border-box;
    padding: 0.85rem 0.8rem 0.75rem;
  }
  body[data-city="miami"] .hero.hero-open:has(.quote-card),
  body[data-city="miami-beach"] .hero.hero-open:has(.quote-card),
  body[data-city="miami"] .hero.hero-open:has(.quote-card) .hero-scrim,
  body[data-city="miami-beach"] .hero.hero-open:has(.quote-card) .hero-scrim {
    background: var(--c-deep);
  }
  body[data-city="miami"] .hero:has(.quote-card) .hero-line,
  body[data-city="miami-beach"] .hero:has(.quote-card) .hero-line {
    background: transparent;
    color: #ffffff;
  }
  body[data-city="miami"] .hero:has(.quote-card) .lede,
  body[data-city="miami-beach"] .hero:has(.quote-card) .lede,
  body[data-city="miami"] .hero:has(.quote-card) .eyebrow,
  body[data-city="miami-beach"] .hero:has(.quote-card) .eyebrow {
    color: #ffffff;
  }
  body.home .header-bar {
    flex-wrap: nowrap;
    min-height: 0;
    height: 4.25rem;
    padding: 0;
    gap: 0.45rem;
  }
  body.home .brand img { width: 6.3rem; }
  body.home .header-actions .call { display: none; }
  body.home .nav-toggle { min-height: 2.15rem; padding: 0.2rem 0.55rem; }
  body.home .hero.hero-open {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--c-deep);
  }
  body.home .hero.hero-open::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8.5rem;
    z-index: 1;
    pointer-events: none;
    background: color-mix(in srgb, var(--c-deep) 84%, transparent);
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-media {
    position: relative;
    inset: auto;
    grid-column: auto;
    grid-row: auto;
    display: block;
    width: 100%;
    height: 8.5rem;
    max-height: 8.5rem;
    min-height: 8.5rem;
    object-fit: cover;
    object-position: center 62%;
    z-index: 0;
  }
  body.home .hero.hero-open:not(.hero-bleed):has(.quote-card) .hero-scrim {
    background: transparent;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    padding: 0;
  }
  body.home .hero.hero-open .wrap.hero-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }
  body.home .hero.hero-open .wrap.hero-grid > div:first-child { display: contents; }
  body.home .hero.hero-open h1 {
    order: 1;
    color: #ffffff;
    margin: -7.15rem 0 0;
    min-height: 6.3rem;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    padding: 0 var(--pad) 0.4rem;
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
    line-height: 1.05;
  }
  body.home .hero.hero-open .quote-card { order: 2; margin-top: 0.35rem; }
  body.home .hero.hero-open .lede,
  body.home .hero.hero-open .hero-actions,
  body.home .hero.hero-open .eyebrow { order: 4; }
}
