/* ============================================
   Eriel's Cafe — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #2D2D2D;
    background-color: #ffffff;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Hero Animations */
.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Navbar */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #F4845F;
}

#navbar.scrolled .nav-cta-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled .nav-logo-text {
    color: #ffffff;
}

#navbar.scrolled .nav-logo-path {
    stroke: #F4845F;
}

#navbar.scrolled .nav-mobile-line-1,
#navbar.scrolled .nav-mobile-line-2 {
    background: #ffffff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #F4845F;
}

.nav-cta-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #F4845F;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Selection */
::selection {
    background: #F4845F;
    color: #ffffff;
}

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

/* Image hover */
img {
    display: block;
    max-width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #F4845F;
}
