/* === Base === */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background: color-mix(in srgb, #4f7a32 30%, transparent);
    color: #1e3113;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
    background: #c5d8b0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9dba7e;
}

/* === Animations === */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* === Fade-in on scroll === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* === Navigation === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 216, 176, 0.3);
}

.nav-logo-text {
    color: #1e3113;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1e3113;
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* === Mobile Menu Button === */
.nav-menu-btn span {
    display: block;
    width: 22px;
    height: 1px;
    background: #1e3113;
    transition: all 0.3s ease;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* === Site Cards === */
.site-card {
    position: relative;
}

.site-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(197, 216, 176, 0.4);
    border-radius: 0;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 1;
}

.site-card:hover::before {
    border-color: rgba(79, 122, 50, 0.4);
}

.site-card > * {
    position: relative;
    z-index: 2;
}

/* === Amenities === */
.amenity-item {
    transition: all 0.4s ease;
}

/* === Form === */
select option {
    background: #FAFAF5;
    color: #1e3113;
}

/* === Focus styles === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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