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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #050505;
    color: #faf8f4;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #1f4a12;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c99b2e;
}

/* ========== HEADER ========== */
#site-header {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#site-header.scrolled .header-glass {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 155, 46, 0.1);
}

.header-glass {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e2b84b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 155, 46, 0.15);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-panel.open {
    max-height: 400px;
}

.mobile-menu-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu-link:hover {
    color: #e2b84b;
    padding-left: 8px;
}

/* Hamburger animation */
#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(5px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle[aria-expanded="true"] #bar3 {
    transform: translateY(-5px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero-bg {
    will-change: transform;
}

.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    background:
        linear-gradient(180deg,
            rgba(5, 5, 5, 0.4) 0%,
            rgba(5, 5, 5, 0.2) 40%,
            rgba(5, 5, 5, 0.3) 70%,
            rgba(5, 5, 5, 0.9) 100%
        );
}

.hero-badge {
    animation: badgeIn 1s ease-out 0.2s both;
}

@keyframes badgeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge ~ h1 {
    animation: heroTextIn 1s ease-out 0.4s both;
}

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

.hero-badge ~ p {
    animation: heroTextIn 1s ease-out 0.6s both;
}

.hero-badge ~ div {
    animation: heroTextIn 1s ease-out 0.8s both;
}

/* Scroll line */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 0.7; height: 50px; }
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #c99b2e 0%, #e2b84b 50%, #c99b2e 100%);
    background-size: 200% 200%;
    color: #050505;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(201, 155, 46, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2b84b 0%, #f0d078 50%, #e2b84b 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 155, 46, 0.4);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    color: #faf8f4;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(250, 248, 244, 0.25);
    transition: all 0.4s ease;
    background: rgba(250, 248, 244, 0.05);
}

.btn-secondary:hover {
    border-color: #e2b84b;
    color: #e2b84b;
    background: rgba(226, 184, 75, 0.08);
    transform: translateY(-2px);
}

/* ========== MENU TABS ========== */
.menu-tab {
    background: transparent;
    color: rgba(250, 248, 244, 0.5);
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: rgba(250, 248, 244, 0.8);
}

.menu-tab.active {
    background: rgba(201, 155, 46, 0.2);
    color: #e2b84b;
    border: 1px solid rgba(201, 155, 46, 0.3);
}

.menu-panel {
    animation: panelIn 0.5s ease-out;
}

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

/* ========== REVEAL ANIMATIONS ========== */
/* Default state: visible for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
}

/* Only apply animations when JS is enabled AND user prefers motion */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-enabled .reveal.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-img {
        animation: none;
    }
    .scroll-line {
        animation: none;
    }
    .hero-badge,
    .hero-badge ~ * {
        animation: none;
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(31, 74, 18, 0.8);
    border: 1px solid rgba(201, 155, 46, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2b84b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 40;
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(201, 155, 46, 0.2);
    border-color: #e2b84b;
    transform: translateY(-3px);
}

/* ========== GOLD ACCENT DIVIDER ========== */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 155, 46, 0.4), transparent);
}

/* ========== IMAGE HOVER ========== */
.group:hover .group-hover\:text-gold-400 {
    color: #e2b84b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .font-serif.text-4xl {
        font-size: 2rem;
    }
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}
