/* =====================================================
   ESTILOS PRINCIPAIS DA LANDING PAGE
   ===================================================== */

/* --- RESET E VARIÁVEIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy-darker: #0a0e14;
    --navy-dark: #151b26;
    --navy-medium: #1f2937;
    --cyan-bright: #5dade2;
    --text-primary: #f0f4f8;
    --text-secondary: #b8c5d6;
    --header-height: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--navy-darker);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.header {
    background: rgba(21, 27, 38, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 3rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--cyan-bright), #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo p { 
    font-size: 0.6rem; 
    color: var(--text-secondary); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    text-align: center;
    opacity: 0.9;
    font-weight: 500;
}

.nav-left a,
.nav-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    opacity: 0.9;
}

.nav-left a:focus-visible,
.nav-right a:focus-visible {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 2px;
    opacity: 1;
}

.nav-left a {
    margin-right: 10px;
}

.nav-right a {
    margin-left: 15px;
}

.menu-toggle .icon-svg {
    width: 24px;
    height: 24px;
}

.nav-left a:hover,
.nav-right a:not(.btn-brand):hover {
    color: var(--cyan-bright);
    background: rgba(93, 173, 226, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.2);
}

.nav-left a:active,
.nav-right a:not(.btn-brand):active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.btn-brand {
    background: linear-gradient(135deg, #1e6fa8, #2980b9);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(30, 111, 168, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.btn-brand:active {
    transform: translateY(0);
}

/* Estilo para botão com foto de perfil */
.btn-brand.profile-btn {
    padding: 0.3rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: 2px solid rgba(93, 173, 226, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-brand.profile-btn:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.4);
    background: transparent;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

.btn-brand .btn-text {
    display: inline-block;
}

.btn-brand.profile-btn .btn-text {
    display: none;
}

.btn-brand.profile-btn .profile-avatar-img {
    display: block;
}

/* --- ESTRUTURA DO CARROSSEL --- */
main {
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    position: relative;
    overflow: hidden;
}

#mainCarousel {
    height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
}

/* Trilho que move os slides */
.carousel-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Cada Slide contém 3 cards */
.carousel-slide {
    width: 50%;
    height: 100%;
    display: flex;
}

/* --- ESTRUTURA DOS CARDS (ACORDEÃO) --- */
.accordion-card {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-right: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Hover: O card cresce e empurra os outros 2 do mesmo slide */
.accordion-card:hover {
    flex: 4;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(93, 173, 226, 0.2);
    z-index: 10;
}

/* Focus visible para acessibilidade por teclado */
.accordion-card:focus,
.accordion-card:focus-visible {
    outline: 3px solid var(--cyan-bright);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.3);
    z-index: 15;
}

