@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS for the page */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Top Navigation Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(14, 14, 14, 0.90);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 74px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Left Navigation */
.nav-left {
    justify-self: start;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    letter-spacing: 0.03em;
    transition: color 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-arrow {
    transition: transform 0.25s ease;
    opacity: 0.75;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(14, 14, 14, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    padding: 8px 0;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 22px;
}

/* Center Brand */
.nav-center {
    justify-self: center;
    text-align: center;
}

.nav-brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

/* Right CTA Button */
.nav-right {
    justify-self: end;
}

.nav-cta-btn {
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 10px 22px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer --- */
.site-footer {
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.92rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.footer-meta {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
}

.footer-nav {
    margin: 0 0 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: #e5a93c;
    text-decoration: underline;
}

.footer-copy {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-credit {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 8px 0 0 0;
    letter-spacing: 0.02em;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-credit a:hover {
    color: #ffffff;
}

/* --- Responsive Navigation --- */
@media (max-width: 992px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        height: 64px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-left {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(14, 14, 14, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px 24px 30px;
        box-sizing: border-box;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-left.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(25, 25, 25, 0.6);
        border: none;
        box-shadow: none;
        padding: 4px 0 10px 16px;
        display: none;
    }

    .nav-item.is-expanded .dropdown-menu {
        display: block;
    }

    .nav-brand {
        font-size: 0.95rem;
        letter-spacing: 0.22em;
    }

    .nav-cta-btn {
        padding: 8px 14px;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 580px) {
    .nav-brand {
        font-size: 0.82rem;
        letter-spacing: 0.16em;
    }
    .nav-cta-btn {
        padding: 7px 10px;
        font-size: 0.62rem;
    }
}


/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(14, 14, 14, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(229, 169, 60, 0.35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
    padding: 20px 24px;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5a93c;
    margin: 0 0 6px 0;
}

.cookie-banner-desc {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cookie-banner-desc a {
    color: #e5a93c;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-banner-desc a:hover {
    color: #ffffff;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 11px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 2px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #e5a93c;
    color: #0e0e0e;
    border: 1px solid #e5a93c;
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background-color: #f0b952;
    border-color: #f0b952;
}

.cookie-btn-decline {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn-decline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* --- Theme Toggle Button --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.theme-toggle:hover {
    border-color: #e5a93c;
    color: #e5a93c;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .theme-toggle {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 580px) {
    .nav-right {
        gap: 8px;
    }
    .theme-toggle {
        width: 30px;
        height: 30px;
    }
    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }
}

/* =========================================================
   LIGHT MODE THEME OVERRIDES (html[data-theme="light"])
   ========================================================= */
html[data-theme="light"] body {
    background-color: #f7f4ee;
    color: #1c1c1e;
}

/* Header & Navigation */
html[data-theme="light"] .site-header {
    background: rgba(251, 249, 244, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .nav-link {
    color: rgba(24, 24, 27, 0.82);
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
    color: #000000;
}

html[data-theme="light"] .nav-brand {
    color: #141414;
}

html[data-theme="light"] .dropdown-menu {
    background: rgba(253, 251, 247, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .dropdown-item {
    color: rgba(24, 24, 27, 0.82);
}

html[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

html[data-theme="light"] .nav-cta-btn {
    color: #141414;
    border-color: rgba(20, 20, 20, 0.75);
}

html[data-theme="light"] .nav-cta-btn:hover {
    background: #141414;
    color: #ffffff;
    border-color: #141414;
}

html[data-theme="light"] .theme-toggle {
    color: #141414;
    border-color: rgba(20, 20, 20, 0.35);
}

html[data-theme="light"] .theme-toggle:hover {
    border-color: #b57c17;
    color: #b57c17;
}

html[data-theme="light"] .mobile-toggle span {
    background-color: #141414;
}

@media (max-width: 992px) {
    html[data-theme="light"] .nav-left {
        background: rgba(251, 249, 244, 0.99);
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }

    html[data-theme="light"] .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    html[data-theme="light"] .dropdown-menu {
        background: rgba(0, 0, 0, 0.03);
        border: none;
        box-shadow: none;
    }
}

/* Editorial / Intro / Central Sections */
html[data-theme="light"] .central-section,
html[data-theme="light"] .intro-section,
html[data-theme="light"] .callout-section {
    background-color: #f7f4ee;
    color: #1c1c1e;
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .central-eyebrow,
html[data-theme="light"] .intro-eyebrow,
html[data-theme="light"] .callout-eyebrow {
    color: #9a6b15;
}

html[data-theme="light"] .central-title,
html[data-theme="light"] .intro-title,
html[data-theme="light"] .callout-box h3 {
    color: #141414;
}

html[data-theme="light"] .central-divider-line,
html[data-theme="light"] .intro-divider-line {
    background: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .central-divider-icon,
html[data-theme="light"] .intro-divider-icon {
    color: #9a6b15;
}

html[data-theme="light"] .central-lead,
html[data-theme="light"] .intro-lead {
    color: #27272a;
}

html[data-theme="light"] .central-story-grid p,
html[data-theme="light"] .intro-body-text,
html[data-theme="light"] .callout-box p {
    color: #3f3f46;
}

/* Stats Rows */
html[data-theme="light"] .central-stats-row,
html[data-theme="light"] .heritage-stats-row {
    border-top-color: rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .stat-item:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .stat-number {
    color: #141414;
}

html[data-theme="light"] .stat-label {
    color: #52525b;
}

/* Cards & Grid Sections */
html[data-theme="light"] .feature-section,
html[data-theme="light"] .principles-section,
html[data-theme="light"] .heritage-section,
html[data-theme="light"] .privacy-section {
    background-color: #efeae0;
    color: #1c1c1e;
    border-top-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .feature-card,
html[data-theme="light"] .principle-card,
html[data-theme="light"] .heritage-card,
html[data-theme="light"] .callout-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1c1c1e;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .principle-card:hover,
html[data-theme="light"] .heritage-card:hover {
    background: #ffffff;
    border-color: rgba(181, 124, 23, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .feature-card-num,
html[data-theme="light"] .principle-num,
html[data-theme="light"] .heritage-card-num {
    color: #9a6b15;
}

html[data-theme="light"] .feature-card-icon,
html[data-theme="light"] .principle-icon,
html[data-theme="light"] .heritage-card-icon {
    color: #27272a;
}

html[data-theme="light"] .feature-card:hover .feature-card-icon,
html[data-theme="light"] .principle-card:hover .principle-icon,
html[data-theme="light"] .heritage-card:hover .heritage-card-icon {
    color: #9a6b15;
}

html[data-theme="light"] .feature-card h3,
html[data-theme="light"] .principle-card h3,
html[data-theme="light"] .heritage-card h3 {
    color: #141414;
}

html[data-theme="light"] .feature-card-divider,
html[data-theme="light"] .principle-divider,
html[data-theme="light"] .heritage-card-divider {
    background: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .feature-card:hover .feature-card-divider,
html[data-theme="light"] .principle-card:hover .principle-divider,
html[data-theme="light"] .heritage-card:hover .heritage-card-divider {
    background: #b57c17;
}

html[data-theme="light"] .feature-card p,
html[data-theme="light"] .principle-card p,
html[data-theme="light"] .heritage-card p {
    color: #3f3f46;
}

html[data-theme="light"] .feature-card-btn {
    color: #141414;
    border-color: #141414;
}

html[data-theme="light"] .feature-card:hover .feature-card-btn {
    background-color: #141414;
    color: #ffffff;
    border-color: #141414;
}

/* Buttons in Editorial & Callout Sections */
html[data-theme="light"] .central-btn.primary,
html[data-theme="light"] .callout-btn.primary {
    background-color: #141414;
    color: #ffffff;
    border-color: #141414;
}

html[data-theme="light"] .central-btn.primary:hover,
html[data-theme="light"] .callout-btn.primary:hover {
    background-color: transparent;
    color: #141414;
}

html[data-theme="light"] .central-btn.secondary,
html[data-theme="light"] .callout-btn.secondary {
    background-color: transparent;
    color: #141414;
    border-color: rgba(20, 20, 20, 0.65);
}

html[data-theme="light"] .central-btn.secondary:hover,
html[data-theme="light"] .callout-btn.secondary:hover {
    background-color: #141414;
    color: #ffffff;
    border-color: #141414;
}

/* Privacy Policy Page Elements */
html[data-theme="light"] .privacy-intro-box {
    background: #ffffff;
    border-color: rgba(181, 124, 23, 0.35);
    border-left-color: #b57c17;
    color: #27272a;
}

html[data-theme="light"] .policy-block {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .policy-block h2 {
    color: #9a6b15;
}

html[data-theme="light"] .policy-block h2::before {
    background-color: #9a6b15;
}

html[data-theme="light"] .policy-block p,
html[data-theme="light"] .policy-block li {
    color: #3f3f46;
}

html[data-theme="light"] .policy-block li strong {
    color: #141414;
}

html[data-theme="light"] .contact-card,
html[data-theme="light"] .cookie-preferences-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .contact-card a,
html[data-theme="light"] #cookie-consent-status {
    color: #9a6b15;
}

/* Footer */
html[data-theme="light"] .site-footer {
    background-color: #e5dfd3;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #3f3f46;
}

html[data-theme="light"] .footer-brand {
    color: #141414;
}

html[data-theme="light"] .footer-meta {
    color: #52525b;
}

html[data-theme="light"] .footer-nav {
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .footer-nav a {
    color: #3f3f46;
}

html[data-theme="light"] .footer-nav a:hover {
    color: #9a6b15;
}

html[data-theme="light"] .footer-copy,
html[data-theme="light"] .footer-credit {
    color: #52525b;
}

html[data-theme="light"] .footer-credit a {
    color: #27272a;
}

html[data-theme="light"] .footer-credit a:hover {
    color: #000000;
}

/* Cookie Banner in Light Mode */
html[data-theme="light"] .cookie-banner {
    background: rgba(251, 249, 244, 0.98);
    border-top: 1px solid rgba(181, 124, 23, 0.4);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .cookie-banner-title {
    color: #9a6b15;
}

html[data-theme="light"] .cookie-banner-desc {
    color: #3f3f46;
}

html[data-theme="light"] .cookie-banner-desc a {
    color: #9a6b15;
}

html[data-theme="light"] .cookie-btn-decline {
    color: #27272a;
    border-color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .cookie-btn-decline:hover {
    border-color: #141414;
    color: #141414;
    background-color: rgba(0, 0, 0, 0.05);
}
