/* ===== Custom Styles for The Great Room ===== */

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

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.01em;
}

.font-serif {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6d6d6d;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f06040;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #ffad8c !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 79, 79, 0.3);
}

.navbar-scrolled .nav-link {
    color: #d1d1d1;
}

.navbar-transparent {
    background: transparent;
}

/* Mobile Menu */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.group img {
    will-change: transform;
}

/* Form inputs */
input:focus,
textarea:focus {
    border-color: #f06040 !important;
    box-shadow: 0 0 0 1px rgba(240, 96, 64, 0.2);
}

/* Selection color */
::selection {
    background: rgba(240, 96, 64, 0.3);
    color: #f6f6f6;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #f06040;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group img,
    .reveal-visible {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* ===== Responsive Adjustments ===== */

/* Tablet portrait */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
}

/* Small phones */
@media (max-width: 360px) {
    nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Large displays */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* ===== Utility: Aspect Ratio Support ===== */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[16\/10\] {
    aspect-ratio: 16 / 10;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* ===== Print Styles ===== */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
    
    .bg-charcoal-950,
    .bg-charcoal-900 {
        background: white !important;
    }
    
    .text-charcoal-50,
    .text-charcoal-200 {
        color: #1a1a1a !important;
    }
}
