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

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

body {
    margin: 0;
}

img {
    display: block;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.menu-line {
    width: 24px;
    transition: all 0.3s ease;
}

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

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

/* Hero */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-body {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-cta-secondary {
    opacity: 0;
    animation: fadeUp 0.8s ease 1.0s forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

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

.scroll-indicator svg {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 77, 46, 0.15), transparent);
    margin: 0;
}

/* Menu */
.menu-item {
    position: relative;
    padding-bottom: 0;
}

.menu-item:not(:last-child) {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
}

.dot-leader {
    flex: 1;
    min-width: 2rem;
    max-width: 4rem;
    height: 1px;
    background: rgba(26, 77, 46, 0.2);
    margin: 0 0.75rem;
    align-self: center;
}

.menu-category {
    opacity: 1;
}

/* Buttons */
a, button {
    cursor: pointer;
}

/* Selection */
::selection {
    background: rgba(26, 77, 46, 0.15);
    color: #1a4d2e;
}

/* Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #1a4d2e;
    outline-offset: 4px;
    border-radius: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb392;
}

/* 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;
    }
}

/* Print */
@media print {
    #navbar, .scroll-indicator, .reveal {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
