/* --- Variáveis & Reset --- */
:root {
    --primary-blue: #222845; /* Azul mais profundo e elegante */
    --primary-gold: #C7A576; /* Dourado nobre */
    --gold-light: #E8DCC8;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #F9F9FB; /* Fundo quase branco, levemente azulado */
    --shadow: 0 10px 30px rgba(34, 40, 69, 0.08); /* Sombra suave premium */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden; /* Evita rolagem horizontal no mobile */
}

/* Container Centralizador - O SEGREDO DO ALINHAMENTO */
.container {
    max-width: 1200px; /* Largura máxima padrão de notebook */
    margin: 0 auto;    /* Centraliza na tela */
    padding: 0 20px;   /* Margem de segurança nas laterais */
    width: 100%;
}

/* --- Topbar --- */
.topbar {
    background-color: var(--primary-gold); /* Fundo Dourado */
    color: var(--primary-blue); /* Texto Azul Escuro (melhor contraste/leitura) */
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
    gap: 10px;
}

.info-group { display: flex; gap: 20px; }
.info-item { color: var(--primary-blue); text-decoration: none; display: flex; align-items: center; gap: 5px; }

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.95); /* Leve transparência */
    backdrop-filter: blur(10px); /* Efeito de vidro "frosted" chique */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* A Mágica da Responsividade na Imagem */
.logo-img {
    height: 60px; /* Altura ideal para Desktop */
    width: auto;  /* A largura se ajusta sozinha para não distorcer */
    display: block;
    transition: all 0.3s ease; /* Animação suave se mudar de tamanho */
}

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

/* Menu Desktop */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

/* Efeito hover elegante (linha dourada abaixo) */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* Botões */
.btn-agendar {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px; /* Bem arredondado = mais amigável */
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(42, 48, 85, 0.2);
}
.btn-agendar:hover { background-color: var(--primary-gold); transform: translateY(-2px); }

.mobile-menu-icon { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }
.mobile-only { display: none; }

/* --- Hero Section --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 650px; /* Altura boa para notebook */
    position: relative;
    display: flex;
    align-items: center;
}

