/* ============================================
   Alby's Restaurante Italiano - Custom Styles
   ============================================ */

/* Custom Properties */
:root {
    --color-charcoal-dark: #1a1a1a;
    --color-charcoal-light: #4a4a4a;
    --color-coral: #e07a5f;
    --color-coral-light: #e8956f;
    --color-white: #ffffff;
    --color-bg-cream: #faf9f7;
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal-dark);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-charcoal-dark);
}

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

/* ============================================
   Animations
   ============================================ */

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

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* ============================================
   Navbar
   ============================================ */

#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Menu */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* ============================================
   Hero Section
   ============================================ */

#inicio {
    background: var(--color-bg-cream);
    position: relative;
}

/* ============================================
   Gallery
   ============================================ */

#galeria img {
    height: 100%;
    min-height: 200px;
}

/* ============================================
   Form Styles
   ============================================ */

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
}

select option {
    background: var(--color-white);
    color: var(--color-charcoal-dark);
}

/* ============================================
   Focus Styles
   ============================================ */

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-coral) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    #inicio {
        padding-top: 100px;
    }
    
    .font-heading {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 17px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    #navbar,
    #galeria,
    #contacto form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
