/* Design Tokens & Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== THEME TOKENS ===== */
/* Theme 1 (Default): Classic Executive Navy & Champagne Gold */
:root,
[data-theme="navy"],
body[data-theme="navy"] {
    --theme-name: "navy";
    --midnight: #0A1128;
    --alabaster: #FCFCFC;
    --champagne: #C5A059;
    --slate: #1C2331;
    --white: #FFFFFF;

    /* Space-separated RGB values for Tailwind Play CDN alpha-value support */
    --midnight-rgb: 10 17 40;
    --alabaster-rgb: 252 252 252;
    --champagne-rgb: 197 160 89;
    --slate-rgb: 28 35 49;
}

/* Theme 2: High-Contrast Noir & Platinum Gold (#D4AF37 / #FFFFFF / #F2F2F2 / #1A1A1A / #C7C7C7) */
[data-theme="noir"],
[data-theme="sage"],
[data-theme="slate-sage"],
body[data-theme="noir"],
body[data-theme="sage"],
body[data-theme="slate-sage"] {
    --theme-name: "noir";
    --midnight: #141414;
    --alabaster: #1A1A1A;
    --champagne: #C5A059; /* Kept consistent with Navy */
    --gold-accent: #D4AF37;
    --slate: #C7C7C7;
    --platinum: #C7C7C7;
    --white: #222222;
    --pure-white: #FFFFFF;
    --off-white: #F2F2F2;

    /* Space-separated RGB values for Tailwind Play CDN alpha-value support */
    --midnight-rgb: 20 20 20;
    --alabaster-rgb: 26 26 26;
    --champagne-rgb: 197 160 89;
    --slate-rgb: 199 199 199;
}

/* Theme 3: Charcoal, Ochre & Linen (#333D51 / #D3AC2B / #CBD0D8 / #F4F3EA) */
[data-theme="gold"],
[data-theme="charcoal"],
[data-theme="ochre"],
body[data-theme="gold"],
body[data-theme="charcoal"],
body[data-theme="ochre"] {
    --theme-name: "gold";
    --midnight: #333D51;
    --alabaster: #F4F3EA;
    --champagne: #C5A059; /* Kept consistent with Navy */
    --slate: #333D51;
    --silver: #CBD0D8;
    --ochre-accent: #D3AC2B;
    --white: #FFFFFF;

    /* Space-separated RGB values for Tailwind Play CDN alpha-value support */
    --midnight-rgb: 51 61 81;
    --alabaster-rgb: 244 243 234;
    --champagne-rgb: 197 160 89;
    --slate-rgb: 51 61 81;
}

/* Theme 4: Editorial Deep Teal, Imperial Gold & Parchment (#D4AF37 / #0F7C7C / #083C3C / #E9E2CF / #1A1F24) */
[data-theme="editorial"],
[data-theme="teal-gold"],
body[data-theme="editorial"],
body[data-theme="teal-gold"] {
    --theme-name: "editorial";
    --midnight: #083C3C;
    --alabaster: #E9E2CF;
    --champagne: #C5A059; /* Kept consistent with Navy */
    --slate: #1A1F24;
    --teal-accent: #0F7C7C;
    --imperial-gold: #D4AF37;
    --white: #FFFFFF;

    /* Space-separated RGB values for Tailwind Play CDN alpha-value support */
    --midnight-rgb: 8 60 60;
    --alabaster-rgb: 233 226 207;
    --champagne-rgb: 197 160 89;
    --slate-rgb: 26 31 36;
}

/* Theme 5: Almond Mauve & Espresso (#433E49 / #928490 / #DBC1AD / #F3E8EB) */
[data-theme="mauve"],
[data-theme="almond"],
body[data-theme="mauve"],
body[data-theme="almond"] {
    --theme-name: "mauve";
    --midnight: #433E49;
    --alabaster: #F3E8EB;
    --champagne: #C5A059; /* Kept consistent with Navy */
    --almond-accent: #DBC1AD;
    --mauve-accent: #928490;
    --slate: #433E49;
    --border-subtle: #DBC1AD;
    --white: #FFFFFF;

    /* Space-separated RGB values for Tailwind Play CDN alpha-value support */
    --midnight-rgb: 67 62 73;
    --alabaster-rgb: 243 232 235;
    --champagne-rgb: 197 160 89;
    --slate-rgb: 67 62 73;
}

