/*
    Kazman Construction & Remodeling - the public site.

    The palette is taken from the logo: deep navy, brushed gold, and a touch
    of teal, set on warm stone. Headings are Barlow Condensed, text is
    Source Sans 3, both from Google Fonts.
*/

:root {
    color-scheme: light;

    --ink: #0f1923;
    --navy: #16283a;
    --navy-soft: #22384d;
    --gold: #c4a36e;
    --gold-bright: #d8bd8a;
    --gold-deep: #94753f;
    --gold-soft: #f3ead9;
    --teal: #2a9aa8;
    --stone: #f3efe7;
    --paper: #fbfaf7;
    --white: #ffffff;
    --text: #232a31;
    --muted: #5e6873;
    --line: #e3dccd;
    --line-dark: rgba(255, 255, 255, 0.14);

    --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

    --shell: 1200px;
    --gutter: 24px;
    --radius: 4px;
    --shadow: 0 18px 40px -22px rgba(15, 25, 35, 0.45);
    --shadow-soft: 0 10px 30px -18px rgba(15, 25, 35, 0.35);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 600; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-top: 2.5rem; }

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; background: var(--gold); color: var(--ink);
    font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.eyebrow {
    margin: 0 0 0.8rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px; height: 2px;
    margin-right: 12px;
    vertical-align: middle;
    background: currentColor;
}

.lead { font-size: 1.25rem; line-height: 1.55; }

.text-link {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-deep);
}

/* Buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.button-large { padding: 16px 32px; font-size: 1.2rem; }

.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: var(--gold-bright); color: var(--ink); }
.button-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--navy); }
.button-outline { border-color: var(--navy); color: var(--navy); }
.button-outline:hover { background: var(--navy); color: var(--white); }
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: var(--ink); color: var(--gold-bright); }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

/* License bar and header */

.license-bar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.license-bar .shell {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 22px;
    padding: 7px 0;
}
.license-number { color: var(--gold-bright); font-weight: 700; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.8);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.brand img { width: auto; height: 50px; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
    display: block;
    padding: 10px 14px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.nav-link.active { border-bottom-color: var(--gold); }

.nav-group { position: relative; }
.nav-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 250px;
    padding: 10px 0;
    background: var(--white);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a {
    display: block;
    padding: 9px 20px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}
.nav-menu a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-menu-right { left: auto; right: 0; }

.nav-estimate { margin-left: 10px; }
.nav-estimate.active { box-shadow: inset 0 -3px 0 var(--gold-deep); }

.nav-toggle {
    display: none;
    width: 48px; height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--gold-bright);
    transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumb */

.breadcrumb-bar { background: var(--stone); border-bottom: 1px solid var(--line); }
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }
.crumb-sep { color: var(--gold); }

/* Heroes */

.hero, .page-hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}
.hero { min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.page-hero { min-height: 420px; display: flex; align-items: flex-end; }

.hero-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 25, 35, 0.15) 0%, rgba(15, 25, 35, 0.55) 45%, rgba(15, 25, 35, 0.92) 100%),
        linear-gradient(90deg, rgba(15, 25, 35, 0.6) 0%, rgba(15, 25, 35, 0) 70%);
}
.hero-inner { position: relative; padding: 120px 0 72px; max-width: 820px; }
.page-hero .hero-inner { padding: 96px 0 56px; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold-bright); }
.hero .lead, .page-hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 640px; }

.page-hero-plain {
    min-height: 0;
    display: block;
    padding: 84px 0 64px;
    background:
        radial-gradient(circle at 85% 20%, rgba(42, 154, 168, 0.18), transparent 45%),
        linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
}
.page-hero-plain::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}
.page-hero-plain h1 { max-width: 900px; }
.page-hero-plain .shell { position: relative; }

.page-hero-concrete, .page-hero-commercial { min-height: 460px; }
.page-hero-concrete {
    background:
        linear-gradient(90deg, rgba(15, 25, 35, 0.92), rgba(15, 25, 35, 0.55)),
        repeating-linear-gradient(90deg, #4a5360 0 2px, transparent 2px 120px),
        repeating-linear-gradient(0deg, #4a5360 0 2px, transparent 2px 120px),
        radial-gradient(circle at 30% 40%, #6c737b, #3a424b);
}
.page-hero-commercial {
    background:
        linear-gradient(90deg, rgba(15, 25, 35, 0.94), rgba(22, 40, 58, 0.6)),
        repeating-linear-gradient(90deg, rgba(196, 163, 110, 0.35) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(196, 163, 110, 0.35) 0 1px, transparent 1px 64px),
        var(--navy-soft);
}

/* Trust strip */

.trust-strip { background: var(--navy); color: var(--white); border-top: 3px solid var(--gold); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
    display: flex; flex-direction: column;
    padding: 26px 22px;
    border-left: 1px solid var(--line-dark);
}
.trust-item:first-child { border-left: 0; }
.trust-item strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: var(--gold-bright);
}
.trust-item span { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

/* Bands */

.band { padding: 96px 0; }
.band-tight { padding: 64px 0; }
.band-stone { background: var(--stone); }
.band-dark { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--gold-bright); }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Cards */

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }

.service-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 380px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}
.service-card img, .service-card .card-art {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.service-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 25, 35, 0) 30%, rgba(15, 25, 35, 0.92) 100%);
}
.service-card:hover img, .service-card:hover .card-art { transform: scale(1.05); }
.service-card-body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px;
    border-bottom: 4px solid var(--gold);
}
.service-card-body strong {
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1.05;
    color: var(--white);
}
.service-card-body span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
.service-card:hover { color: var(--white); }

