/* ============================================
   La Michoacana Premium Ice Cream
   Custom Styles
   ============================================ */

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

:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --coral-dark: #E85555;
    --cream: #FFF8F5;
    --cream-dark: #F5EDE8;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --text-muted: #6B6B6B;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 44, 44, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 44, 44, 0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

p {
    color: var(--text-muted);
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--coral-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--charcoal);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 101;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--coral);
}

.logo-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
}

.header.scrolled .logo-text {
    color: var(--charcoal);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    text-decoration: none;
}

.nav a:hover {
    color: var(--white);
    background: rgba(255, 107, 107, 0.15);
}

.header.scrolled .nav a {
    color: var(--charcoal);
}

.header.scrolled .nav a:hover {
    color: var(--coral);
    background: rgba(255, 107, 107, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline-dark:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(44, 44, 44, 0.7) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-coral {
    color: var(--coral);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---------- Intro Bar ---------- */
.intro-bar {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.06);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.intro-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.intro-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.intro-icon svg {
    width: 24px;
    height: 24px;
}

.intro-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.intro-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- Flavors ---------- */
.flavors {
    padding: 100px 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.flavor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.flavor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.flavor-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.flavor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flavor-card:hover .flavor-img img {
    transform: scale(1.08);
}

.flavor-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--coral);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}

.flavor-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 20px 24px 0;
    color: var(--charcoal);
}

.flavor-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 8px 24px 24px;
    color: var(--text-muted);
}

.flavors-note {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    border: 2px dashed rgba(255, 107, 107, 0.3);
}

.flavors-note p {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.flavors-note strong {
    color: var(--coral);
}

/* ---------- Experience ---------- */
.experience {
    padding: 100px 0;
    background: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-images {
    position: relative;
}

.exp-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.exp-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.exp-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content .section-title {
    margin-bottom: 24px;
}

.experience-content > p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.experience-highlights {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(44, 44, 44, 0.08);
}

.exp-highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-highlight-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--coral);
    line-height: 1;
}

.exp-highlight-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 80px 0;
    background: var(--charcoal);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--charcoal-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---------- Visit ---------- */
.visit {
    padding: 100px 0;
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.visit-icon svg {
    width: 22px;
    height: 22px;
}

.visit-detail h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.visit-detail p,
.visit-detail a {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.visit-detail a:hover {
    color: var(--coral);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.visit-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.visit-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--coral);
}

.visit-card-icon svg {
    width: 28px;
    height: 28px;
}

.visit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.visit-card > p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.visit-card .btn {
    margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-dark);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--coral);
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Default state for revealable elements (visible without JS) */
.flavor-card,
.experience-images,
.experience-content,
.cta-card,
.visit-info,
.visit-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        gap: 40px;
    }

    .cta-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav a {
        color: var(--charcoal) !important;
        font-size: 1.1rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .nav a:hover {
        background: rgba(255, 107, 107, 0.1) !important;
        color: var(--coral) !important;
    }

    .nav .btn-primary {
        margin-top: 16px;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .flavors-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-images {
        order: -1;
    }

    .exp-img-secondary {
        right: -10px;
        bottom: -20px;
        width: 60%;
    }

    .experience-highlights {
        gap: 24px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .exp-img-secondary {
        width: 65%;
        right: -5px;
        bottom: -15px;
    }

    .experience-highlights {
        flex-wrap: wrap;
        gap: 20px;
    }

    .exp-highlight-num {
        font-size: 2rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .flavor-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}
