/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #0d0d0d;
    --ink-muted: #555;
    --ink-faint: #999;
    --surface: #f9f7f4;
    --surface-warm: #f2ede6;
    --surface-card: #ffffff;
    --accent: #c8400a;
    --accent-light: #f5ede8;
    --accent-dark: #8f2c06;
    --gold: #b8860b;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --radius: 4px;
    --radius-lg: 12px;
    --ff-display: "Fraunces", Georgia, serif;
    --ff-body: "DM Sans", system-ui, sans-serif;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--ff-body);
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── COMPONENT PLACEHOLDERS — reserve space so layout doesn't shift on inject ── */
#site-header {
    min-height: 64px;
}
#site-footer {
    min-height: 320px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(249, 247, 244, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-mark svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition:
        color var(--transition),
        background var(--transition);
}
.nav-links a:hover {
    color: var(--ink);
    background: var(--surface-warm);
}
.nav-links a.active {
    color: var(--ink);
    font-weight: 500;
}
.nav-links .has-arrow::after {
    content: " ↓";
    font-size: 11px;
    opacity: 0.5;
}
.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface, #f9f7f4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        opacity 0.15s,
        transform 0.15s;
    z-index: 200;
}
.dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    white-space: nowrap;
}

.nav-cta {
    background: var(--ink);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition);
}
.nav-cta:hover {
    background: var(--accent);
}

/* ── HAMBURGER / MOBILE MENU ── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--ink);
    align-items: center;
    justify-content: center;
}
.nav-hamburger svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.icon-close {
    display: none;
}

.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(249, 247, 244, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    flex-direction: column;
    gap: 2px;
    z-index: 99;
}
.nav-mobile-menu a {
    font-size: 16px;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 10px 10px;
    border-radius: var(--radius);
    display: block;
    transition:
        color var(--transition),
        background var(--transition);
}
.nav-mobile-menu a:hover {
    color: var(--ink);
    background: var(--surface-warm);
}
.mobile-group-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 12px 10px 4px;
}
.mobile-group a {
    padding-left: 20px;
    font-size: 15px;
    color: var(--ink-muted);
}
.mobile-cta {
    margin-top: 10px;
    background: var(--ink) !important;
    color: white !important;
    text-align: center;
    padding: 12px 20px !important;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px !important;
}
nav.nav-open .nav-mobile-menu {
    display: flex;
}
nav.nav-open .icon-menu {
    display: none;
}
nav.nav-open .icon-close {
    display: block;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background var(--transition),
        transform var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.btn-ghost:hover {
    color: var(--ink);
}

/* ── SHARED SECTION DEFAULTS ── */
section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 80px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-eyebrow::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

/* ── DIVIDER ── */
.divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 24px;
    display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.7s ease forwards;
}
.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}
.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}
.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}
.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ── FOOTER ── */
footer {
    background: #060606;
    padding: 60px 56px 40px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 40px;
}
.footer-logo {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.footer-logo-mark {
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-mark svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}
.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    max-width: 280px;
    line-height: 1.6;
}
.footer-col h5 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col ul li a:hover {
    color: rgba(255, 255, 255, 0.85);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
}
.footer-socials {
    display: flex;
    gap: 16px;
}
.footer-socials a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-socials a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── RESPONSIVE: shared bits ── */
@media (max-width: 900px) {
    nav {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }

    section {
        padding: 60px 24px;
    }

    footer {
        padding: 32px 24px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
        margin-bottom: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
