/* ============================================
   CABIN FEVER COTTAGES — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0e0c0a;
}
::-webkit-scrollbar-thumb {
    background: #241e1a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5efe6;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(14, 12, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

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

/* Menu Button Animations */
.menu-line {
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
    margin: 0;
}

/* ============================================
   HERO
   ============================================ */
.scroll-line {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ============================================
   COTTAGE CARDS
   ============================================ */
.cottage-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cottage-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cottage-card:nth-child(2) { transition-delay: 0.15s; }
.cottage-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   ACTIVITY CARDS
   ============================================ */
.activity-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease;
}

.activity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-card:nth-child(1) { transition-delay: 0s; }
.activity-card:nth-child(2) { transition-delay: 0.1s; }
.activity-card:nth-child(3) { transition-delay: 0.2s; }
.activity-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FORM STYLES
   ============================================ */
select option {
    background: #241e1a;
    color: #f5efe6;
}

/* ============================================
   SMOOTH TRANSITIONS FOR ALL INTERACTIVE
   ============================================ */
a, button {
    transition: all 0.3s ease;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    .cottage-card {
        transition: transform 0.4s ease;
    }
    .cottage-card:hover {
        transform: translateY(-4px);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    #navbar, #contact, footer {
        display: none;
    }
}
