/* ======================= VARIÁVEIS E ESTILOS GLOBAIS ======================= */
:root {
    --fundo-escuro: #3a3f3a;
    --texto-creme: #f4f1ed;
    --borda-destaque: #b0b8b2;
    --fundo-claro: #f9f6f2;
    --texto-escuro: #333333;
    --texto-paragrafo: #5c5c5c;
    --fonte-titulo: 'Cormorant Garamond', serif;
    --fonte-corpo: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fonte-corpo); color: var(--texto-paragrafo); background-color: var(--fundo-claro); overflow-x: hidden; }
.section-container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; }

/* ======================= TIPOGRAFIA E ELEMENTOS REUSÁVEIS ======================= */
.section-pre-title { color: var(--texto-paragrafo); font-weight: 500; text-align: center; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; font-size: 0.9rem; }
.section-title { font-family: var(--fonte-titulo); font-size: 3rem; color: var(--texto-escuro); text-align: center; margin-bottom: 60px; font-weight: 700; }
.section-subtitle { max-width: 600px; margin: -40px auto 40px auto; text-align: center; line-height: 1.6; }

/* ======================= BOTÕES ======================= */
.header-button, .hero-button { background-color: transparent; color: var(--borda-destaque); padding: 12px 28px; text-decoration: none; font-weight: 500; border-radius: 50px; border: 1px solid var(--borda-destaque); transition: all 0.3s ease; display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.header-button:hover, .hero-button:hover { background-color: var(--borda-destaque); color: var(--fundo-escuro); }
.main-header:not(.scrolled) .header-button, .main-header:not(.scrolled) .nav-link { color: var(--texto-creme); border-color: var(--texto-creme); }
.main-header:not(.scrolled) .header-button:hover { background-color: var(--texto-creme); color: var(--fundo-escuro); }

/* ======================= HEADER ======================= */
.main-header { width: 100%; position: absolute; top: 0; left: 0; z-index: 1000; padding: 30px 0; transition: all 0.4s ease; }
.main-header.scrolled, .main-header.menu-open { position: fixed; background-color: rgba(58, 63, 58, 0.98); backdrop-filter: blur(8px); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); padding: 15px 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--fonte-corpo); font-weight: 500; font-size: 1.2rem; text-decoration: none; color: var(--texto-creme); letter-spacing: 1px; z-index: 1001; }
.main-header.scrolled .logo, .main-header.menu-open .logo { color: var(--texto-creme); }
.main-nav { display: flex; align-items: center; }
.main-nav a { margin: 0 15px; text-decoration: none; color: var(--texto-creme); font-weight: 500; position: relative; padding-bottom: 5px; font-size: 0.9rem; }
.nav-separator { color: var(--texto-creme); opacity: 0.5; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background-color: var(--texto-creme); transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* --- INÍCIO: ESTILOS DO MENU MOBILE --- */
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--texto-creme); font-size: 1.5rem; cursor: pointer; z-index: 1001; }
.mobile-nav-toggle .icon-close { display: none; }
.main-header.menu-open .mobile-nav-toggle .icon-open { display: none; }
.main-header.menu-open .mobile-nav-toggle .icon-close { display: block; }

.mobile-nav-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--fundo-escuro); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateY(-100%); transition: transform 0.4s ease-in-out; }
.mobile-nav-menu.active { transform: translateY(0); display: flex; }
.mobile-nav-menu nav { display: flex; flex-direction: column; text-align: center; gap: 25px; }
.mobile-nav-menu .nav-link { color: var(--texto-creme); font-size: 1.5rem; text-decoration: none; }
.mobile-nav-menu .header-button { color: var(--texto-creme); border-color: var(--texto-creme); font-size: 1rem; margin-top: 20px; }

