/* ============================================
   ANTOJITOS LA COLOMBIANA — Custom Styles
   Classic & Elegant · Charcoal + Coral
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --color-coral-400: #FF8FAB;
    --color-coral-500: #FF6B81;
    --color-coral-600: #E84562;
    --color-coral-700: #C02845;
    --color-charcoal-800: #2D2D2D;
    --color-charcoal-900: #1A1A1A;
    --color-charcoal-950: #0D0D0D;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;
}

/* ---- Base Reset & Typography ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-charcoal-950);
    color: #E5E5E5;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-500);
}

/* ---- Selection ---- */
::selection {
    background: var(--color-coral-500);
    color: white;
}

/* ---- Navigation ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 129, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: white;
}

/* ---- Mobile Menu ---- */
#mobileMenu {
    padding: 2rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-coral-500);
    transition: width 0.3s ease;
}

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

/* ---- Mobile Menu Toggle ---- */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.4) 0%,
        rgba(13, 13, 13, 0.2) 40%,
        rgba(13, 13, 13, 0.3) 70%,
        rgba(13, 13, 13, 0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ---- Section Dividers ---- */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
}

/* ---- Dish Cards ---- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ---- Button Hover Effects ---- */
a[href="tel:+16082540048"] {
    text-decoration: none;
}

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

.rounded-2xl img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- 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;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar, #menuToggle, .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-charcoal-950, .bg-charcoal-900 {
        background: white !important;
    }
    
    .text-white, .text-stone-200, .text-stone-300 {
        color: black !important;
    }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .floating-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        line-height: 1.05;
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---- Loading State for Images ---- */
img {
    background-color: var(--color-charcoal-800);
}
