:root {
    --ink: #172028;
    --ink-soft: #3d4a54;
    --paper: #f4f1ea;
    --paper-deep: #e7e1d6;
    --card: #fffcf7;
    --line: #ddd4c6;
    --brass: #8d6a32;
    --brass-deep: #6f5224;
    --sea: #1e4d4a;
    --sea-deep: #163936;
    --shadow: 0 18px 40px rgba(23, 32, 40, 0.08);
    --serif-shadow: 8px 8px 0 #d5dbe1;
    --wrap: 1120px;
    --header: 76px;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--sea); }
a:hover { color: var(--sea-deep); }
h1, h2, h3, .brand-name, .button, .nav-list a {
    font-family: var(--display);
    letter-spacing: -0.02em;
}
h1, h2, h3 { line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }
p { margin: 0 0 1rem; }
.screen-reader, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip-link:focus {
    position: absolute;
    z-index: 20;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    clip: auto;
    background: white;
    color: var(--ink);
    padding: 0.5rem 0.8rem;
}
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.kicker {
    margin: 0 0 0.7rem;
    color: var(--brass-deep);
    font-family: var(--display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ink);
    color: #f4f1ea;
    min-height: var(--header);
}
.site-header a { color: #f4f1ea; text-decoration: none; }
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--header);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}
.custom-logo-link { display: flex; }
.custom-logo { max-height: 57.6px; width: auto; }
.brand-logo { display: block; height: 52.8px; width: auto; }
.brand-name {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 1.224rem;
    line-height: 1.05;
}
.brand-name small {
    font-size: 0.864rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.72;
}
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.176rem;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.08);
}
.menu-item-has-children { position: relative; }
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 17rem;
    padding: 0.4rem;
    background: #24303a;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { display: block; }
