:root {
    --accent: #ffd400;       
    --bg: #090a0b;           
    --card-bg: #131517;      
    --text-main: #ffffff;    
    --text-dim: #a0a5ac;     
    --glass-border: rgba(255, 255, 255, 0.04);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

section { 
    padding: 100px 8%; 
}

.reveal { 
    opacity: 0; 
    transform: translateY(25px); 
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- Header & Nav --- */
header {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px 8%;
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000;
    background: rgba(9, 10, 11, 0.85); 
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    max-width: 1400px; 
}

nav { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

nav a {
    color: var(--text-dim); 
    text-decoration: none; 
    margin: 0 20px;
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav a:hover { 
    color: var(--text-main); 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.insta-icon { 
    width: 20px; 
    height: 20px; 
    object-fit: contain; 
    transition: 0.3s; 
    margin-top: -2px; 
}

.nav-instagram:hover .insta-icon { 
    transform: scale(1.15) rotate(5deg); 
}

/* --- Hero Section --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative; 
    background: #000; 
    padding-top: 120px; 
    overflow: hidden;
}

.hero-base-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #000; 
    z-index: 1; 
}

.hero-logo-showcase { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%; 
    max-width: 650px; 
    z-index: 2; 
    pointer-events: none; 
}

.logo-impact-bg { 
    width: 100%; 
    height: auto; 
    opacity: 0.75; 
    filter: drop-shadow(0px 0px 50px rgba(255, 212, 0, 0.3)); 
}

.hero-overlay-focus { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle at center, rgba(9, 10, 11, 0.4) 0%, rgba(0, 0, 0, 0.95) 85%); 
    backdrop-filter: blur(10px); 
    z-index: 3; 
}

.hero-content { 
    max-width: 1050px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
    z-index: 4; 
}

.badge {
    background: rgba(255, 212, 0, 0.04); 
    backdrop-filter: blur(4px); 
    padding: 10px 24px; 
    border-radius: 50px;
    font-size: 0.75rem; 
    color: var(--accent); 
    border: 1px solid rgba(255, 212, 0, 0.3); 
    margin-bottom: 30px; 
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gradient-text {
    font-size: clamp(2.4rem, 6.8vw, 4.2rem); 
    font-weight: 900; 
    line-height: 1.2; 
    margin-bottom: 25px;
    background: linear-gradient(180deg, #ffffff 30%, #a0a5ac 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.gradient-text span { 
    color: var(--accent); 
    -webkit-text-fill-color: var(--accent); 
    text-shadow: 0 0 40px rgba(255, 212, 0, 0.2);
}

.hero-description { 
    font-size: 1.15rem; 
    color: var(--text-dim); 
    max-width: 750px; 
    margin-bottom: 40px; 
}

/* --- Alert Bar --- */
.alert-bar {
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    background: rgba(19, 21, 23, 0.6);
    backdrop-filter: blur(8px);
    padding: 14px 28px; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 212, 0, 0.15);
}

.alert-item.animate-pulse { 
    color: var(--accent); 
    animation: pulse 2s infinite; 
    font-weight: 800; 
}

@keyframes pulse { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.5; transform: scale(0.98); } 
}

/* --- Top Feature Cards --- */
.grid-section { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    position: relative; 
    z-index: 5; 
    margin-top: -40px;
    padding: 0 8% 60px 8%;
}

.card-glass { 
    background: linear-gradient(145deg, rgba(19, 21, 23, 0.9) 0%, rgba(13, 14, 15, 0.9) 100%); 
    backdrop-filter: blur(10px); 
    padding: 40px 35px; 
    border-radius: 20px; 
    border: 1px solid var(--glass-border); 
    text-align: center; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
}

.card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 212, 0, 0.2);
}

.card-icon { 
    font-size: 2.2rem; 
    margin-bottom: 18px; 
}

.card-glass h3 { 
    color: var(--accent); 
    margin-bottom: 12px; 
    font-weight: 700;
}

/* --- INOVAÇÃO: Bento Grid Gallery --- */
.content-section { 
    padding: 90px 8%; 
    text-align: center; 
}

.section-title { 
    font-size: 2.4rem; 
    margin-bottom: 15px; 
    font-weight: 900; 
    letter-spacing: -0.5px;
}

.section-subtitle { 
    color: var(--text-dim); 
    max-width: 700px; 
    margin: 0 auto 60px auto; 
    font-size: 1.05rem; 
}

/* Estrutura Premium do Grid */
.photo-gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.gallery-photo-card { 
    background: var(--card-bg); 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid var(--glass-border); 
    position: relative; 
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.photo-wrapper { 
    width: 100%; 
    height: 100%; 
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden; 
}

.rotina-photo { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

/* Efeito de zoom profissional ao passar o mouse */
.gallery-photo-card:hover .rotina-photo { 
    transform: scale(1.06); 
}

/* Legendas integradas com visual escurecido high-end */
.photo-caption-glass { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 50px 35px 35px 35px; 
    text-align: left; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.photo-caption-glass h5 { 
    color: var(--accent); 
    font-size: 1.3rem; 
    margin-bottom: 8px; 
    font-weight: 800; 
}

.photo-caption-glass p { 
    color: rgba(255, 255, 255, 0.85); 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

/* Modificadores do Bento Grid para Destaques Imponentes */
.card-large-span { 
    grid-column: span 2; 
    min-height: 480px; 
}

/* --- Tags de Estrutura Rápida --- */
.structure-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    max-width: 1300px;
    margin: 0 auto;
}

.structure-card { 
    background: var(--card-bg); 
    padding: 30px 25px; 
    border-radius: 16px; 
    border: 1px solid var(--glass-border); 
    font-weight: 700; 
    font-size: 1rem;
    text-align: center; 
    transition: background 0.3s, transform 0.3s;
}

.structure-card:hover {
    background: rgba(255, 212, 0, 0.02);
    transform: scale(1.02);
}

/* --- Tratamento & Prazos Lineares --- */
.therapy-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.therapy-card { 
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(15, 17, 19, 1) 100%); 
    padding: 40px 30px; 
    border-radius: 24px; 
    border: 1px solid var(--glass-border); 
    text-align: left; 
    position: relative;
}

/* Indicador sutil dourado no topo de cada estágio */
.therapy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.therapy-card h5 { 
    color: var(--accent); 
    margin-bottom: 25px; 
    font-size: 1.15rem; 
    font-weight: 800; 
    white-space: nowrap; 
}

.therapy-card ul { 
    list-style: none; 
}

.therapy-card ul li { 
    margin-bottom: 14px; 
    padding-left: 22px; 
    position: relative; 
    color: #e0e3e7; 
    font-size: 0.95rem; 
    line-height: 1.5;
}

.therapy-card ul li::before { 
    content: "✓"; 
    color: var(--accent); 
    position: absolute; 
    left: 0; 
    font-size: 1rem; 
    font-weight: 900;
    top: 1px; 
}

/* --- Metodologia / Pilares --- */
.pilares-wrapper { 
    margin-top: 100px; 
}

.subsection-title { 
    font-size: 1.8rem; 
    font-weight: 900; 
    margin-bottom: 45px; 
    color: #ffffff; 
}

.pilares-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: 1300px; 
    margin: 0 auto; 
    text-align: left; 
}

.pilar-box { 
    background: rgba(255, 255, 255, 0.01); 
    border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 20px; 
    padding: 40px 30px; 
    position: relative; 
}

.pilar-num { 
    font-size: 3rem; 
    font-weight: 900; 
    color: rgba(255, 212, 0, 0.08); 
    position: absolute; 
    top: 15px; 
    right: 30px; 
    font-family: system-ui, sans-serif; 
}

.pilar-box h4 { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--accent); 
    margin-bottom: 14px; 
}

.pilar-box p { 
    font-size: 0.95rem; 
    color: var(--text-dim); 
    line-height: 1.6; 
}

/* --- Suporte Multidisciplinar --- */
.content-section-alt {
    padding: 80px 8%;
    background: rgba(19, 21, 23, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-box h4 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 800;
}

.team-box p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
}

.team-box ul {
    list-style: none;
    margin-top: 5px;
}

.team-box ul li {
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 1rem;
}

.team-box ul li strong {
    color: #ffffff;
}

/* --- Seção Contato & Mapa --- */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 40px; 
    max-width: 1300px;
    margin: 0 auto;
}

