/* ==========================================================================
   CLÍNICA SANARE — CSS Principal Otimizado
   Versão: 2.0 | Refatorado para performance, acessibilidade e responsividade
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Variáveis)
   -------------------------------------------------------------------------- */
:root {
    /* Cores primárias */
    --color-primary:       #2D5A27;
    --color-primary-dark:  #1b3d18;
    --color-primary-light: #e9f7ef;
    --color-secondary:     #2FA866;
    --color-secondary-dark:#1a8a50;

    /* Neutros */
    --color-white:     #ffffff;
    --color-bg-light:  #f4f8f5;
    --color-text:      #2a2a2a;
    --color-text-muted:#5f6c5e;
    --color-border:    #d8ead0;

    /* Sombras */
    --shadow-sm:  0 2px 8px rgba(45, 90, 39, 0.08);
    --shadow-md:  0 8px 24px rgba(45, 90, 39, 0.12);
    --shadow-lg:  0 20px 50px rgba(45, 90, 39, 0.18);

    /* Tipografia */
    --font-body:    'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Espaçamentos */
    --spacing-xs:  8px;
    --spacing-sm:  16px;
    --spacing-md:  32px;
    --spacing-lg:  64px;
    --spacing-xl:  96px;

    /* Raios de borda */
    --radius-sm:   8px;
    --radius-md:   15px;
    --radius-lg:   24px;
    --radius-full: 999px;

    /* Transição padrão */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header height */
    --header-height: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, iframe { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Foco visível para acessibilidade */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--spacing-xl);
}

.bg-light        { background-color: var(--color-bg-light); }
.bg-primary-light { background-color: var(--color-primary-light); }

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA — Títulos de seção
   -------------------------------------------------------------------------- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    margin: 12px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. BOTÕES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    will-change: transform;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1;
}

/* Efeito ripple ao clicar */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.4);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 168, 102, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover,
.btn-white:focus-visible {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

/* Botão WhatsApp CTA */
.btn-whatsapp-cta {
    background: #25d366;
    color: var(--color-white);
    border-color: #25d366;
    width: 100%;
    padding: 15px 28px;
    font-size: 1rem;
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-cta:hover {
    background: #1aad55;
    border-color: #1aad55;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animação "pulse" nos CTAs principais */
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(47, 168, 102, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(47, 168, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 168, 102, 0); }
}

.btn-pulse {
    animation: pulse-ring 2.5s infinite;
}

.btn-pulse:hover { animation-play-state: paused; }

.btn-whatsapp {
    background: #25d366;
    color: var(--color-white);
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #1aad55;
    border-color: #1aad55;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.08);
    transition: var(--transition);
}

#header .container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

#header.scrolled {
    --header-height: 60px;
    box-shadow: var(--shadow-md);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.logo i {
    font-size: 1.6rem;
    color: var(--color-secondary);
}

/* Menu desktop */
#menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#menu a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

#menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: var(--radius-full);
}

#menu a:hover,
#menu a:focus-visible {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

#menu a:hover::after { transform: scaleX(1); }

/* Botão mobile (hamburger) */
#btn-mobile {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    gap: 5px;
}

#hamburger,
#hamburger::before,
#hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}

#hamburger::before,
#hamburger::after {
    content: '';
    position: absolute;
}

#hamburger { position: relative; }

#hamburger::before { transform: translateY(-6px); }
#hamburger::after  { transform: translateY(6px); }

/* Estado ativo do menu mobile */
#nav.active #hamburger { background: transparent; }
#nav.active #hamburger::before { transform: rotate(45deg); }
#nav.active #hamburger::after  { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--color-white) 0%, var(--color-primary-light) 60%, #c8ecd5 100%);
    overflow: hidden;
}

/* Formas decorativas no fundo */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
}

.shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #2fa86640 0%, transparent 70%);
    top: -100px; right: -100px;
}

.shape-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #2d5a2740 0%, transparent 70%);
    bottom: 0; left: -50px;
}

.shape-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #2fa86620 0%, transparent 70%);
    top: 40%; left: 40%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 168, 102, 0.12);
    color: var(--color-secondary-dark);
    border: 1px solid rgba(47, 168, 102, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.text-highlight {
    color: var(--color-secondary);
    position: relative;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: var(--spacing-md);
}

/* Stats no hero */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* Imagem hero */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: clamp(280px, 35vw, 380px);
    height: clamp(280px, 35vw, 380px);
    background: var(--color-white);
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: morph 10s ease-in-out infinite;
    will-change: border-radius;
}

.main-icon {
    font-size: clamp(5rem, 8vw, 8rem);
    color: var(--color-primary);
}

@keyframes morph {
    0%   { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    33%  { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    66%  { border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%; }
    100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
}

/* Cards flutuantes decorativos */
.floating-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--color-secondary);
    font-size: 1rem;
}

.card-top    { top: 10%; right: -20px; animation-delay: 0s; }
.card-bottom { bottom: 10%; left: -20px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   8. SERVIÇOS
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(47, 168, 102, 0.3);
}

