/* ==========================================
   UTurn Coffee and Events — Custom Styles
   ========================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection */
::selection {
    background: #9a2626;
    color: #fdf8f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ed;
}
::-webkit-scrollbar-thumb {
    background: #d44646;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a2626;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Header scroll state */
header.scrolled {
    background: rgba(253, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(154, 38, 38, 0.08);
}

header.scrolled .font-serif,
header.scrolled .font-sans {
    color: #6b1d1d !important;
}

/* Mobile menu animations */
#menu-toggle[aria-expanded="true"] #bar-top {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle[aria-expanded="true"] #bar-mid {
    opacity: 0;
    width: 0;
}
#menu-toggle[aria-expanded="true"] #bar-bot {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 6px;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #9a2626 !important;
}

/* Image hover containers */
.overflow-hidden {
    position: relative;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    header, footer, #mobile-menu {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
