/* ========================================
   La Parada Coffee — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a2d4a;
}

/* Selection */
::selection {
    background: #96d0b3;
    color: #0a1628;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu Button Animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

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

/* Floating animation for hero image */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-delay="1"] { transition-delay: 0.1s; }
    .reveal[data-delay="2"] { transition-delay: 0.2s; }
    .reveal[data-delay="3"] { transition-delay: 0.3s; }
    .reveal[data-delay="4"] { transition-delay: 0.4s; }
    .reveal[data-delay="5"] { transition-delay: 0.5s; }
    .reveal[data-delay="6"] { transition-delay: 0.6s; }
}

/* ========================================
   Menu Section
   ======================================== */
#menu .group:hover h4 {
    position: relative;
}

#menu .group:hover h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #96d0b3, transparent);
}

/* ========================================
   Feature Cards
   ======================================== */
#experience .group {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#experience .group:hover {
    transform: translateY(-4px);
}

/* ========================================
   Gallery Images
   ======================================== */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ========================================
   Form Styles
   ======================================== */
#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(150, 208, 179, 0.2);
}

#contact-form button[type="submit"]:active {
    transform: scale(0.98);
}

/* ========================================
   Footer Links
   ======================================== */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #96d0b3;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 3rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
