/* ============================================
   Diplomat Motel — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #fdf8f0;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2f2f;
}

/* --- Selection --- */
::selection {
    background: #9a2f2f;
    color: #fefdfb;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.reveal.revealed:nth-child(5) { transition-delay: 0.4s; }

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

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

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger animation */
#hamburger.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#hamburger.active #bar2 {
    opacity: 0;
}

#hamburger.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* --- Hero Section --- */
#hero {
    position: relative;
}

/* --- Image Hover Effects --- */
.group img {
    will-change: transform;
}

/* --- Button Ripple Effect --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Form Focus States --- */
input:focus, textarea:focus {
    outline: none;
}

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

/* --- Print Styles --- */
@media print {
    nav, #back-to-top, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #000;
    }
}

/* --- 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* --- Utility: Aspect Ratio Helper --- */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* --- Subtle Grain Overlay (optional enhancement) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
