/* ============================================
   SheBrews Grace Coffee Shoppe
   Classic & Elegant — Deep Navy + Warm Gold
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #091428;
}
::-webkit-scrollbar-thumb {
    background: #1e3a78;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a4e9a;
}

/* Selection */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #f0f3fa;
}

/* ============================================
   Floating Card Animations
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-coffee {
    animation-delay: 0s;
}

.floating-card.card-pastry {
    animation-delay: -2s;
}

.floating-card.card-welcome {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 12, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 75, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    background: rgba(15, 32, 64, 0.5);
    border: 1px solid rgba(30, 58, 120, 0.4);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 75, 0.06);
    border-color: rgba(212, 168, 75, 0.2);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   Only active when JS is available and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

@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;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #D4A84B;
    transition: width 0.3s ease;
    margin-top: 4px;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
/* ============================================
   Button Focus States
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }

    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}

/* ============================================
   Image Loading Placeholder
   ============================================ */
img {
    background: linear-gradient(135deg, #0f2040 0%, #162d5c 100%);
    min-height: 4rem;
}

/* ============================================
   Gold Accent Lines
   ============================================ */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.3), transparent);
}
