/* ===================================
   Millie's Michoacana — Stylesheet
   =================================== */

/* --- CSS Custom Properties --- */
:root {
    --terracotta: #C0603A;
    --terracotta-dark: #A04E2E;
    --terracotta-light: #D4845E;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5BF;
    --cream: #FFFDF9;
    --dark: #2A1F1A;
    --dark-light: #4A3B32;
    --text-primary: #2A1F1A;
    --text-secondary: #6B5648;
    --text-light: #F5E6D3;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(42, 31, 26, 0.08);
    --shadow-md: 0 4px 20px rgba(42, 31, 26, 0.12);
    --shadow-lg: 0 8px 40px rgba(42, 31, 26, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

ul {
    list-style: none;
}

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

/* --- Top Accent Bar --- */
.top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta-light) 50%, var(--sand-dark) 100%);
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 96, 58, 0.1);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--terracotta);
    transition: transform var(--transition);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-text {
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--terracotta);
}

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

.nav-cta {
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(192, 96, 58, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 50%, var(--cream) 100%);
    overflow: hidden;
    padding: 60px 0;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-circle--1 {
    width: 420px;
    height: 420px;
    background: var(--terracotta);
    opacity: 0.06;
    top: -100px;
    right: -80px;
}

.geo-circle--2 {
    width: 260px;
    height: 260px;
    background: var(--terracotta-light);
    opacity: 0.08;
    bottom: 10%;
    left: 5%;
}

.geo-circle--3 {
    width: 140px;
    height: 140px;
    background: var(--sand-dark);
    opacity: 0.5;
    top: 20%;
    left: 15%;
}

.geo-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--terracotta);
    transform: rotate(45deg);
    opacity: 0.07;
}

.geo-diamond--1 {
    top: 15%;
    left: 8%;
    width: 60px;
    height: 60px;
}

.geo-diamond--2 {
    bottom: 20%;
    right: 12%;
    width: 100px;
    height: 100px;
    background: var(--terracotta-light);
    opacity: 0.05;
}

.geo-stripe {
    position: absolute;
    width: 4px;
    height: 120px;
    background: var(--terracotta);
    opacity: 0.06;
    border-radius: 4px;
}

.geo-stripe--1 {
    top: 10%;
    right: 25%;
    transform: rotate(15deg);
}

.geo-stripe--2 {
    bottom: 15%;
    left: 25%;
    transform: rotate(-10deg);
    height: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 24px;
    z-index: 2;
}

.hero-image {
    flex: 0 0 auto;
    z-index: 2;
    padding-right: 24px;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper img {
    width: 420px;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-sm) var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--terracotta);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 96, 58, 0.1);
    border: 1px solid rgba(192, 96, 58, 0.2);
    color: var(--terracotta);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--terracotta);
    position: relative;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(192, 96, 58, 0.15);
    border-radius: 3px;
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 96, 58, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-secondary:hover {
    background: rgba(192, 96, 58, 0.08);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--terracotta);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--sand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(192, 96, 58, 0.25);
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.divider-diamond {
    width: 10px;
    height: 10px;
    background: var(--terracotta);
    transform: rotate(45deg);
    opacity: 0.4;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* --- Menu Section --- */
.menu-section {
    position: relative;
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}

.section-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
}

.bg-shape--circle1 {
    width: 300px;
    height: 300px;
    background: var(--sand);
    opacity: 0.6;
    top: -50px;
    right: -80px;
}

.bg-shape--circle2 {
    width: 200px;
    height: 200px;
    background: rgba(192, 96, 58, 0.05);
    bottom: 10%;
    left: -60px;
}

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

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.menu-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(192, 96, 58, 0.08);
    overflow: hidden;
}

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

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.menu-card:hover .card-accent {
    opacity: 1;
}

.card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.08);
    border-radius: 50%;
    transition: background var(--transition);
}

.menu-card:hover .card-icon {
    background: rgba(192, 96, 58, 0.15);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: var(--sand-light);
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
}

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

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--sand-light);
}

.about-img-secondary img {
    width: 260px;
    height: 200px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -16px;
    left: -16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

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

.about-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.1);
    border-radius: var(--radius-sm);
}

/* --- Location Section --- */
.location-section {
    padding: 100px 0;
    background: var(--cream);
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
}

.location-info .section-title {
    margin-bottom: 16px;
}

.location-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 96, 58, 0.08);
    border-radius: var(--radius-sm);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--terracotta);
}

.contact-value {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
}

.contact-link {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--terracotta);
}

.map-link {
    margin-top: 32px;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 420px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--terracotta);
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-circle--1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

.cta-circle--2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -60px;
}

.cta-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    transform: rotate(45deg);
}

.cta-diamond--1 {
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 64px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(245, 230, 211, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(245, 230, 211, 0.6);
    line-height: 1.5;
}

.footer-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--terracotta-light);
}

.footer-link {
    color: rgba(245, 230, 211, 0.6);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--terracotta-light);
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(245, 230, 211, 0.1);
    padding: 24px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.4);
}

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

    .hero-content {
        max-width: 520px;
    }

    .hero-img-wrapper img {
        width: 340px;
        height: 420px;
    }
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        right: 20px;
        bottom: -20px;
    }

    .about-img-secondary img {
        width: 200px;
        height: 160px;
    }

    .location-container {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 320px;
    }

    .location-map iframe {
        min-height: 320px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 253, 249, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(192, 96, 58, 0.1);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.0625rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px 60px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        padding-right: 0;
        margin-top: 40px;
    }

    .hero-img-wrapper img {
        width: 280px;
        height: 350px;
        margin: 0 auto;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

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

    .hero-img-wrapper img {
        width: 240px;
        height: 300px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.9375rem;
    }

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

/* --- Accessibility: 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;
    }
}
