/* ========================================
   Sunnybrook Hotel — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a1120;
}

::-webkit-scrollbar-thumb {
    background: #D4A843;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c050;
}

/* Selection */
::selection {
    background: #D4A843;
    color: #0F172A;
}

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

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

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

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

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

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

#mobileMenu.closed {
    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;
}

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

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

/* Menu Button */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ========================================
   Hero
   ======================================== */
#hero {
    position: relative;
}

/* ========================================
   Room Cards
   ======================================== */
.room-card {
    position: relative;
    border-radius: 0;
}

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

.room-card:hover::before {
    border-color: rgba(212, 168, 67, 0.3);
}

/* ========================================
   Amenity Cards
   ======================================== */
.amenity-card {
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Testimonial Cards
   ======================================== */
.testimonial-card {
    transition: border-color 0.5s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — only active with JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }
    
    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0) translateX(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; }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    outline: none;
    border-color: #D4A843 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .room-card {
        transform: none !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .font-serif {
        color: black;
    }
}
