/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 83, 0.3);
    color: #f5f5f5;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a053;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d4a053;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ── Hero Scroll Indicator ── */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Menu Tabs ── */
.menu-tab {
    background: transparent;
    color: #757575;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: #d4a053;
}

.menu-tab.active {
    background: rgba(212, 160, 83, 0.12);
    color: #d4a053;
    border-color: rgba(212, 160, 83, 0.3);
}

/* ── Reveal Animations ── */
.reveal-bottom {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-bottom.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Mobile Links ── */
.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
}

/* ── Image Hover ── */
.overflow-hidden {
    will-change: transform;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal-bottom,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .font-display.text-5xl,
    .font-display.text-6xl {
        font-size: 2.5rem;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }

    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    @media (min-width: 640px) {
        #hero h1 {
            font-size: 3.5rem;
        }
    }

    @media (min-width: 768px) {
        #hero h1 {
            font-size: 4rem;
        }
    }

    @media (min-width: 1024px) {
        #hero h1 {
            font-size: 5rem;
        }
    }
}

/* ── Form Date Input Fix ── */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}
</style>
