/* ===================================
   Glacier Grind Coffee House
   Custom Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
    background: rgba(6, 6, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(6, 6, 7, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #E85D4F;
    transition: width 0.3s ease;
}

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #E85D4F;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #E85D4F;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #e04535;
    border-color: #e04535;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 79, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E85D4F;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-form:hover {
    background: #e04535;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 93, 79, 0.35);
}

/* ===================================
   Section Labels
   =================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E85D4F;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #E85D4F;
}

/* ===================================
   Hero
   =================================== */
.hero {
    background: #0c0c0e;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    opacity: 0.6;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 12px; }
    50% { opacity: 1; height: 20px; }
}

/* ===================================
   Cards
   =================================== */
.feature-card {
    padding: 4px;
}

.menu-card {
    position: relative;
}

.info-card {
    transition: all 0.3s ease;
}

/* ===================================
   Animations (progressive enhancement)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .hero-img-accent {
        width: 24px !important;
        height: 24px !important;
        bottom: -4px !important;
        left: -4px !important;
    }

    .hero-coral-block {
        width: 16px !important;
        height: 16px !important;
        top: -2px !important;
        right: -2px !important;
    }

    .about-images {
        margin-bottom: 2rem;
    }

    .story-image-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-content {
        padding-bottom: 2rem;
    }

    .section-label {
        font-size: 0.75rem;
    }
}
