/* ===== 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-color: rgba(6, 95, 70, 0.15);
    color: #064e3b;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== DECORATIVE ACCENT LINES ===== */
.accent-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(110, 231, 183, 0.08), transparent);
    width: 1px;
    pointer-events: none;
}

.line-1 {
    top: 0;
    left: 15%;
    height: 100%;
    opacity: 0.5;
}

.line-2 {
    top: 0;
    right: 25%;
    height: 100%;
    opacity: 0.3;
}

.line-3 {
    top: 20%;
    left: 45%;
    height: 60%;
    opacity: 0.4;
    background: linear-gradient(to bottom, transparent, rgba(110, 231, 183, 0.06), transparent);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

/* ===== HEADER SCROLLED STATE ===== */
#site-header.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

#site-header.scrolled .nav-link,
#site-header.scrolled #nav-logo-text {
    color: #065f46;
}

#site-header.scrolled #nav-logo-icon {
    color: #065f46;
}

#site-header.scrolled #menu-line-1,
#site-header.scrolled #menu-line-2,
#site-header.scrolled #menu-line-3 {
    background-color: #065f46;
}

/* ===== MOBILE MENU TOGGLE ===== */
#menu-toggle[aria-expanded="true"] #menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] #menu-line-2 {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] #menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== FORM STYLES ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

select option {
    background-color: #f5f3ed;
    color: #064e3b;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ===== PRINT ===== */
@media print {
    #site-header, #mobile-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
