:root {
    --navy: #0F2A4A;
    --navy-deep: #081A33;
    --navy-soft: #1F3D63;
    --gold: #C8A24B;
    --gold-deep: #A88536;
    --paper: #FFFFFF;
    --cream: #F7F5F0;
    --line: #E4E0D6;
    --line-soft: #EFECE3;
    --text: #2E3A4B;
    --text-soft: #5B6779;
    --shadow: 0 18px 50px -28px rgba(15, 42, 74, 0.25);
    --shadow-soft: 0 8px 24px -16px rgba(15, 42, 74, 0.20);
    --max: 1180px;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
img { max-width: 100%; display: block; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

/* ── Type ─────────────────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }
h1, h2, h3 {
    font-family: var(--serif);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0;
}
h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    line-height: 1.08;
}
h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.18;
    margin-bottom: 18px;
}
h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}
p { margin: 0 0 14px; }

/* ── Header ───────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.navbar {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.logo-mark.large {
    width: 120px;
    height: 120px;
    font-size: 2.4rem;
}
.logo-wordmark {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.2rem;
    letter-spacing: 0.005em;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}
.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 160ms ease;
}
.nav-links a:hover { color: var(--gold-deep); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    position: relative;
    transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger::before { content: ""; position: absolute; top: -7px; left: 0; }
.hamburger::after { content: ""; position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.btn-cta.primary {
    background: var(--navy);
    color: var(--paper);
}
.btn-cta.primary:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.btn-cta.secondary {
    background: transparent;
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}
.btn-cta.full { width: 100%; }

/* ── Sections ─────────────────────────────── */
section { padding: clamp(60px, 8vw, 110px) 0; }

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--paper);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(140deg, rgba(8, 26, 51, 0.92) 0%, rgba(15, 42, 74, 0.78) 100%),
        linear-gradient(160deg, #18406b 0%, #081A33 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(200, 162, 75, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(200, 162, 75, 0.10) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.hero-content {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    padding: clamp(60px, 8vw, 96px) 0;
    max-width: 880px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
    color: var(--paper);
    max-width: 18ch;
}
.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    color: rgba(255, 255, 255, 0.86);
    max-width: 48ch;
    margin: 22px 0 36px;
    font-style: italic;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Services ─────────────────────────────── */
.services { background: var(--paper); text-align: center; }
.services h2 { max-width: 26ch; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
.service-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.service-item {
    background: var(--cream);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 40px 28px;
    text-align: left;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--line);
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 22px;
}
.service-item h3 { color: var(--navy); }
.service-item p { color: var(--text-soft); margin: 0; }

/* ── How It Works ─────────────────────────── */
.how-it-works {
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}
.how-it-works h2 { max-width: 26ch; margin-left: auto; margin-right: auto; margin-bottom: 56px; }
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 32px 22px;
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.step p {
    color: var(--text-soft);
    font-size: 0.96rem;
    margin: 0;
}

/* ── About ────────────────────────────────── */
.about { background: var(--paper); }
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.about-copy p { color: var(--text-soft); font-size: 1.04rem; }
.about-copy p + p { margin-top: 12px; }
.about-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(36px, 5vw, 64px);
    text-align: center;
}
.about-card p {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin: 18px 0 0;
}

/* ── Contact ──────────────────────────────── */
.contact {
    background: var(--navy);
    color: var(--paper);
}
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: var(--gold); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}
.contact-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.92);
}
.contact-info i { color: var(--gold); }
.contact-info a { border-bottom: 1px solid rgba(200, 162, 75, 0.4); transition: border-color 180ms ease; }
.contact-info a:hover { border-bottom-color: var(--gold); }

.contact-form {
    background: var(--paper);
    color: var(--text);
    border-radius: 12px;
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.form-group label span { color: var(--gold-deep); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
    font-family: var(--sans);
    font-size: 0.98rem;
    color: var(--text);
    transition: border-color 180ms ease, background 180ms ease;
    font: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Footer ───────────────────────────────── */
.footer {
    padding: 32px 0;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.62);
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(200, 162, 75, 0.3);
    transition: color 180ms ease, border-color 180ms ease;
}
.footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 980px) {
    .service-items { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-card { order: -1; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        background: var(--paper);
        border: 1px solid var(--line-soft);
        border-radius: 10px;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 250ms ease, opacity 200ms ease;
    }
    .nav-links.open {
        max-height: 400px;
        opacity: 1;
    }
    .nav-links li {
        list-style: none;
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 14px 20px;
    }
    .logo-wordmark { font-size: 1.05rem; }
    .steps { grid-template-columns: 1fr; }
    .footer-row { justify-content: center; text-align: center; }
}