/* Gradiente mais sofisticado (escuro na esquerda, transparente na direita) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34,40,69,0.95) 0%, rgba(34,40,69,0.7) 50%, rgba(34,40,69,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
}

/* Badge "Novas Instalações" */
.badge {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h2 {
    font-size: 3.5rem; /* Fonte grande e fina = Chique */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300; /* Texto leve */
    opacity: 0.9;
}

.hero-btns { display: flex; gap: 15px; }

.btn {
    padding: 15px 35px;
    border-radius: 8px; /* Cantos levemente arredondados */
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

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

/* --- Services Cards (Estilo Flutuante) --- */
.services-quick {
    margin-top: -80px; /* Puxa para cima do banner */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas padrão */
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--primary-gold);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: 0.3s;
}

.card:hover .icon-box { background-color: var(--primary-blue); color: var(--primary-gold); }

.card h3 { font-size: 1.4rem; color: var(--primary-blue); margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.link-arrow {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.link-arrow:hover { gap: 12px; } /* Animação setinha */

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */

/* Notebooks e Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero h2 { font-size: 2.5rem; }
    .services-grid { gap: 15px; } /* Menos espaço entre cards */
    .card { padding: 30px 20px; }
}

/* Tablets e Celulares (max-width: 768px) */
@media (max-width: 768px) {
    /* Ajuste Topbar */
    .topbar-content { justify-content: center; flex-direction: column; text-align: center; }
    
    /* Menu Hamburguer */
    .mobile-menu-icon { display: block; }
    .desktop-only { display: none; } /* Esconde botão desktop */
    
    .nav-menu {
        position: absolute;
        top: 100%; /* Logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        display: none; /* Escondido por padrão */
        flex-direction: column;
        text-align: center;
    }
    
    
    .logo-img {
        height: 45px; /* Diminui um pouco no mobile para não quebrar o header */
    }


    .nav-menu.active { display: flex; } /* Mostra quando clica */
    
    .nav-menu ul { flex-direction: column; gap: 20px; }
    .mobile-only { display: block; margin-top: 10px; }

    /* Hero Mobile */
    .hero { height: auto; padding: 100px 0 150px 0; text-align: center; }
    .hero-content { margin: 0; }
    .hero h2 { font-size: 2rem; }
    .hero-overlay { background: linear-gradient(180deg, rgba(34,40,69,0.95) 0%, rgba(34,40,69,0.8) 100%); }
    .hero-btns { justify-content: center; flex-direction: column; }
    
    /* Cards empilhados no celular */
    .services-grid { grid-template-columns: 1fr; } 
    .services-quick { margin-top: -60px; }
}

/* =========================================
   SEÇÃO "SOBRE NÓS" PREMIUM (CORRIGIDA)
   ========================================= */
.about-premium {
    padding: 100px 0;
    position: relative; /* Necessário para conter a bola azul */
    background-color: transparent; /* Deixa transparente para ver os elementos de fundo */
    overflow: hidden; /* Garante que nada vase da tela */
    z-index: 1; /* Cria um contexto de empilhamento */
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide a tela no meio */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2; /* Conteúdo fica NA FRENTE da bola azul */
}

/* --- ESTILOS DE TEXTO --- */
.sub-tag {
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 700;
}

.highlight-gold {
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
}

/* Sublinhado atrás do texto */
.highlight-gold::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(199, 165, 118, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- FEATURE BOXES (Caixinhas) --- */
.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Sombra mais visível */
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateX(10px);
    border-color: var(--primary-gold);
}

.f-icon {
    width: 50px;
    height: 50px;
    background: rgba(34, 40, 69, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.f-info h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.f-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-light);
}

.btn-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-link:hover {
    color: var(--primary-gold);
    gap: 15px;
}

/* --- COMPOSIÇÃO DE IMAGENS (DESKTOP) --- */
.about-composition {
    position: relative;
    height: 550px; /* Altura fixa importante para o position absolute funcionar */
    width: 100%;
}

.circle-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    background: rgba(199, 165, 118, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(34, 40, 69, 0.15);
}

.img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 55%;
    object-fit: cover;
    border-radius: 15px;
    z-index: 2;
    border: 8px solid var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.exp-badge {
    position: absolute;
    top: 45%;
    left: -20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-gold);
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.exp-badge .number {
    display: block;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.exp-badge .label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* =========================================
   RESPONSIVIDADE DA SECTION (MEDIA QUERIES)
   ========================================= */

/* NOTEBOOKS (Até 1280px) */
@media (max-width: 1280px) {
    .about-content h2 { font-size: 2.5rem; }
    .about-composition { height: 450px; } 
    .img-front { width: 60%; height: 55%; }
    .bg-shape-blur { width: 400px; height: 400px; } /* Diminui a bola */
}

/* TABLETS E CELULARES (Até 992px) */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr; /* Vira uma coluna só */
        gap: 50px;
    }

    .about-content {
        order: 1; /* Texto fica embaixo */
        text-align: center; /* Centraliza texto */
    }

    .features-wrapper {
        align-items: center; /* Centraliza as caixas */
    }

    .feature-box {
        width: 100%;
        max-width: 500px;
        text-align: left; /* Mantém o texto dentro da caixa alinhado à esquerda */
    }

    .btn-link {
        justify-content: center;
    }

    /* Ajuste da Composição no Mobile */
    .about-composition {
        order: 0; /* Imagens vão para cima */
        height: 400px; /* Altura reduzida para mobile */
        max-width: 500px; /* Limita a largura */
        margin: 0 auto; /* Centraliza */
    }

    .img-back {
        width: 90%; /* Ocupa quase tudo */
        height: 85%;
        right: 5%; /* Centraliza visualmente */
    }

    .img-front {
        width: 60%;
        height: 50%;
        left: 0;
        bottom: 0;
    }

    .exp-badge {
        left: auto;
        right: -10px; /* Badge vai para a direita no mobile para não cortar */
        top: 60%;
        padding: 10px 15px;
    }
}

/* CELULARES PEQUENOS (Até 500px) */
@media (max-width: 500px) {
    .about-composition {
        height: 320px; /* Menor ainda */
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .img-back {
        width: 100%;
        right: 0;
        border-radius: 15px;
    }

    .img-front {
        width: 55%;
        height: 45%;
        bottom: -10px;
        left: 10px;
        border-width: 5px;
    }

    .exp-badge {
        top: auto;
        bottom: 20px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .exp-badge .number { font-size: 0.9rem; }
    .badge-icon { font-size: 1.2rem; }
}/* =========================================
   SEÇÃO ESPECIALIDADES (ÍCONES MAIORES & PREMIUM)
   ========================================= */
.specialties-section {
    background-color: #F9F9FB;
    padding: 60px 0 50px 0; /* Um pouco mais de respiro vertical */
    position: relative;
    z-index: 1;
    min-height: auto; 
}

/* --- DIVISOR (TRAÇO + ÍCONE) --- */
.hospital-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.hospital-divider .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.6;
}

.hospital-divider .icon-wrapper {
    width: 55px; /* Aumentei um pouco aqui também */
    height: 55px;
    background-color: var(--white);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.3rem; /* Ícone do divisor maior */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- CABEÇALHO DA SEÇÃO --- */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* --- GRID --- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; /* Aumentei o espaço entre cards para caber os ícones maiores */
    margin-bottom: 30px;
}

.spec-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 25px 20px; /* Mais espaço interno */
    border-radius: 15px; /* Bordas mais arredondadas */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animação mais suave */
    position: relative;
    cursor: pointer;
    text-align: center; /* Centralizado fica mais bonito com ícone grande */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo */
    justify-content: flex-start;
    height: 100%;
}

.spec-card:hover {
    transform: translateY(-8px); /* Sobe mais ao passar o mouse */
    box-shadow: 0 15px 35px rgba(34, 40, 69, 0.12); /* Sombra mais difusa e elegante */
    border-bottom: 3px solid var(--primary-gold);
}

/* --- ÍCONE GRANDE (AQUI ESTÁ A MUDANÇA PRINCIPAL) --- */
.spec-icon {
    width: 65px;  /* De 45px para 65px */
    height: 65px; /* De 45px para 65px */
    font-size: 2rem; /* De 1.4rem para 2rem (BEM VISÍVEL) */
    color: var(--primary-gold);
    margin-bottom: 15px;
    background: rgba(199, 165, 118, 0.1);
    border-radius: 12px; /* Curva um pouco maior */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.spec-card:hover .spec-icon {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.1); /* Ícone cresce um pouquinho no hover */
}

.spec-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.spec-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Card "Ver Todas" */
.link-card { background-color: var(--primary-blue); }
.link-card h3, .link-card p { color: var(--white); }
.link-card .spec-icon { background: rgba(255,255,255,0.15); color: var(--white); }
.link-card:hover .spec-icon { background: var(--white); color: var(--primary-blue); }

/* --- RESPONSIVIDADE --- */

/* NOTEBOOKS (Telas médias tipo 1366x768) */
@media (max-width: 1366px) {
    .specialties-section { padding: 50px 0 40px 0; }
    .specialties-grid { gap: 20px; }
    
    /* Layout horizontal no notebook para economizar altura */
    .spec-card {
        flex-direction: row; 
        text-align: left;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .spec-icon { 
        margin-bottom: 0; 
        /* Reduz um pouco no notebook, mas ainda maior que o original */
        width: 50px; 
        height: 50px; 
        font-size: 1.5rem; 
        flex-shrink: 0; 
    }
    
    .spec-card p { font-size: 0.8rem; line-height: 1.3; }
}

/* TABLETS (iPad / Vertical) */
@media (max-width: 992px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Colunas */
    }
    .section-header h2 { font-size: 2rem; }
}

/* CELULARES */
@media (max-width: 600px) {
    .hospital-divider { width: 80%; gap: 10px; }
    .section-header h2 { font-size: 1.8rem; }
    
    .specialties-grid {
        grid-template-columns: 1fr; /* 1 Coluna */
        gap: 15px;
    }

    .spec-card {
        padding: 20px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .spec-icon {
        width: 55px; height: 55px; font-size: 1.6rem; /* Ícone grande no mobile também */
    }

    .spec-card div { text-align: left; }
}


/* =========================================
   SEÇÃO CONVÊNIOS (Carrossel Infinito)
   ========================================= */
.insurance-section {
    padding: 80px 0;
    background-color: #F9F9FB;
    overflow: hidden;
}

.slider-wrapper {
    margin-top: 30px;
    position: relative;
    width: 100%;
    height: 100px; /* Aumentei a altura da faixa para caber ícones maiores */
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    width: calc(240px * 16); /* Largura maior por item */
    animation: scrollLogo 30s linear infinite;
}

/* O Card do "Logo" */
.slide-item {
    width: 240px; /* Item mais largo */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.3rem; /* Fonte maior */
    opacity: 0.5;
    transition: 0.3s;
    cursor: default;
}

.slide-item i {
    font-size: 2.2rem; /* Ícone BEM maior aqui também */
    color: var(--primary-blue);
}

/* Efeito Hover */
.slide-item:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-blue);
}

