/* ============================================
   BERTRAND PIZZERIA — Custom Styles
   ============================================ */

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

body {
    background-color: #faf8f4;
}

/* ---------- Navigation ---------- */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    background-color: transparent;
}

.nav-scrolled.scrolled {
    background-color: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45, 95, 45, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('https://images.pexels.com/photos/33097102/pexels-photo-33097102.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 23, 10, 0.72) 0%,
        rgba(22, 46, 22, 0.68) 50%,
        rgba(10, 23, 10, 0.82) 100%
    );
}

.hero-content {
    padding: 8rem 1rem 6rem;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.8s;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.2s;
}

.hero-btn-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary {
    backdrop-filter: blur(4px);
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    letter-spacing: 0.2em;
}

/* ---------- Scroll Reveal (Progressive Enhancement) ---------- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Menu Cards ---------- */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.mobile-nav-link {
    border-bottom: 1px solid rgba(45, 95, 45, 0.08);
    padding: 0.5rem 0;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

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

/* ---------- Selection ---------- */
::selection {
    background-color: rgba(95, 154, 95, 0.2);
    color: #1c3a1c;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f4;
}

::-webkit-scrollbar-thumb {
    background: #b8d1b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}
