/* ============================================
   TeaTown SD — Custom Styles
   Premium Dark Luxury · Burgundy + Blush
   ============================================ */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

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

/* Selection */
::selection {
    background-color: rgba(123, 45, 59, 0.4);
    color: #F5EDE8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A0B;
}
::-webkit-scrollbar-thumb {
    background: #2A2022;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(13, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 32, 34, 0.5);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: menuSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.hidden {
    animation: menuSlideOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

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

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Subtle gold shimmer on hover for cards */
.group:hover .group-hover\\:bg-tt-burgundy\\/30 {
    background-color: rgba(123, 45, 59, 0.3);
}

/* Button ripple-like glow */
button:hover,
a:hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #161113 inset !important;
    -webkit-text-fill-color: #F5EDE8 !important;
    caret-color: #F5EDE8;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .lg\\:text-8xl {
        font-size: 5.5rem;
        line-height: 1;
    }
}

/* Ensure map contrast works */
iframe[title*="Google Maps"] {
    background: #1a1515;
}
