﻿/* MOBILE CSS - ASSESSORIA-X 2026 */
/* Estilos específicos para dispositivos móveis */

/* ===== BASE MOBILE ===== */
@media (max-width: 768px) {
    /* Ajustes gerais */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    /* Touch targets maiores */
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    .nav-link,
    .card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remover hover effects em dispositivos touch */
    @media (hover: none) {
        .btn:hover,
        .nav-link:hover,
        .card:hover {
            transform: none !important;
        }

        .btn::after {
            display: none;
        }
    }

    /* Prevenir zoom em inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--gray-medium);
    font-size: 10px;
    flex: 1;
    transition: var(--transition-base);
}

.mobile-nav-item.active {
    color: var(--primary-blue);
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* ===== MOBILE FORMS ===== */
.mobile-form-container {
    background: white;
    border-radius: 16px;
    margin: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.mobile-form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-form-input:focus {
    border-color: var(--accent-green);
    outline: none;
}

.mobile-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23003b82' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

/* ===== MOBILE BUTTONS ===== */
.mobile-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    text-decoration: none;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 8px 24px rgba(0, 59, 130, 0.3);
}

.mobile-btn-secondary {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 168, 79, 0.3);
}

.mobile-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* ===== MOBILE CARDS ===== */
.mobile-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.mobile-card-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
}

.mobile-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.mobile-card-body {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ===== MOBILE HERO ===== */
.mobile-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-hero-content {
    position: relative;
    z-index: 2;
}

.mobile-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.mobile-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.mobile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== MOBILE MODAL ===== */
.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
}

.mobile-modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.mobile-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-medium);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-modal-body {
    padding: 20px;
}

/* ===== MOBILE NOTIFICATIONS ===== */
.mobile-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 1001;
    animation: fadeInUp 0.3s ease;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.mobile-toast-success {
    background: var(--accent-green);
}

.mobile-toast-error {
    background: var(--danger);
}

.mobile-toast-warning {
    background: var(--warning);
    color: var(--text-dark);
}

/* ===== MOBILE LOADERS ===== */
.mobile-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    z-index: 9999;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mobile-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== MOBILE TABLES ===== */
.mobile-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

.mobile-table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.mobile-table th,
.mobile-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-table th {
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--light-blue);
    position: sticky;
    left: 0;
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer {
    background: var(--dark-blue);
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.mobile-footer-section {
    margin-bottom: 30px;
}

.mobile-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-green);
}

.mobile-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-footer-link {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
}

.mobile-footer-link:hover {
    color: white;
}

.mobile-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ===== MOBILE ACCORDION ===== */
.mobile-accordion {
    margin: 16px 0;
}

.mobile-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.mobile-accordion-icon {
    font-size: 20px;
    color: var(--gray-medium);
    transition: var(--transition-base);
}

.mobile-accordion-item.active .mobile-accordion-icon {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    padding-bottom: 20px;
    display: none;
}

.mobile-accordion-item.active .mobile-accordion-content {
    display: block;
}

/* ===== MOBILE SWIPER ===== */
.mobile-swiper {
    position: relative;
    overflow: hidden;
}

.mobile-swiper-container {
    display: flex;
    transition: transform 0.3s ease;
}

.mobile-swiper-slide {
    flex: 0 0 100%;
    padding: 0 16px;
}

.mobile-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.mobile-swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: var(--transition-base);
}

.mobile-swiper-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* ===== SAFARI FIXES ===== */
@supports (-webkit-touch-callout: none) {
    .mobile-hero {
        min-height: -webkit-fill-available;
    }

    .mobile-modal-content {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-card,
    .mobile-form-container {
        border-width: 0.5px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .mobile-card,
    .mobile-form-container {
        background: #1a1a1a;
        color: white;
    }

    .mobile-form-input {
        background: #2d2d2d;
        border-color: #404040;
        color: white;
    }

    .mobile-modal-content {
        background: #1a1a1a;
        color: white;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}