/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: color-mix(in srgb, #1a3c2a 80%, white);
    color: #faf8f5;
}

/* === Section Labels === */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 1px;
    background: color-mix(in srgb, currentColor 40%, transparent);
}

/* === Nav === */
.nav-link {
    position: relative;
}

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

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

/* === Navbar Scroll State === */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.06);
}

#navbar.scrolled .nav-link {
    color: #1a3c2a;
}

#navbar.scrolled .font-serif {
    color: #1a3c2a;
}

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.25s; }

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

/* === Hero Animations === */
.hero-tagline {
    animation: slideUp 0.8s ease 0.2s forwards;
}

.hero-headline {
    animation: slideUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.hero-cta {
    animation: fadeIn 0.8s ease 1s forwards;
}

.hero-image-wrapper {
    animation: scaleIn 1s ease 0.3s both;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === Reveal Animations === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(32px);
}

.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Menu Items === */
.menu-item {
    border-bottom: 1px solid rgba(26, 60, 42, 0.06);
    padding-bottom: 6px;
}

.menu-item:last-child {
    border-bottom: none;
}

/* === Form Styles === */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    cursor: pointer;
}

select option {
    background: #faf8f5;
    color: #1a3c2a;
}

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

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #97c5a3;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #65a574;
}

/* === Responsive adjustments === */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 17px;
    }
}