.card-art { display: block; }
.card-art-concrete {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 90px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 90px),
        radial-gradient(circle at 30% 30%, #7a8189, #3b434c);
}
.card-art-commercial {
    background:
        repeating-linear-gradient(90deg, rgba(196, 163, 110, 0.3) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(196, 163, 110, 0.3) 0 1px, transparent 1px 48px),
        linear-gradient(160deg, var(--navy-soft), var(--ink));
}

.value-card {
    padding: 34px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.value-card p { margin: 0; color: var(--muted); }
.value-number {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.tier-card {
    padding: 34px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.tier-card p { margin: 0; color: var(--muted); }
.tier-name {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
}
.tier-card-mid { border-top: 4px solid var(--teal); }
.tier-card-top { background: var(--navy); border-color: var(--navy); border-top: 4px solid var(--gold); }
.tier-card-top .tier-name { color: var(--gold-bright); }
.tier-card-top p { color: rgba(255, 255, 255, 0.8); }

.partner-card {
    display: block;
    padding: 40px 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.partner-card p { color: var(--muted); }

/* Split sections */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { margin: 0; }
.split-media img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.split-media figcaption, .before-after figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}
.band-dark .split-media figcaption { color: rgba(255, 255, 255, 0.6); }
.split-media-cutout img {
    max-height: 520px;
    width: auto;
    margin-inline: auto;
    object-fit: contain;
    box-shadow: none;
    filter: drop-shadow(0 24px 30px rgba(15, 25, 35, 0.25));
}

.partner-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 24px;
}
.partner-strip > div:first-child { max-width: 640px; }
.partner-strip .button-row { margin: 0; }

/* Before and after */

.before-after { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.before-after figure { position: relative; margin: 0; }
.before-after img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
}
.before-after figcaption { position: absolute; top: 12px; left: 12px; margin: 0; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ink);
    color: var(--white);
    border-radius: 2px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.tag-gold { background: var(--gold); color: var(--ink); }

/* Service list */

.service-list { display: grid; gap: 28px; }
.service-row {
    display: grid; grid-template-columns: 360px 1fr;
    gap: 40px; align-items: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.service-row:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-row img, .service-row .card-art {
    width: 100%; height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
}
.service-row p:not(.eyebrow) { color: var(--muted); }

/* Lists and facts */

.check-list { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.check-list li {
    position: relative;
    padding: 10px 0 10px 36px;
    border-bottom: 1px solid var(--line);
}
.check-list li::before {
    content: "";
    position: absolute; left: 4px; top: 17px;
    width: 14px; height: 8px;
    border-left: 3px solid var(--gold-deep);
    border-bottom: 3px solid var(--gold-deep);
    transform: rotate(-45deg);
}

.fact-panel {
    padding: 34px 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.fact-panel-dark { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.85); }
.fact-panel-dark h3 { color: var(--white); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.facts dd { margin: 0; }

.pdf-note {
    margin: 24px 0 0;
    padding: 14px 16px;
    background: var(--gold-soft);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.steps { margin: 0; padding-left: 1.3em; }
.steps li { padding: 6px 0; }
.steps li::marker { color: var(--gold-bright); font-weight: 700; }

.area-list {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 1.5rem; padding: 0;
    list-style: none;
}
.area-list li {
    padding: 6px 16px;
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: 99px;
    font-weight: 600;
    color: var(--navy);
}

.team-member { padding: 18px 0; border-bottom: 1px solid var(--line); }
.team-member h3 { margin: 0; }
.team-role {
    margin: 0 0 8px;
    font-family: var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
}

.notice {
    margin-bottom: 2rem;
    padding: 30px 32px;
    background: var(--gold-soft);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
}

/* Photos, gallery and video */

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

.gallery-label { margin: 2rem 0 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.gallery-item a { display: block; }
.gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(180deg, transparent, rgba(15, 25, 35, 0.85));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.video-frame {
    overflow: hidden;
    max-width: 380px;
    margin-inline: auto;
    border: 6px solid var(--navy-soft);
    border-radius: 12px;
    background: var(--ink);
    box-shadow: var(--shadow);
}
.video-frame video { width: 100%; }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(15, 25, 35, 0.94);
    cursor: zoom-out;
}
.lightbox img { max-height: 92vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* Estimate form */

.estimate-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.estimate-aside { display: grid; gap: 24px; position: sticky; top: 110px; }

.form-section {
    margin: 0 0 28px;
    padding: 30px 30px 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.form-section legend {
    display: flex; align-items: center; gap: 12px;
    padding: 0 10px;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
}
.step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--ink);
    border-radius: 50%;
    font-size: 1.2rem;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; color: var(--navy); }
.field em { font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.field small { color: var(--muted); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid #cfc6b4;
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 154, 168, 0.2);
}
/* The photo and plan picker (typescript/site/uploads.ts). The browser's own
   file button is hidden; the drop area is the label that opens it. */
.upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    padding: 30px 20px;
    background: var(--stone);
    border: 2px dashed #c9bc9f;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragging { background: var(--gold-soft); border-color: var(--gold-deep); }
.upload-input:focus-visible + .upload-zone { outline: 3px solid var(--teal); outline-offset: 2px; }
.upload-zone strong { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.04em; color: var(--navy); }
.upload-zone span { color: var(--muted); font-size: 0.95rem; }
.upload-icon {
    width: 44px; height: 44px;
    margin-bottom: 4px;
    fill: none;
    stroke: var(--gold-deep);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0 6px; padding: 0; list-style: none; }
.upload-list:empty { display: none; }
.upload-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.upload-thumb {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
    width: 52px; height: 52px;
    overflow: hidden;
    background: var(--navy);
    border-radius: 3px;
    color: var(--gold-bright);
    font-size: 0.75rem;
    font-weight: 700;
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-words { display: flex; flex-direction: column; min-width: 0; }
.upload-words strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.upload-words small { color: var(--muted); }
.upload-remove {
    margin-left: auto;
    flex: none;
    width: 30px; height: 30px;
    background: none;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.upload-remove:hover { border-color: #b3261e; color: #b3261e; }

/* The captcha (typescript/site/captcha.ts), drawn by the server in navy and gold. */
.captcha-field { margin: 0 0 24px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.captcha-field > label { font-weight: 600; color: var(--navy); }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.captcha-image { display: block; width: 150px; height: 44px; border-radius: 6px; }
.captcha-refresh {
    width: 44px; height: 44px;
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    font-size: 1.4rem;
    cursor: pointer;
}
.captcha-refresh:hover { background: var(--gold-soft); border-color: var(--gold); }
.captcha-field .captcha-input {
    width: 170px;
    padding: 10px 12px;
    background: var(--paper);
    border: 1px solid #cfc6b4;
    border-radius: var(--radius);
    font: inherit;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}
.captcha-field .captcha-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 154, 168, 0.2); }
.captcha-field.has-error .captcha-input { border-color: #b3261e; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--paper);
    border: 1px solid #cfc6b4;
    border-radius: 99px;
    font-weight: 400;
    cursor: pointer;
}
.choice input { accent-color: var(--gold-deep); }

.field-grid-address { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 20px; }
.field .field-error { color: #b3261e; font-weight: 600; }
.field .field-error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.estimate-thanks {
    padding: 48px 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form-note.good { color: #2f7d4f; font-weight: 600; }
.form-note.bad { color: #b3261e; font-weight: 600; }

/* Call to action band and footer */

.cta-band {
    position: relative;
    padding: 72px 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(196, 163, 110, 0.18), transparent 50%),
        var(--ink);
    color: rgba(255, 255, 255, 0.85);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-inner .eyebrow { color: var(--gold-bright); }
.cta-inner p:last-child { margin: 0; }
.section-estimate .cta-band, .section-admin .cta-band, .section-login .cta-band { display: none; }

.site-footer { background: #0a1219; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 0 40px;
}
.footer-grid h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
}
.footer-grid a { display: block; padding: 3px 0; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-grid p { margin: 0 0 6px; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-legal {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 10px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* Narrower screens */

@media (max-width: 1080px) {
    .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .estimate-layout { grid-template-columns: 1fr; }
    .estimate-aside { position: static; }
}

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px var(--gutter) 22px;
        background: var(--navy);
        border-top: 1px solid var(--line-dark);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-open .site-nav { display: flex; }
    .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); }
    .nav-link.active { border-bottom-color: var(--gold); }
    .nav-menu {
        position: static;
        min-width: 0;
        padding: 0 0 8px 16px;
        background: none;
        border: 0;
        box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
    }
    .nav-menu a { padding: 8px 4px; color: rgba(255, 255, 255, 0.72); font-weight: 400; }
    .nav-menu a:hover { background: none; color: var(--gold-bright); }
    .nav-estimate { margin: 16px 0 0; }

    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(3) { border-left: 0; }
    .trust-item { border-top: 1px solid var(--line-dark); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split-reverse .split-media { order: 0; }
    .before-after, .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .service-row { grid-template-columns: 1fr; gap: 20px; }
    .card-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 17px; }
    .brand img { height: 42px; }
    .license-extra { display: none; }
    .band { padding: 64px 0; }
    .hero-inner { padding: 96px 0 48px; }
    .card-grid-2, .card-grid-4, .card-grid-5 { grid-template-columns: 1fr; }
    .service-card { min-height: 300px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: 0; }
    .field-grid, .field-grid-address { grid-template-columns: 1fr; }
    .form-section { padding: 24px 18px 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .button-large { width: 100%; }
}
