/* Single Commercial Cleaning Services Inc.
   Brand cues from the company flyer: navy and teal, diagonal bands, four-point sparkles. */

@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --navy: #0b263d;
  --deep: #071c2d;
  --teal: #087e87;
  --teal-dark: #06636d;
  --aqua: #6fdcd8;
  --mist: #eef6f5;
  --line: #d6e3e5;
  --ink: #142e43;
  --muted: #51626e;
  --on-navy: #b9cdd6;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --radius: 8px;
  --slant: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; font-synthesis: none; }
img { display: block; width: 100%; height: auto; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, legend { font-family: var(--display); color: var(--navy); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.5vw, 4.1rem); font-weight: 760; line-height: 1; }
h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); font-weight: 720; }
h3 { font-size: 1.35rem; font-weight: 680; }
p { color: var(--muted); }
::selection { background: #b8edec; color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: calc(100% - 96px); max-width: 1240px; margin-inline: auto; }
.section { padding-block: 108px; }
.icon { width: 21px; height: 21px; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 99; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 26px; border: 1.5px solid var(--teal); border-radius: var(--radius); background: var(--teal); color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.3; transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 46px; padding: 9px 20px; font-size: .9375rem; }
.button-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.button-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-outline { background: #fff; color: var(--teal-dark); }
.button-outline:hover { background: var(--mist); border-color: var(--teal-dark); color: var(--teal-dark); }
.button-light { background: var(--aqua); border-color: var(--aqua); color: var(--navy); }
.button-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Utility bar and header ---------- */
.utility-bar { background: var(--navy); color: #e0ebee; font-size: .875rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.utility-inner > span, .utility-inner > a { display: flex; align-items: center; gap: 8px; }
.utility-inner > a { white-space: nowrap; font-weight: 600; }
.utility-inner > a:hover { color: var(--aqua); }
.utility-inner .icon { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 20; background: #fffffff5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px #0b263d14; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 96px; transition: min-height .25s; }
.is-scrolled .header-inner { min-height: 70px; }
.brand { flex-shrink: 0; display: block; }
.brand-graphic { display: block; position: relative; overflow: hidden; width: 240px; aspect-ratio: 4.35; background: #fff; transition: width .25s; }
.is-scrolled .brand-graphic { width: 190px; }
.brand-graphic img { position: absolute; width: 175%; max-width: none; left: -37%; top: -4%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav > a:not(.button) { position: relative; padding-block: 6px; font-size: .9688rem; font-weight: 550; }
.primary-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.primary-nav > a:not(.button):hover, .primary-nav > a[aria-current] { color: var(--teal-dark); }
.primary-nav > a:not(.button):hover::after, .primary-nav > a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.scroll-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #0b263d0d; }
.scroll-meter span { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(104deg, #fff 0 52%, var(--mist) 52.05% 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-block: 64px 0; }
.hero-description { max-width: 30em; margin-top: 26px; font-size: 1.1875rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: .9375rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 17px; height: 17px; stroke-width: 2.2; color: var(--teal); }

.hero-visual { position: relative; }
.hero-photo { position: relative; overflow: hidden; height: 560px; background: #dfebed; clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* The squeegee pass: a fogged film slides off the photo once, on load. */
.wipe { position: absolute; top: 0; bottom: 0; left: -18.2%; width: 130%; animation: wipe 1.45s cubic-bezier(.65, 0, .25, 1) .45s both; }
.film { position: absolute; inset: 0; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); background: #c5d3d9b8; backdrop-filter: blur(7px) saturate(.45); -webkit-backdrop-filter: blur(7px) saturate(.45); }
.blade { position: absolute; inset: 0; clip-path: polygon(14% 0, 15.5% 0, 1.5% 100%, 0 100%); background: linear-gradient(#fff, #c8f4f1); }
@keyframes wipe { from { transform: translateX(0); } to { transform: translateX(91%); } }

.photo-spark { position: absolute; right: 22px; top: 22px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px #0b263d1f; animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.75s both; }
.photo-spark svg { width: 30px; height: 30px; fill: var(--teal); stroke: none; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.image-note { position: absolute; left: -28px; bottom: 34px; display: flex; align-items: center; gap: 16px; padding: 20px 26px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 44px #0b263d1c; }
.note-spark { width: 40px; height: 40px; fill: var(--teal); stroke: none; flex-shrink: 0; }
.image-note strong { display: block; font-family: var(--display); font-size: 1.1875rem; font-weight: 680; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); }
.image-note span { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }

/* Sentence-style quote starter on a flyer band */
.starter { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 56px 0 -52px; padding: 24px 52px; background: var(--navy); color: #fff; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.starter-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: #fff; font-family: var(--display); font-size: 1.5rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.4; }
.starter select { appearance: none; -webkit-appearance: none; max-width: 100%; padding: 2px 30px 2px 2px; border: 0; border-bottom: 2px solid var(--aqua); border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236fdcd8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; color: var(--aqua); font-weight: 680; letter-spacing: inherit; cursor: pointer; }
.starter select:focus-visible { outline-color: var(--aqua); }
.starter option { color: var(--navy); background: #fff; font-family: var(--body); }
.starter .button { flex-shrink: 0; }

/* ---------- Section headings ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-bottom: 44px; }
.section-heading > p { max-width: 24em; font-size: 1.0625rem; }

/* ---------- Services explorer ---------- */
.services-section { padding-top: 156px; }
.explorer { display: grid; grid-template-columns: minmax(280px, .82fr) 1.3fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.explorer-tabs { display: flex; flex-direction: column; }
.explorer-tabs button { display: flex; align-items: center; gap: 16px; flex: 1; width: 100%; padding: 17px 24px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; transition: background-color .18s, color .18s; }
.explorer-tabs button:last-child { border-bottom: 0; }
.explorer-tabs svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--teal); transition: color .18s; }
.explorer-tabs span { font-family: var(--display); font-size: 1.1875rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); transition: color .18s; }
.explorer-tabs small { display: block; margin-top: 3px; font-family: var(--body); font-size: .875rem; font-weight: 450; letter-spacing: 0; color: var(--muted); transition: color .18s; }
.explorer-tabs button:hover { background: var(--mist); }
.explorer-tabs button[aria-selected="true"] { background: var(--navy); }
.explorer-tabs button[aria-selected="true"] span { color: #fff; }
.explorer-tabs button[aria-selected="true"] small { color: var(--on-navy); }
.explorer-tabs button[aria-selected="true"] svg { color: var(--aqua); }
.explorer-tabs button:focus-visible { outline-offset: -4px; }

.explorer-panel { padding: 46px 52px; background: var(--mist); }
.explorer-panel:focus-visible { outline-offset: -4px; }
.panel-for { font-size: .9375rem; font-weight: 650; color: var(--teal-dark); }
.explorer-panel h3 { margin-top: 8px; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.panel-description { margin-top: 16px; max-width: 34em; }
.panel-list-title { margin-top: 28px; font-weight: 680; color: var(--navy); }
.explorer-panel ul { display: grid; gap: 10px; margin-top: 12px; }
.explorer-panel li { position: relative; padding-left: 26px; color: var(--ink); line-height: 1.55; }
.explorer-panel li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; background: var(--teal); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.panel-actions p { flex: 1 1 240px; font-size: .875rem; line-height: 1.5; }
.explorer-panel.is-swapping > * { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.service-footnote { margin-top: 26px; text-align: center; font-size: .9688rem; }
.service-footnote a, .faq-grid > div:first-child a, .send-to a, .dialog-body a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Approach ---------- */
.approach-section { padding-top: 0; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 84px; align-items: center; }
.approach-visual { position: relative; padding-bottom: 30px; }
.team-photo { position: relative; overflow: hidden; aspect-ratio: 1.5; background: #e5efef; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.team-photo img { position: absolute; max-width: none; width: auto; height: 350%; left: 50%; top: -93.2%; transform: translateX(-50%); }
.approach-label { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: var(--navy); border-radius: var(--radius); color: var(--on-navy); font-size: .9375rem; line-height: 1.45; }
.approach-label .icon { width: 28px; height: 28px; color: var(--aqua); }
.approach-label strong { color: #fff; font-weight: 600; }
.approach-copy > p { margin-top: 22px; }
.value-list { display: grid; gap: 20px; margin-top: 32px; }
.value-list dt { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.125rem; font-weight: 660; letter-spacing: -.015em; color: var(--navy); }
.value-list dt .icon { color: var(--teal); }
.value-list dd { margin: 3px 0 0 33px; color: var(--muted); font-size: 1rem; }

/* ---------- How it works ---------- */
.process-section { padding-block: 88px 96px; background: var(--navy); }
.process-section h2 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.process-grid li { padding-top: 22px; border-top: 2px solid #ffffff26; }
.process-number { display: block; font-family: var(--display); font-size: 3.4rem; font-weight: 760; line-height: 1; letter-spacing: -.04em; color: var(--aqua); }
.process-grid h3 { margin-top: 14px; color: #fff; }
.process-grid p { margin-top: 10px; max-width: 22em; color: var(--on-navy); }

/* ---------- Service areas ---------- */
.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 84px; align-items: center; }
.area-grid > div:first-child > p { margin-top: 22px; max-width: 26em; }
.area-panel { padding: 36px 38px; border-radius: 14px; background: var(--mist); }
.area-panel-heading { display: flex; align-items: center; gap: 10px; font-weight: 680; color: var(--navy); }
.area-panel-heading .icon { color: var(--teal); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.place { padding: 11px 19px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 620; color: var(--navy); transition: background-color .18s, border-color .18s, color .18s; }
.place:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.area-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; }

/* ---------- Questions ---------- */
.faq-section { padding-bottom: 164px; background: #f6f9f9; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.3fr; gap: 84px; }
.faq-grid > div:first-child > p { margin-top: 22px; }
.faq-list { interpolate-size: allow-keywords; }
.faq-list details { border-bottom: 1px solid #cfdde1; }
.faq-list details:first-child { border-top: 1px solid #cfdde1; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 0; list-style: none; cursor: pointer; font-family: var(--display); font-size: 1.1875rem; font-weight: 640; letter-spacing: -.015em; line-height: 1.3; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--teal-dark); }
.faq-list summary span { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--teal); transition: transform .25s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details > div { padding: 0 44px 24px 0; color: var(--muted); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* ---------- Quote ---------- */
.quote-section { position: relative; padding-block: 84px 112px; background: var(--deep); }
.quote-section::before { content: ""; position: absolute; left: 0; right: 0; top: -55px; height: 56px; background: var(--deep); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.quote-copy { position: sticky; top: 120px; }
.quote-copy h2 { color: #fff; font-size: clamp(2.3rem, 4vw, 3.6rem); }
.quote-copy > p { margin-top: 22px; color: var(--on-navy); font-size: 1.125rem; }
.contact-links { display: grid; gap: 20px; margin-top: 36px; }
.contact-links > a { display: flex; align-items: center; gap: 15px; color: #fff; }
.contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1.5px solid #ffffff33; border-radius: 50%; color: var(--aqua); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-links small { display: block; font-size: .875rem; color: var(--on-navy); }
.contact-links strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 640; letter-spacing: -.015em; line-height: 1.3; }
.contact-links .contact-email { font-size: 1.0313rem; overflow-wrap: anywhere; }
.contact-links > a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

.quote-form-panel { padding: 34px 40px 38px; border-radius: 14px; background: #fff; }
.steps { display: flex; gap: 8px; margin-bottom: 30px; }
.steps li { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); font-size: .875rem; font-weight: 550; color: var(--muted); white-space: nowrap; transition: border-color .25s, color .25s; }
.steps li span { font-family: var(--display); font-weight: 720; margin-right: 3px; }
.steps li.is-done { border-top-color: var(--aqua); color: var(--teal-dark); }
.steps li[aria-current] { border-top-color: var(--teal); color: var(--navy); font-weight: 680; }
form:not(.is-stepped) .steps, form:not(.is-stepped) .step-nav, form:not(.is-stepped) .step[data-step="4"] { display: none; }
form:not(.is-stepped) .step { margin-bottom: 30px; }
.step { border: 0; min-width: 0; }
.is-stepped .step { display: none; }
.is-stepped .step.is-current { display: block; animation: rise .3s ease both; }
.step legend, .step > h3 { margin-bottom: 20px; font-size: 1.6rem; font-weight: 700; outline: 0; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice, .chip { position: relative; display: block; cursor: pointer; }
.choice input, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 620; line-height: 1.3; color: var(--navy); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--teal); }
.choice:hover span { border-color: #8fc4c6; }
.choice input:checked + span { border-color: var(--teal); background: #e7f5f4; box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.choice-wide { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span { display: block; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 580; color: var(--navy); transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover span { border-color: #8fc4c6; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; min-width: 0; }
.form-field label, .field-label { display: block; margin-bottom: 7px; font-size: .9375rem; font-weight: 650; line-height: 1.5; color: var(--navy); }
.form-field > label > span:not(.optional) { color: var(--teal); }
.optional { font-weight: 450; color: var(--muted); }
.form-field input, .form-field textarea, #request-text { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9d8dc; border-radius: var(--radius); background: #fff; color: var(--navy); line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #71808a; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #087e8722; outline: 0; }
.step-error { margin-top: 12px; font-size: .9375rem; font-weight: 600; color: #a3261c; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.step-nav .button { margin-left: auto; }
.button-back { padding: 10px 2px; border: 0; background: transparent; font-weight: 620; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.button-back:hover { color: var(--navy); }

.send-intro { margin-top: -8px; }
.send-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.send-options .button { flex: 1 1 190px; }
.send-options .button:first-child { flex-basis: 100%; }
.send-status { min-height: 1.6em; margin-block: 12px 14px; font-size: .9375rem; font-weight: 600; color: var(--teal-dark); }
#request-text { min-height: 200px; background: var(--mist); border-color: var(--line); font-size: .9375rem; resize: vertical; }
.send-to { margin-top: 12px; font-size: .9375rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 60px; background: var(--deep); border-top: 1px solid #ffffff14; color: var(--on-navy); }
.footer-main { display: grid; grid-template-columns: 1.35fr .65fr 1fr; gap: 60px; padding-bottom: 50px; }
.footer-wordmark { display: inline-block; font-family: var(--display); font-size: 2.5rem; font-weight: 780; line-height: 1; letter-spacing: .01em; color: #fff; }
.footer-wordmark > span { display: block; margin-top: 8px; font-family: var(--body); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--aqua); }
.footer-brand > p { margin-top: 20px; font-size: .9375rem; color: #a3b7c4; }
.footer-main h2 { margin-bottom: 16px; font-family: var(--body); font-size: 1rem; font-weight: 680; letter-spacing: 0; color: #fff; }
.footer-main > div:not(:first-child) > a { display: block; width: fit-content; margin-bottom: 9px; font-size: .9375rem; }
.footer-main a:hover, .footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }
.footer-email { overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; gap: 28px; padding-block: 20px; border-top: 1px solid #ffffff1a; font-size: .875rem; }
.footer-bottom p { margin-right: auto; color: #9ab0be; }
.footer-bottom button { padding: 0; border: 0; background: transparent; }
.mobile-contact { display: none; }

/* ---------- Privacy dialog ---------- */
dialog { width: calc(100% - 36px); max-width: 640px; max-height: 85dvh; padding: 0; border: 0; border-radius: 14px; color: var(--ink); box-shadow: 0 30px 100px #071c2d55; }
dialog::backdrop { background: #071c2d99; backdrop-filter: blur(4px); }
.dialog-body { position: relative; padding: 44px; }
.dialog-body h2 { margin-bottom: 20px; padding-right: 36px; font-size: 2rem; }
.dialog-body > p { margin-bottom: 16px; }
.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); }
.dialog-close:hover { background: #d7eceb; }
body.dialog-open { overflow: hidden; }

/* ---------- 404 page ---------- */
.eyebrow { font-weight: 650; color: var(--teal-dark); margin-bottom: 12px; }
.eyebrow ~ p { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .primary-nav { gap: 22px; }
  .hero-grid { gap: 44px; }
  .hero-photo { height: 500px; }
  .image-note { left: -14px; padding: 16px 20px; }
  .starter { padding-inline: 40px; }
  .starter-line { font-size: 1.3rem; }
  .explorer-panel { padding: 36px; }
  .approach-grid, .area-grid, .faq-grid { gap: 52px; }
  .quote-grid { gap: 44px; }
  .quote-form-panel { padding: 28px 28px 32px; }
  .footer-main { gap: 36px; }
}

@media (max-width: 900px) {
  .primary-nav > a[href="#how-it-works"] { display: none; }
  .steps li { font-size: .8125rem; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .explorer-tabs button { flex: 0 0 auto; width: auto; gap: 10px; padding: 14px 18px; border-bottom: 0; border-right: 1px solid var(--line); scroll-snap-align: center; }
  .explorer-tabs svg { width: 24px; height: 24px; }
  .explorer-tabs span { font-size: 1rem; white-space: nowrap; }
  .explorer-tabs small { display: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-copy { position: static; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  body { font-size: 1rem; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 68px; }
  .utility-bar { font-size: .75rem; }
  .utility-inner { min-height: 34px; gap: 8px; }
  .utility-inner > span { max-width: 62%; line-height: 1.35; }
  .utility-inner .icon { width: 13px; height: 13px; }

  .header-inner, .is-scrolled .header-inner { min-height: 72px; gap: 16px; }
  .brand-graphic, .is-scrolled .brand-graphic { width: 200px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 46px; height: 46px; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
  .menu-toggle > span { display: block; width: 21px; height: 2px; background: var(--navy); transition: transform .18s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px #0b263d12; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.button), .primary-nav > a[href="#how-it-works"] { display: block; padding: 13px 4px; font-size: 1.0625rem; }
  .primary-nav > a:not(.button)::after { display: none; }
  .primary-nav .button { margin-top: 10px; }

  .hero { background: #fff; }
  h1 { font-size: clamp(2.2rem, 9.6vw, 3.4rem); }
  .contact-links .contact-email { font-size: .9375rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 36px 0; }
  .hero-description { margin-top: 20px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .button { flex: 1 1 200px; }
  .hero-points { margin-top: 22px; gap: 8px 18px; font-size: .875rem; }
  .hero-photo { height: 340px; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
  .photo-spark { right: 14px; top: 14px; width: 48px; height: 48px; }
  .photo-spark svg { width: 25px; height: 25px; }
  .image-note { left: 10px; bottom: 16px; padding: 14px 18px; gap: 12px; }
  .note-spark { width: 30px; height: 30px; }
  .image-note strong { font-size: 1rem; }
  .starter { --slant: 12px; flex-direction: column; align-items: stretch; margin-top: 34px; padding: 22px 26px 24px; }
  .starter-line { font-size: 1.25rem; }
  .services-section { padding-top: 112px; }

  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 16px; }
  .explorer-panel { padding: 28px 22px 30px; }
  .approach-grid, .area-grid, .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .process-section { padding-block: 64px 68px; }
  .process-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .process-grid li { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; padding-top: 20px; }
  .process-number { grid-row: 1 / 3; font-size: 2.8rem; }
  .process-grid h3 { margin-top: 4px; }
  .area-panel { padding: 26px 22px; }
  .faq-section { padding-bottom: 116px; }
  .faq-list summary { padding: 18px 0; font-size: 1.0625rem; }
  .faq-list details > div { padding-right: 12px; }
  .quote-section { padding-block: 56px 72px; }
  .quote-section::before { top: -35px; height: 36px; }
  .quote-form-panel { padding: 24px 20px 28px; }
  .steps { gap: 6px; margin-bottom: 24px; }
  .steps li { font-size: 0; }
  .steps li span { font-size: .9375rem; }
  .steps li[aria-current] { font-size: .8125rem; flex: 2.4; }
  .step legend, .step > h3 { font-size: 1.4rem; }

  .site-footer { padding-top: 44px; padding-bottom: 68px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding-bottom: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom > p { flex-basis: 100%; }
  .mobile-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; height: 62px; padding-bottom: env(safe-area-inset-bottom, 0); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #0b263d14; }
  .mobile-contact > a { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; font-weight: 680; }
  .mobile-contact > a:first-child { flex: .75; color: var(--navy); }
  .mobile-contact > a:last-child { background: var(--teal); color: #fff; }
  .mobile-contact .icon { width: 18px; height: 18px; }
  .dialog-body { padding: 34px 24px; }
  .dialog-body h2 { font-size: 1.7rem; }
}

@media (max-width: 460px) {
  .container { width: calc(100% - 36px); }
  .brand-graphic, .is-scrolled .brand-graphic { width: 184px; }
  .contact-links .contact-email { font-size: .875rem; }
  .hero-photo { height: 300px; }
  .choice-grid, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .footer-main { grid-template-columns: 1fr; }
}

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