/* ============================================================
   Contact / Get a Quote page. Loaded after style.css and reuses its tokens,
   buttons, header, FAQ and footer. Only page-specific styles live here.
   ============================================================ */

:root {
  --err: #b42318;
  --olive: #4a533e;
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

.c-hero, .quote, .reachout { overflow-x: clip; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.c-hero { position: relative; background: var(--bg); padding: clamp(130px, 18vh, 180px) 0 clamp(90px, 10vw, 130px); }
.c-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 0%, transparent 75%); }
.c-hero .wrap { position: relative; }
.c-hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3.5vh, 36px); align-items: start; }
.c-title { font-weight: 400; font-size: clamp(54px, 8.6vw, 136px); line-height: .94; letter-spacing: -.04em; margin-top: 4px; }
.c-title em { font-style: normal; color: var(--accent); }
.c-hero-side { max-width: 620px; }
.c-sub { margin: 0 0 28px; color: var(--ink-dim); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 46ch; }

.expect { margin-top: clamp(64px, 9vw, 110px); }
.expect-label { font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.015em; color: #fff; margin-bottom: 22px; }
.expect-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
.expect-item { position: relative; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.expect-item p { font-size: 17px; line-height: 1.45; letter-spacing: -.005em; color: rgba(255,255,255,.88); max-width: 26ch; }
.ex-bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.c-banner { position: relative; margin: clamp(60px, 8vw, 100px) auto 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) + 160px);
  height: clamp(300px, 44vw, 660px); border-radius: 22px; overflow: hidden; will-change: clip-path; background: var(--bg-2); }
.c-banner-img { position: absolute; inset: 0; overflow: hidden; }
.c-banner-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 50%; }
.c-banner-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%); }
.c-banner-cap { position: absolute; left: clamp(16px, 2.6vw, 30px); bottom: clamp(16px, 2.6vw, 30px); right: clamp(16px, 2.6vw, 30px); display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12,13,12,.55);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); font-size: 14px; }
.cb-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(134,150,112,.6); animation: cbPulse 1.8s ease-out infinite; }
@keyframes cbPulse { to { box-shadow: 0 0 0 8px rgba(134,150,112,0); } }

