:root {
    --rpc-navy: #202967;
    --rpc-red: #c92835;
    --rpc-white: #ffffff;
    --text-dark: #1b1b1d;
    --text-gray: #45454a;
    --text-muted: #74747b;
    --border: #e9e9ec;
    --surface: #f7f7f8;
    --font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
    --font-body: "Inter", Arial, Helvetica, sans-serif;
    --header-h: 76px;
    --wrap: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--rpc-white);
}

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

figure {
    margin: 0;
}

a {
    color: var(--rpc-navy);
}

h1, h2, h3, .logo-name, .footer-name, .stat-num {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 0.45em; }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: var(--rpc-navy);
    color: #fff;
    padding: 0.5rem 0.8rem;
    z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

.wrap {
    width: min(var(--wrap), calc(100% - 2.5rem));
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    color: var(--rpc-red);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.25rem;
    border-radius: 2px;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-navy {
    background: var(--rpc-navy);
    color: #fff;
    border-color: var(--rpc-navy);
}
.btn-navy:hover { background: #181f52; }

.btn-red {
    background: var(--rpc-red);
    color: #fff;
    border-color: var(--rpc-red);
}
.btn-red:hover { background: #ae202c; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: #fff; color: var(--rpc-navy); }

.btn-line {
    background: transparent;
    color: var(--rpc-navy);
    border-color: var(--rpc-navy);
}
.btn-line:hover { background: var(--rpc-navy); color: #fff; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(1240px, calc(100% - 2rem));
    margin-inline: auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--rpc-navy);
    min-width: 0;
}

.logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-tag {
    font-size: 0.68rem;
    color: var(--rpc-red);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.92rem;
    font-weight: 500;
}

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

.header-phone {
    color: var(--rpc-navy) !important;
    font-weight: 600;
    white-space: nowrap;
}

.nav-cta {
    background: var(--rpc-navy);
    color: #fff !important;
    padding: 0.55rem 0.95rem;
    border-radius: 2px;
}

.nav-cta:hover { background: var(--rpc-red); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--rpc-navy);
    margin: 6px 0;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 620px;
    background: var(--rpc-navy);
    color: #fff;
}

.hero-copy {
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy .eyebrow { color: #f0a3a9; }

.hero-copy h1 { color: #fff; }

.hero-lead {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.86);
    max-width: 36rem;
}

.hero-services {
    margin: 1.1rem 0 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-media {
    position: relative;
    height: 100%;
    min-height: 320px;
}

.prose {
    max-width: 42rem;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-media figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 0.55rem 0.9rem;
    background: rgba(32, 41, 103, 0.82);
    color: #fff;
    font-size: 0.8rem;
}

/* Sections */

.section {
    padding: clamp(3.2rem, 6vw, 5.5rem) 0;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 2.2rem;
}

.section-muted { background: var(--surface); }
.section-navy {
    background: var(--rpc-navy);
    color: #fff;
}
.section-navy h2,
.section-navy a { color: #fff; }
.section-navy .eyebrow { color: #f0a3a9; }

/* Split audience cards */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.audience-card {
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.audience-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.audience-card .card-body {
    padding: 1.4rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.audience-card .card-body p { color: var(--text-gray); flex: 1; }

/* Service chips */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-item {
    border-top: 3px solid var(--rpc-red);
    background: #fff;
    padding: 1.2rem 1.15rem 1.3rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-item h3 { margin-bottom: 0.35rem; }
.service-item p { color: var(--text-gray); font-size: 0.95rem; }

/* Process */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 0.2rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.8rem;
    background: var(--rpc-navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.section-navy .step::before {
    background: var(--rpc-red);
}

.step p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.8rem 0.7rem;
    background: linear-gradient(transparent, rgba(27,27,29,0.78));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-wide img { height: 280px; }

/* Review */

.review {
    max-width: 42rem;
    border-left: 4px solid var(--rpc-red);
    padding: 0.2rem 0 0.2rem 1.4rem;
}

.review blockquote {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.review cite {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Towns */

.towns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 1.2rem 0 0;
    list-style: none;
}

.towns li {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
}

/* Contact layout */

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-aside p { color: var(--text-gray); }

.phone-xl {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-decoration: none;
    color: var(--rpc-navy);
    display: inline-block;
    margin: 0.4rem 0 0.8rem;
}

/* Form */

.estimate-form {
    background: #fff;
    border: 1px solid var(--border);
    padding: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.estimate-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    font: inherit;
    padding: 0.65rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: #fff;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
    outline: 2px solid var(--rpc-navy);
    outline-offset: 1px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-aside { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.form-banner {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}
.form-banner-ok { background: #e8f5ec; }
.form-banner-err { background: #fdecec; }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

/* Placeholder pages */

.page-hero {
    background: var(--rpc-navy);
    color: #fff;
    padding: 3.2rem 0 2.6rem;
}
.page-hero p { color: rgba(255,255,255,0.82); max-width: 40rem; }

.note {
    background: var(--surface);
    border-left: 3px solid var(--rpc-red);
    padding: 1rem 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Footer */

.site-footer {
    background: var(--rpc-navy);
    color: rgba(255,255,255,0.82);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.4rem;
}

.footer-brand img { margin-bottom: 0.8rem; }

.footer-name {
    color: #fff;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.footer-line { font-size: 0.95rem; color: #f0a3a9; }

.footer-heading {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-links a:hover { color: #fff; }

.footer-towns {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1rem 0 1.2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile */

@media (max-width: 900px) {
    .logo-tag { display: none; }

    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    body.nav-open .site-nav { display: flex; }

    .site-nav a {
        padding: 0.75rem 0.4rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.4rem;
        border-bottom: 0;
    }

    .hero,
    .split,
    .service-grid,
    .steps,
    .gallery,
    .contact-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero { min-height: 0; }
    .hero-media { height: 260px; min-height: 260px; }
    .header-phone { display: none; }
    .gallery img,
    .gallery-wide img,
    .audience-card img { height: 220px; }

    .header-inner { width: calc(100% - 1.25rem); }
    .wrap { width: calc(100% - 1.5rem); }
}

@media (min-width: 701px) and (max-width: 900px) {
    .split,
    .gallery { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .hero-copy { padding: 2rem 1.25rem 2.2rem; }
}
