/* Simple Roof Repairs
   Layout concept: "ridge line" - photo-led bands, the logo's gable peak caps each navy band,
   wide-set display type like the SIMPLE wordmark, and a call/quote action always within reach. */
:root {
  --navy: #18222f;
  --navy-2: #223144;
  --blue: #1f4fa8;
  --blue-hi: #2b63cc;
  --sky: #e8eef8;
  --paper: #f4f6f9;
  --white: #ffffff;
  --ink: #17202b;
  --muted: #566170;
  --line: #dce2ea;
  --star: #f4b400;
  --ok: #1d7a4a;
  --warn: #b26a00;
  --bad: #b3261e;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-hi);
  outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 105%; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font: 700 0.78rem/1.2 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--f-body);
  padding: 16px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hi); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: var(--sky); }
.btn-block { width: 100%; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #c9d3e0; font-size: 0.86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar .ticks { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .ticks span::before { content: "✓"; color: #7fa6ea; margin-right: 6px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 62px; height: 62px; }
.brand b { display: block; font: 800 1.15rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .02em; }
.brand small { display: block; font: 600 .7rem/1.4 var(--f-body); letter-spacing: .2em; color: var(--blue); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--blue); }
.header-call { flex: none; }
.header-call .num { font-variant-numeric: tabular-nums; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; cursor: pointer; color: var(--navy);
}
.menu-btn svg { width: 24px; height: 24px; display: block; }

