/* ==========================================================================
   VARIÁVEIS GERAIS E PALETA OFICIAL FISIOEDS
   ========================================================================== */
:root {
    /* Cores Oficiais que você enviou */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    
    /* Configurações Estruturais */
    --border-radius: 8px;
    --transition-smooth: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
}

/* TEMA CLARO (LIGHT MODE) 
   Utiliza tons suaves que combinam com o azul oficial
*/
.light-theme {
    --bg-main: #f8fafc; /* --bg-content */
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b; /* Levemente ajustado para contraste no claro */
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.85); /* Efeito vidro */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* TEMA ESCURO (DARK MODE) 
   Utiliza exatamente as cores da sua sidebar e containers
*/
.dark-theme {
    --bg-main: #0f172a; /* --bg-sidebar */
    --bg-card: #1e293b; /* --bg-user-container */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1; /* --text-sidebar */
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.85); /* Efeito vidro dark */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES BASES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Trava de segurança contra rolagem lateral indesejada */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   BOTÕES E COMPONENTES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    text-align: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Efeito Glassmorphism ativado via JS (classe .scrolled) */
header.scrolled {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 3rem; /* Encolhe levemente ao rolar */
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo a span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav ul a {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul a:hover::after {
    width: 100%;
}

nav ul a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-cta-mobile, .menu-toggle, .menu-icon {
    display: none;
}

/* COMPONENTE: TOGGLE DE TEMA (O seu código original) */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.theme-switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 40px;
}
.theme-switch input { display: none; }
.slider {
    background-color: #64748b;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 14px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 14px;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(20px); }

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
section {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* ==========================================================================
   SEÇÃO HERO
   ========================================================================== */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 10rem; /* Espaço para o header fixo */
    min-height: 90vh;
}

.badge-topo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    margin-left: -15px;
}

.avatars img:first-child { margin-left: 0; }

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 120%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background-color: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.floating-card i {
    font-size: 2rem;
    color: #10b981; /* Verde de sucesso */
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.floating-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   SEÇÃO PARCEIROS
   ========================================================================== */
#partners {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

#partners p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 2.5rem;
    opacity: 0.7;
}

/* ==========================================================================
   FUNCIONALIDADES
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   TOUR VISUAL (FICHAS)
   ========================================================================== */
.tour-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.tour-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.tour-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tour-text strong {
    color: var(--primary-color);
}

.tour-list {
    list-style: none;
}

.tour-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.tour-list i {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 1.2rem;
}

.tour-image img {
    width: 150%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   PREÇOS / PLANOS
   ========================================================================== */
.pricing-container {
    display: grid;
    /* Alterado de 320px para 250px para caberem os 4 lado a lado */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; /* Espaçamento entre cards levemente reduzido */
    width: 100%;
    align-items: center;
}

.pricing-card {
    background-color: var(--bg-card);
    padding: 2.5rem 1.5rem; /* Padding reduzido para melhor adaptação */
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    padding: 3.5rem 1.5rem; /* Padding reduzido */
    background: var(--bg-card); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Evita quebra de texto no botão */
}

.pricing-header h3 {
    font-size: 1.3rem; /* Fonte ajustada */
    color: var(--text-main);
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pricing-value {
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    align-items: flex-start;
    color: var(--text-main);
}

.pricing-value .currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.pricing-value .amount {
    font-size: 3rem; /* Reduzido de 3.5rem para 3rem */
    font-weight: 800;
    line-height: 1;
}

.pricing-value .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.pricing-discount {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.95rem; /* Ajuste para não quebrar linha */
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0; /* Evita que o ícone encolha */
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto 4rem auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-muted);
    padding-right: 2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 0.8rem;
}

.link-column a {
    color: var(--text-muted);
}

.link-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE E PROTEÇÃO MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    header { padding: 1rem 1.5rem; }
    
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
        gap: 4rem;
    }
    
    #hero h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-social-proof { justify-content: center; }
    
    .floating-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
    }
    
    .tour-container { grid-template-columns: 1fr; text-align: center; }
    .tour-list li { justify-content: center; }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .footer-brand p { padding-right: 0; }
    .social-links { justify-content: center; }
    
    .pricing-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .pricing-card.featured { order: -1; } /* Plano Semestral em cima no mobile */

    .image-wrapper {
        width: 100%;
    }
    .tour-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1100;
    }

    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-main);
        margin: 5px 0;
        transition: 0.3s ease;
    }

    nav#nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-card);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 6rem 2rem 2rem 2rem;
        transition: 0.4s cubic-bezier(0.1, 1, 0.1, 1);
        z-index: 1000;
    }
    
    nav#nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    nav#nav-menu ul a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-cta { display: none; }
    .nav-cta-mobile { display: block; width: 100%; margin-top: 1rem; border: none !important; }
    
    .menu-toggle:checked ~ nav#nav-menu { right: 0; }
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    section { padding: 4rem 1.2rem; }
    #hero h1 { font-size: 2.2rem; }
    
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .image-wrapper {
        width: 85%;
    }
    .tour-image {
        width: 65%;
    }
    .floating-card {
        width: 70%;
    }
}