/* ============================================
   Dunlap's Main Street Loft — Custom Styles
   Premium Dark Luxury Theme
   Charcoal + Coral + Gold Palette
=========================================== */

/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0a0a0b;
    color: #e8e8ec;
}

::selection {
    background-color: rgba(201, 169, 110, 0.3);
    color: #f5f5f7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111113;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A96E;
}

/* ── Scroll Indicator Animation ── */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ── Reveal Animations (Progressive Enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for reduced motion / no-JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* JS-enhanced hidden state (only applied when JS runs and motion preferred) */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Animations ── */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    }
    .hero-title {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    }
    .hero-subtitle {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
    }
    .hero-ctas {
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar ── */
.nav-scrolled {
    background-color: rgba(10, 10, 11, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.nav-scrolled #navbar {
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.05);
}

/* ── Gold Accent Line ── */
.gold-line {
    position: relative;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C9A96E, transparent);
}

/* ── Card Hover Effects ── */
.room-card {
    position: relative;
    overflow: hidden;
}
.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    z-index: 10;
    pointer-events: none;
}
.room-card:hover::before {
    border-color: rgba(201, 169, 110, 0.3);
}

/* ── Button Ripple Effect ── */
.btn-luxury {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-luxury::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-luxury:hover::after {
    width: 300px;
    height: 300px;
}

/* ── Image Hover ── */
.img-luxury {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}
.img-luxury:hover {
    transform: scale(1.03);
}

/* ── Feature Icon Container ── */
.feature-icon {
    transition: all 0.3s ease;
}
.feature-item:hover .feature-icon {
    background-color: rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.5);
    transform: translateY(-2px);
}

/* ── Mobile Menu ── */
.mobile-menu-open {
    overflow: hidden;
}

/* ── Parallax Subtle ── */
.parallax-slow {
    will-change: transform;
}

/* ── Decorative Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
}

/* ── Focus States for Accessibility ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A96E;
    outline-offset: 4px;
    border-radius: 2px;
}

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

/* ── Print Styles ── */
@media print {
    body {
        background: white;
        color: black;
    }
    nav, footer, .reveal {
        display: none;
    }
}
