:root {
    --navy: #082342;
    --navy-soft: #11365f;
    --gold: #d6ae4f;
    --gold-soft: #f7edcf;
    --text: #132033;
    --muted: #667085;
    --line: #e6e9ef;
    --bg: #ffffff;
    --section: #f8fafc;
    --shadow: 0 20px 50px rgba(8, 35, 66, 0.1);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

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

/* ── Skip link ─────────────────────────────────────────── */

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    padding: 10px 14px;
    background: var(--navy);
    color: white;
    z-index: 99;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
}

/* ── Header / Nav ──────────────────────────────────────── */

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

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

.brand img {
    width: 210px;
    height: auto;
}

.brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    text-decoration: none;
}

/* WP nav menu outputs ul > li > a — flatten to flex row */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--navy);
}

/* Add CSS class "nav-cta" to the Contact menu item in WP Admin → Menus */
.main-nav .nav-cta > a {
    border: 1px solid var(--navy);
    border-radius: 999px;
    padding: 10px 16px;
}

.nav-toggle,
.menu-button {
    display: none;
}

.menu-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* ── Sections ──────────────────────────────────────────── */

.section {
    padding: 88px 0;
}

.hero {
    background:
        radial-gradient(
            circle at top right,
            rgba(214, 174, 79, 0.22),
            transparent 34%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    color: var(--navy);
    font-size: clamp(2.45rem, 6vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
}

h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

/* ── Buttons ───────────────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.98rem;
}

.button.primary {
    background: var(--navy);
    color: white;
    box-shadow: 0 12px 28px rgba(8, 35, 66, 0.18);
}

.button.secondary {
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
}

/* ── Trust badges ──────────────────────────────────────── */

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-list span {
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ── Hero card ─────────────────────────────────────────── */

.hero-card {
    background: var(--navy);
    color: white;
    padding: 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(214, 174, 79, 0.24);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.hero-card-heading {
    color: white;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
}

/* ── Section backgrounds ───────────────────────────────── */

.services-section,
.contact-section {
    background: white;
}

.steps-section,
.about-section,
.legal-page {
    background: var(--section);
}

/* ── Section heading ───────────────────────────────────── */

.section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
}

/* ── Service cards ─────────────────────────────────────── */

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

.service-card,
.step {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(8, 35, 66, 0.05);
}

.service-card p,
.step p,
.about-copy p,
.contact-copy p {
    color: var(--muted);
}

/* ── Steps ─────────────────────────────────────────────── */

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

.step span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 18px;
}

/* ── About ─────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 54px;
    align-items: start;
}

/* ── Contact ───────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 54px;
    align-items: start;
}

.contact-details {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-details a {
    color: var(--navy);
    font-weight: 700;
}

/* ── Contact form (CF7 + fallback) ────────────────────── */

.wpcf7-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 30px rgba(8, 35, 66, 0.05);
}

.wpcf7-form label,
.contact-form label {
    display: block;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 7px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d7dce5;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 16px;
    font: inherit;
    color: var(--text);
    background: white;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(214, 174, 79, 0.25);
    border-color: var(--gold);
}

.wpcf7-form .wpcf7-submit,
.contact-form .form-button {
    width: 100%;
    background: var(--navy);
    color: white;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 13px 20px;
    font-weight: 800;
    font-family: inherit;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(8, 35, 66, 0.18);
}

.wpcf7-response-output {
    margin-top: 16px;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 10px 14px;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
    padding: 42px 0;
    background: var(--navy);
    color: white;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-logo {
    width: 180px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 14px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

/* Footer nav (wp_nav_menu outputs ul > li > a) */
.footer-links ul {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

/* ── Generic page content ──────────────────────────────── */

.page-content {
    padding: 74px 0;
    background: var(--bg);
}

.page-content .entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 32px;
}

.page-content .entry-content p,
.page-content .entry-content li {
    color: var(--muted);
}

.page-content .entry-content a {
    color: var(--navy);
    font-weight: 700;
}

.page-content .entry-content h2 {
    font-size: 1.35rem;
    margin-top: 34px;
}

/* ── Legal page ────────────────────────────────────────── */

.legal-page {
    padding: 74px 0;
}

.legal-page h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 34px;
}

.legal-page p {
    color: var(--muted);
}

.legal-page a {
    color: var(--navy);
    font-weight: 700;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 920px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 72px;
        padding: 12px 0;
    }

    .brand img {
        width: 168px;
    }

    .menu-button {
        display: inline-flex;
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        background: white;
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        box-shadow: var(--shadow);
        padding: 12px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .main-nav a {
        padding: 14px 12px;
        border-radius: 12px;
        display: block;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        background: var(--section);
    }

    .main-nav .nav-cta {
        margin-top: 8px;
    }

    .main-nav .nav-cta > a {
        text-align: center;
        border-color: var(--navy);
    }

    .nav-toggle:checked ~ .main-nav {
        display: block;
    }

    .nav-toggle:checked + .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 62px 0;
    }

    .cards-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}