.header-tools { display: flex; align-items: center; gap: 0.9rem; }
.header-phone { font-weight: 700; white-space: nowrap; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: transparent;
    color: white;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #f4f1ea;
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.55rem 1.05rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.button-solid { background: var(--sea); color: white; }
.button-solid:hover { background: var(--sea-deep); color: white; }
.site-header .button-solid { background: var(--brass); color: #1b1408; }
.site-header .button-solid:hover { background: #d7b56a; color: #1b1408; }
.button-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--ink); color: var(--paper); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: white; color: var(--ink); }
.hero-actions, .text-link { margin-top: 0.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 700; }

.guardian-ad {
    background:
        radial-gradient(circle at 8% 30%, rgba(198, 161, 91, 0.22), transparent 32%),
        #163936;
    color: #f4f1ea;
    padding: 1.5rem 0;
}
.guardian-ad .kicker { color: #e4c48a; margin-bottom: 0.35rem; }
.guardian-ad h2 {
    color: white;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    margin-bottom: 0.45rem;
}
.guardian-ad p { color: #e7e1d6; max-width: 44rem; margin-bottom: 0.85rem; }
.guardian-ad-inner {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 168px;
    gap: 1.4rem;
    align-items: center;
}
.guardian-art, .guardian-shield { display: block; width: 168px; height: auto; }
.guardian-shield { justify-self: start; }
.guardian-art { justify-self: end; }
.guardian-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.375rem 2.75rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.guardian-points li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--display);
    font-size: 1.25em;
    font-weight: 700;
    color: #f4f1ea;
}
.guardian-points svg { display: block; width: 27.5px; height: 27.5px; color: #e4c48a; }
.guardian-copy > .button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}
.guardian-page-mark { display: block; width: 160px; height: auto; margin: 0 auto 1rem; }
.hero { padding: 3.4rem 0 3.5rem; }
.hero-grid, .split, .service-layout, .contact-layout, .band-inner, .footer-grid {
    display: grid;
    gap: 2rem;
}
.hero-grid { grid-template-columns: 1.3fr 0.9fr; align-items: end; }
.hero-panel {
    background: var(--card);
    border-radius: 16px;
    padding: 1.4rem 1.4rem 0.6rem;
    box-shadow: var(--serif-shadow);
}
.panel-label {
    margin: 0 0 0.6rem;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { border-top: 1px solid var(--line); }
.panel-list a {
    display: block;
    padding: 0.9rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.panel-list a:hover { color: var(--sea); }

.section { padding: 4.25rem 0; }
.section-muted { background: #efeae1; }
.section-heading { max-width: 40rem; margin-bottom: 1.8rem; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.3rem 1.3rem 1.1rem;
    box-shadow: var(--shadow);
}
.card h3 a, .card h2 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h2 a:hover { color: var(--sea); }
.split { grid-template-columns: 1.3fr 0.8fr; align-items: start; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
    background: var(--card);
    border-left: 4px solid var(--brass);
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
}
.process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
}
.process li {
    background: var(--card);
    border-radius: 14px;
    padding: 1.1rem;
    border: 1px solid var(--line);
}
.process span {
    display: block;
    color: var(--brass-deep);
    font-family: var(--display);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.band { background: var(--ink); color: #f4f1ea; padding: 3rem 0; }
.band a { color: #f4f1ea; }
.band-inner { grid-template-columns: 1fr auto; align-items: center; }
.band h2 { color: white; }

.page-hero { padding: 3.5rem 0 1rem; }
.service-layout, .contact-layout { grid-template-columns: 1.4fr 0.7fr; align-items: start; }
.service-copy ol { padding-left: 1.2rem; }
.service-copy li { margin-bottom: 0.45rem; }
.service-aside, .office-card {
    background: var(--ink);
    color: #f4f1ea;
    border-radius: 16px;
    padding: 1.3rem;
    position: sticky;
    top: calc(var(--header) + 16px);
}
.service-aside a, .office-card a { color: #f4f1ea; }
.service-aside h2, .office-card h2 { font-size: 1.15rem; }
.service-aside ul { padding-left: 1.1rem; }
.aside-links { margin-top: 1rem; }
.office-card address { font-style: normal; margin-bottom: 0.8rem; }
.office-note { color: #d5dbe1; font-size: 0.95rem; }
.phone-large { font-size: 1.5rem; font-family: var(--display); font-weight: 700; }
.faq details {
    border-top: 1px solid var(--line);
    padding: 0.9rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--display); }
.entry a { font-weight: 600; }
.post-card { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.meta { color: var(--ink-soft); font-size: 0.92rem; }

.contact-form label, .field-row label { display: block; font-weight: 600; margin-bottom: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #c9c0b2;
    border-radius: 8px;
    background: white;
    font: inherit;
    color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 0.8rem 1rem; border-radius: 8px; }
.notice-ok { background: #e5f2ef; color: var(--sea-deep); }
.notice-bad { background: #f8e8e4; color: #6d2b22; }

.site-footer {
    background: #10161b;
    color: #e7e1d6;
    padding: 3rem 0 1.2rem;
}
.site-footer a { color: #f4f1ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c6a15b; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.footer-note { max-width: 28rem; color: #c9c0b2; }
.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9c0b2;
}
.site-footer .brand-name small { color: #c9c0b2; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.site-header :focus-visible { outline-color: #f4f1ea; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #1c262e;
        padding: 0.5rem 1rem 1rem;
    }
    .nav-open .site-nav { display: block; }
    .nav-list { flex-direction: column; }
    .sub-menu { display: block; position: static; background: transparent; box-shadow: none; padding-left: 0.6rem; }
    .header-tools .button { display: none; }
    .hero-grid, .split, .service-layout, .contact-layout, .band-inner, .footer-grid,
    .card-grid, .card-grid-3, .process, .field-row {
        grid-template-columns: 1fr;
    }
    .guardian-ad-inner {
        grid-template-columns: 1fr 1fr;
    }
    .guardian-copy { grid-column: 1 / -1; grid-row: 1; }
    .guardian-art, .guardian-shield { grid-row: 2; justify-self: center; width: 112px; }
    .service-aside, .office-card { position: static; }
    .hero { padding-top: 2.5rem; }
    .hero-panel { box-shadow: 6px 6px 0 #d5dbe1; }
}

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