.slide-item:hover i {
    color: var(--primary-gold);
}

.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

@keyframes scrollLogo {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-240px * 8)); }
}

/* RESPONSIVIDADE CONVÊNIOS */
@media (max-width: 768px) {
    .insurance-section { padding: 50px 0; }
    
    .slide-item {
        width: 180px; 
        font-size: 1rem;
    }
    
    .slide-item i { font-size: 1.6rem; }
    
    .slider-track {
        width: calc(180px * 16);
        animation: scrollLogo 20s linear infinite;
    }
    
    @keyframes scrollLogo {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 8)); }
    }

    .insurance-section {
        margin-top: 30px;
        padding: 1px 0;
    }
}


/* =========================================
   SEÇÃO LOCALIZAÇÃO
   ========================================= */
.location-section {
    padding: 100px 0;
    background-color: #F9F9FB; /* Fundo cinza para separar da seção branca anterior */
    position: relative;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide meio a meio */
    gap: 60px;
    align-items: center;
}

/* --- LADO ESQUERDO (TEXTO) --- */
.location-info h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.location-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Caixinhas de Info (Endereço/Horário) */
.info-box {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(34, 40, 69, 0.1); /* Azul bem clarinho */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-box h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Botões */
.location-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366; /* Verde Oficial WhatsApp */
    color: #fff !important;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline-dark {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* --- LADO DIREITO (MAPA) --- */
.location-map {
    position: relative;
    z-index: 1;
}

/* Iframe do Google */
.location-map iframe {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(34, 40, 69, 0.15); /* Sombra poderosa */
    display: block;
    filter: grayscale(20%); /* Tira um pouco da saturação do mapa para ficar chique */
    transition: 0.3s;
}

.location-map iframe:hover {
    filter: grayscale(0%); /* Volta a cor normal ao passar mouse */
}

/* Elemento decorativo atrás do mapa (Borda Dourada deslocada) */
.map-bg-decor {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-gold);
    border-radius: 20px;
    z-index: -1; /* Fica atrás do mapa */
    opacity: 0.3;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr; /* Coluna única */
        gap: 40px;
    }

    .location-info {
        text-align: center; /* Centraliza texto no mobile */
    }

    .info-box {
        text-align: left; /* Mantém info alinhada à esquerda dentro da caixa */
    }

    .location-btns {
        justify-content: center; /* Centraliza botões */
    }

    .map-bg-decor {
        right: 0;
        top: 15px; /* Ajuste decorativo mobile */
        width: 95%;
        left: 2.5%;
    }
}