/* High-Contrast Noir Dark Mode Component Overrides */
[data-theme="noir"] .bg-white,
[data-theme="sage"] .bg-white,
body[data-theme="noir"] .bg-white,
body[data-theme="sage"] .bg-white {
    background-color: #222222 !important;
    border-color: rgba(199, 199, 199, 0.15) !important;
}

[data-theme="noir"] .text-midnight,
[data-theme="sage"] .text-midnight,
body[data-theme="noir"] .text-midnight,
body[data-theme="sage"] .text-midnight {
    color: #FFFFFF !important;
}

[data-theme="noir"] .hover\:bg-alabaster:hover,
[data-theme="sage"] .hover\:bg-alabaster:hover,
body[data-theme="noir"] .hover\:bg-alabaster:hover,
body[data-theme="sage"] .hover\:bg-alabaster:hover {
    background-color: #2A2A2A !important;
}

[data-theme="noir"] .border-slate\/5,
[data-theme="noir"] .border-slate\/10,
[data-theme="noir"] .border-slate\/20,
[data-theme="sage"] .border-slate\/5,
[data-theme="sage"] .border-slate\/10,
[data-theme="sage"] .border-slate\/20,
body[data-theme="noir"] .border-slate\/5,
body[data-theme="noir"] .border-slate\/10,
body[data-theme="noir"] .border-slate\/20,
body[data-theme="sage"] .border-slate\/5,
body[data-theme="sage"] .border-slate\/10,
body[data-theme="sage"] .border-slate\/20 {
    border-color: rgba(199, 199, 199, 0.12) !important;
}

[data-theme="noir"] input,
[data-theme="noir"] textarea,
[data-theme="noir"] select,
[data-theme="sage"] input,
[data-theme="sage"] textarea,
[data-theme="sage"] select,
body[data-theme="noir"] input,
body[data-theme="noir"] textarea,
body[data-theme="noir"] select,
body[data-theme="sage"] input,
body[data-theme="sage"] textarea,
body[data-theme="sage"] select {
    background-color: #262626 !important;
    color: #FFFFFF !important;
    border-color: rgba(199, 199, 199, 0.25) !important;
}

/* Smooth color transitions */
body, nav, header, footer, section {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--alabaster);
    color: var(--slate);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* ===== EDITORIAL HUGE ===== */
.text-editorial-huge {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

@media (min-width: 1440px) {
    .text-editorial-huge {
        font-size: 5.25rem;
    }
}

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===== PARALLAX ===== */
.parallax {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--alabaster);
}

::-webkit-scrollbar-thumb {
    background: var(--slate);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--champagne);
}

/* ===== UTILITIES ===== */
.sharp-edge {
    border-radius: 0px !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

footer i[data-lucide], footer svg, footer svg path, footer svg circle, footer svg rect, footer svg polyline, footer svg polygon, footer svg line {
    color: var(--white) !important;
    stroke: var(--white) !important;
    fill: var(--white) !important;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ANCHOR OFFSET FOR FIXED HEADER ===== */
section[id], header[id] {
    scroll-margin-top: 70px;
}

@media (max-width: 767px) {
    section[id], header[id] {
        scroll-margin-top: 26px;
    }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--midnight);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Selection */
::selection {
    background: var(--champagne);
    color: var(--midnight);
}

/* Focus Styles */
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 2px;
}

/* ===== SIDEBAR NAV DEFAULT ===== */
.sidebar-link {
    display: block;
    padding: 1rem 2rem;
    border-left: 2px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(28, 35, 49, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    border-left-color: var(--champagne);
    color: var(--slate);
}

/* ===== FORM STYLING ===== */
input, textarea, select {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
    .text-editorial-huge {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }
}
