/**
 * MOBILE RESPONSIVE FIXES - Tessera Amoris
 * Correções específicas para responsividade mobile
 * Data: 30 de outubro de 2025
 * 
 * Este arquivo corrige os problemas identificados na documentação:
 * 1. Logo com background no mobile
 * 2. Bandeiras com fundos brancos
 * 3. Botão APPLY muito grande
 * 4. Hero section não otimizada
 * 5. Tipografia e espaçamento
 */

/* ========================================
   CRITICAL FIXES - PRIORIDADE ALTA
   ======================================== */

/* 1. LOGO - Remover background e caixa no mobile */
@media (max-width: 768px) {
    .logo {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.5rem 0 !important;
    }
    
    .logo::before,
    .logo::after {
        display: none !important;
    }
    
    .logo-main-text {
        font-size: 1.4rem !important;
        letter-spacing: 1px !important;
    }
    
    .logo-tagline {
        font-size: 0.65rem !important;
        opacity: 0.9 !important;
    }
}

@media (max-width: 480px) {
    .logo {
        padding: 0.4rem 0 !important;
    }
    
    .logo-main-text {
        font-size: 1.2rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .logo-tagline {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 375px) {
    .logo-main-text {
        font-size: 1.1rem !important;
    }
    
    .logo-tagline {
        font-size: 0.55rem !important;
    }
}

/* 2. BANDEIRAS - Garantir transparência e integração no texto */
@media (max-width: 768px) {
    .country-badge {
        background: transparent !important;
        padding: 0 !important;
        padding-left: 28px !important;
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
    }
    
    .country-badge::before {
        background-color: transparent !important;
        width: 20px !important;
        height: 13.33px !important;
    }
}

@media (max-width: 480px) {
    .country-badge {
        padding-left: 24px !important;
    }
    
    .country-badge::before {
        width: 18px !important;
        height: 12px !important;
    }
}

@media (max-width: 375px) {
    .country-badge {
        padding-left: 22px !important;
    }
    
    .country-badge::before {
        width: 16px !important;
        height: 10.67px !important;
    }
}

/* 3. BOTÃO APPLY - Reduzir tamanho no mobile */
@media (max-width: 768px) {
    .apply-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        min-width: auto !important;
    }
}

@media (max-width: 576px) {
    .apply-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 375px) {
    .apply-btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.75rem !important;
    }
}

/* 4. HEADER - Otimizar altura e espaçamento */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 0 !important;
    }
    
    .header-container {
        padding: 0 1rem !important;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0.6rem 0 !important;
    }
    
    .header-container {
        padding: 0 0.75rem !important;
    }
}

/* 5. HERO SECTION - Otimizar para mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        padding: 80px 20px 40px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.6;
        max-width: 100%;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 70px 15px 30px;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 0.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btn {
        max-width: 280px;
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-btn {
        max-width: 260px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ========================================
   TIPOGRAFIA RESPONSIVA
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    h4 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    body {
        font-size: 16px; /* Prevenir zoom no iOS */
    }
}

/* ========================================
   BOTÕES E INTERAÇÕES
   ======================================== */

@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Remover hover effects no mobile (usar tap) */
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   NAVEGAÇÃO MOBILE
   ======================================== */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;
        font-size: 1.2rem;
    }
    
    .nav-menu {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   PERFORMANCE E ACESSIBILIDADE
   ======================================== */

/* Prevenir zoom no iOS em inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Melhorar contraste de texto em telas pequenas */
@media (max-width: 768px) {
    .hero-title,
    .hero-subtitle {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Otimizar animações para mobile */
@media (max-width: 768px) {
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 20px 30px;
    }
    
    .hero-content {
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   EXTRA SMALL DEVICES (iPhone SE, etc)
   ======================================== */

@media (max-width: 320px) {
    .logo-main-text {
        font-size: 1rem !important;
    }
    
    .logo-tagline {
        font-size: 0.5rem !important;
    }
    
    .apply-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}