@media (max-width: 500px) {
    .location-btns {
        flex-direction: column; /* Botões um embaixo do outro no celular pequeno */
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .location-map iframe {
        height: 300px; /* Mapa menor no celular */
    }

    .location-info h2 {
        font-size: 1.8rem !important;
    }

    .location-section {
    padding: 50px 0;
    background-color: #F9F9FB; /* Fundo cinza para separar da seção branca anterior */
    position: relative;
}
}


/* =========================================
   RODAPÉ (FOOTER PREMIUM)
   ========================================= */
.main-footer {
    background-color: var(--primary-blue);
    color: #fff;
    padding-top: 80px;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- COLUNA 1: MARCA --- */
/* Controle do tamanho da Logo no Rodapé */
.footer-logo-img {
    max-width: 180px; /* Tamanho controlado para ficar elegante */
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links { display: flex; gap: 15px; }

.social-links a {
    width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); text-decoration: none; transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* --- TÍTULOS E LINKS --- */
.footer-col h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--primary-gold); padding-left: 5px; }

/* --- CONTATO --- */
.contact-list { list-style: none; }
.contact-list li {
    display: flex; align-items: flex-start; gap: 15px;
    margin-bottom: 20px; color: rgba(255, 255, 255, 0.8);
}
.c-icon { color: var(--primary-gold); font-size: 1.1rem; margin-top: 3px; width: 20px; text-align: center; }

/* --- COPYRIGHT BAR --- */
.copyright-bar {
    padding: 25px 0;
    background-color: #1a1f36;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.copyright-content { display: flex; justify-content: space-between; align-items: center; }
.dev-credit strong { color: var(--white); }

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .copyright-content { flex-direction: column; gap: 10px; text-align: center; }
}



/* =========================================
   PÁGINAS INTERNAS (Global)
   ========================================= */

/* Link Ativo no Menu (Cor Dourada) */
.nav-menu a.active-link {
    color: var(--primary-gold);
    font-weight: 700;
}
.nav-menu a.active-link::after { width: 100%; }

/* --- PAGE HEADER (Banner Interno) --- */
.page-header {
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 300px; /* Altura menor que a Home */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.overlay-dark {
    position: absolute; inset: 0;
    background: rgba(34, 40, 69, 0.85); /* Filtro Azul Escuro forte */
}

.page-header .container {
    position: relative; z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Breadcrumb (Caminho de pão: Início / Página) */
.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb a:hover { color: var(--primary-gold); }

/* --- CONTEÚDO SOBRE NÓS --- */
.about-content-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-flex {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Texto um pouco maior que a foto */
    gap: 60px;
    align-items: center;
}

.about-text-block h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-text-block p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Lista de Checagem */
.check-list { margin-top: 30px; }
.check-item {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 600;
}
.check-item i { color: var(--primary-gold); }

/* Imagem com Borda */
.about-image-block { position: relative; }

.about-image-block img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(34, 40, 69, 0.15);
}

.floating-years {
    position: absolute;
    bottom: 30px; left: -30px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    border-bottom: 4px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.yr-num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--primary-gold); }
.yr-desc { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- SEÇÃO MISSÃO / VISÃO / VALORES --- */
.values-section {
    padding: 80px 0;
    background-color: #F9F9FB; /* Fundo cinza */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(34, 40, 69, 0.1);
    border-bottom: 4px solid var(--primary-gold);
}

.v-icon {
    width: 70px; height: 70px;
    background: rgba(199, 165, 118, 0.1);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    transition: 0.3s;
}

.value-card:hover .v-icon {
    background: var(--primary-gold);
    color: var(--white);
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* RESPONSIVIDADE PÁGINAS INTERNAS */
@media (max-width: 900px) {
    .about-flex { grid-template-columns: 1fr; }
    .floating-years { left: 20px; bottom: -20px; }
    .values-grid { grid-template-columns: 1fr; gap: 20px; }
}



/* =========================================
   PÁGINA ESPECIALIDADES
   ========================================= */

.specialties-page-content {
    padding: 60px 0 100px 0;
    background-color: #F9F9FB; /* Fundo Cinza Claro */
}

/* --- Barra de Pesquisa --- */
.search-bar-container {
    max-width: 600px;
    margin: -90px auto 60px auto; /* Sobe para cima do banner (Efeito visual legal) */
    position: relative;
    z-index: 5;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
}

.search-bar-container form {
    display: flex;
    width: 100%;
}

.search-bar-container input {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.search-bar-container button {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.search-bar-container button:hover {
    background-color: var(--primary-gold);
}

/* --- Blocos de Categoria --- */
.category-block {
    margin-bottom: 50px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(199, 165, 118, 0.3); /* Linha dourada suave */
    padding-bottom: 15px;
}

.category-title i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.category-title h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 0;
}

/* Grid da Página Interna */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsivo Automático */
    gap: 25px;
}

/* Item de Serviço (Card) */
.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
    border-left: 4px solid transparent; /* Detalhe lateral invisível */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(34, 40, 69, 0.1);
    border-left: 4px solid var(--primary-gold); /* Aparece ao passar mouse */
}

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-item a {
    text-decoration: none;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.service-item a:hover {
    gap: 10px;
    color: var(--primary-blue);
}

/* Divisor entre seções */
.section-divider {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 60px 0;
}

/* Exames (Levemente diferente se quiser) */
.exam-item {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.02);
}

.hidden {
            display: none !important;
        }
        
        /* Deixa o cursor como "mãozinha" nos exames para indicar que é clicável */
        .exam-item {
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .exam-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }


/* Responsividade */
@media (max-width: 768px) {
    .search-bar-container {
        margin-top: -30px; /* Ajuste para mobile */
        width: 90%;
    }
    
    .category-title { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-grid { grid-template-columns: 1fr; } /* 1 coluna no celular */
}



/* =========================================
   RESPONSIVIDADE DA BARRA DE PESQUISA
   ========================================= */

@media (max-width: 768px) {
    /* 1. Ajuste do Container Principal */
    .search-bar-container {
        width: 90%; /* Ocupa 90% da largura da tela */
        max-width: none; /* Remove o limite de 600px */
        
        /* Ajusta o quanto a barra "sobe" no banner. 
           No desktop é -90px, no celular -40px fica melhor visualmente */
        margin: -40px auto 40px auto; 
        
        padding: 5px; /* Borda branca interna mais fina para ganhar espaço */
    }

    /* 2. Ajuste do Campo de Texto (Input) */
    .search-bar-container input {
        padding: 12px 15px; /* Menos espaçamento interno */
        font-size: 0.9rem; /* Letra levemente menor */
        width: 100%; /* Garante que estique */
    }
    
    /* 3. Ajuste do Placeholder (Texto de ajuda) */
    .search-bar-container input::placeholder {
        font-size: 0.85rem; /* Diminui para não cortar o texto "Qual especialidade..." */
        white-space: nowrap;
        text-overflow: ellipsis; /* Se for muito longo, coloca "..." */
        overflow: hidden;
    }

    /* 4. Ajuste do Botão de Lupa */
    .search-bar-container button {
        width: 42px;  /* Levemente menor que os 50px do desktop */
        height: 42px;
        font-size: 1rem;
        flex-shrink: 0; /* Impede que o botão seja esmagado */
    }
}

/* Ajuste extra para celulares muito pequenos (iPhone SE, Galaxy antigos) */
@media (max-width: 480px) {
    .search-bar-container {
        margin-top: -30px; /* Sobe menos ainda */
    }
    
    .search-bar-container input {
        font-size: 0.8rem; /* Fonte menor para caber tudo */
    }
}

  .search-bar-container {
            max-width: 600px;
            margin: -90px auto 60px auto; /* O segredo do efeito flutuante */
            position: relative;
            z-index: 5;
            background: #fff;
            padding: 10px;
            border-radius: 50px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: flex;
        }

        .search-bar-container form {
            display: flex;
            width: 100%;
        }

        .search-bar-container input {
            flex-grow: 1;
            border: none;
            padding: 15px 25px;
            border-radius: 50px;
            font-size: 1rem;
            outline: none;
            font-family: 'Montserrat', sans-serif;
            color: #333;
        }

        /* Botão da lupa redondo */
        .search-bar-container button {
            background-color: #003366; /* Azul do hospital */
            color: #fff;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            transition: 0.3s;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-bar-container button:hover {
            background-color: #25D366; /* Verde destaque no hover */
        }