:root {
    --ink: #1c2833;
    --navy: #1a3148;
    --navy-2: #244662;
    --blue: #2d628c;
    --sky: #d5e4f0;
    --sand: #f3efe8;
    --sand-deep: #e7dfd3;
    --paper: #fffcf8;
    --muted: #5f584f;
    --line: #ddd4c8;
    --white: #fff;
    --ok: #1d6a45;
    --ok-bg: #e7f4ec;
    --err: #8c2e2e;
    --err-bg: #fbeeed;
    --shadow: 0 24px 60px rgba(26, 49, 72, 0.12);
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --header: 5.8rem;
    --wrap: 1120px;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color-scheme: light;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--navy);
    color: white;
    padding: 0.6rem 1rem;
    z-index: 20;
}
.skip:focus { top: 1rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wrap {
    width: min(var(--wrap), calc(100% - 2.4rem));
    margin-inline: auto;
}
.narrow { width: min(760px, calc(100% - 2.4rem)); }
.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.lede, .lede p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 42rem;
}
.section { padding: 5rem 0; }
.section-sand { background: var(--sand); }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.section-head h2 { margin: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header);
    background: rgba(255, 252, 248, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 49, 72, 0.08);
}
.header-bar {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
    text-decoration: none;
    margin-right: auto;
}
.brand-logo {
    display: block;
    height: 4.4rem;
    width: auto;
}
.site-nav { display: flex; align-items: center; gap: 0.3rem; }
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
}
.site-nav a[aria-current="page"] { background: var(--sand-deep); }
.site-nav a:hover { background: var(--sand); }
.nav-cta { background: var(--navy) !important; color: white !important; }
.nav-phone { display: none; }
.header-phone {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    white-space: nowrap;
}
.header-phone span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.nav-toggle {
    display: none;
    width: 2.7rem;
    height: 2.7rem;
    border: 0;
    border-radius: 12px;
    background: var(--sand);
    padding: 0;
    position: relative;
}
.nav-toggle span:not(.sr-only) {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    height: 2px;
    background: var(--navy);
}
.nav-toggle span:nth-of-type(2) { top: 1.05rem; }
.nav-toggle span:nth-of-type(3) { top: 1.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { background: var(--navy-2); }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    box-shadow: inset 0 0 0 1.5px rgba(26, 49, 72, 0.4);
}
.btn-ghost:hover { background: white; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--sand); }
.text-link { font-weight: 600; text-underline-offset: 0.2em; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100svh - var(--header));
    background: var(--sand);
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 2.5rem 3.5rem max(1.2rem, calc((100vw - var(--wrap)) / 2));
}
.hero-copy h1 {
    max-width: 15em;
    font-size: clamp(2.45rem, 3.3vw, 3.7rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.6rem; }
.hero-photo { position: relative; min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.qualifications { background: var(--navy); color: white; }
.qualification-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    padding: 0.95rem 0;
}
.qualification-row span {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.qualification-row span + span::before {
    content: "·";
    margin-right: 1.4rem;
    color: #9ebbd2;
}
.qualification-inline {
    color: var(--navy);
    padding: 0 0 1.5rem;
}
.qualification-inline span + span::before { color: var(--line); }

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}
.clean-list { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.clean-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.4rem;
    border-top: 1px solid var(--line);
}
.clean-list li:last-child { border-bottom: 1px solid var(--line); }
.clean-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--blue);
    position: absolute;
    left: 0;
    top: 0.95rem;
}
.frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.promise-grid article {
    background: var(--sand);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem 1.1rem;
}
.promise-grid h3 { font-size: 1.45rem; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.preview-card {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
}
.preview-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; display: block; }
.preview-card span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(18, 32, 46, 0.82));
    display: flex;
    flex-direction: column;
}
.preview-card small { color: #e7e1d6; }

.agency-grid, .service-grid {
    display: grid;
    gap: 1rem;
}
.agency-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-grid { grid-template-columns: 1fr 1fr; }
.agency-card, .service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.3rem 1.1rem;
}
.agencies { background: var(--sand); }
.agencies .agency-card { background: var(--paper); }
.agency-role {
    margin: 0 0 0.4rem;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.phone-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.15rem;
}

.masthead { padding: 4.2rem 0 1rem; }
.masthead-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
.cta-band { background: var(--navy); color: white; padding: 3rem 0; }
.cta-band h2 { color: white; }
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.cta-band p { margin: 0; color: #d5e2ec; }

.gallery {
    columns: 3 240px;
    column-gap: 1rem;
}
.gallery figure { margin: 0 0 1rem; break-inside: avoid; scroll-margin-top: 5.5rem; }
.gallery figure:target figcaption strong { color: var(--blue); }
.gallery a { display: block; border-radius: 14px; overflow: hidden; }
.gallery img { display: block; width: 100%; }
.gallery figcaption { padding: 0.55rem 0.15rem 0.2rem; }
.gallery figcaption strong, .gallery figcaption small { display: block; }
.gallery figcaption small { color: var(--muted); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }

.form { display: grid; gap: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
    color: var(--ink);
    font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid var(--blue);
    border-color: transparent;
}
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.check input { width: auto; margin-top: 0.25rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 14px; padding: 0.9rem 1rem; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }
.notice ul { margin: 0; padding-left: 1.1rem; }

.site-footer { background: var(--navy); color: #d7e2eb; padding: 3.2rem 0 1.2rem; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: 2rem; }
.footer-logo {
    display: block;
    height: 5.2rem;
    width: auto;
    background: var(--paper);
    border-radius: 12px;
    padding: 0.28rem 0.45rem;
    margin-bottom: 0.9rem;
}
.footer-label { color: white; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b7c6d2; font-size: 0.92rem; }

.lightbox { border: 0; padding: 2.6rem 0 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(16, 27, 38, 0.86); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: white; text-align: center; padding-top: 0.7rem; }
.lightbox-close {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    color: white;
    border: 0;
    cursor: pointer;
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-block; }
    .header-phone { display: none; }
    .nav-phone { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1rem 1rem;
        gap: 0.2rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 0.8rem 0.7rem; }
    .hero, .split, .masthead-split, .promise-grid, .preview-grid, .agency-grid, .service-grid, .footer-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    .split-reverse figure { order: -1; }
    .hero { min-height: 0; }
    .hero-photo { order: -1; height: 62vw; min-height: 220px; }
    .hero-copy { padding: 2rem 1.2rem 2.4rem; }
    .hero-copy h1 { max-width: none; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .section { padding: 3.2rem 0; }
}

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