/* ============================================
   Karen's Kottage — Custom Styles
   Classic & Elegant Theme
   ============================================ */

/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Selection Color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0f3f9;
}

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

#navbar.scrolled {
    background-color: rgba(8, 15, 23, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

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

.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; }

/* Menu Button Animation */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #menu-line-2 {
    opacity: 0;
}

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

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

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.room-card .relative {
    position: relative;
}

/* ============================================
   Feature Items
   ============================================ */
.feature-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Scroll Reveal Animations
   Only apply when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal-up.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Gold Line Animations
   ============================================ */
.gold-line {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gold-line.revealed {
    transform: scaleX(1);
}

/* ============================================
   Parallax-like Subtle Effects
   ============================================ */
.hero-accent {
    will-change: transform;
}

/* ============================================
   Button Hover Effects
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Image Loading
   ============================================ */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   Focus Styles
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(212, 160, 23, 0.5);
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: clamp(3rem, 7vw, 5rem);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
}
