/* Doc's Roofing & Repairs: public site */
:root {
  --navy: #0f2a4a;
  --navy-2: #163a63;
  --blue: #1e5aa8;
  --blue-dark: #174a8b;
  --green: #2f7d32;
  --amber: #f2b632;
  --amber-dark: #d99a12;
  --ink: #1b2430;
  --muted: #536070;
  --line: #dde3ea;
  --paper: #ffffff;
  --mist: #f3f6f9;
  --error: #b42318;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; }
.pre-line { white-space: pre-line; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 0.6em; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.08rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-dark); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn-ghost:hover { background: var(--mist); color: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 120px; padding-block: 10px; }
.brand img { display: block; height: 100px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background: var(--mist); color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--navy); content: ""; }
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 10px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d4f86 100%); color: #e9f0f8; padding: clamp(48px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 50, 0.35), transparent 65%); pointer-events: none; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #c9d6e6; }
.hero .eyebrow { color: #8fd18f; }
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 28px; }
.hero-card h2 { color: #fff; font-size: 1.4rem; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 64ch; margin-bottom: 32px; }
.page-head { background: var(--mist); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-split { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 860px) { .split, .form-split { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--blue); }
.card h2, .card h3 { margin-bottom: 0.4em; }
.card h2 a, .card h3 a { color: var(--navy); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--blue); text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }

.timeline { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { counter-increment: step; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-weight: 600; }
.timeline li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; flex: none; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.checklist.on-dark li::before { border-color: #8fd18f; }
.area-list { columns: 2; padding-left: 1.2em; }

.side-cta { background: var(--mist); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: sticky; top: 100px; }
.side-phone { margin-top: 14px; }
.big-phone { font-size: 1.5rem; font-weight: 700; }

.cta-band { background: var(--green); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }

/* Forms */
.quote-form { display: grid; gap: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin: 0; }
fieldset.field { border: 0; padding: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
label { font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #9aa7b6; border-radius: 8px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(30, 90, 168, 0.25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-weight: 600; font-size: 0.95rem; margin: 0; }
.hint, .form-note { color: var(--muted); font-size: 0.93rem; margin: 0; }
.req { color: var(--error); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.consent .choice { font-size: 0.97rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; border-left: 5px solid; }
.alert-error { background: #fdecea; border-color: var(--error); color: #7a1a12; }
.alert-success { background: #e9f5ea; border-color: var(--green); color: #1d4f20; }
.alert-warning, .alert-info { background: #fff6e0; border-color: var(--amber-dark); color: #5c4300; }

/* Landing pages */
.hero-landing { padding: 40px 0 56px; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; position: relative; z-index: 1; }
.lp-form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lp-trust { font-weight: 700; color: #fff; }
@media (max-width: 920px) { .lp-grid { grid-template-columns: 1fr; } }
body.landing .header-inner .btn { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e6; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-head { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 36px; padding-top: 20px; font-size: 0.9rem; }
.footer-legal p { margin: 0; }
.site-footer-slim { padding-top: 8px; }
.site-footer-slim .footer-legal { margin-top: 0; border-top: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .area-list { columns: 1; } }

/* Availability */
.slot-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.slot-day { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.slot-day h2 { display: flex; flex-direction: column; margin-bottom: 10px; }
.slot-day h2 span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.slot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.slot { display: flex; align-items: center; justify-content: center; width: 100%; padding: 8px 6px; border: 1.5px solid var(--blue); border-radius: 8px; text-decoration: none; font-weight: 600; min-height: 44px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot:hover, .slot:focus { background: var(--blue); color: #fff; }

/* Website chat */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-size: 0.97rem; }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.chat-launch:hover { background: #276a2a; }
.chat-launch-icon { width: 20px; height: 16px; border: 2.5px solid #fff; border-radius: 6px; position: relative; }
.chat-launch-icon::after { content: ""; position: absolute; left: 3px; bottom: -6px; border: 4px solid transparent; border-top-color: #fff; }
.chat.is-open .chat-launch { display: none; }
.chat-panel { width: min(380px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - 36px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 42, 74, 0.3); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: 12px 16px; }
.chat-head h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.chat-body[hidden] { display: none; }
.chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.chat-msg-visitor { align-self: flex-end; background: #e5efff; border-color: #c9dbf7; }
.chat-msg-staff { align-self: flex-start; }
.chat-meta { margin: 0; font-size: 0.78rem; color: var(--muted); }
.chat-text { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.chat-start, .chat-send { display: grid; gap: 6px; padding: 14px 16px; }
.chat-start[hidden], .chat-send[hidden] { display: none; }
.chat-start input, .chat-start textarea, .chat-send textarea { min-height: 42px; }
.chat-send textarea { min-height: 60px; }
.chat-intro { margin: 0 0 4px; font-weight: 600; }
.chat-notice { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }
.chat-error { color: var(--error); font-weight: 600; margin: 0; font-size: 0.9rem; }
.chat-error:empty { display: none; }
@media (max-width: 520px) { .chat { right: 12px; bottom: 12px; } .chat-launch span:last-child { display: none; } .chat-launch { padding: 14px; } }
@media print { .chat { display: none; } }

/* Team and survey (phase 3) */
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.team-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.team-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.star-row { flex-direction: column; gap: 6px; }

/* Road name suggestions (roads.js) */
.road-field { position: relative; }
.road-menu { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 42, 74, 0.18); max-height: 300px; overflow-y: auto; }
.road-menu[hidden] { display: none; }
.road-menu li { padding: 8px 10px; border-radius: 6px; cursor: pointer; line-height: 1.3; }
.road-menu li[aria-selected="true"] { background: #eaf1fb; }
.road-menu strong { color: var(--navy); }
.road-where { display: block; font-size: 0.8rem; color: var(--muted); }

/* Required request-to-contact checkbox and chat consent */
.consent-required { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.consent-required .choice { font-weight: 600; }
.chat-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; font-weight: 600; margin: 8px 0; }
.chat-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); }

/* Larger logo: keep menu items and buttons on one line */
.site-nav ul a, .nav-actions .btn { white-space: nowrap; }

/* Quote approval page */
.quote-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.quote-table th, .quote-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.quote-table tfoot th { text-align: right; font-weight: 600; }
.quote-table td:last-child, .quote-table th:last-child { text-align: right; white-space: nowrap; }
.agreement { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0; background: var(--mist); }
.agreement summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.agreement-text { margin-top: 12px; font-size: 0.95rem; max-height: 420px; overflow-y: auto; }

/* Instant roof estimate */
.choice-col { display: grid; gap: 10px; }
.steps { padding-left: 1.2em; display: grid; gap: 8px; }
.photo-previews { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.photo-previews img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.quote-form input[type="file"] { display: block; width: 100%; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--mist); font: inherit; }
.narrow-wrap { max-width: 760px; }
.estimate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.sat-img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--mist); }
.button-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.estimate-label { margin: 0; color: var(--muted); font-weight: 600; }
.estimate-range { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; color: var(--navy); margin: 6px 0 2px; line-height: 1.15; }
.estimate-range span { font-size: 0.55em; font-weight: 600; color: var(--muted); }
.estimate-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; padding: 0; }
.estimate-facts div { background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.estimate-facts dt { font-size: 0.85rem; color: var(--muted); }
.estimate-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }

/* Pictures */
.hero.has-image { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; display: block; }
.hero-bg img { object-fit: cover; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 42, 74, 0.92) 0%, rgba(15, 42, 74, 0.78) 45%, rgba(15, 42, 74, 0.35) 100%); }
.hero.has-image .hero-copy, .hero.has-image .hero-copy h1, .hero.has-image .eyebrow { color: #fff; }
.hero.has-image .lead, .hero.has-image .lead p { color: rgba(255, 255, 255, 0.92); }
.hero.has-image .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.8); }
@media (max-width: 760px) { .hero.has-image::before { background: rgba(15, 42, 74, 0.72); } }
.lead p { margin: 0 0 0.6em; }
.lead p:last-child { margin-bottom: 0; }
.page-figure { margin: 0 0 28px; }
.page-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.page-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.side-cta .page-figure { margin: 0 0 18px; }
.card-has-image { padding-top: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 2 * 24px); max-width: none; height: 190px; object-fit: cover; margin: 0 -24px 16px; }
.work-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.work-item figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.work-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.work-item figcaption { padding: 12px 14px; font-size: 0.95rem; }
.work-item figcaption span { color: var(--muted); }
.prose .work-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Questions and answers */
.faq-list { display: grid; gap: 10px; margin: 0 0 18px; }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 700; color: var(--blue); flex: none; }
.faq[open] summary::after { content: "\2212"; }
.faq-q { font-size: 1.05rem; margin: 0; color: var(--navy); }
.faq-a { padding: 0 18px 14px; }
.faq-a p:first-child { margin-top: 0; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* Keep the logo its full size when the menu is long */
.brand { flex: none; }
.brand img { max-width: none; }
@media (min-width: 1241px) { .site-nav { gap: 12px; } .site-nav ul { gap: 0; } .site-nav ul a { padding-inline: 7px; font-size: 0.92rem; } .nav-actions .btn { padding-inline: 14px; } }
/* Emergency box stays readable over a photo */
.hero.has-image .hero-card { background: rgba(15, 42, 74, 0.88); border-color: rgba(255, 255, 255, 0.25); color: #fff; }

/* Parallax pictures (only when ticked in the office and motion is allowed) */
.page-figure.is-parallax .parallax-frame { overflow: hidden; border-radius: var(--radius); height: clamp(220px, 42vw, 440px); }
.page-figure.is-parallax .parallax-frame picture, .page-figure.is-parallax .parallax-frame img { width: 100%; height: 100%; display: block; }
.page-figure.is-parallax .parallax-frame img { object-fit: cover; border-radius: 0; }
.parallax-on [data-parallax] img { will-change: transform; transform: scale(1.25); }
.side-cta .page-figure.is-parallax .parallax-frame { height: 220px; }
@media (prefers-reduced-motion: reduce) { [data-parallax] img { transform: none !important; } }


/* Home page: full-screen hero first, then the menu (which stays at the top once reached) */
.hero-full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0; }
.hero-full .hero-inner { flex: 1 0 auto; align-content: center; padding-block: 24px 72px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; padding-top: max(18px, env(safe-area-inset-top)); position: relative; z-index: 1; }
.hero-brand { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.hero-brand img { display: block; height: 72px; width: auto; }
.hero-scroll { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; opacity: 0.9; padding: 6px 12px; border-radius: 999px; }
.hero-scroll:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero-scroll svg { animation: hero-bob 2s ease-in-out infinite; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation: none; } }
.site-header.below-hero { scroll-margin-top: 0; }
@media (max-width: 760px) {
  .hero-brand img { height: 56px; }
  .hero-full .hero-inner { padding-block: 16px 76px; gap: 24px; }
}
@media (max-height: 640px) and (min-width: 761px) { .hero-full { min-height: 640px; } }

/* Focus point for pictures cropped on phones (set per picture in the office) */
.fx-0 { --fx: 0%; } .fy-0 { --fy: 0%; }
.fx-5 { --fx: 5%; } .fy-5 { --fy: 5%; }
.fx-10 { --fx: 10%; } .fy-10 { --fy: 10%; }
.fx-15 { --fx: 15%; } .fy-15 { --fy: 15%; }
.fx-20 { --fx: 20%; } .fy-20 { --fy: 20%; }
.fx-25 { --fx: 25%; } .fy-25 { --fy: 25%; }
.fx-30 { --fx: 30%; } .fy-30 { --fy: 30%; }
.fx-35 { --fx: 35%; } .fy-35 { --fy: 35%; }
.fx-40 { --fx: 40%; } .fy-40 { --fy: 40%; }
.fx-45 { --fx: 45%; } .fy-45 { --fy: 45%; }
.fx-50 { --fx: 50%; } .fy-50 { --fy: 50%; }
.fx-55 { --fx: 55%; } .fy-55 { --fy: 55%; }
.fx-60 { --fx: 60%; } .fy-60 { --fy: 60%; }
.fx-65 { --fx: 65%; } .fy-65 { --fy: 65%; }
.fx-70 { --fx: 70%; } .fy-70 { --fy: 70%; }
.fx-75 { --fx: 75%; } .fy-75 { --fy: 75%; }
.fx-80 { --fx: 80%; } .fy-80 { --fy: 80%; }
.fx-85 { --fx: 85%; } .fy-85 { --fy: 85%; }
.fx-90 { --fx: 90%; } .fy-90 { --fy: 90%; }
.fx-95 { --fx: 95%; } .fy-95 { --fy: 95%; }
.fx-100 { --fx: 100%; } .fy-100 { --fy: 100%; }
@media (max-width: 760px) {
  img[class*="fx-"] { object-position: var(--fx, 50%) var(--fy, 50%); }
}
/* The dark overlay sits between the photo and the text so the text stays readable */
.hero.has-image .hero-bg { z-index: -2; }
@media (max-width: 760px) { .hero-full .lead { font-size: 1.05rem; } .hero-full .hero-card { padding: 20px; } }

/* Logos */
.brand img, .hero-brand img { width: auto; max-width: 100%; object-fit: contain; }
.hero-brand.has-white-logo { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.hero-brand.has-white-logo img { height: 80px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
@media (max-width: 760px) { .hero-brand.has-white-logo img { height: 60px; } }
.portal-brand img { height: 40px; width: auto; }

/* Logo above the small heading in the home banner: 250px wide, height follows */
.hero-copy .hero-brand { display: block; width: 250px; max-width: 100%; margin: 0 0 18px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.hero-copy .hero-brand img, .hero-copy .hero-brand.has-white-logo img { width: 250px; max-width: 100%; height: auto; }
.hero-copy .hero-brand:not(.has-white-logo) img { background: #fff; border-radius: 10px; padding: 8px 12px; box-sizing: border-box; }
.hero-full .hero-inner { padding-top: max(40px, env(safe-area-inset-top)); }

/* Icons above the headings on the home page */
.card-icon, .section-icon { display: block; color: var(--blue); margin: 4px 0 16px; line-height: 0; }
.card-icon .icon, .section-icon .icon { width: auto; height: 150px; max-width: 150px; vertical-align: 0; }
.section-alt .section-icon { color: var(--navy); }
@media (max-width: 760px) { .card-icon .icon, .section-icon .icon { height: 110px; max-width: 110px; } }
.card-has-image .card-icon { display: none; }

/* Home page icons: 100px wide, 20px space below */
.card-icon, .section-icon { margin: 4px 0 0; padding-bottom: 20px; }
.card-icon .icon, .section-icon .icon { width: 100px; height: auto; max-width: 100px; }
@media (max-width: 760px) { .card-icon .icon, .section-icon .icon { width: 100px; height: auto; max-width: 100px; } }

/* Page title and introduction over the page picture, in white */
.page-head.has-image { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); border-bottom: 0;
  min-height: clamp(280px, 38vw, 440px); display: flex; align-items: flex-end; padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head.has-image > .wrap { width: min(1160px, 100% - 32px); }
.page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head-bg picture, .page-head-bg img { width: 100%; height: 100%; display: block; }
.page-head-bg img { object-fit: cover; }
.page-head.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(15, 42, 74, 0.9) 0%, rgba(15, 42, 74, 0.6) 55%, rgba(15, 42, 74, 0.3) 100%); }
.page-head.has-image h1, .page-head.has-image .lead, .page-head.has-image .lead p, .page-head.has-image .eyebrow,
.page-head.has-image p, .page-head.has-image a, .page-head.has-image .breadcrumbs li, .page-head.has-image .breadcrumbs a { color: #fff; }
.page-head.has-image .lead, .page-head.has-image .lead p { color: rgba(255, 255, 255, 0.92); }
.page-head.has-image .breadcrumbs li + li::before { color: rgba(255, 255, 255, 0.7); }
.page-head.has-image h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
@media (max-width: 760px) { .page-head.has-image::before { background: rgba(15, 42, 74, 0.72); } }

/* Icons above each section heading (warranty page) */
.icon-sections .section-icon { margin-top: 36px; }
.icon-sections .section-icon:first-child { margin-top: 0; }
.icon-sections .section-icon + h2 { margin-top: 0; }

/* Secondary page banners use the picture's focus point on every screen size (they are cropped wide on computers and tall on phones) */
.page-head-bg img[class*="fx-"] { object-position: var(--fx, 50%) var(--fy, 50%); }

/* House drawing with clickable points (Roofing education) */
.hotspot-map { margin: 8px 0 40px; }
.hotspot-stage { position: relative; }
.hotspot-stage img { display: block; width: 100%; height: auto; border: 0; }
.hotspot-pin { display: none; position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--blue); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); line-height: 0; z-index: 2; }
.hotspot-pin .icon { width: 40px; height: 40px; }
.hotspot-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(30, 90, 168, 0.45); animation: hotspot-pulse 2s ease-out infinite; }
.hotspot-pin:hover, .hotspot-pin.is-open { color: var(--navy); }
.hotspot-pin:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.is-ready .hotspot-pin { display: block; }
@keyframes hotspot-pulse { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot-pin::after { animation: none; } }
.hotspot-pop { position: absolute; z-index: 5; width: min(320px, 70%); padding: 18px 20px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translate(28px, -20px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.hotspot-pop.to-left { transform: translate(calc(-100% - 28px), -20px); }
.hotspot-pop.to-top { transform: translate(28px, calc(-100% + 20px)); }
.hotspot-pop.to-left.to-top { transform: translate(calc(-100% - 28px), calc(-100% + 20px)); }
.hotspot-pop h3 { color: #fff; margin: 0 28px 8px 0; font-size: 1.1rem; }
.hotspot-pop p { margin: 0; color: #fff; font-size: 0.95rem; line-height: 1.5; }
.hotspot-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15);
  color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hotspot-close .icon { width: 14px; height: 14px; }
.hotspot-close:focus-visible { outline: 3px solid var(--amber); }
.hotspot-pop.is-centred { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); z-index: 1001; }
.hotspot-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1000; }
.hotspot-backdrop[hidden] { display: none; }
.hotspot-hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.hotspot-hint .icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; color: var(--blue); }

/* Important-information icon (Roofing education): warm amber, dark enough to stand out on white */
.section-icon.section-icon-circle-exclamation { color: #b45309; }

/* Roofing education: "Repair or replace?" photo left, text right */
.split-feature { align-items: center; margin-block: clamp(40px, 6vw, 72px); }
.split-feature .split-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.split-feature .split-text h2 { margin-top: 0; }
.split-feature .split-text > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .split-feature { gap: 24px; } }


/* Pop-ups (scheduled in the office under Website > Pop-ups) */
html.popup-open { overflow: hidden; }
.popup-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.2s ease; }
.popup-backdrop.is-open { opacity: 1; }
.popup { position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.popup.is-open { opacity: 1; transform: translate(-50%, -50%); }
.popup.image-left { width: min(820px, calc(100% - 32px)); }
.popup-media img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.popup-body { padding: 26px 28px 28px; }
.popup-body h2 { font-size: 1.5rem; margin: 0 0 0.5em; padding-right: 36px; }
.popup.has-image:not(.image-left) .popup-body h2 { padding-right: 0; }
.popup-text p { margin: 0 0 0.8em; }
.popup-actions { margin: 18px 0 0; }
.popup-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.popup-close .icon { width: 18px; height: 18px; }
.popup-close:hover { background: #fff; color: var(--blue); }
@media (min-width: 700px) {
  .popup.image-left { display: grid; grid-template-columns: 2fr 3fr; }
  .popup.image-left .popup-media img { height: 100%; max-height: none; min-height: 280px; }
  .popup.image-left .popup-body { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .popup, .popup-backdrop { transition: none; } }

/* Footer: Follow us (Website > Social media) */
.footer-follow { margin-top: 22px; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.social-links a:hover, .social-links a:focus-visible { background: #fff; color: var(--navy); }
.social-links .icon { width: 22px; height: 22px; }

/* Header with Inspections in the menu: tighter spacing on laptop widths */
@media (min-width: 1241px) {
  .header-inner { gap: 12px; }
  /* logo keeps its size */
  .site-nav { gap: 10px; }
  .site-nav ul a { padding-inline: 6px; font-size: 0.9rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding-inline: 12px; font-size: 0.95rem; }
}
/* With Our Work also in the menu (eight links), tighten a little more */
@media (min-width: 1241px) {
  .site-header.nav-long .site-nav ul a { padding-inline: 5px; font-size: 0.86rem; }
  .site-header.nav-long .nav-actions .btn { padding-inline: 10px; font-size: 0.92rem; }
}

/* Line card */
.line-intro { margin-bottom: 36px; max-width: none; }
.line-intro h2 { margin-top: 1.4em; }
.line-intro h3 { margin: 1.3em 0 0.4em; font-size: 1.2rem; }
.lead.line-lead { max-width: none; }
.line-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 32px; padding: 14px 18px; background: var(--mist); border-radius: var(--radius); }
.line-jump-label { margin: 0; font-weight: 700; color: var(--navy); }
.line-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.line-jump a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.line-jump a:hover { border-color: var(--blue); }
.line-maker { margin-bottom: 44px; scroll-margin-top: 140px; }
.line-maker > h2 { padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.line-maker-logo { display: block; height: 56px; width: auto; max-width: min(260px, 70vw); }
@media (max-width: 560px) { .line-maker-logo { height: 44px; } }
.line-product { padding: 22px 0 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.line-product:last-child { border-bottom: 0; }
.line-product-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.line-product-head h3 { margin: 0; font-size: 1.25rem; }
.line-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e5eefb; color: var(--blue-dark); font-size: 0.85rem; font-weight: 600; }
.line-desc p { margin: 0 0 0.8em; }
.line-product-body.has-photo { display: grid; gap: 16px 28px; align-items: start; }
@media (min-width: 700px) { .line-product-body.has-photo { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); } }
.line-product-photo { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--mist); aspect-ratio: 1 / 1; cursor: zoom-in; }
.line-product-photo picture, .line-product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line-product-photo:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.line-product-photo::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a4a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.line-desc p:last-child { margin-bottom: 0.8em; }
.line-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; color: var(--muted); }
.line-colours-h { margin: 16px 0 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; }
.swatch { display: grid; gap: 6px; align-content: start; }
.swatch-chip { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.12); overflow: hidden; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.swatch-photo picture, .swatch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swatch-none { background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 6px, #e2e7ee 6px, #e2e7ee 12px); }
.swatch-name { font-weight: 600; color: var(--ink); line-height: 1.3; font-size: 0.95rem; }
.swatch-ask { font-size: 0.82rem; }
.line-note { margin-top: 24px; }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; } .swatch-name { font-size: 0.88rem; } }
/* Line card filter (modelled on a manufacturer's colour gallery: families, colours, lines, ratings). */
.lc-layout { display: grid; gap: 24px; }
.lc-results [hidden], .lc-filters [hidden] { display: none !important; }
@media (min-width: 960px) { .lc-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; } }
.lc-filter-panel > summary { list-style: none; cursor: pointer; }
.lc-filter-panel > summary::-webkit-details-marker { display: none; }
.lc-filter-on { font-weight: 600; }
@media (min-width: 960px) {
  .lc-filter-panel { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
  .lc-filter-panel > summary { display: none; }
}
.lc-filters { margin-top: 12px; padding: 18px; background: var(--mist); border-radius: var(--radius); }
@media (min-width: 960px) { .lc-filters { margin-top: 0; } }
.lc-filters-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.lc-filters-title { font-size: 1.15rem; margin: 0; }
.lc-clear { font-size: 0.92rem; font-weight: 600; }
.lc-facet { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; min-width: 0; }
.lc-facet legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.lc-facet legend + * { clear: left; }
.lc-subhead { margin: 10px 0 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); clear: left; }
.lc-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; clear: left; }
.lc-opt { display: flex; align-items: flex-start; gap: 10px; }
.lc-opt input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.lc-opt label { cursor: pointer; line-height: 1.4; font-size: 0.97rem; padding: 2px 0; }
.lc-n { color: var(--muted); font-size: 0.88rem; }
.lc-opt.is-empty label { color: var(--muted); }
.lc-opt.is-folded { display: none; }
.lc-more { margin-top: 8px; padding: 6px 0; background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.lc-apply { margin-top: 18px; width: 100%; }
.lc-count { margin: 0 0 16px; font-weight: 600; color: var(--navy); }
.lc-results .line-maker:first-of-type { margin-top: 0; }

/* Swatch photos open larger in a pop-up over a 50% black backdrop. */
a.swatch-zoom { cursor: zoom-in; position: relative; }
a.swatch-zoom:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
a.swatch-zoom::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a4a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); opacity: 0.9; transition: opacity 0.15s; }
a.swatch-zoom:hover::after { opacity: 1; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.5); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px; box-sizing: border-box; }
.lightbox-img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); background: #fff; }
.lightbox-cap { margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 600; text-align: center; max-width: 92vw; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); display: grid; place-items: center; }
.lightbox-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] .lightbox-img { animation: lc-zoom 0.18s ease-out; } }
@keyframes lc-zoom { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* Site map page */
.site-map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; }
.site-map-list { list-style: none; margin: 0; padding: 0; }
.site-map-list li { margin: 0 0 10px; }

/* Privacy Policy and Terms of Use */
.legal-text h2 { font-size: 1.35rem; }

/* Google reviews (home page) */
.reviews-band { background: #f6f8fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px; }
.reviews-head h2 { margin-bottom: 6px; }
.reviews-summary { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); }
.reviews-summary strong { color: var(--navy); font-size: 1.2rem; }
.reviews-from { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.reviews-from .icon { width: 18px; height: 18px; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; }
.star { display: inline-block; width: 18px; height: 18px; color: #c9ced6; line-height: 0; }
.star .icon { width: 18px; height: 18px; }
.star.on { color: #e7a50f; }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-text { margin: 0; }
.review-text p { margin: 0; color: var(--ink); }
.review-card .small { margin: 0; }
.review-author { margin: auto 0 0; display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.review-author img, .review-author .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.review-author .avatar { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.review-author > span { display: grid; line-height: 1.3; font-weight: 600; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
/* Nine links (Line Card and Our Work both showing) */
@media (min-width: 1241px) {
  .site-header.nav-xlong .site-nav { gap: 8px; }
  .site-header.nav-xlong .site-nav ul a { padding-inline: 4px; font-size: 0.83rem; }
  .site-header.nav-xlong .nav-actions .btn { padding-inline: 9px; font-size: 0.88rem; }
}

/* Customer documents on screen: same layout as the PDFs (quotes, invoices) */
.doc-sheet { --doc-blue: #1f66d1; --doc-ink: #14191f; --doc-grey: #616b78; --doc-rule: #d9e0e8; background: #fff; color: var(--doc-ink); border: 1px solid #dde3ea; border-radius: 10px; padding: 40px 44px 36px; margin: 16px 0 22px; box-shadow: 0 8px 24px rgba(15, 42, 74, 0.06); font-size: 0.95rem; line-height: 1.45; }
.doc-sheet p { margin: 0; }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.doc-brand { display: flex; align-items: center; gap: 16px; }
.doc-brand picture, .doc-brand img { display: block; height: 56px; width: auto; max-width: 140px; }
.doc-biz { font-size: 1.45rem; font-weight: 700; line-height: 1.2; color: var(--doc-ink); }
.doc-type { font-size: 1.1rem; font-weight: 700; margin-top: 2px !important; color: var(--doc-ink); }
.doc-contact { font-style: normal; text-align: right; font-size: 0.82rem; color: var(--doc-ink); display: grid; gap: 1px; }
.doc-info { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 18px 24px; padding-bottom: 26px; border-bottom: 2px solid #8eb8ed; margin-bottom: 18px; }
.doc-col > p + .doc-label { margin-top: 14px; }
.doc-label { color: var(--doc-blue); font-size: 0.8rem; margin-bottom: 3px !important; }
.doc-amount { text-align: right; }
.doc-big { font-size: 2rem; line-height: 1.15; font-weight: 400; color: var(--doc-ink); margin-top: 6px !important; white-space: nowrap; }
.doc-stamp { color: #1c7a33; font-weight: 700; margin-top: 6px !important; }
.doc-title { font-size: 1.05rem; margin: 6px 0 12px; color: var(--doc-ink); }
.doc-scroll { overflow-x: auto; }
.doc-lines { width: 100%; border-collapse: collapse; }
.doc-lines th { color: var(--doc-blue); font-weight: 400; font-size: 0.8rem; text-align: left; padding: 6px 0 8px; text-transform: none; letter-spacing: 0; border: 0; }
.doc-lines td { padding: 11px 0; border-bottom: 1px solid var(--doc-rule); vertical-align: top; }
.doc-lines .num, .doc-totals .num { text-align: right; white-space: nowrap; padding-left: 18px; }
.doc-totals { margin: 14px 0 0 auto; border-collapse: collapse; min-width: 260px; }
.doc-totals th { font-weight: 400; text-align: right; padding: 5px 0; border: 0; text-transform: none; letter-spacing: 0; color: var(--doc-ink); font-size: 0.95rem; }
.doc-totals td { padding: 5px 0; border: 0; }
.doc-totals tr.is-bold th, .doc-totals tr.is-bold td { font-weight: 700; border-top: 1px solid var(--doc-rule); padding-top: 10px; }
.doc-totals tr.is-final th { color: var(--doc-blue); border-top: 1px solid var(--doc-rule); padding-top: 10px; }
.doc-totals tr.is-final td { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--doc-rule); padding-top: 10px; }
.doc-block { margin-top: 26px; }
.doc-terms p:not(.doc-label) { color: var(--doc-grey); font-size: 0.85rem; }
@media (max-width: 760px) {
  .doc-sheet { padding: 24px 18px; }
  .doc-top { margin-bottom: 26px; }
  .doc-contact { text-align: left; }
  .doc-info { grid-template-columns: 1fr 1fr; }
  .doc-amount { grid-column: 1 / -1; text-align: left; }
  .doc-biz { font-size: 1.2rem; }
}

/* About page: WorkSafeBC and BBB badges */
.trust-badges { display: grid; gap: 18px; margin: 28px 0 28px; }
.trust-badge { display: grid; grid-template-columns: 220px 1fr; gap: 20px 26px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.trust-badge h3 { margin: 0 0 6px; }
.trust-badge p { margin: 0 0 0.6em; }
.trust-badge p:last-child { margin-bottom: 0; }
.trust-logo { display: flex; justify-content: center; align-items: center; line-height: 0; }
.trust-logo img { width: 100%; max-width: 210px; height: auto; }
@media (max-width: 640px) { .trust-badge { grid-template-columns: 1fr; } .trust-logo { justify-content: flex-start; } .trust-logo img { max-width: 200px; } }
