/* ========================================
   Shirley City Office — Custom Styles
   Classic & Elegant · Deep Navy + Warm Gold
======================================== */

/* ---------- Base & Typography ---------- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #C9A84C;
    color: #0A1C3F;
}

/* ---------- Navbar ---------- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 28, 63, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span[class*="text-navy-900"] {
    color: #0A1C3F !important;
}

#navbar.scrolled .text-navy-800\/70 {
    color: rgba(15, 39, 68, 0.7) !important;
}

/* ---------- Hero Stat Cards ---------- */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 28, 63, 0.12);
}

/* ---------- Room Cards ---------- */
.room-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-card:hover {
    transform: translateY(-6px);
}

.room-card:hover .bg-cream-100 {
    background-color: #EDE5D5;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(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; }

/* ---------- Gold Accent Line ---------- */
.gold-divider {
    position: relative;
}

.gold-divider::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #C9A84C, transparent);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ---------- Map ---------- */
iframe {
    filter: saturate(0.6) contrast(1.05);
    transition: filter 0.4s ease;
}

iframe:hover {
    filter: saturate(0.8) contrast(1.05);
}

/* ---------- Form Inputs ---------- */
input::placeholder,
textarea::placeholder {
    color: rgba(15, 39, 68, 0.2);
}

/* ---------- Subtle Pattern Overlay ---------- */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 28, 63, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
