/* Desoto Masonic Lodge — 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;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040914;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Section label */
.section-label {
    display: block;
}

/* Navigation */
.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%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 9, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Mobile link underline */
.mobile-link {
    position: relative;
}

/* Room cards */
.room-card {
    transform: translateY(0);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.05);
}

/* Form inputs */
input:focus,
textarea:focus {
    background: rgba(10, 22, 40, 0.8);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-reveals .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .animate-reveals .reveal:nth-child(1) { transition-delay: 0.05s; }
    .animate-reveals .reveal:nth-child(2) { transition-delay: 0.1s; }
    .animate-reveals .reveal:nth-child(3) { transition-delay: 0.15s; }
    .animate-reveals .reveal:nth-child(4) { transition-delay: 0.2s; }
    .animate-reveals .reveal:nth-child(5) { transition-delay: 0.25s; }
    .animate-reveals .reveal:nth-child(6) { transition-delay: 0.3s; }
    .animate-reveals .reveal:nth-child(7) { transition-delay: 0.35s; }
    .animate-reveals .reveal:nth-child(8) { transition-delay: 0.4s; }
    .animate-reveals .reveal:nth-child(9) { transition-delay: 0.45s; }
    .animate-reveals .reveal:nth-child(10) { transition-delay: 0.5s; }
}

/* Hero badge pulse */
@keyframes borderPulse {
    0%, 100% { border-color: rgba(201, 168, 76, 0.3); }
    50% { border-color: rgba(201, 168, 76, 0.6); }
}

.hero-badge {
    animation: borderPulse 3s ease-in-out infinite;
}

/* Gold shimmer on hover */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Button shine effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contactForm, #formSuccess, .reveal { display: none; }
    body { background: white; color: black; }
}