.map-box { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 24px; 
    border: 1px solid var(--glass-border);
    text-align: left;
}

.map-placeholder { 
    height: 380px; 
    border-radius: 16px; 
    overflow: hidden; 
    margin-bottom: 25px; 
}

.map-address {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-hours {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
}

.direct-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.contact-card-glass {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.contact-card-glass h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.btn-contact { 
    display: block; 
    background: rgba(255, 212, 0, 0.03); 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    text-decoration: none; 
    padding: 18px; 
    border-radius: 12px; 
    font-weight: 800; 
    text-align: center; 
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.btn-contact:hover { 
    background: var(--accent); 
    color: #000000; 
    box-shadow: 0 10px 25px rgba(255, 212, 0, 0.25);
    transform: translateY(-2px);
}

/* --- Botão WhatsApp Flutuante --- */
.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.whatsapp-float:hover { 
    transform: scale(1.12); 
}

.whatsapp-float img { 
    width: 32px; 
    height: 32px; 
}

/* --- Footer --- */
footer { 
    padding: 60px 8%; 
    text-align: center; 
    border-top: 1px solid var(--glass-border); 
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-instagram {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.footer-instagram:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- RESPONSIVIDADE INTERMEDIÁRIA E SENSÍVEL (TABLETS/MÓVEL) --- */
@media (max-width: 1200px) {
    .therapy-grid { 
        grid-template-columns: 1fr; /* Prazos viram lista vertical elegante */
        max-width: 600px;
    } 
    .therapy-card h5 {
        white-space: normal; /* Permite quebra controlada onde o ecrã encolhe */
    }
}

@media (max-width: 900px) {
    header { 
        padding: 15px 5%; 
    }
    nav a { 
        margin: 0 10px; 
        font-size: 0.75rem; 
    }
    section { 
        padding: 70px 6%; 
    }
    .hero { 
        padding-top: 130px; 
    }
    .gradient-text { 
        font-size: 2.2rem; 
    }
    
    /* Adaptação inteligente da Galeria para celular */
    .photo-gallery-grid { 
        grid-template-columns: 1fr; /* Vira coluna única perfeita */
        gap: 20px;
    } 
    .gallery-photo-card {
        min-height: 320px;
    }
    .card-large-span { 
        grid-column: span 1; 
        min-height: 350px;
    }
    
    .structure-grid { 
        grid-template-columns: 1fr; 
    }
    .team-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .contact-wrapper { 
        grid-template-columns: 1fr; 
    }
    .map-placeholder {
        height: 300px;
    }
}