@media (max-width: 1020px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: block; }
  .header-call { display: none; }
  .topbar .ticks span:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
  .topbar .ticks { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand img { width: 50px; height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); background: var(--navy);
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16,24,34,.94) 0%, rgba(16,24,34,.86) 42%, rgba(16,24,34,.45) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(44px, 7vw, 88px);
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .eyebrow { color: #9dbcf2; }
.hero h1 em { font-style: normal; color: #9dbcf2; }
.hero .lede { color: #d6deea; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .95rem; color: #e3e9f2; }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips svg { width: 18px; height: 18px; color: #7fa6ea; flex: none; }
.stars { color: var(--star); letter-spacing: 2px; }

.page-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(44px, 6vw, 72px); }
.page-hero .hero-copy { max-width: 760px; }
.crumbs { font-size: .9rem; color: #b8c4d4; }
.crumbs a { color: #d6deea; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: linear-gradient(180deg, rgba(16,24,34,.9) 0%, rgba(16,24,34,.82) 60%, rgba(16,24,34,.92) 100%); }
}

/* ---------- Quote card / forms ---------- */
.quote-card {
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: grid; gap: 16px; min-width: 0;
}
.quote-card h2 { font-size: 1.5rem; }
.quote-card .sub { color: var(--muted); font-size: .95rem; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(43,99,204,.18); }
.form .fine { font-size: .82rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; }
.form-msg { border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.form-msg.ok { background: #e7f5ec; color: var(--ok); }
.form-msg.err { background: #fdecea; color: var(--bad); }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0; padding-block: 22px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.trust svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.trust b { display: block; font: 800 1.05rem/1.1 var(--f-display); font-stretch: 110%; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust li:last-child { grid-column: 1 / -1; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24,34,47,.12); }
.service img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.service .body { padding: 18px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.service p { color: var(--muted); font-size: .96rem; }
.service .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); font-size: .95rem; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Navy band with gable peak ---------- */
.band { background: var(--navy); color: var(--white); position: relative; }
.band.peak { margin-top: 44px; }
.band.peak::before {
  content: ""; position: absolute; left: 0; right: 0; top: -43px; height: 44px;
  background: var(--navy);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.band .eyebrow { color: #9dbcf2; }
.band .section-head p, .band .lede { color: #c9d3e0; }

/* ---------- Owner / simple ---------- */
.owner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.owner-copy { display: grid; gap: 18px; min-width: 0; }
.owner-copy p { color: var(--muted); }
.owner-copy .big {
  font: 800 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--f-display); font-stretch: 118%;
  color: var(--navy); letter-spacing: .01em;
}
.owner-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.owner-photos img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.owner-photos img:last-child { margin-top: 28px; }
@media (max-width: 860px) { .owner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: var(--navy-2); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(s); font: 800 1.1rem/1 var(--f-display);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--white);
}
.steps p { color: #c9d3e0; font-size: .98rem; }
.band-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.band-cta .or { color: #c9d3e0; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Before / after ---------- */
.ba-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ba {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; border-radius: var(--radius); overflow: hidden;
  user-select: none; touch-action: pan-y; background: var(--paper);
  --pos: 50%;
}
.ba .layer { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 200% 100%; }
.ba .after { background-position: 100% 0; }
.ba .before { background-position: 0 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .tag {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 6px;
  font: 700 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(16,24,34,.8); color: var(--white);
}
.ba .tag.l { left: 14px; } .ba .tag.r { right: 14px; background: var(--blue); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--navy);
  display: grid; place-items: center; font: 800 1.1rem/1 var(--f-body); box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-copy { display: grid; gap: 16px; min-width: 0; }
.ba-copy p { color: var(--muted); }
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.band .ticklist li { color: #dbe3ee; }
@media (max-width: 860px) { .ba-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Health check CTA ---------- */
.hc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  background: var(--sky); border-radius: 14px; padding: clamp(24px, 4vw, 40px);
}
.hc .gauge { width: 112px; height: 112px; }
.hc-copy { display: grid; gap: 8px; min-width: 0; }
.hc-copy p { color: var(--muted); }
.hc-actions { display: grid; gap: 10px; }
@media (max-width: 860px) { .hc { grid-template-columns: minmax(0, 1fr); text-align: left; } .hc .gauge { width: 84px; height: 84px; } .hc-actions { grid-auto-flow: row; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; margin: 0;
}
.review blockquote { margin: 0; font-size: 1rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.review .av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font: 800 .95rem/1 var(--f-display);
}
.review figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.rating-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.rating-line .stars { font-size: 1.3rem; }
@media (max-width: 1020px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(16,24,34,.88));
  color: var(--white); font-size: .88rem; line-height: 1.35;
}
.gallery figcaption b { display: block; font-size: .95rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.areas-copy { display: grid; gap: 16px; min-width: 0; }
.areas-copy p { color: var(--muted); }
.suburbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.suburbs li {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; background: var(--white);
}
.suburbs li.end { border-color: var(--blue); color: var(--blue); }
.route { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.route i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); }
@media (max-width: 860px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 700 1.4rem/1 var(--f-body); color: var(--blue);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Content (service pages) ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose { display: grid; gap: 18px; min-width: 0; }
.prose h2 { margin-top: 18px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose p { max-width: 68ch; color: #2d3744; }
.prose .ticklist li b { color: var(--ink); }
.prose .ticklist li { color: #2d3744; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); display: grid; gap: 16px; }
.side .quote-card { box-shadow: 0 14px 40px rgba(24,34,47,.14); border: 1px solid var(--line); }
.side-call {
  background: var(--navy); color: var(--white); border-radius: 14px; padding: 22px; display: grid; gap: 6px;
}
.side-call a { color: var(--white); font: 800 1.6rem/1.1 var(--f-display); font-stretch: 110%; text-decoration: none; font-variant-numeric: tabular-nums; }
.side-call small { color: #c9d3e0; }
.callout { background: var(--sky); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 8px; }
@media (max-width: 960px) { .content { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

/* ---------- Final CTA ---------- */
.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.final-copy { display: grid; gap: 18px; min-width: 0; }
.final-copy .phone-big {
  font: 800 clamp(2rem, 5vw, 3.2rem)/1 var(--f-display); font-stretch: 112%;
  color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .final { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #0f1720; color: #aab6c6; font-size: .95rem; }
.site-footer .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { width: 84px; height: 84px; border-radius: 50%; background: var(--white); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #dbe3ee; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-base a { color: inherit; }
.foot-base { border-top: 1px solid #243041; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    box-shadow: 0 -8px 24px rgba(24,34,47,.12);
  }
  .mobile-bar .btn { padding: 14px 10px; }
  body { padding-bottom: 76px; }
}

/* ---------- Health check quiz ---------- */
.quiz { max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(24,34,47,.1); }
.quiz-top { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.quiz-top .count { font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.quiz-body { padding: clamp(22px, 4vw, 36px); display: grid; gap: 20px; }
.quiz-body h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.quiz-body .hint { color: var(--muted); }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  font: 600 1rem/1.35 var(--f-body); color: var(--ink);
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--blue); background: var(--sky); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); }
.opt[aria-pressed="true"] .dot { border: 6px solid var(--blue); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.back-link { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--f-body); cursor: pointer; padding: 8px 0; }
.result { display: grid; gap: 20px; }
.score-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.score-ring { width: 128px; height: 128px; flex: none; }
.score-ring text { font-family: var(--f-display); }
.verdict { display: inline-block; padding: 6px 12px; border-radius: 6px; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.verdict.good { background: var(--ok); } .verdict.fair { background: var(--warn); } .verdict.poor { background: var(--bad); }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.findings li { border-left: 4px solid var(--warn); background: var(--paper); padding: 12px 14px; border-radius: 0 8px 8px 0; }
.findings li.bad { border-color: var(--bad); }
.findings li b { display: block; }

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

/* ---------- Variants ---------- */
.steps.light li { background: var(--paper); color: var(--ink); }
.steps.light p { color: var(--muted); }
.steps.stack { grid-template-columns: minmax(0, 1fr); }
.reviews.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .reviews.three, .reviews.two { grid-template-columns: minmax(0, 1fr); } }
.flush-top { padding-top: 0; }
.bg-paper { background: var(--paper); }

/* Phone photos: roofs sit low in the frame, so crop toward the bottom */
.gallery img, .owner-photos img, .service img { object-position: center 75%; }
.g-badge {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); color: var(--blue);
  font: 800 .95rem/1 var(--f-body);
}
.reviews + .band-cta { margin-top: 28px; }

/* ---------- Phone: call + quote live in the sticky header (bottom-right corner is left free) ---------- */
.header-quote { display: none; }
.mobile-bar { display: none !important; }
@media (max-width: 1020px) {
  .site-header .wrap { gap: 10px; }
  .header-call { display: inline-flex; margin-left: auto; padding: 11px 14px; }
  .header-quote { display: inline-flex; padding: 11px 14px; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .header-call .num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-call::after { content: "Call"; }
  .brand span { display: none; }
}
@media (max-width: 360px) {
  .header-quote { padding: 11px 10px; font-size: .9rem; }
}