/* ---------- Quote ---------- */
.quote { position: relative; z-index: 2; background: var(--paper); color: var(--paper-ink); padding: clamp(90px, 10vw, 140px) 0;
  border-radius: 32px 32px 0 0; margin-top: -32px; box-shadow: 0 -30px 70px rgba(0,0,0,.35); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.quote-left { position: sticky; top: 120px; }
.quote .h-xl { font-size: clamp(36px, 4.6vw, 66px); }
.quote-intro { margin: 24px 0 40px; color: #555; font-size: 16px; line-height: 1.6; max-width: 40ch; }
.q-rail { list-style: none; display: grid; gap: 0; max-width: 340px; }
.q-rail li { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--paper-line); font-size: 17px; color: var(--paper-dim);
  transition: color .4s ease; }
.q-rail li:last-child { border-bottom: 1px solid var(--paper-line); }
.q-rail li span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--paper-line);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease; }
.q-rail li::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent-deep); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .6s var(--ease-out); }
.q-rail li.is-current { color: var(--paper-ink); }
.q-rail li.is-current::after, .q-rail li.is-done::after { transform: scaleX(1); }
.q-rail li.is-current span { background: var(--paper-ink); border-color: var(--paper-ink); color: #fff; }
.q-rail li.is-done { color: var(--paper-ink); }
.q-rail li.is-done span { background: var(--accent); border-color: var(--accent); color: #111; font-size: 0; }
.q-rail li.is-done span::before { content: "\2713"; display: block; font-size: 13px; line-height: 1; font-weight: 700; transform: translateY(1px); }

.q-card { position: relative; background: #fff; border-radius: 22px; padding: clamp(22px, 3.4vw, 46px); box-shadow: 0 30px 80px rgba(17,18,16,.08), 0 0 0 1px rgba(0,0,0,.04); }
.q-progress { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--paper-line); }
.qp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.qp-step { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6b6b64; }
.qp-step b { color: var(--accent-deep); font-weight: 500; }
.qp-name { font-size: 15px; font-weight: 500; }
.qp-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.qp-bar { height: 3px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.qp-bar i { display: block; height: 100%; background: var(--accent-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.qp-bar.is-on i { transform: scaleX(1); }
.q-intent { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(92,107,71,.1); color: var(--accent-deep); font-size: 13px; }
.q-intent[hidden] { display: none; }
.q-intent b { font-weight: 600; }
.q-intent-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(92,107,71,.15); color: inherit; cursor: pointer; font-size: 15px; line-height: 1; transition: background-color .2s ease; }
.q-intent-x:hover { background: rgba(92,107,71,.28); }
/* Single-step form: no step counter, the box only holds the request pill */
.q-progress.is-single { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.q-progress.is-single .q-intent { margin: 0 0 20px; }

.q-steps { position: relative; }
.q-step { border: 0; min-width: 0; }
.q-step[hidden] { display: none; }
.q-step:focus { outline: none; }
.q-legend { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 24px; padding: 0; }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.f-full { grid-column: 1 / -1; }
.field label, .g-label { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.req { color: var(--accent-deep); }
.opt { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8a8a82; margin-left: 4px; }
.field input:not([type="checkbox"]), .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--paper-ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px;
  padding: 14px 16px; min-height: 52px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9b9b93; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(0,0,0,.22); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-deep); background: #fff; box-shadow: 0 0 0 4px rgba(92,107,71,.14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); background: #fff; }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.field input[type="number"] { -moz-appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button, .field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 44px; cursor: pointer; }
.f-err { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13px; color: var(--err); }
.f-err:empty { display: none; }
.f-err::before { content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.f-count { margin-top: 6px; text-align: right; font: 500 11px/1 var(--mono); color: #8a8a82; }

/* Chips: real checkbox / radio inputs, visually hidden but focusable */
.group { margin-bottom: 26px; }
.f-grid + .group { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--paper-line); background: var(--paper);
  font-size: 14.5px; line-height: 1.2; user-select: none; transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .18s ease; }
.chip:hover > span { border-color: rgba(0,0,0,.25); }
.chip:active > span { transform: scale(.97); }
.chip input[type="checkbox"] + span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #8a8a82; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #111; transition: background-color .2s ease, border-color .2s ease; }
.chip input:checked + span { background: var(--paper-ink); border-color: var(--paper-ink); color: #fff; }
.chip input[type="checkbox"]:checked + span::before { content: "\2713"; background: var(--accent); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.group.is-invalid .chip > span { border-color: rgba(180,35,24,.45); }
.chips-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip-card { display: flex; }
.chip-card > span { width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 14px; }
.chip-card b { font-weight: 500; font-size: 16px; }
.chip-card small { font-size: 13px; color: #6b6b64; transition: color .22s ease; }
.chip-card input:checked + span small { color: rgba(255,255,255,.7); }
.chip-card input:checked + span b::after { content: "\2713"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%;
  background: var(--accent); color: #111; font-size: 11px; font-weight: 700; vertical-align: 1px; }

.consent { position: relative; display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; color: #444; cursor: pointer; margin: 0 !important; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent .box { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid #8a8a82; background: var(--paper); display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease; }
.consent .box::after { content: "\2713"; font-size: 13px; font-weight: 700; color: #111; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1.4); }
.consent input:checked + .box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .box::after { opacity: 1; transform: none; }
.consent input:focus-visible + .box { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.consent input[aria-invalid="true"] + .box { border-color: var(--err); }
.consent a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.q-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--paper-line); }
.q-next { margin-left: auto; }
.q-next:focus-visible, .q-back:focus-visible, .q-intent-x:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.q-next.is-sending { pointer-events: none; opacity: .8; }
/* Outline button on paper; the back arrow chip sits on the left, so the fill wipes out from the left */
.q-back { --b-bg: transparent; --b-fg: var(--paper-ink); --b-line: var(--paper-line); --b-chip: rgba(0,0,0,.07); --b-ico: var(--paper-ink);
  --b-fill: var(--paper-ink); --b-fg-h: #fff; --b-chip-h: rgba(255,255,255,.14); --b-ico-h: #fff; --b-line-h: var(--paper-ink); }
.q-back:has(> .arrow) { padding: 0 22px 0 7px; --b-at: 23px; }
.q-back[hidden] { display: none; }

/* Error shake (fallback motion, transitions-dev "error state shake") */
@keyframes qShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.is-shaking { animation: qShake .4s ease; }

.q-success { text-align: center; padding: clamp(20px, 4vw, 50px) 0 10px; outline: none; }
.q-success[hidden] { display: none; }
.qs-check { width: 84px; height: 84px; margin: 0 auto 26px; display: block; }
.qs-ring { fill: rgba(134,150,112,.25); stroke: var(--accent-deep); stroke-width: 2.5; stroke-dasharray: 227; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; }
.qs-tick { fill: none; stroke: var(--paper-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 0; }
.qs-title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.qs-text { margin: 16px auto 28px; max-width: 46ch; color: #555; font-size: 16px; line-height: 1.6; }
.qs-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; text-align: left; max-width: 520px; margin: 0 auto 30px; border-radius: 14px; overflow: hidden;
  background: var(--paper-line); border: 1px solid var(--paper-line); }
.qs-summary div { background: var(--paper); padding: 14px 16px; }
.qs-summary dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8a8a82; margin-bottom: 6px; }
.qs-summary dd { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.q-success .ctas { justify-content: center; }

/* ---------- Contact details + map ---------- */
.reachout { position: relative; z-index: 2; background: var(--bg); padding: clamp(100px, 11vw, 150px) 0; }
.ro-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; margin-top: clamp(44px, 6vw, 70px); }
.ro-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ro-card h3 { font-weight: 500; font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.ro-list { margin-top: 6px; }
.ro-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ro-row:last-child { padding-bottom: 0; }
.ro-row dt { font: 500 11.5px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.ro-row dd { font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.9); overflow-wrap: anywhere; }
.ph { color: var(--accent); border-bottom: 1px dashed rgba(134,150,112,.6); }
.tbc { color: var(--ink-faint); font-size: 13px; white-space: nowrap; }
.ro-action p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.ro-action .btn { margin-top: auto; align-self: flex-start; }
.ro-tour { background: var(--olive); border-color: rgba(134,150,112,.3); }
.ro-tour p { color: rgba(255,255,255,.82); }
/* Soft accent glow that follows the pointer on the action cards */
.ro-action::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(134,150,112,.14), transparent 60%); }
.ro-action:hover::before { opacity: 1; }

.map { margin-top: clamp(60px, 8vw, 100px); }
.map-frame { position: relative; padding: 16px; }
.mb { position: absolute; width: 22px; height: 22px; border-color: rgba(255,255,255,.4); border-style: solid; border-width: 0; z-index: 2; pointer-events: none; }
.mb.tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.mb.tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.mb.bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.mb.brr { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.map-box { position: relative; height: clamp(340px, 42vw, 560px); border-radius: 14px; overflow: hidden; background: #1a1c18; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }
.map-tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: rgba(74,85,36,.35);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 120px rgba(0,0,0,.65); }
.map-tag { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; border-radius: 14px; pointer-events: none;
  border: 1px solid var(--line); background: rgba(12,13,12,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; color: var(--ink-dim); }
.map-tag b { display: block; color: #fff; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.mt-pin { position: relative; flex: 0 0 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.mt-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent); animation: mtPulse 2s ease-out infinite; }
@keyframes mtPulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.map-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px 0; font-size: 14px; color: var(--ink-dim); }
.map-cap a { color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.map-cap a .arrow { transition: transform .25s ease; }
.map-cap a:hover .arrow { transform: translate(2px, -2px); }

/* FAQ on this page follows the dark section */
.page-contact .faq { padding: clamp(100px, 11vw, 140px) 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .quote-grid { grid-template-columns: 1fr; }
  /* What to expect + contact cards become swipe sliders (slider.css) */
  .expect-list { --ms-w: 74%; --ms-accent: var(--accent); }
  .expect-item { padding: 20px 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; }
  .ex-bar { top: 0; }
  .expect-item p { font-size: 16px; }
  .quote-left { position: static; }
  .q-rail { display: none; }
  .quote-intro { margin-bottom: 0; }
  .ro-grid { --ms-w: 86%; --ms-accent: var(--accent); }
  .chip > span { min-height: 44px; }
  .to-top { flex: none; }
  .c-banner { border-radius: 16px; }
  .quote { border-radius: 22px 22px 0 0; margin-top: -22px; }
}
@media (max-width: 640px) {
  .c-banner { height: 78vw; }
  .c-banner img { object-position: 38% 60%; }
  .c-banner-cap { font-size: 13px; padding: 9px 14px; border-radius: 12px; }
  .f-grid { grid-template-columns: 1fr; }
  .chips-cards { grid-template-columns: 1fr; }
  .chip-card > span { flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 16px; }
  .q-card { border-radius: 18px; }
  .q-actions { flex-wrap: wrap; }
  .q-next { flex: 1; }
  .qs-summary { grid-template-columns: 1fr; }
  .ro-row { grid-template-columns: 1fr; gap: 4px; }
  .map-box { height: 110vw; max-height: 480px; }
  .map-frame { padding: 10px; }
  .map-tag { left: 12px; right: 12px; bottom: 12px; }
  .map-cap { padding: 12px 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-dot, .mt-pin::after { animation: none; }
  .is-shaking { animation: none; }
  .qp-bar i, .q-rail li::after { transition: none; }
}
