/* ========================================
   Northeast Commissary — Custom Styles
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d64014;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b33012;
}

/* --- Section Layout --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e65525;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1c1917;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #44403c;
    margin-top: 1rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #e65525;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #d64014;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 85, 37, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1c1917;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    border: 2px solid #1c1917;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #1c1917;
    color: #faf8f5;
    transform: translateY(-2px);
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #e65525;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* --- Contact Form --- */
.contact-form input,
.contact-form textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a8a29e;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Navbar Scroll State --- */
.nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-link {
    color: #44403c;
}

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

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

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* --- Hero Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.7s ease forwards;
        animation-delay: 0.2s;
    }
    
    .hero-title {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeUp 0.8s ease forwards;
        animation-delay: 0.4s;
    }
    
    .hero-subtitle {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.7s ease forwards;
        animation-delay: 0.6s;
    }
    
    .hero-cta {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.7s ease forwards;
        animation-delay: 0.8s;
    }
    
    .hero-trust {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.7s ease forwards;
        animation-delay: 1s;
    }
    
    .hero-image-wrapper {
        opacity: 0;
        transform: translateX(40px);
        animation: slideIn 0.9s ease forwards;
        animation-delay: 0.5s;
    }
    
    .hero-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.7s ease forwards;
        animation-delay: 1s;
    }
    
    .scroll-dot {
        animation: scrollBounce 2s ease-in-out infinite;
    }
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Map Container --- */
.map-container {
    position: relative;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-img {
        height: 400px !important;
    }
    
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .about-images {
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-img {
        height: 500px !important;
    }
}
