/**
 * Montañero Hot Sauce - Main Stylesheet
 * Brand Colors:
 * - Sky Blue: #4BB8E4 (background, accents)
 * - White: #FFFFFF
 * - Red: #E63329 (accents, CTAs)
 * - Orange/Yellow: #F7941D (flame accents)
 * - Dark: #1A1A1A (text)
 */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

p {
    margin: 0 0 1em 0;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background-color: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #E63329;
}

.nav-social {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.nav-social:hover {
    color: #E63329;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fafafa;
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.nav-mobile-link:hover {
    color: #E63329;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    background-color: #4BB8E4;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #F7941D;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Snow Particles */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.snow {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: fall linear infinite, drift ease-in-out infinite;
}

/* Size variations */
.snow-sm { width: 2px; height: 2px; }
.snow-md { width: 3px; height: 3px; }
.snow-lg { width: 4px; height: 4px; }
.snow-xl { width: 5px; height: 5px; }

/* Snow particle positions and timings - 50 particles */
.snow:nth-child(1) { left: 2%; animation-duration: 12s, 3s; animation-delay: 0s; }
.snow:nth-child(2) { left: 4%; animation-duration: 15s, 4s; animation-delay: 0.5s; }
.snow:nth-child(3) { left: 6%; animation-duration: 10s, 2.5s; animation-delay: 1s; }
.snow:nth-child(4) { left: 8%; animation-duration: 14s, 3.5s; animation-delay: 1.5s; }
.snow:nth-child(5) { left: 10%; animation-duration: 11s, 2.8s; animation-delay: 2s; }
.snow:nth-child(6) { left: 12%; animation-duration: 13s, 3.2s; animation-delay: 0.3s; }
.snow:nth-child(7) { left: 14%; animation-duration: 16s, 4.2s; animation-delay: 0.8s; }
.snow:nth-child(8) { left: 16%; animation-duration: 9s, 2.2s; animation-delay: 1.3s; }
.snow:nth-child(9) { left: 18%; animation-duration: 12s, 3.1s; animation-delay: 1.8s; }
.snow:nth-child(10) { left: 20%; animation-duration: 14s, 3.6s; animation-delay: 2.3s; }
.snow:nth-child(11) { left: 22%; animation-duration: 10s, 2.6s; animation-delay: 0.1s; }
.snow:nth-child(12) { left: 24%; animation-duration: 15s, 3.8s; animation-delay: 0.6s; }
.snow:nth-child(13) { left: 26%; animation-duration: 11s, 2.9s; animation-delay: 1.1s; }
.snow:nth-child(14) { left: 28%; animation-duration: 13s, 3.3s; animation-delay: 1.6s; }
.snow:nth-child(15) { left: 30%; animation-duration: 16s, 4.1s; animation-delay: 2.1s; }
.snow:nth-child(16) { left: 32%; animation-duration: 9s, 2.3s; animation-delay: 0.4s; }
.snow:nth-child(17) { left: 34%; animation-duration: 12s, 3s; animation-delay: 0.9s; }
.snow:nth-child(18) { left: 36%; animation-duration: 14s, 3.5s; animation-delay: 1.4s; }
.snow:nth-child(19) { left: 38%; animation-duration: 10s, 2.7s; animation-delay: 1.9s; }
.snow:nth-child(20) { left: 40%; animation-duration: 15s, 3.9s; animation-delay: 2.4s; }
.snow:nth-child(21) { left: 42%; animation-duration: 11s, 2.8s; animation-delay: 0.2s; }
.snow:nth-child(22) { left: 44%; animation-duration: 13s, 3.4s; animation-delay: 0.7s; }
.snow:nth-child(23) { left: 46%; animation-duration: 16s, 4s; animation-delay: 1.2s; }
.snow:nth-child(24) { left: 48%; animation-duration: 9s, 2.4s; animation-delay: 1.7s; }
.snow:nth-child(25) { left: 50%; animation-duration: 12s, 3.1s; animation-delay: 2.2s; }
.snow:nth-child(26) { left: 52%; animation-duration: 14s, 3.6s; animation-delay: 0s; }
.snow:nth-child(27) { left: 54%; animation-duration: 10s, 2.5s; animation-delay: 0.5s; }
.snow:nth-child(28) { left: 56%; animation-duration: 15s, 3.7s; animation-delay: 1s; }
.snow:nth-child(29) { left: 58%; animation-duration: 11s, 2.9s; animation-delay: 1.5s; }
.snow:nth-child(30) { left: 60%; animation-duration: 13s, 3.3s; animation-delay: 2s; }
.snow:nth-child(31) { left: 62%; animation-duration: 16s, 4.2s; animation-delay: 0.3s; }
.snow:nth-child(32) { left: 64%; animation-duration: 9s, 2.2s; animation-delay: 0.8s; }
.snow:nth-child(33) { left: 66%; animation-duration: 12s, 3s; animation-delay: 1.3s; }
.snow:nth-child(34) { left: 68%; animation-duration: 14s, 3.5s; animation-delay: 1.8s; }
.snow:nth-child(35) { left: 70%; animation-duration: 10s, 2.6s; animation-delay: 2.3s; }
.snow:nth-child(36) { left: 72%; animation-duration: 15s, 3.8s; animation-delay: 0.1s; }
.snow:nth-child(37) { left: 74%; animation-duration: 11s, 2.7s; animation-delay: 0.6s; }
.snow:nth-child(38) { left: 76%; animation-duration: 13s, 3.2s; animation-delay: 1.1s; }
.snow:nth-child(39) { left: 78%; animation-duration: 16s, 4.1s; animation-delay: 1.6s; }
.snow:nth-child(40) { left: 80%; animation-duration: 9s, 2.3s; animation-delay: 2.1s; }
.snow:nth-child(41) { left: 82%; animation-duration: 12s, 3.1s; animation-delay: 0.4s; }
.snow:nth-child(42) { left: 84%; animation-duration: 14s, 3.4s; animation-delay: 0.9s; }
.snow:nth-child(43) { left: 86%; animation-duration: 10s, 2.8s; animation-delay: 1.4s; }
.snow:nth-child(44) { left: 88%; animation-duration: 15s, 3.9s; animation-delay: 1.9s; }
.snow:nth-child(45) { left: 90%; animation-duration: 11s, 2.5s; animation-delay: 2.4s; }
.snow:nth-child(46) { left: 92%; animation-duration: 13s, 3.3s; animation-delay: 0.2s; }
.snow:nth-child(47) { left: 94%; animation-duration: 16s, 4s; animation-delay: 0.7s; }
.snow:nth-child(48) { left: 96%; animation-duration: 9s, 2.4s; animation-delay: 1.2s; }
.snow:nth-child(49) { left: 98%; animation-duration: 12s, 3s; animation-delay: 1.7s; }
.snow:nth-child(50) { left: 5%; animation-duration: 14s, 3.6s; animation-delay: 2.2s; }

@keyframes fall {
    0% {
        transform: translateY(-10vh);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes drift {
    0%, 100% {
        margin-left: 0;
    }
    50% {
        margin-left: 15px;
    }
}

/* Hero Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

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

@media (min-width: 768px) {
    .hero-logo-img {
        max-width: 400px;
    }

    .hero-tagline {
        font-size: 2rem;
    }
}

/* ========================================
   Story Section
   ======================================== */

.story {
    padding: 60px 0;
    background-color: #fafafa;
}

.story .container {
    max-width: 800px;
}

.story-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.story-content {
    order: 2;
}

.story-image {
    order: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #4BB8E4;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.section-title-center {
    text-align: center;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.story-text p {
    margin-bottom: 1.5em;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: #1a1a1a;
}

.story-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.story-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder styling */
.image-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border-radius: 12px;
    color: #666;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .story {
        padding: 80px 0;
    }

    .story-grid {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .story-content {
        flex: 1;
        order: 1;
    }

    .story-image {
        flex: 1;
        order: 2;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   Sauces Section
   ======================================== */

.sauces {
    padding: 60px 0;
    background-color: #fff;
}

.sauces .container {
    max-width: 1000px;
}

.sauces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sauce-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sauce-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sauce card color accents */
.sauce-card-red {
    border-top: 4px solid #E63329;
}

.sauce-card-banana {
    border-top: 4px solid #F7941D;
}

.sauce-card-blueberry {
    border-top: 4px solid #8B5CF6;
}

.sauce-card-verde {
    border-top: 4px solid #22C55E;
}

.sauce-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sauce-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sauce-image-container img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.sauce-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.sauce-info {
    text-align: center;
}

.sauce-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4BB8E4;
    margin-bottom: 10px;
}

.sauce-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .sauces {
        padding: 80px 0;
    }

    .sauces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Find Us Section
   ======================================== */

.find-us {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.find-us-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.find-us-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4BB8E4;
    margin-bottom: 20px;
}

/* Markets */
.market-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.market-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.market-name {
    font-weight: 600;
    color: #1a1a1a;
}

.market-day {
    color: #E63329;
    font-weight: 500;
}

.market-note {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

/* Email Signup */
.signup-form {
    margin-top: 10px;
}

.signup-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signup-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.signup-input:focus {
    border-color: #E63329;
}

.signup-input::placeholder {
    color: #999;
}

.signup-button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #E63329;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.signup-button:hover {
    background-color: #C42B22;
}

.signup-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.signup-message {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.signup-message.success {
    color: #2e7d32;
}

.signup-message.error {
    color: #E63329;
}

@media (min-width: 768px) {
    .find-us {
        padding: 80px 0;
    }

    .find-us-grid {
        flex-direction: row;
        gap: 60px;
    }

    .find-us-markets,
    .find-us-signup {
        flex: 1;
    }

    .signup-input-group {
        flex-direction: row;
    }

    .signup-input {
        flex: 1;
    }

    .signup-button {
        white-space: nowrap;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px 0;
    background-color: #4BB8E4;
    color: #fff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: #fff;
    transition: opacity 0.2s ease;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay {
    transition-delay: 0.2s;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

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

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }

    .story-text {
        font-size: 1rem;
    }

    .sauce-name {
        font-size: 1.25rem;
    }
}
