/* ============================
   Breakfast Little — Custom Styles
   ============================ */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #0d9488;
    color: #f5f5f4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================
   Section Labels & Titles
   ============================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

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

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

/* ============================
   Mobile Menu
   ============================ */
.mobile-nav-link {
    position: relative;
}

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

/* ============================
   Hero Animations
   ============================ */
.hero-tag {
    animation: fadeInUp 0.8s ease both;
}

.hero-tag {
    animation-delay: 0.1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1 {
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.2s;
}

#hero p {
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.35s;
}

#hero .flex.flex-wrap {
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.5s;
}

#hero > div > div > div:last-child {
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.65s;
}

/* ============================
   Scroll Reveal (below fold only)
   ============================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }

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

/* ============================
   Menu Categories
   ============================ */
.menu-category {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.menu-category:hover {
    background: #f8fafc;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.menu-category li {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.menu-category li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ============================
   Image hover
   ============================ */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* ============================
   Footer
   ============================ */
footer a {
    text-decoration: none;
}

/* ============================
   Focus styles
   ============================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================
   Reduced motion
   ============================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================
   Responsive tweaks
   ============================ */
@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }

    #hero {
        min-height: auto;
        padding-top: 6rem;
    }

    #hero > div {
        padding-top: 0;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero .aspect-\[4\/5\] {
        aspect-ratio: 16/10;
    }
}
