/*  City sites. One stylesheet for every city; each site sets --accent inline in the layout.
    Deliberately not the Wild Fox look: light warm canvas, a serif for the two heading levels, one
    workhorse sans for everything else, and a single dark band per page (the estimate call).

    Type scale (the only sizes used):
      h1  clamp(2.3rem, 5.2vw, 3.5rem)   Fraunces 600
      h2  clamp(1.65rem, 3.2vw, 2.25rem) Fraunces 600
      h3  1.125rem                       Source Sans 3 700
      lead 1.2rem · body 1.0625rem · small .9375rem · fine .875rem                                */

:root {
    --accent: #2e5a4c;
    --canvas: #f7f4ee;
    --tint: #efe9dd;
    --surface: #fffdf9;
    --ink: #1c2826;
    --body: #33413e;
    --muted: #5a6865;
    --line: #dbd3c3;
    --dark: #1c2826;
    --error: #a3271c;
    --radius: 10px;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--body);
    font: 400 1.0625rem/1.6 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.14; margin-bottom: .55em; }
h3, .h3 { font-family: var(--text); font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: 0; margin: 0 0 .3em; text-wrap: balance; }
.h2-gap { margin-top: 1.6em; }

.wrap { width: min(100% - 2.5rem, 1140px); margin-inline: auto; }
/* Narrow text columns keep the page's left edge; only the measure is capped. */
.narrow > * { max-width: 780px; }
.narrow-head > * { max-width: 680px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
    font-size: .875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 .7rem;
}
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--body); max-width: 34em; }
.sub { color: var(--muted); max-width: 40em; }
.fine { font-size: .875rem; color: var(--muted); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer;
    padding: .9rem 1.5rem; border-radius: 8px; border: 2px solid transparent;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-small { padding: .6rem 1rem; font-size: .9375rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; white-space: nowrap; }
a.link-arrow:hover, a:hover .link-arrow { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 1.6rem; }

/* ── Header ── */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.25rem; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--accent); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-city { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.brand-trade { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 1.1rem; }
.top-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-phone:hover { text-decoration: underline; }

/* ── Hero ── */
.hero { padding: clamp(2.2rem, 5vw, 4rem) 0 0; }
.hero-page { padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-page h1 { margin-bottom: 1rem; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .55rem; }
.crumbs { font-size: .9375rem; color: var(--muted); margin: 0 0 .9rem; }
.crumbs a { color: var(--muted); }

.facts {
    list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(2rem, 4vw, 3.2rem); border-top: 1px solid var(--line);
}
.facts li { padding: 1.1rem 1.25rem .4rem 0; font-weight: 600; color: var(--ink); line-height: 1.35; text-wrap: balance; }
.facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }

/* ── Bands ── */
.band { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
.band-tint { background: var(--tint); }
.band-note { padding: 1.4rem 0; background: var(--surface); border-block: 1px solid var(--line); }
.note { margin: 0; }
.band-dark { background: var(--dark); color: #d9e0dd; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: #cfd9d5; }
.band-dark a:not(.btn) { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.split-form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split-form > :first-child { position: sticky; top: 1.5rem; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.25rem; margin-top: 1.6rem; }
.card {
    display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--body);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.4rem; transition: border-color .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 1.3rem; }
.card p { margin-bottom: .9rem; }
.card .link-arrow { margin-top: auto; color: var(--accent); }
.card-lead { border-top: 4px solid var(--accent); }

/* ── Steps ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.8rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step-n {
    width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
}
.step p { margin: 0; }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.6rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ── Local notes ── */
.areas { font-size: .9375rem; color: var(--muted); margin-top: 1.2rem; }
.areas strong { color: var(--ink); }
.points { display: grid; gap: 1rem; }
.point { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.point p { margin: 0; }

/* ── Lists ── */
.ticks { list-style: none; display: grid; gap: .6rem; margin: .4rem 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.9rem; text-wrap: pretty; }
.ticks li::before {
    content: ""; position: absolute; left: .15rem; top: .42em; width: .95rem; height: .5rem;
    border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}
.ticks-light li::before { border-color: #fff; }
.next { margin: .6rem 0 1.6rem 1.25rem; display: grid; gap: .7rem; }
.next li { padding-left: .3rem; }
.next strong { color: var(--ink); }

/* ── Warranty table ── */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.terms { width: 100%; border-collapse: collapse; min-width: 30rem; }
.terms th, .terms td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.terms thead th { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.terms tbody th { color: var(--ink); font-weight: 700; }
.terms tbody tr:last-child th, .terms tbody tr:last-child td { border-bottom: 0; }
.terms-years { white-space: nowrap; font-weight: 700; color: var(--ink); }

/* ── FAQ ── */
.faqs { border-top: 1px solid var(--line); margin-top: 1.2rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; position: relative; padding: 1.05rem 2.5rem 1.05rem 0;
    font-weight: 700; color: var(--ink); font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0 0 1.15rem; max-width: 42em; }

/* ── Closing call ── */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }

/* ── Form ── */
.form-card { background: var(--surface); color: var(--body); border-radius: 14px; padding: clamp(1.3rem, 3vw, 2rem); }
.form-card-plain { border: 1px solid var(--line); }
.form { display: grid; gap: 1.15rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; padding: 0; }
.req { font-weight: 400; font-size: .8125rem; color: var(--muted); margin-left: .3rem; }
.hint { display: block; font-weight: 400; font-size: .9375rem; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #b9b1a0; border-radius: 8px; padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.choices, .checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.field .choice, .field .check {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer;
    font-weight: 600; border: 1.5px solid #b9b1a0; border-radius: 8px; padding: .6rem .95rem .6rem .8rem; background: #fff;
}
.field .choice:hover, .field .check:hover { border-color: var(--ink); }
.field .choice:has(input:checked), .field .check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); }
.choice input, .check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }
.field-error { margin: .4rem 0 0; color: var(--error); font-weight: 600; font-size: .9375rem; }
.field-error::before { content: "! "; font-weight: 700; }
.form-alert { margin: 0; padding: .85rem 1rem; border: 1.5px solid var(--error); border-left-width: 5px; border-radius: 8px; color: var(--error); background: #fdf3f1; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); }
[hidden] { display: none !important; }

.status-ok { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }

/* ── Footer ── */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 2.6rem 0 1.4rem; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: .4rem; }
.foot-head { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.foot ul { list-style: none; display: grid; gap: .4rem; }
.foot a { color: var(--body); }
.foot-legal { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.foot-legal p { margin: 0; }

/* ── Smaller screens ── */
@media (max-width: 900px) {
    .hero-grid, .split, .split-form { grid-template-columns: 1fr; }
    .split-form > :first-child { position: static; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .cards, .steps { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery figure:last-child { grid-column: 1 / -1; }
    .gallery figure:last-child img { aspect-ratio: 16 / 9; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .top-row { flex-wrap: wrap; gap: .5rem 1rem; }
    .top-actions { margin-left: auto; }
    .top-phone { display: none; }
    .nav { order: 3; width: 100%; margin: 0; gap: 1.4rem; border-top: 1px solid var(--line); padding-top: .35rem; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-city { font-size: 1.12rem; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .facts li { padding-right: .6rem; font-size: 1rem; }
    .foot-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .btn-small { width: auto; }
    .cta .btn { width: 100%; }
}

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