/* ============================================
   MOBILE STYLES - Zafira Odontologia
   Aplica-se apenas em telas < 768px
   
   Este arquivo é dedicado EXCLUSIVAMENTE para 
   estilos mobile. Modificações aqui NÃO afetam
   o layout desktop.
   ============================================ */

@media (max-width: 767px) {

    /* ==========================================
     CSS VARIABLES - MOBILE
     Sobrescreve as variáveis globais para mobile
     ========================================== */
    :root {
        /* Spacing - Mobile */
        --section-padding-y: 2.5rem;
        --container-padding-x: 1rem;

        /* Typography - Mobile */
        --heading-size-hero: 32px;
        --heading-size-section: 1.25rem;
        --text-base-size: 0.9375rem;

        /* Hero - Mobile */
        --hero-image-size: 220px;
        --hero-min-height: auto;

        /* Buttons - Mobile */
        --button-padding-y: 0.875rem;
        --button-padding-x: 1.5rem;
        --button-font-size: 0.875rem;
    }

    /* ==========================================
     GLOBAL MOBILE STYLES
     ========================================== */

    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
    }

    /* ==========================================
     HEADER - MOBILE
     ========================================== */

    /* Menu Mobile Overlay (Slidebar) */
    .fixed.inset-0.bg-white\/98 {
        /* Espaçamento entre itens */
        gap: 1.5rem !important;
        /* Descer o conteúdo para não ficar perto da navbar */
        padding-top: 100px !important;
        justify-content: flex-start !important;
    }

    /* Links do menu mobile - texto menor */
    .fixed.inset-0.bg-white\/98 a.text-2xl {
        font-size: 1.125rem !important;
        /* de 1.5rem (2xl) para 1.125rem (lg) */
        font-weight: 500 !important;
    }

    /* Container dos links - menor espaçamento */
    .fixed.inset-0.bg-white\/98 .flex.flex-col.items-center.gap-6 {
        gap: 1rem !important;
    }

    /* Botão Agendar Agora - ESCONDER no mobile */
    .fixed.inset-0.bg-white\/98 a.bg-primary {
        display: none !important;
    }

    /* Botão X de fechar - menor */
    .fixed.inset-0.bg-white\/98 button.absolute {
        top: 1.25rem !important;
        right: 1.25rem !important;
        padding: 0.5rem !important;
    }

    .fixed.inset-0.bg-white\/98 button.absolute svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* ==========================================
     HERO SECTION - MOBILE
     ========================================== */

    #home {
        min-height: var(--hero-min-height);
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    /* Hero image container */
    #home .relative.w-\[250px\] {
        width: var(--hero-image-size) !important;
        height: var(--hero-image-size) !important;
    }

    /* Hero headline */
    #home h1 {
        font-size: var(--heading-size-hero);
        line-height: 1.15;
    }

    /* Hero floating cards - Mobile - MUITO menores */
    #home .animate-float-smooth-1,
    #home .animate-float-smooth-2 {
        /* Tamanho reduzido para mobile */
        transform: scale(0.65);
        transform-origin: center;
        /* Padding menor */
        padding: 6px 10px !important;
        /* Bordas mais sutis */
        border-radius: 10px !important;
        /* Sombra mais leve */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    }

    /* Ícone dos floating cards - menor no mobile */
    #home .animate-float-smooth-1>div:first-child,
    #home .animate-float-smooth-2>div:first-child {
        width: 28px !important;
        height: 28px !important;
    }

    /* Ícone SVG dentro do container */
    #home .animate-float-smooth-1 svg,
    #home .animate-float-smooth-2 svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Texto dos floating cards - menor */
    #home .animate-float-smooth-1 p,
    #home .animate-float-smooth-2 p {
        font-size: 10px !important;
        white-space: nowrap;
    }

    /* Posicionamento dos floating cards - mais próximos da imagem */
    #home .animate-float-smooth-1 {
        top: 60px !important;
        right: -55px !important;
    }

    #home .animate-float-smooth-2 {
        bottom: 10px !important;
        left: -45px !important;
    }

    /* ==========================================
     ABOUT SECTION - MOBILE
     ========================================== */

    #about {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    #about h2 {
        font-size: 1.5rem;
    }

    /* ==========================================
     SERVICES SECTION - MOBILE
     ========================================== */

    #services {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    /* ==========================================
     GALLERY SECTION - MOBILE
     ========================================== */

    #gallery {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    /* Swipe hint for mobile gallery */
    #gallery::after {
        content: '';
        /* Pode adicionar indicador de swipe visual aqui */
    }

    /* ==========================================
     CLINIC SECTION - MOBILE
     ========================================== */

    #clinic {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    /* ==========================================
     TESTIMONIALS SECTION - MOBILE
     ========================================== */

    #testimonials {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    /* ==========================================
     CONTACT SECTION - MOBILE
     ========================================== */

    #contact {
        padding-top: var(--section-padding-y);
        padding-bottom: var(--section-padding-y);
    }

    /* Form inputs - larger touch targets */
    #contact input,
    #contact textarea {
        font-size: 16px;
        /* Previne zoom automático no iOS */
        min-height: 48px;
        /* Touch target mínimo recomendado */
    }

    #contact textarea {
        min-height: 120px;
    }

    /* Submit button - full width on mobile */
    #contact button[type="submit"] {
        width: 100%;
        padding: var(--button-padding-y) var(--button-padding-x);
    }

    /* ==========================================
     FOOTER - MOBILE
     ========================================== */

    footer {
        text-align: center;
    }

    /* ==========================================
     WHATSAPP BUTTON - MOBILE
     ========================================== */

    /* Posição do botão WhatsApp no mobile */
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
    }

    /* ==========================================
     UTILITIES - MOBILE ONLY
     ========================================== */

    /* Hide on mobile */
    .mobile-hidden {
        display: none !important;
    }

    /* Show on mobile only */
    .mobile-only {
        display: block !important;
    }

    /* Mobile-specific spacing */
    .mobile-py-sm {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .mobile-px-sm {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Mobile-specific text sizes */
    .mobile-text-sm {
        font-size: 0.875rem !important;
    }

    .mobile-text-base {
        font-size: 1rem !important;
    }

    .mobile-text-lg {
        font-size: 1.125rem !important;
    }

    /* ==========================================
     ANIMAÇÕES - MOBILE
     Reduzidas para melhor performance
     ========================================== */

    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

}