/* ============================================
   Arcadia Regency Retirement Hotel
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #c49a6c;
    color: #300e0e;
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.nav-scrolled #navbar {
    background-color: rgba(48, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #nav-logo-text,
.nav-scrolled #nav-subtext,
.nav-scrolled .nav-link {
    color: #fce7e7 !important;
}

.nav-scrolled #nav-logo svg {
    color: #d4a574 !important;
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #d4a574;
    transition: width 0.3s ease;
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-left {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-left.revealed {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-right.revealed {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background-color: #6b1f1f;
    color: #fce7e7;
}

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

::-webkit-scrollbar-track {
    background: #300e0e;
}

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

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

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

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #mobile-menu, button, iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
