:root {
    --teal-950: #041E2B;
    --teal-900: #062E3F;
    --teal-800: #083D53;
    --teal-700: #0A4D68;
    --teal-600: #0D5F7F;
    --teal-100: #E8F4F8;

    --gold-600: #D4890C;
    --gold-500: #F5A623;
    --gold-400: #FFB84D;

    --ink: #1A1A2E;
    --ink-light: #4A4A5A;
    --ink-muted: #6B7280;
    --border: #E5E7EB;
    --surface-1: #FFFFFF;
    --surface-2: #F9FAFB;
    --surface-3: #F3F4F6;

    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-s: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-m: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-l: 0 8px 24px rgba(0,0,0,0.09);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.65;
    font-size: 1.05rem;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 600;
}

a { color: var(--teal-700); }
a:hover { color: var(--teal-600); }

@media (min-width: 1200px) {
    .container { max-width: 1100px; }
}
@media (min-width: 1400px) {
    .container { max-width: 1100px; }
}

/* ── Components ── */

.btn-gold {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    background: var(--gold-500);
    color: var(--teal-900);
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-s);
}
.btn-gold:hover {
    background: var(--gold-400);
    color: var(--teal-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-m);
}

.btn-ghost {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.25);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
}

.btn-outline-teal {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    background: transparent;
    color: var(--teal-700);
    border: 1.5px solid var(--teal-700);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline-teal:hover {
    background: var(--teal-700);
    color: #fff;
    transform: translateY(-1px);
}

.section-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}
.section-label-light { color: var(--gold-400); }

.accent-rule {
    width: 48px;
    height: 2px;
    background: var(--gold-500);
    border: none;
    display: block;
    margin: 0;
}

.prose { max-width: 680px; }
.text-muted-custom { color: var(--ink-light); }

/* ── Navigation ── */

.site-nav {
    padding: 1.25rem 0;
}
.site-nav .navbar-brand { padding: 0; margin: 0; }
.site-nav .navbar-logo {
    height: 80px;
    width: 80px;
    transition: opacity 0.2s;
}
.site-nav .navbar-logo:hover { opacity: 0.85; }
.site-nav .nav-link {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.site-nav .nav-link:hover { color: #fff !important; }
.site-nav .nav-link-accent {
    color: var(--gold-400) !important;
}
.site-nav .nav-link-accent:hover {
    color: var(--gold-300, #FFCC80) !important;
}
.site-nav .nav-link-active {
    color: #fff !important;
}
.site-nav .navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: rgba(255,255,255,0.7);
}
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .site-nav .navbar-nav {
        padding: 1rem 0;
        gap: 0.25rem;
    }
}

/* ── Header ── */

.site-header {
    background: linear-gradient(165deg, var(--teal-700) 0%, var(--teal-800) 40%, var(--teal-900) 100%);
    position: relative;
    overflow: hidden;
}
.site-header::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* ── Footer ── */

.site-footer {
    background: linear-gradient(165deg, var(--teal-900) 0%, var(--teal-950) 100%);
    padding: 2rem 0;
}
.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.site-footer a:hover { color: var(--gold-400); }
.site-footer .copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ── Scroll Animations ── */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}
.fade-up-d1 { animation-delay: 0.08s; }
.fade-up-d2 { animation-delay: 0.16s; }
.fade-up-d3 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .fade-up, .fade-up-d1, .fade-up-d2, .fade-up-d3 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
