/* ============================
   Sabor Yucateco — Demo Styles v3
   Fully responsive, modern design
   ============================ */

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

:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --primary-light: #ef5350;
    --accent: #f8b400;
    --accent-soft: rgba(248, 180, 0, 0.12);
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --bg: #fafaf8;
    --bg-warm: #f5f0eb;
    --white: #ffffff;
    --dark: #1a1a1a;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.container {
    width: 92%;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-warm);
}

/* --- Demo Banner --- */
.demo-banner {
    background: var(--dark);
    color: #ccc;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.demo-banner a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 700;
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

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

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-order {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
    transition: all var(--transition);
}

.btn-order::after {
    display: none !important;
}

.btn-order:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.35);
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero --- */
.hero {
    height: 85vh;
    min-height: 560px;
    max-height: 900px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1565557623262-b51c2513a641?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    background-color: #333;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 620px;
    padding-left: 24px;
    border-left: 4px solid var(--accent);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 16px rgba(248, 180, 0, 0.3);
}

.btn-primary:hover {
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(248, 180, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Menu Preview Grid --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.menu-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.item-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .item-img img {
    transform: scale(1.05);
}

.item-info {
    padding: 24px;
}

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
}

.item-head h4 {
    font-size: 1.15rem;
    color: var(--text);
}

.item-head .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.item-info > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* --- About / Features strip --- */
.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--dark);
    color: var(--white);
}

.feature-item {
    padding: 48px 36px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* --- Contact & Map --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--text);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-details li {
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
    line-height: 1.5;
}

.contact-details strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 24px;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all var(--transition);
}

.btn-whatsapp:hover {
    background: #1dbf57;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-map iframe {
    width: 100%;
    min-height: 420px;
    display: block;
    border: none;
}

/* --- Gallery Strip --- */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    overflow: hidden;
}

.gallery-strip img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    cursor: pointer;
}

.gallery-strip img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: #999;
    text-align: center;
    padding: 48px 0;
    font-size: 0.88rem;
}

.footer p + p {
    margin-top: 6px;
}

.footer-credit a {
    color: var(--accent);
    font-weight: 700;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* --- Floating WhatsApp Button --- */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
}

.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* --- Menu Page: Hero --- */
.menu-hero {
    height: 45vh;
    min-height: 320px;
    max-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('https://images.unsplash.com/photo-1623227866882-c005c207758f?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.menu-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.menu-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* --- Menu Page: Category Nav --- */
.menu-nav {
    position: sticky;
    top: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 90;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 14px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.menu-nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
}

.menu-nav a {
    padding: 8px 18px;
    color: var(--text-light);
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.menu-nav a:hover {
    background: rgba(198, 40, 40, 0.08);
    color: var(--primary);
    border-color: rgba(198, 40, 40, 0.15);
}

.menu-nav a.active {
    background: var(--primary);
    color: white;
}

/* --- Menu Page: Categories --- */
.category-title {
    text-align: center;
    margin: 64px 0 36px;
    position: relative;
}

.category-title h2 {
    display: inline-block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary-dark);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

/* --- Menu Page: Cards Grid --- */
.menu-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.menu-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .card-img img {
    transform: scale(1.05);
}

.card-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--white);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.6;
}

.btn-add {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.btn-add:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.25);
    transform: translateY(-1px);
}

/* --- Scroll Reveal Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

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

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

    .gallery-strip img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.35s ease;
        z-index: 105;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 104;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

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

    .hero {
        height: 70vh;
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .section {
        padding: 72px 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-img {
        height: 200px;
    }

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

    .feature-item {
        padding: 36px 28px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-map iframe {
        min-height: 300px;
    }

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

    .gallery-strip img {
        height: 180px;
    }

    .menu-hero {
        height: 35vh;
        min-height: 260px;
    }

    .menu-nav {
        top: 64px;
    }

    .menu-nav ul {
        justify-content: flex-start;
    }

    .menu-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-img {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 88%;
    }

    .hero {
        height: 65vh;
        min-height: 420px;
    }

    .hero-content {
        padding-left: 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .menu-grid-full {
        grid-template-columns: 1fr;
    }

    .gallery-strip {
        grid-template-columns: 1fr;
    }

    .gallery-strip img {
        height: 200px;
    }

    .float-wa {
        bottom: 18px;
        right: 18px;
        width: 50px;
        height: 50px;
    }

    .float-wa svg {
        width: 26px;
        height: 26px;
    }

    .card-img {
        height: 180px;
    }

    .category-title {
        margin: 48px 0 28px;
    }

    .category-title h2 {
        font-size: 1.6rem;
    }
}
