/* ===================================
   Maple Hills Retreat — Custom Styles
   =================================== */

/* Base & Smooth Scrolling */
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: #060D1F;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

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

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

#navbar.scrolled {
    background: rgba(6, 13, 31, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #D4AF5A !important;
}

/* ===================================
   Hero Animations
   =================================== */
.hero-tag {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Scroll indicator */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -16px; }
    100% { top: 48px; }
}

/* ===================================
   Cabin Cards
   =================================== */
.cabin-card {
    position: relative;
}

.cabin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.4s ease;
    z-index: 10;
    pointer-events: none;
}

.cabin-card:hover::before {
    border-color: rgba(201, 168, 76, 0.3);
}

.cabin-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 13, 31, 0.8) 0%, transparent 50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cabin-card:hover::after {
    opacity: 1;
}

/* ===================================
   Experience Cards
   =================================== */
.experience-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: translateX(8px);
}

/* ===================================
   Gallery
   =================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 31, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(6, 13, 31, 0.15);
}

/* ===================================
   Reveal Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* Mobile menu icon animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ===================================
   Input Styles
   =================================== */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(201, 168, 76, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(232, 227, 214, 0.2);
}

/* ===================================
   Date Input Reset
   =================================== */
input[type="date"] {
    color: #F8F6F0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem !important;
    }
    
    #hero h1 span {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem !important;
    }
    
    #hero h1 span {
        font-size: 2rem !important;
    }
}
