/* Primera Astro — see ../DESIGN.md */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --canvas: #ffffff; --canvas-alt: #f4f4f2; --tile: #16181d; --tile-2: #1d2026;
  --ink: #16181d; --ink-2: #3c4048; --ink-3: #6b6f76; --hairline: #e3e3e0;
  --accent: #c2410c; --accent-press: #a3360a; --accent-dark: #fb8a4c; --error: #b42318;
  --on-dark: #ffffff; --on-dark-2: #c9ccd1;
  --r-btn: 4px; --r-card: 8px;
  --ease: 0.3s ease;
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--canvas); color: var(--ink-2); font: 400 17px/1.5 "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-btn); }
.skip:focus { top: 8px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--r-btn);
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-light { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-wa { background: #fff; color: var(--ink); border-color: var(--hairline); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { background: none; border: 0; padding: 4px 0; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color var(--ease), color var(--ease), box-shadow var(--ease); color: var(--ink); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark { width: 31px; height: 16px; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a, .langs a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-btn); transition: background-color var(--ease); }
.nav-links a:hover, .langs a:hover { background: rgba(127, 127, 127, 0.14); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: flex; }
.langs a { padding: 6px 8px; font-size: 13px; opacity: 0.7; }
.langs a[aria-current] { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform var(--ease); }
.menu-btn i:first-of-type { top: 18px; } .menu-btn i:last-of-type { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.menu { background: var(--canvas); color: var(--ink); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--hairline); }
.menu a { display: block; padding: 12px 0; font-size: 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.menu .langs { gap: 8px; margin-top: 12px; }
.menu .langs a { border: 0; font-size: 15px; padding: 8px 10px; }
body.over-hero .nav:not(.scrolled):not(.open) { color: #fff; }
.nav.scrolled, .nav.open, body.solid .nav { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
@media (max-width: 900px) {
  .nav-links, .nav-end > .langs { display: none; }
  .menu-btn { display: block; }
  .nav-end .btn { display: none; }
}

/* ---------- hero + tiles (full-screen, photo first) */
.hero, .tile { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--tile); isolation: isolate; }
.hero-img, .tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after, .tile::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 13, 16, 0.82) 0%, rgba(12, 13, 16, 0.45) 38%, rgba(12, 13, 16, 0.05) 70%), linear-gradient(to bottom, rgba(12, 13, 16, 0.45), transparent 22%); }
.hero-txt, .tile-txt { padding: 0 var(--gutter) clamp(88px, 12vh, 128px); max-width: 1440px; width: 100%; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.02em; max-width: 16ch; }
.hero-txt > p { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); max-width: 40ch; color: rgba(255, 255, 255, 0.9); }
.hero-note { font-size: 14px !important; color: rgba(255, 255, 255, 0.72) !important; margin-top: 18px !important; }
.hero-svc { min-height: 78vh; min-height: 78svh; }
.eyebrow { font-size: 15px !important; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.9) !important; margin: 0 0 10px !important; }
.tile h2 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.tile-txt p { margin-top: 12px; font-size: clamp(17px, 1.6vw, 21px); max-width: 36ch; color: rgba(255, 255, 255, 0.88); }

/* ---------- bands */
.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.light { background: var(--canvas); }
.band.alt { background: var(--canvas-alt); }
.band.dark { background: var(--tile); color: var(--on-dark-2); }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark a:not(.btn) { color: var(--accent-dark); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; } .center .ctas { justify-content: center; }
.h-sec { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.015em; }
.lead { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-3); max-width: 52ch; }
.band.dark .lead, .muted { color: var(--on-dark-2); }
.center .lead { margin-inline: auto; }
.page-top { padding-top: calc(var(--nav-h) + 56px); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; counter-reset: s; }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 500; font-size: 15px; }
.steps h3 { font-size: 19px; margin: 18px 0 8px; }
.steps p { font-size: 16px; color: var(--ink-3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 40px; }
.two h3 { font-size: 22px; margin-bottom: 10px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }

.cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 20px; }
.cities li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-btn); color: #fff; font-size: 16px; }
.cities li:first-child, .cities li:nth-child(2) { border-color: var(--accent-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--canvas); }
.split-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.split-txt { padding: clamp(56px, 8vw, 120px) var(--gutter); align-self: center; max-width: 620px; }
.split-txt p { margin-top: 20px; font-size: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-img { min-height: 280px; max-height: 60vh; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.cards li { padding: 24px; border-radius: var(--r-card); background: var(--canvas-alt); }
.cards h3 { font-size: 18px; margin-bottom: 6px; }
.cards p { font-size: 16px; color: var(--ink-3); }
.cards-dark li { background: var(--tile-2); }
.cards-dark p { color: var(--on-dark-2); }
.onreq { margin-top: 40px; padding: 20px 24px; border-left: 3px solid var(--accent-dark); }
.onreq h3 { font-size: 16px; margin-bottom: 6px; }

/* ---------- legal */
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 28px 0; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; color: var(--ink); }
.pending { color: var(--error); font-weight: 500; }

/* ---------- footer + dock */
.foot { background: var(--canvas-alt); padding: 64px 0 32px; font-size: 15px; }
.foot-in, .foot-legal { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .brand { color: var(--ink); }
.foot-brand p { margin-top: 12px; color: var(--ink-3); max-width: 30ch; }
.foot h2 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.foot li { line-height: 2.1; }
.foot a { color: var(--ink-2); text-decoration: none; } .foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-3); display: grid; gap: 8px; }
.foot-legal a { color: var(--ink-3); }
.credits { font-size: 12px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

.dock { display: none; }
@media (max-width: 900px) {
  .dock { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06); }
  .dock .btn { padding: 10px 12px; }
  body { padding-bottom: 64px; }
}

