/* ========================================================================= 
   Variáveis e Cores e Estilo Geral
   REGRA DE OURO: ZERO AZUL (nada de rgba com blue tones, shadows, text-colors etc)
   ========================================================================= */

:root {
    /* Paleta Principal Renovada (Harmonizando com o Logotipo) */
    --bg-primary: #FAF5F0;     /* Nude claro / Areia (Mantém o acolhimento) */
    --bg-secondary: #F5EBE6;   /* Bege */
    --text-main: #362B28;      /* Marrom Escuro - Para Textos Padrão */
    --text-muted: #645551;     /* Marrom Cinzento - Para Subtítulos */
    
    /* O Azul volta à cena: Segurança, Precisão e Ciência */
    --brand-primary: #0284C7;  /* Azul Oceano (Inspira confiança clínica) */
    --brand-dark: #0369A1;     /* Azul Escuro (Versão hover/interação) */
    --brand-light: #38BDF8;    /* Azul Celeste (Para badges e pequenas tags) */
    
    --accent-warm: #C67568;    /* Terracota suave preservado para pequenos detalhes híbridos */
    --white: #FFFFFF;
    
    /* WhatsApp Color (Aprovado desde que não envolva azul. O verde oficial do WA é aceitável, mas em versão quente) */
    --wa-green: #25D366;
    
    /* Configurações de UI Globais */
    --shadow-sm: 0 4px 12px rgba(54, 43, 40, 0.08); /* Sombra baseada em marrom */
    --shadow-md: 0 10px 30px rgba(54, 43, 40, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease-in-out;
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Removendo o highlight outline/blue nativo dos navegadores */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-dark);
}

/* Remover focus nativo e aplicar focus warm/blue */
a:focus, button:focus, input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-secondary { background-color: var(--bg-secondary); }
.section-padding { padding: 5rem 0; }
.center-margin { margin: 0 auto; }
.max-w { max-width: 800px; }
.lead { font-size: 1.25rem; font-weight: 500; color: var(--text-muted); }

/* ========================================================================= 
   Botões e Elementos Interativos
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.4);
    color: var(--white);
}

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

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================================================= 
   Header e Navegação
   ========================================================================= */

.main-header {
    background-color: rgba(250, 245, 240, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(210, 130, 130, 0.2);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.2;
}

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

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

.tab-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: var(--transition);
}

.tab-link:hover, .tab-link.active {
    color: var(--brand-primary);
    background-color: var(--bg-secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-primary);
    cursor: pointer;
}

/* ========================================================================= 
   Tabs Content / Main
   ========================================================================= */

.content-wrapper {
    min-height: calc(100vh - 160px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================= 
   TAB 1: HOME COMPONENTS
   ========================================================================= */

.hero-section {
    padding: 6rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: var(--brand-light);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.placeholder-image {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(198, 117, 104, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.placeholder-image.small {
    aspect-ratio: 1/1;
    border-radius: 50%;
}

.img-content {
    text-align: center;
    color: var(--brand-primary);
    opacity: 0.7;
}

.img-content i {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.bio-section {
    padding: 4rem 0;
}

.bio-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.bio-image-wrapper {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 6px solid var(--white);
    background-color: var(--white);
}

.bio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bio-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--brand-primary);
    border-left: 4px solid var(--brand-primary);
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.diferenciais-section {
    padding: 6rem 0;
}

.diferenciais-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid transparent;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* ========================================================================= 
   TAB 2: INFANTIL / SINAIS
   ========================================================================= */

.page-header {
    text-align: center;
    padding: 5rem 0 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
}

.sinais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sinal-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.sinal-card i {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.action-box {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(198, 117, 104, 0.2);
}

.action-box h3 {
    font-size: 1.8rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

/* ========================================================================= 
   TAB 3: ADULTOS & IDOSOS (SPLIT VIEW)
   ========================================================================= */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.split-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.split-card.bg-secondary {
    background-color: var(--bg-secondary);
}

.split-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.small-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
}

.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.check-list i {
    color: var(--brand-primary);
    margin-top: 0.3rem;
}

.alert-text {
    font-weight: 500;
    color: var(--brand-dark);
    margin-top: auto;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    margin-top: auto;
}

/* ========================================================================= 
   TAB 4: REABILITACAO
   ========================================================================= */

.rehab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.rehab-item {
    display: flex;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.rehab-icon i {
    font-size: 3rem;
    color: var(--brand-primary);
}

.rehab-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ========================================================================= 
   FOOTER
   ========================================================================= */

.main-footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(210, 130, 130, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h4 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.footer-contact p, .footer-social p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(54, 43, 40, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================================================= 
   RESPONSIVO
   ========================================================================= */

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-image { display: none; /* Simplificando no mobile por enquanto */ }
    
    .bio-flex { flex-direction: column; text-align: center; }
    
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    
    .split-section { grid-template-columns: 1fr; }
    
    .rehab-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact p, .footer-social p, .social-link { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
        gap: 0.5rem;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .menu-toggle { display: block; }
    
    .section-title { font-size: 2rem; }
}

/* ========================================================================= 
   Estilos Adicionais para Imagens Reais
   ========================================================================= */

.hero-img-replace {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/5;
}

.card-img {
    width: calc(100% + 5rem);
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -3rem -2.5rem 2.5rem -2.5rem;
    display: block;
}

.rehab-banner-img {
    width: 100%;
    max-width: 900px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 3rem auto 0;
    display: block;
    box-shadow: var(--shadow-md);
}

.infantil-banner-img {
    width: 100%;
    max-width: 900px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 3rem auto 0;
    display: block;
    box-shadow: var(--shadow-md);
    object-position: center 30%; /* Foca mais nos rostos superior */
}

.action-box {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(198, 117, 104, 0.2);
    border-radius: var(--radius-lg);
    background-color: var(--white);
}

.action-box-img {
    width: calc(100% + 6rem);
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -3rem -3rem 2rem -3rem;
    display: block;
}
