/**
 * V11 Mobile Responsiveness — Mezcaleria Chic
 *
 * Ensures pill buttons don't overflow, touch-friendly sizes, mobile nav.
 * Priority 78, cascades after v11-global (77).
 */

/* ============================================
   MOBILE BREAKPOINT: 768px and below
   ============================================ */

@media (max-width: 768px) {

    /* --------------------------------------------
       PILL BUTTONS — NO OVERFLOW
       -------------------------------------------- */

    .v11-btn-primary,
    .v11-btn-outline,
    .latoxica-button,
    .latoxica-pill,
    a.btn,
    button.btn,
    .wp-block-button__link {
        max-width: 100%;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Button groups stack vertically */
    .hero-buttons,
    .hero-cta,
    .latoxica-hero-a__cta,
    .latoxica-hero-b__cta,
    .latoxica-hero-c__cta,
    .latoxica-hero-d__cta,
    .cta-buttons,
    .button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons a,
    .hero-cta a,
    .latoxica-hero-a__cta a,
    .latoxica-hero-b__cta a,
    .cta-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* --------------------------------------------
       HERO SECTION — VERTICAL STACK
       -------------------------------------------- */

    .hero-section .hero-content,
    .latoxica-hero-a__content,
    .latoxica-hero-b__content,
    .latoxica-hero-c__content,
    .latoxica-hero-d__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }

    /* --------------------------------------------
       TYPOGRAPHY — CLAMP-BASED SCALING
       -------------------------------------------- */

    .hero-section h1,
    .latoxica-hero-a h1,
    .latoxica-hero-b h1,
    .latoxica-hero-c h1,
    .latoxica-hero-d h1 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.1 !important;
    }

    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .hero-section .hero-subhead,
    .latoxica-hero-a__subhead,
    .latoxica-hero-b__subhead {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* --------------------------------------------
       TOUCH-FRIENDLY TAP TARGETS (min 44px)
       -------------------------------------------- */

    a.btn,
    button.btn,
    .latoxica-button,
    .v11-btn-primary,
    .v11-btn-outline,
    input[type="submit"],
    .wp-block-button__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Nav links touch target */
    .main-navigation a,
    .latoxica-nav a {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    /* --------------------------------------------
       MOBILE NAV — ROSE HAMBURGER
       -------------------------------------------- */

    .menu-toggle,
    .hamburger,
    .mobile-menu-toggle,
    button[aria-controls*="menu"] {
        color: #EC2C91 !important;
    }

    .menu-toggle span,
    .hamburger span,
    .hamburger::before,
    .hamburger::after {
        background-color: #EC2C91 !important;
    }

    /* Mobile nav dropdown = dark */
    .main-navigation ul,
    .mobile-menu,
    .latoxica-nav ul.open,
    nav[aria-expanded="true"] ul {
        background: #1a1a1a !important;
        padding: 1rem;
    }

    .main-navigation ul a,
    .mobile-menu a,
    .latoxica-nav ul a {
        color: #ffffff !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul a:hover,
    .mobile-menu a:hover {
        color: #EC2C91 !important;
        background: rgba(236, 44, 145, 0.1);
    }

    /* Mobile nav CTA */
    .main-navigation ul a.btn,
    .mobile-menu a.btn,
    .latoxica-nav a[href*="reserver"] {
        margin-top: 0.5rem;
        background: #EC2C91 !important;
        border: none !important;
    }

    /* --------------------------------------------
       CARDS — FULL WIDTH
       -------------------------------------------- */

    .latoxica-card,
    .menu-card,
    .location-card,
    .blog-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* --------------------------------------------
       SECTIONS — REDUCED PADDING
       -------------------------------------------- */

    section,
    .latoxica-bleed,
    .entry-content > section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* --------------------------------------------
       IMAGES — MAINTAIN ASPECT
       -------------------------------------------- */

    .entry-content img,
    .latoxica-card img {
        width: 100%;
        height: auto;
    }
}

/* ============================================
   SMALL MOBILE: 480px and below
   ============================================ */

@media (max-width: 480px) {

    .v11-btn-primary,
    .v11-btn-outline,
    .latoxica-button,
    a.btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.8rem !important;
    }

    .hero-section h1,
    .latoxica-hero-a h1,
    .latoxica-hero-b h1 {
        font-size: clamp(1.75rem, 10vw, 2.5rem) !important;
    }

    h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    h2 {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }

    section,
    .latoxica-bleed {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ============================================
   TINY MOBILE: 360px and below
   ============================================ */

@media (max-width: 360px) {

    .v11-btn-primary,
    .v11-btn-outline,
    .latoxica-button,
    a.btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.01em !important;
    }

    /* Stack inline buttons */
    .hero-buttons,
    .cta-buttons {
        gap: 0.5rem;
    }

    .hero-buttons a,
    .cta-buttons a {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    section,
    .latoxica-bleed {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {

    .hero-section,
    .latoxica-hero-a,
    .latoxica-hero-b,
    .latoxica-hero-c,
    .latoxica-hero-d {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }
}
