@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Noto+Serif+Display:wght@300;400;600;700;900&family=Noto+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --bg-deep: #050505;
    --bg-primary: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --bg-hover: #1f1f1f;
    --gold-dark: #8a6d2b;
    --gold: #c9a84c;
    --gold-light: #dcc175;
    --gold-bright: #f0d98c;
    --text-primary: #e8e4dc;
    --text-secondary: #9a958c;
    --text-muted: #8a8478;
    --border: rgba(201, 168, 76, 0.12);
    --border-hover: rgba(201, 168, 76, 0.3);
    --font-display: 'Noto Serif Display', 'Georgia', serif;
    --font-body: 'Cormorant Garamond', 'Georgia', serif;
    --font-ui: 'Noto Sans', 'Helvetica Neue', sans-serif;
}

/* ═══════ LIGHT THEME ═══════ */
[data-theme="light"] {
    --bg-deep: #f5f2ed;
    --bg-primary: #ebe7e0;
    --bg-card: #e5e1d9;
    --bg-elevated: #ddd9d1;
    --bg-hover: #d5d0c8;
    --gold-dark: #8a6d2b;
    --gold: #9a7b30;
    --gold-light: #7a6225;
    --gold-bright: #6a5520;
    --text-primary: #1a1816;
    --text-secondary: #4a4540;
    --text-muted: #7a756e;
    --border: rgba(100, 80, 30, 0.12);
    --border-hover: rgba(100, 80, 30, 0.25);
}

[data-theme="light"] .nav {
    background: rgba(245, 242, 237, 0.9);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(245, 242, 237, 0.97);
}

[data-theme="light"] .hero-bg {
    filter: saturate(0.7) brightness(0.5);
}

[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
        linear-gradient(to top, var(--bg-deep) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(245, 242, 237, 0.4) 0%, transparent 30%);
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-eyebrow { color: #fff; }

[data-theme="light"] body::after { opacity: 0; }

/* ═══════ THEME TOGGLE ═══════ */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--gold);
    border-color: var(--border-hover);
}

.theme-toggle svg { width: 14px; height: 14px; fill: currentColor; }

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

[data-theme="light"] .theme-toggle .icon-moon { display: block; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════ GRAIN OVERLAY ═══════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ═══════ NAVIGATION ═══════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 3rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.nav.scrolled { height: 60px; background: rgba(5, 5, 5, 0.95); }

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-lang {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    transition: all 0.3s;
}

.nav-lang:hover { color: var(--gold); border-color: var(--border-hover); }

/* ═══════ NAV LAYOUT ═══════ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-always {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-mobile-extras { display: none; }

/* ═══════ BURGER ═══════ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.nav-overlay.open { display: block; }

/* ═══════ HERO ═══════ */
.hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: saturate(0.6) brightness(0.4);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-bg .hero-img-desktop { display: block; }
.hero-bg .hero-img-mobile { display: none; }

@media (max-width: 768px) {
    .hero-bg .hero-img-desktop { display: none; }
    .hero-bg .hero-img-mobile { display: block; }
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero:hover .hero-bg { transform: scale(1.0); }

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
        linear-gradient(to top, var(--bg-deep) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.5) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 4rem;
    animation: heroReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-line {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* ═══════ FOOTER ═══════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* ═══════ COMMON SECTION ═══════ */
.section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
    .nav { padding: 0 1.5rem; }

    .burger { display: flex; }
    .theme-toggle-desktop { display: none !important; }

    .nav-links {
        position: fixed;
        top: 0; right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        border-left: 1px solid var(--border);
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .nav-links a::after { display: none; }

    .nav-mobile-extras {
        display: flex !important;
        border-bottom: none !important;
        padding-top: 1.5rem;
    }

    .hero { height: 50vh; min-height: 350px; }
    .hero-title { letter-spacing: 0.15em; }
}

[data-theme="light"] .nav-links {
    background: var(--bg-primary);
}

@media (max-width: 520px) {
    .nav-brand { font-size: 0.9rem; letter-spacing: 0.2em; }
}
