:root {
    color-scheme: light;
    --color-ink: #172027;
    --color-muted: #5d6872;
    --color-line: #d9dee3;
    --color-bg: #f4f6f8;
    --color-panel: #ffffff;
    --color-graphite: #22303a;
    --color-graphite-2: #31424f;
    --color-accent: #e66f1f;
    --color-accent-dark: #b94f12;
    --color-focus: #0b73d9;
    --shadow: 0 18px 40px rgba(23, 32, 39, .10);
    --radius: 8px;
    --container: 1160px;
    --space: 64px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-panel);
    color: var(--color-ink);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--color-ink);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.narrow {
    width: min(100% - 32px, 820px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--color-graphite);
    color: #fff;
    border-radius: 6px;
}

.brand-text {
    font-size: 1.08rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--color-ink);
    background: var(--color-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-link {
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: #fff;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.button-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, .10);
    border-color: #fff;
}

.button-small {
    min-height: 42px;
    padding: 8px 14px;
    font-size: .95rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 22px;
    color: var(--color-muted);
    font-size: .95rem;
}

.breadcrumbs a {
    color: var(--color-graphite);
}

.hero {
    background:
        linear-gradient(115deg, rgba(34, 48, 58, .98), rgba(49, 66, 79, .94)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 84px);
    color: #fff;
    padding: clamp(48px, 8vw, 96px) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 860px;
    font-size: 4.3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.18rem;
}

p {
    margin: 0;
}

.hero-intro {
    margin-top: 22px;
    max-width: 760px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.trust-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .86);
}

.trust-list li {
    position: relative;
    padding-left: 24px;
}

.trust-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 9px;
    height: 9px;
    border: 2px solid var(--color-accent);
    border-radius: 2px;
    transform: rotate(45deg);
}

.hero-visual {
    margin: 0;
}

.hero-visual img {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.hero-visual figcaption {
    margin-top: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
}

.section {
    padding: var(--space) 0;
}

.section-muted {
    background: var(--color-bg);
}

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-head p,
.narrow p {
    margin-top: 14px;
    color: var(--color-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    padding: 22px;
    min-height: 220px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-panel);
}

.info-card p {
    margin-top: 12px;
    color: var(--color-muted);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-accent-dark);
    font-weight: 800;
}

.project-section {
    background: #fff;
}

.project-grid {
    display: grid;
    gap: 22px;
}

.project-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-panel);
    overflow: hidden;
}

.project-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 0;
}

.project-cover,
.project-gallery figure {
    margin: 0;
    background: var(--color-bg);
}

.project-cover {
    aspect-ratio: 16 / 10;
}

.project-cover img,
.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 28px;
}

.project-copy p:not(.project-number) {
    color: var(--color-muted);
}

.project-number {
    color: var(--color-accent-dark);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 6px 9px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-graphite);
    font-size: .85rem;
    font-weight: 750;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-line);
    border-top: 1px solid var(--color-line);
}

.project-gallery figure {
    aspect-ratio: 4 / 3;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.process-list li {
    counter-increment: step;
    min-height: 180px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
}

.process-list li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 18px;
    color: var(--color-accent);
    font-weight: 900;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: #fff;
}

th,
td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-line);
}

th {
    background: var(--color-graphite);
    color: #fff;
}

.cta-band {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--color-graphite);
    color: #fff;
}

.cta-band p:last-child {
    max-width: 720px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .82);
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

details {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
}

summary {
    min-height: 54px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 800;
}

details p {
    padding: 0 18px 18px;
    color: var(--color-muted);
}

.lead-section {
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 520px);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
}

.lead-form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-bg);
}

.lead-form label {
    display: grid;
    gap: 7px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9c0c7;
    border-radius: 6px;
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.checkbox-row {
    grid-template-columns: 22px 1fr;
    align-items: start;
    font-weight: 500;
}

.checkbox-row input {
    min-height: auto;
    margin-top: 5px;
}

.form-status {
    min-height: 24px;
    color: var(--color-accent-dark);
    font-weight: 750;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    background: var(--color-ink);
    color: rgba(255, 255, 255, .82);
    padding: 48px 0 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 6px;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 1rem;
}

.footer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list a {
    color: #fff;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .66);
    font-size: .92rem;
}

.mobile-action-bar {
    display: none;
}

@media (max-width: 980px) {
    :root {
        --space: 48px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav,
    .header-actions {
        display: none;
    }

    .site-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 14px;
    }

    .hero-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card-main {
        grid-template-columns: 1fr;
    }

    .project-copy {
        padding: 22px;
    }

    .project-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --space: 40px;
    }

    .container,
    .narrow {
        width: min(100% - 24px, var(--container));
    }

    body {
        padding-bottom: 72px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 42px 0;
    }

    .hero-actions,
    .cta-band {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .card-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-card,
    .process-list li {
        min-height: auto;
    }

    .lead-form {
        padding: 16px;
    }

    .mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 15;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: var(--color-line);
        border-top: 1px solid var(--color-line);
    }

    .mobile-action-bar a {
        display: grid;
        place-items: center;
        min-height: 58px;
        background: #fff;
        color: var(--color-ink);
        font-weight: 850;
        text-decoration: none;
    }

    .mobile-action-bar a:last-child {
        background: var(--color-accent);
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