/* ======================= HERO SECTION ======================= */
.hero-section { height: 100vh; width: 100%; background-color: var(--fundo-escuro); color: var(--texto-creme); position: relative; }
.hero-swiper { width: 100%; height: 100%; }
.slide-layout-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-text-content { padding-left: calc((100vw - 1100px) / 2); padding-right: 50px; }
.hero-title { font-family: var(--fonte-titulo); font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-subtitle { font-size: 1.1rem; line-height: 1.7; margin-bottom: 40px; font-weight: 400; max-width: 450px; }
.hero-image-side { width: 100%; height: 100%; background-size: cover; background-position: center 20%; }
.slide-layout-full {display: flex; align-items: center; justify-content: flex-start; padding-bottom: 120px; text-align: left; background-size: cover; background-position: center; padding-bottom: 0; }
.hero-overlay-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(58, 63, 58, 0.65); }
.hero-content-full { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-content-full .hero-title { font-size: 3.5rem; }
.swiper-pagination-bullet { background: rgba(255, 255, 255, 0.5); width: 10px; height: 10px; transition: all 0.3s ease; }
.swiper-pagination-bullet-active { background: var(--texto-creme); width: 12px; height: 12px; }

/* --- CONTROLE DAS IMAGENS DE FUNDO DO CARROSSEL --- */
.slide-1 { background-image: url('imagens/fachada-clinica2.jpg'); }
.slide-2 { background-image: url('imagens/fachada-clinica.jpg'); }

.slide-layout-full .hero-text-content {
    position: relative; /* Garante que o texto fique acima do overlay */
    z-index: 2;         /* Coloca o texto na frente */
}
.slide-2 {
    justify-content: center !important;
    text-align: center !important;
    align-items: flex-end !important; /* Empurra para baixo */
    padding-bottom: 15vh !important; /* Cria um espaço do fundo */
}

/* ======================= SERVIÇOS ======================= */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { background-color: #fff; padding: 30px; border-radius: 8px; text-align: center; border: 1px solid #eee; opacity: 0; transform: translateY(50px); transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.3s ease; }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.service-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; margin-bottom: 25px; }
.service-content h3 { font-family: var(--fonte-titulo); font-size: 1.8rem; color: var(--texto-escuro); margin-bottom: 15px; }
.service-content p { line-height: 1.7; }

/* ======================= SOBRE MIM ======================= */
.about-section { background-color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.about-image-wrapper { position: relative; align-self: start; }
.about-image-wrapper img { width: 100%; height: auto; border-radius: 8px; display: block; }
.about-checklist-box { position: absolute; bottom: 20px; left: 20px; right: 20px; background-color: rgba(58, 63, 58, 0.9); color: var(--texto-creme); padding: 25px; border-radius: 8px; backdrop-filter: blur(5px); }
.about-checklist { list-style: none; padding: 0; margin: 0; }
.about-checklist li { margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; }
.about-checklist li:last-child { margin-bottom: 0; }
.about-checklist i { color: var(--borda-destaque); margin-right: 15px; font-size: 1.1rem; }
.about-content p { margin-bottom: 20px; line-height: 1.8; }
.about-content .section-pre-title, .about-content .section-title { text-align: left; }
.about-content .section-title { margin-bottom: 30px; }
.about-grid > * { opacity: 0; transform: translateY(30px); transition: transform 0.8s ease-out, opacity 0.8s ease-out; }
.about-grid.visible > * { opacity: 1; transform: translateY(0); }
.about-grid.visible > *:nth-child(2) { transition-delay: 0.2s; }

/* ======================= DEPOIMENTO ======================= */
.testimonial-section { background-color: var(--fundo-escuro); padding: 120px 20px; text-align: center; color: var(--texto-creme); }
.testimonial-section .section-pre-title, .testimonial-section .section-title { color: var(--texto-creme); }
.testimonial-wrapper { max-width: 800px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: transform 0.8s ease-out, opacity 0.8s ease-out; }
.testimonial-wrapper.visible { opacity: 1; transform: translateY(0); }
.quote-icon { font-size: 2.5rem; color: var(--borda-destaque); opacity: 0.6; margin-bottom: 30px; }
.testimonial-text { font-family: var(--fonte-titulo); font-size: 1.8rem; line-height: 1.5; font-style: italic; font-weight: 700; color: var(--texto-creme); margin-bottom: 40px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; }
.testimonial-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid var(--borda-destaque); }
.testimonial-author span { font-weight: 500; font-size: 1rem; letter-spacing: 0.5px; }

/* ======================= CONTATO ======================= */
.contact-section-final { padding: 0; position: relative; overflow: hidden; }
.contact-wrapper { display: flex; align-items: center; position: relative; min-height: 90vh; background-size: cover; background-position: center; padding: 100px 0; opacity: 0.85; }
.contact-content-wrapper { width: 60%; padding-left: calc((100vw - 1100px) / 2); padding-right: 50px; position: relative; z-index: 2; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.contact-content-wrapper.visible { opacity: 1; transform: translateY(0); }
.contact-content { max-width: 500px; color: var(--texto-creme); }
.contact-content .section-pre-title, .contact-content .section-title { text-align: left; color: var(--texto-creme); }
.contact-content .section-title { margin-bottom: 40px; }
.contact-blocks { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
.contact-block h4 { font-family: var(--fonte-corpo); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 15px; color: var(--borda-destaque); }
.contact-block p { display: flex; align-items: flex-start; margin-bottom: 10px; line-height: 1.6; }
.contact-block i { margin-right: 15px; margin-top: 4px; width: 20px; }

.contact-image-float { position: absolute; right: 5%; width: 40%; z-index: 1; opacity: 0; transform: scale(0.95); transition: all 0.8s ease-out 0.2s; }
.contact-image-float.visible { opacity: 1; transform: scale(1); }
.contact-image-float img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

/* ======================= MAPA E RODAPÉ ======================= */
.map-section iframe { width: 100%; height: 400px; border: 0; display: block; }
.main-footer { background-color: var(--fundo-escuro); color: #a2a2a2; padding: 80px 20px 0 20px; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer-column h4 { color: var(--texto-creme); font-family: var(--fonte-corpo); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 25px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 15px; }
.footer-column a { color: #a2a2a2; text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--texto-creme); }
.footer-logo { font-family: var(--fonte-titulo); font-size: 1.8rem; color: var(--texto-creme); font-weight: 700; text-decoration: none; }
.footer-bottom { text-align: center; padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #888; }

/* ======================= WHATSAPP ======================= */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.3s ease; animation: pulse 2s ease-in-out infinite; }
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { transform: scale(1.05); 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); } }

/* ======================= RESPONSIVIDADE (MEDIA QUERIES) ======================= */
@media (max-width: 992px) {
    /* === HEADER E NAVEGAÇÃO MOBILE === */
    .main-nav, .header-container > .header-button { display: none; }
    .mobile-nav-toggle { display: block; }
    
    /* === SOBRE === */
    .about-content .section-pre-title, .about-content .section-title { text-align: center; }
    .about-checklist-box { padding: 20px; position: relative; bottom: 0; left: 0; right: 0; margin-top: -50px; }
    .about-checklist li { font-size: 0.9rem; }

/* === CONTATO (OCULTANDO IMAGEM FLUTUANTE NO MOBILE) === */
.contact-wrapper {
    /* Garante que o conteúdo de texto ocupe o espaço todo e fique centralizado */
    justify-content: center;
    min-height: auto; /* Ajuste para o conteúdo ditar a altura */
    padding: 80px 20px; /* Adiciona espaçamento interno no mobile */
}
.contact-content-wrapper {
    width: 100%;
    padding: 0; /* Remove padding extra que não é mais necessário */
    text-align: center;
}
.contact-content .section-pre-title, 
.contact-content .section-title {
    text-align: center;
}

.contact-image-float {
    display: none; /* A mágica acontece aqui: esconde completamente a imagem da fachada no mobile */
}
    
    /* === FOOTER === */
    .footer-grid { text-align: center; }
}

@media (max-width: 768px) {
    /* === IMAGENS ESPECÍFICAS PARA O CARROSSEL MOBILE === */
    .slide-1 { background-image: url('imagens/mobile-carrocel-1.jpg'); background-size: cover; background-position: center; }
    .slide-1 .hero-text-content { position: relative; z-index: 2; }
    .slide-2 { background-image: url('imagens/mobile-carrocel-2.jpg'); background-position: center; }

    /* === HERO === */
    .slide-layout-split { grid-template-columns: 1fr; } 
    .hero-image-side { display: none; }
    .hero-text-content { text-align: center; padding: 0 20px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-title { font-size: 2.8rem; }
    .hero-content-full .hero-title { font-size: 2.5rem; }

    /* === SEÇÕES GERAIS === */
    .section-container { padding: 80px 20px; }
    .section-title { font-size: 2.2rem; }
    .testimonial-section { padding: 100px 20px; }
    .testimonial-text { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.9rem; }
    .service-content h3 { font-size: 1.5rem; }
    .testimonial-text { font-size: 1.3rem; }
}