/* ============================================
   T&TDaiquiriLoungeICT — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(123, 36, 50, 0.2);
    color: #7B2432;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #c4566e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2432;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Fallback: always show content if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(123, 36, 50, 0.08);
}

/* ============================================
   Mobile Menu Transitions
   ============================================ */
#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);
    }
}

/* ============================================
   Product Card Stagger
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    #products .reveal:nth-child(1) { transition-delay: 0.05s; }
    #products .reveal:nth-child(2) { transition-delay: 0.1s; }
    #products .reveal:nth-child(3) { transition-delay: 0.15s; }
    #products .reveal:nth-child(4) { transition-delay: 0.2s; }
    #products .reveal:nth-child(5) { transition-delay: 0.25s; }
    #products .reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2432;
    outline-offset: 2px;
}

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

/* ============================================
   Image Loading Placeholder
   ============================================ */
img {
    background-color: #faf3e8;
}

/* ============================================
   Utility: Smooth Scroll Offset for Fixed Nav
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
