@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --navy: #0d3048;
    --navy2: #123d5b;
    --gold: #c5a15b;
    --cream: #f4f1e9;
    --ink: #183044;
    --muted: #63717c;
    --line: #d9d7d0
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 15px Inter, Arial;
    color: var(--ink);
    line-height: 1.65
}

a {
    color: inherit
}

.c {
    max-width: 1180px;
    margin: auto;
    padding: 0 28px
}

header {
    background: white;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none
}

.logo .ac {
    font: italic bold 35px Georgia;
    color: var(--gold);
    border-right: 2px solid var(--navy);
    padding-right: 12px
}

.logo span:last-child {
    display: flex;
    flex-direction: column
}

.logo b {
    font: 17px Georgia;
    color: var(--navy)
}

.logo small {
    font-size: 8px;
    letter-spacing: 1px;
    color: #65727b
}

.nav nav a {
    text-decoration: none;
    margin-left: 18px;
    font-size: 12px;
    font-weight: 600
}

.hero {
    background: linear-gradient(110deg, #fff 0 60%, #e8e3d8 60%);
    padding: 88px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 65px;
    align-items: center
}

.ey {
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: bold;
    color: #8b6a31
}

.pale {
    color: #e4c88e
}

h1,
h2,
h3 {
    font-family: "Libre Baskerville", Georgia;
    color: var(--navy);
    line-height: 1.18
}

h1 {
    font-size: clamp(42px, 5vw, 62px);
    margin: 12px 0 20px
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 780px
}

.hero-panel {
    background: var(--navy);
    color: #dbe5eb;
    padding: 38px
}

.hero-panel h2 {
    color: white
}

.textlink {
    color: #e6c887
}

.btn {
    display: inline-block;
    padding: 13px 18px;
    margin: 14px 9px 0 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid transparent
}

.gold {
    background: var(--gold);
    color: #102b3d
}

.navy {
    background: var(--navy);
    color: white
}

.outline {
    background: white;
    border-color: var(--navy)
}

.micro {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    font-size: 11px;
    font-weight: 600
}

.micro span:before {
    content: "✓ ";
    color: #a77e36
}

.section {
    padding: 76px 0
}

.cream,
.pagehero {
    background: var(--cream)
}

.pagehero {
    padding: 70px 0
}

.pagehero h1 {
    max-width: 930px
}

.cards {
    display: grid;
    gap: 18px
}

.cards.two {
    grid-template-columns: 1fr 1fr
}

.cards.three {
    grid-template-columns: repeat(3, 1fr)
}

article {
    border: 1px solid var(--line);
    padding: 28px;
    background: white
}

.cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.cats span {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    font-weight: 600
}

.trust {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.trust div {
    padding: 18px;
    border-top: 3px solid var(--gold)
}

.trust small {
    display: block;
    color: var(--muted);
    margin-top: 5px
}

.center {
    text-align: center
}

.credgrid,
.formwrap,
.contact {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 45px
}

.credential {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    border: 1px solid var(--line);
    padding: 32px
}

.seal {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold);
    font: bold 22px Georgia;
    border: 4px double var(--gold)
}

.status {
    display: inline-block;
    background: #e8f1e9;
    color: #315e39;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 11px
}

.privacybox {
    background: var(--cream);
    padding: 28px
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.steps article span {
    color: var(--gold);
    font-weight: bold
}

.formwrap form {
    display: grid;
    gap: 13px;
    border: 1px solid var(--line);
    padding: 28px
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

label {
    font-size: 11px;
    font-weight: bold
}

input,
textarea,
select {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #bbb;
    margin-top: 5px;
    background: white
}

.docnote {
    border-left: 3px solid var(--gold);
    padding-left: 12px;
    color: var(--muted)
}

.faq {
    max-width: 850px
}

.faq details {
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.faq summary {
    font: bold 17px Georgia
}

.faq p {
    color: var(--muted)
}

footer {
    background: #08263b;
    color: #dce5ea;
    padding: 32px 0
}

.foot {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 30px
}

.foot small {
    display: block
}

.foot a {
    color: white
}

.legal {
    max-width: 850px
}

@media(max-width:850px) {
    .nav nav {
        display: none
    }

    .hero {
        background: white
    }

    .hero-grid,
    .credgrid,
    .formwrap,
    .contact {
        grid-template-columns: 1fr
    }

    .cards.two,
    .cards.three {
        grid-template-columns: 1fr
    }

    .cats {
        grid-template-columns: 1fr 1fr
    }

    .trust {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr
    }

    .foot {
        grid-template-columns: 1fr
    }
}

@media(max-width:500px) {

    .cats,
    .trust,
    .formgrid {
        grid-template-columns: 1fr
    }

    .micro {
        flex-direction: column;
        gap: 7px
    }

    .section {
        padding: 55px 0
    }
}

/* V5 brand + deployment polish */
.brand-logo {
    display: flex;
    align-items: center;
    width: min(430px, 40vw);
    text-decoration: none
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto
}

header {
    box-shadow: 0 3px 18px rgba(13, 48, 72, .06)
}

.nav {
    min-height: 92px
}

.nav nav a {
    position: relative
}

.nav nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--gold);
    transition: .2s
}

.nav nav a:hover:after {
    right: 0
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(105deg, #fff 0 58%, #eee8dc 58% 100%)
}

.hero:after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(197, 161, 91, .28);
    border-radius: 50%
}

.hero-panel {
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 55px rgba(13, 48, 72, .18);
    border-top: 4px solid var(--gold)
}

.credential,
.privacybox,
.cards article,
.cats span {
    box-shadow: 0 10px 28px rgba(13, 48, 72, .04)
}

.btn {
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(13, 48, 72, .15)
}

@media(max-width:850px) {
    .brand-logo {
        width: 280px
    }

    .nav {
        min-height: 78px
    }
}

/* Desktop */
.menu-toggle {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Mobile */
@media (max-width: 768px) {
    .c.nav {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: 0.3s;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px;
        background: white;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 14px 10px;
    }
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .c.nav {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }

    /* Hamburger → X */
    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav {
        display: flex;
        position: absolute;
        top: calc(100%);
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px;
        background: white;
        border-radius: 10px;

        z-index: 1001;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top;
        pointer-events: none;

        transition:
            opacity 0.2s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    /* Open state */
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    nav a {
        display: block;
        padding: 13px 14px;
        border-radius: 7px;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    nav a:hover {
        background: #f5f5f5;
        transform: translateX(3px);
    }
}