/* ---------- form */
.quote { margin-top: 40px; background: var(--canvas); border-radius: var(--r-card); padding: clamp(20px, 4vw, 40px); }
.progress { display: flex; gap: 8px; margin-bottom: 28px; }
.progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--hairline); font-size: 14px; color: var(--ink-3); transition: border-color var(--ease), color var(--ease); }
.progress b { font-weight: 500; }
.progress li.on { border-color: var(--accent); color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 20px; padding: 0; }
.js .step:not(.on) { display: none; }
.no-js .step + .step { margin-top: 40px; }
.field { margin-bottom: 20px; min-width: 0; }
.field > label, .lbl { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.req { color: var(--accent); margin-left: 3px; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.3; color: var(--ink); background: #fff;
  border: 1px solid #cfd0cc; border-radius: var(--r-card); transition: border-color var(--ease); appearance: none; -webkit-appearance: none; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316181D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: 14px; margin-top: 6px; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
#svc-err { margin: -14px 0 16px; }
.svc-card { position: relative; cursor: pointer; border-radius: var(--r-card); overflow: hidden; border: 2px solid var(--hairline); transition: border-color var(--ease); background: var(--canvas-alt); }
.svc-card input { position: absolute; opacity: 0; }
.svc-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-name { display: block; padding: 12px 14px; font-weight: 500; color: var(--ink); font-size: 15px; line-height: 1.3; }
.svc-card:has(input:checked) { border-color: var(--accent); }
.svc-card:has(input:checked) .svc-name { color: var(--accent); }
.svc-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
  .svc-img img { aspect-ratio: 1; width: 72px; height: 72px; }
}
.svc-fields { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.js .svc-fields:not(.on) { display: none; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #cfd0cc; border-radius: var(--r-card); padding: 3px; gap: 3px; }
.seg label { cursor: pointer; flex: 1 1 auto; } /* options that wrap to a new line fill it */
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 16px; border-radius: 5px; font-size: 15px; color: var(--ink-2); transition: background-color var(--ease), color var(--ease); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.chk { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.chks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.date-row { align-items: end; } .date-row .chk { margin-bottom: 30px; }
.floor { display: flex; gap: 12px; align-items: center; } .floor select { width: 96px; flex: none; }
.consent { margin-top: 8px; } .consent a { color: var(--accent); }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.files { margin-top: 20px; }
.file-btn { position: relative; overflow: hidden; }
.files .file-btn { display: inline-flex; margin-bottom: 0; } /* not the block style of .field > label */
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--ink-2); }
.file-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .note { margin-top: 8px; }

.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.ac-list li { padding: 12px 14px; cursor: pointer; font-size: 15px; line-height: 1.35; border-bottom: 1px solid var(--canvas-alt); }
.ac-list li small { display: block; color: var(--ink-3); font-size: 13px; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--canvas-alt); }
.ac-list .empty { cursor: default; color: var(--ink-3); }
.addr-tools { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; align-items: center; }
.pinned { font-size: 14px; color: #1a7f37; }
.no-js .addr-tools { display: none; }

/* the bottom dock would sit on top of the on-screen keyboard and hide fields */
body:has(.quote :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea):focus) .dock { display: none; }
.form-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.form-nav [data-back] { margin-right: auto; }
.js .form-nav [data-send] { display: none; }
.js .quote.last .form-nav [data-send] { display: inline-flex; }
.js .quote.last .form-nav [data-next] { display: none; }
.no-js .form-nav [data-next], .no-js .form-nav [data-back] { display: none; }
.status { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-card); background: var(--canvas-alt); color: var(--ink); }
.status h3 { font-size: 19px; margin-bottom: 6px; }
.status .ctas { margin-top: 14px; }
.status.ok { background: #ecf6ee; }
.quote.done > :not(.status):not(script) { display: none; }

/* map sheet */
.map-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(12, 13, 16, 0.5); display: grid; place-items: center; padding: 16px; }
.map-box { background: #fff; width: min(820px, 100%); height: min(640px, 100%); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; color: var(--ink); }
.map-head button { flex: none; background: none; border: 0; font-size: 26px; line-height: 1; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }
.map-el { min-height: 0; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.map-foot .btn { flex: none; }
.map-foot p { min-width: 0; font-size: 14px; line-height: 1.35; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) { .map-sheet { padding: 0; } .map-box { border-radius: 0; height: 100%; } }
.pin-icon { width: 30px !important; height: 40px !important; margin: -40px 0 0 -15px !important; }
.pin-icon svg { width: 30px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transition: opacity 0.7s ease; }
  .js .rv.in { opacity: 1; }
}