.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), #d4f0de);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.service-icon-wrap i {
    font-size: 2rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap i {
    color: var(--color-white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    flex: 1;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. ESPECIALIDADES (seção com fundo)
   -------------------------------------------------------------------------- */
.section-specialties {
    position: relative;
    padding-block: 100px;
    background-image: url('capa_principal.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    overflow: hidden;
}

/* Fallback quando não há imagem de fundo */
.section-specialties:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.specialties-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 61, 24, 0.92) 0%, rgba(45, 90, 39, 0.82) 100%);
    z-index: 1;
}

.section-specialties .container { position: relative; z-index: 2; }

.specialties-main-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.specialties-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 50px;
}

.specialties-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
    max-width: 860px;
    margin-inline: auto;
}

.specialty-item-new {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    cursor: default;
}

.specialty-item-new:hover {
    transform: translateX(8px);
    color: #7de8a8;
}

.specialty-item-new i {
    font-size: 1.1rem;
    color: var(--color-secondary);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.specialties-cta {
    text-align: center;
    margin-top: 50px;
}

/* --------------------------------------------------------------------------
   10. EXAMES
   -------------------------------------------------------------------------- */
.exams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: var(--spacing-md);
}

.exam-category {
    text-align: center;
}

.exam-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), #d4f0de);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.exam-icon i {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.exam-category h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light);
}

.exam-list {
    text-align: left;
}

.exam-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.exam-list i { color: var(--color-secondary); }

.exams-cta { text-align: center; }

/* --------------------------------------------------------------------------
   11. SLIDER (Nosso Espaço)
   -------------------------------------------------------------------------- */
.slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin-inline: auto;
    background: #111;
    /* Previne layout shift antes das imagens carregarem */
    min-height: 300px;
}

.slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: clamp(280px, 40vw, 520px);
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    color: var(--color-primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 16px; }
.next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--color-white);
    transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   12. VÍDEOS — Lazy-load via facade
   -------------------------------------------------------------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.video-item p {
    text-align: center;
    margin-top: 14px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* Facade do vídeo (substituído por iframe ao clicar) */
.video-facade {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: #000;
}

.video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-facade:hover img {
    transform: scale(1.04);
    filter: brightness(0.85);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.5);
    z-index: 2;
    pointer-events: none;
}

.video-facade:hover .play-btn {
    background: var(--color-secondary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Iframe ativo (quando facade é clicado) */
.video-facade.loaded {
    padding-bottom: 56.25%;
}

.video-facade.loaded iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   13. CONTATO
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-primary-light);
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--color-secondary);
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p,
.contact-item address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: normal;
}

.contact-item a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.contact-item a:hover { text-decoration-color: var(--color-secondary); }

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo i { color: var(--color-secondary); }

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-white);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-social a:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   15. BOTÃO WHATSAPP FLUTUANTE
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 62px;
    height: 62px;
    background: #25d366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 800;
    transition: var(--transition);
    animation: pulse-ring 2.5s infinite;
}

.whatsapp-float:hover {
    background: #1aad55;
    transform: scale(1.12);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #111;
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    font-family: var(--font-body);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #111;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* --------------------------------------------------------------------------
   16. BOTÃO BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 36px;
    left: 36px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   17. ANIMAÇÕES DE ENTRADA
   -------------------------------------------------------------------------- */
.animate-on-load {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-load.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay para o segundo elemento hero */
.hero-image.animate-on-load { transition-delay: 0.2s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Preferência do sistema: sem animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVIDADE
   -------------------------------------------------------------------------- */

/* --- Tablet (≤ 992px) --- */
@media (max-width: 992px) {
    :root { --spacing-xl: 70px; }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p { margin-inline: auto; }
    .hero-btns      { justify-content: center; }
    .hero-stats     { justify-content: center; }

    .hero-image { display: none; } /* Simplifica em tablet */

    .contact-grid  { grid-template-columns: 1fr; }
    .exams-container { grid-template-columns: 1fr; }

    .header-btn { display: none; }

    .specialties-columns { gap: 0 30px; }

    .section-specialties { background-attachment: scroll; } /* Fix parallax mobile */
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --spacing-xl: 56px;
    }

    /* Menu mobile */
    #btn-mobile {
        display: flex;
    }

    #nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 850;
    }

    #nav.active {
        transform: translateX(0);
    }

    #menu {
        flex-direction: column;
        padding: 24px;
        gap: 4px;
    }

    #menu a {
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
        display: block;
        border-bottom: 1px solid var(--color-border);
    }

    #menu a::after { display: none; }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn { width: 100%; max-width: 300px; }

    /* Stats */
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .stat-divider { width: 80px; height: 1px; }

    /* Especialidades */
    .specialties-columns { grid-template-columns: 1fr; }

    /* Slider */
    .slide { height: clamp(200px, 55vw, 300px); }

    .slider-btn { width: 40px; height: 40px; font-size: 0.95rem; }

    /* WhatsApp e back-to-top */
    .whatsapp-float { bottom: 24px; right: 24px; }
    .back-to-top    { bottom: 24px; left: 24px; }

    /* Footer */
    .footer-content { flex-direction: column; text-align: center; gap: 24px; }

    /* Vídeos */
    .video-grid { grid-template-columns: 1fr; }

    /* Serviços */
    .services-grid { grid-template-columns: 1fr; }
}

/* --- Mobile pequeno (≤ 480px) --- */
@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .card { padding: 28px 20px; }
    .specialties-main-title { letter-spacing: 1px; }
}