/* Melhorar navegação por teclado */
.accordion-card:focus-visible .card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Melhorar feedback ao clicar */
.accordion-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* --- CORES (GRADIENTES) --- */
.card-enem { background: linear-gradient(160deg, var(--navy-medium), #2980b9); }
.card-uerj { background: linear-gradient(160deg, var(--navy-medium), #27ae60); }
.card-epcar { background: linear-gradient(160deg, var(--navy-medium), #3498db); }
.card-naval { background: linear-gradient(160deg, var(--navy-medium), #1a3a5f); }
.card-esa { background: linear-gradient(160deg, var(--navy-medium), #5d6d25); }
.card-espcex { background: linear-gradient(160deg, var(--navy-medium), #c0392b); }

/* Conteúdo do Card */
.bg-logo {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    max-width: 80%;
    max-height: 80%;
    opacity: 0.07;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.accordion-card:hover .bg-logo {
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    opacity: 0.15;
}

/* Imagem do UERJ proporcional ao card */
.card-uerj .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-uerj:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

/* Imagem do Colégio Naval proporcional ao card */
.card-naval .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-naval:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

/* Imagem do EPCAR proporcional ao card */
.card-epcar .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-epcar:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

/* Imagem da ESA proporcional ao card */
.card-esa .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-esa:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

/* Imagem do ENEM proporcional ao card */
.card-enem .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-enem:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

/* Imagem do EsPCEx proporcional ao card */
.card-espcex .bg-logo {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.card-espcex:hover .bg-logo {
    transform: scale(1.05);
    opacity: 0.35;
}

.card-content {
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.accordion-card:hover .card-content { 
    transform: translateY(0); 
}

/* Animação suave para o botão "Saiba Mais" */
.btn-saiba-mais {
    animation: btnFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(10px);
    opacity: 0;
}

@keyframes btnFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes btnFadeOut {
    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.card-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
    transform: translateY(10px);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.accordion-card:hover .card-desc {
    opacity: 1;
    display: block;
    transform: translateY(0);
}

/* --- INDICADORES (BOLINHAS) --- */
.indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(93, 173, 226, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.dot:hover::before {
    opacity: 1;
    transform: scale(1);
}

.dot.active {
    background: var(--cyan-bright);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(93, 173, 226, 0.6);
}

.dot:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.2);
}

.dot:focus-visible {
    outline: 2px solid var(--cyan-bright);
    outline-offset: 2px;
}

/* Barra de progresso do slide */
.progress-bar {
    position: absolute;
    bottom: 0; 
    left: 0;
    height: 4px;
    background: var(--cyan-bright);
    width: 0%;
    z-index: 30;
}

/* --- SEÇÕES ADICIONAIS --- */
.stats-section, 
.testimonials-section, 
.contact-section {
    padding: 4rem 2rem;
    background: var(--navy-dark);
}

.stats-container, 
.testimonials-container, 
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--cyan-bright), #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(93, 173, 226, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(93, 173, 226, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cyan-bright);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.2);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-author strong {
    color: var(--cyan-bright);
}

.testimonial-contest {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(93, 173, 226, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-bright);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e6fa8, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.95), rgba(21, 27, 38, 0.98));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, rgba(21, 27, 38, 0.98), rgba(31, 41, 55, 0.98));
    border-radius: 1.25rem;
    padding: 0;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(93, 173, 226, 0.25);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(93, 173, 226, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.12), rgba(52, 152, 219, 0.08));
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(93, 173, 226, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-bright), #3498db, var(--cyan-bright));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.modal-logo-container {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%) rotate(-10deg);
    width: 180px;
    height: 180px;
    opacity: 0.15;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.modal-header:hover .modal-logo-container {
    transform: translateY(-50%) scale(1.1) rotate(0deg);
    opacity: 0.2;
}

.modal-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
}

.modal-header-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.modal-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 0.375rem;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, #3498db 50%, #5dade2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-badge {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: rgba(93, 173, 226, 0.15);
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan-bright);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(220, 38, 38, 0.35);
    border-color: rgba(185, 28, 28, 0.8);
    color: #991b1b;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.5);
}

.modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-features {
    list-style: none;
    margin-bottom: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.modal-features li {
    padding: 0.75rem 1rem;
    background: rgba(93, 173, 226, 0.06);
    border: 1px solid rgba(93, 173, 226, 0.12);
    border-left: 3px solid var(--cyan-bright);
    border-radius: 0.625rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.modal-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(93, 173, 226, 0.15), transparent);
    transition: width 0.25s ease;
}

.modal-features li:hover {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.25);
    transform: translateX(3px);
}

.modal-features li:hover::before {
    width: 100%;
}

.modal-features li .feature-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e6fa8, #2980b9);
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 111, 168, 0.35);
}

.modal-features li .feature-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    background: rgba(10, 14, 20, 0.6);
    border-top: 1px solid rgba(93, 173, 226, 0.12);
    display: flex;
    gap: 0.875rem;
    justify-content: flex-end;
}

.btn-modal-close {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-modal-more {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #1e6fa8 0%, #2980b9 50%, #3498db 100%);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(30, 111, 168, 0.35),
        0 0 0 0 rgba(93, 173, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modal-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modal-more:hover::before {
    left: 100%;
}

.btn-modal-more:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(52, 152, 219, 0.45),
        0 0 0 3px rgba(93, 173, 226, 0.15);
    background-position: 100% 0;
}

.btn-modal-more:active {
    transform: translateY(0);
}

.btn-modal-more .btn-icon {
    font-size: 0.9375rem;
    transition: transform 0.25s ease;
}

.btn-modal-more:hover .btn-icon {
    transform: translateX(3px);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .carousel-slide { flex-direction: column; }
    .card-title { font-size: 1.8rem; }
    .header { padding: 0 1rem; }
    .bg-logo { max-width: 60%; max-height: 60%; font-size: 8rem; }

    .nav-left a:not(:first-child),
    .nav-right a:not(.btn-brand) {
        display: none;
    }

    .btn-brand {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 1.125rem;
        max-width: 100%;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 1rem;
        gap: 1rem;
    }

    .modal-logo-container {
        width: 120px;
        height: 120px;
        right: 1rem;
        opacity: 0.12;
    }

    .modal-header:hover .modal-logo-container {
        opacity: 0.18;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .modal-body {
        padding: 1.25rem 1.25rem;
    }

    .modal-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .modal-features {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .modal-features li {
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
    }

    .modal-features li .feature-icon {
        width: 18px;
        height: 18px;
        font-size: 0.6875rem;
    }

    .modal-features li .feature-text {
        font-size: 0.8125rem;
    }

    .modal-footer {
        padding: 1rem 1.25rem 1.25rem;
        flex-direction: column;
    }

    .btn-modal-close,
    .btn-modal-more {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.6875rem 1.5rem;
    }

    .modal-close {
        top: 0.875rem;
        right: 0.875rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* iPhone 12/13/14 Pro Max, iPhone 15 Pro Max, Galaxy S21 Ultra (428px) */
@media (max-width: 428px) {
    .header {
        padding: 0 0.875rem;
    }

    .logo h1 {
        font-size: 1.125rem;
    }

    .logo p {
        font-size: 0.5rem;
    }

    .btn-brand {
        padding: 0.5rem 0.9375rem;
        font-size: 0.875rem;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-desc {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    .accordion-card {
        padding: 1.625rem;
    }

    .modal-content {
        padding: 1.125rem;
    }

    .modal-header {
        padding: 1.125rem;
    }

    .modal-title {
        font-size: 1.375rem;
    }

    .modal-logo-container {
        width: 110px;
        height: 110px;
    }
}

/* iPhone 11, iPhone 11 Pro Max (414px) */
@media (max-width: 414px) {
    .header {
        padding: 0 0.75rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo p {
        font-size: 0.5rem;
    }

    .btn-brand {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-desc {
        font-size: 0.875rem;
        max-width: 100%;
    }

    .accordion-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-logo-container {
        width: 100px;
        height: 100px;
    }
}

/* Galaxy S21+/Ultra, S22/S23/S24+ (412px) */
@media (max-width: 412px) {
    .header {
        padding: 0 0.75rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .btn-brand {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-desc {
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 1rem;
    }
}

/* iPhone 12/13/14, iPhone 15 (390px) */
@media (max-width: 390px) {
    .header {
        padding: 0 0.75rem;
    }

    .logo h1 {
        font-size: 1.05rem;
    }

    .btn-brand {
        padding: 0.5rem 0.8125rem;
        font-size: 0.825rem;
    }

    .card-title {
        font-size: 1.425rem;
    }

    .card-desc {
        font-size: 0.84375rem;
    }

    .accordion-card {
        padding: 1.375rem;
    }

    .modal-content {
        padding: 0.9375rem;
    }

    .modal-title {
        font-size: 1.1875rem;
    }
}

/* Galaxy S21, muitos Android (360px) */
@media (max-width: 360px) {
    .header {
        padding: 0 0.625rem;
    }

    .logo h1 {
        font-size: 0.95rem;
    }

    .btn-brand {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-desc {
        font-size: 0.8125rem;
    }

    .accordion-card {
        padding: 1.25rem;
    }

    .modal-content {
        padding: 0.875rem;
    }
}

/* Telefones médios (375px) */
@media (max-width: 375px) {
    .header {
        padding: 0 0.625rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo p {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }

    .btn-brand {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-left {
        display: none;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .card-desc {
        font-size: 0.8125rem;
    }

    .accordion-card {
        padding: 1.25rem;
    }

    .bg-logo {
        max-width: 50%;
        max-height: 50%;
    }

    .modal-content {
        padding: 0.875rem;
    }

    .modal-header {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .modal-title {
        font-size: 1.125rem;
    }

    .modal-description {
        font-size: 0.875rem;
    }

    .modal-features li {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .modal-logo-container {
        width: 90px;
        height: 90px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .indicators {
        bottom: 20px;
        gap: 10px;
    }
}

/* Telefones pequenos (320px) */
@media (max-width: 320px) {
    .header {
        padding: 0 0.5rem;
        min-height: 56px;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .logo p {
        display: none;
    }

    .btn-brand {
        padding: 0.4375rem 0.625rem;
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-desc {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .accordion-card {
        padding: 1rem;
    }

    .bg-logo {
        max-width: 45%;
        max-height: 45%;
        opacity: 0.05;
    }

    .modal-content {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }

    .modal-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .modal-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .modal-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-features {
        gap: 0.375rem;
    }

    .modal-features li {
        padding: 0.4375rem 0.625rem;
        font-size: 0.75rem;
    }

    .modal-features li .feature-icon {
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
    }

    .modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .btn-modal-close,
    .btn-modal-more {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .modal-close {
        top: 0.625rem;
        right: 0.625rem;
        width: 28px;
        height: 28px;
        font-size: 0.9375rem;
    }

    .modal-logo-container {
        width: 80px;
        height: 80px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .indicators {
        bottom: 15px;
        gap: 8px;
    }

    #mainCarousel {
        height: calc(100vh - 56px);
    }

    main {
        min-height: calc(100vh - 56px);
    }
}

/* Ajuste para 480px (mantido para compatibilidade) */
@media (max-width: 480px) {
    .nav-left {
        display: none;
    }
}

/* --- ESTADOS ESPECIAIS --- */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e6fa8;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading Skeletons e Empty States */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.testimonial-skeleton {
    opacity: 0.6;
}

.testimonial-skeleton .skeleton-rating,
.testimonial-skeleton .skeleton-text,
.testimonial-skeleton .skeleton-author {
    height: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.testimonial-skeleton .skeleton-rating {
    width: 120px;
}

.testimonial-skeleton .skeleton-text {
    width: 100%;
}

.testimonial-skeleton .skeleton-text.short {
    width: 70%;
}

.testimonial-skeleton .skeleton-author {
    width: 150px;
    height: 0.875rem;
}

.testimonials-empty-state,
.testimonials-error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.testimonials-empty-state p,
.testimonials-error-state p {
    margin-bottom: 0.5rem;
}

.empty-state-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.retry-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--cyan-bright);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    background: #3498db;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

