/* ===== Custom Styles for Willow Lodge PCH ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8943F;
}

/* Selection color */
::selection {
    background: #C9A84C;
    color: #0A1F44;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 0 rgba(10, 31, 68, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled #nav-logo-text {
    color: #0A1F44;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(100%);
}

/* Hamburger animation */
#hamburger.open #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.open #bar2 {
    opacity: 0;
}
#hamburger.open #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* ===== Hero ===== */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

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

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

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive adjustments ===== */
@media (max-width: 767px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}

/* ===== Focus styles ===== */
input:focus, textarea:focus, button:focus, a:focus {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ===== Print styles ===== */
@media print {
    #navbar, .scroll-indicator { display: none; }
    body { background: white; }
}
