/* =========================================
   Cityline Bakery & Deli — Custom Styles
   ========================================= */

/* --- Base Reset & Typography --- */
*, *::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;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d9a9be;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b05577;
}

/* --- Navbar --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 44, 68, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 20px rgba(108, 44, 68, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* --- Hero Split --- */
.hero-split {
    background: linear-gradient(135deg, #faf5f7 0%, #f5e9ee 50%, #fffbeb 100%);
    padding-top: 80px;
    min-height: 100vh;
}

/* --- Reveal Animations --- */
.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(30px);
    }

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

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
}

/* --- Button Hover Effects --- */
a {
    text-decoration: none;
}

/* --- Image Aspect Ratios --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Mobile responsiveness --- */
@media (max-width: 767px) {
    .hero-split {
        padding-top: 72px;
        padding-bottom: 60px;
    }

    .hero-split h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-split .order-1 {
        order: 2 !important;
    }

    .hero-split .order-2 {
        order: 1 !important;
    }
}

/* --- Selection Color --- */
::selection {
    background: #ebd0dc;
    color: #31111d;
}

/* --- Print Styles --- */
@media print {
    .nav-fixed,
    .mobile-menu-btn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-split {
        min-height: auto;
        padding-top: 20px;
    }
}
