 /* == FONTES PERSONALIZADAS == */
@font-face { font-family: 'Bambi Bold'; src: url('media/fonts/bambi-bold.woff2') format('woff2'); }
@font-face { font-family: 'Tw Cen MT'; src: url('media/fonts/tw-cen-mt.woff2') format('woff2'); }

/* == VARIÁVEIS DE DESIGN == */
:root {
	--azul-doctor: #003466;
	--azul-doctor-dark: #002346;
	--laranja-destaque: #fe6521;
	--cinza-texto: #5a6470;
	--cinza-claro: #f0f4f8;
	--branco: #fefefe;
	--whatsapp-green: #25D366;
	
	--font-primary: 'Roboto Slab', serif;	
	--font-secondary: 'Tw Cen MT', sans-serif;
	--font-logo: 'Bambi Bold', sans-serif;
	
	--shadow-subtle: 0 4px 20px rgba(0, 52, 102, 0.05);
	--shadow-medium: 0 8px 30px rgba(0, 52, 102, 0.1);
	--shadow-strong: 0 10px 35px rgba(0, 52, 102, 0.2);
	--transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* == RESET E GLOBAIS == */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
	font-family: var(--font-primary); color: var(--cinza-texto); 
	line-height: 1.7; background-color: var(--branco);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--font-primary); color: var(--azul-doctor); font-weight: 700; }
h2 { font-size: clamp(2.5rem, 5vw, 3.2rem); text-align: center; margin-bottom: 20px; }
.section-subtitle {
	text-align: center; color: var(--cinza-texto); max-width: 650px;
	margin: 0 auto 80px auto; font-size: 1.2rem;
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* == HEADER == */
header {
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 52, 102, 0.08);
	padding: 20px 0; position: fixed; width: 100%;
	top: 0; z-index: 1000; transition: var(--transition);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-image { height: 55px; width: auto; }
nav { flex-grow: 1; text-align: right; display: flex; justify-content: flex-end; align-items: center; }
nav ul { list-style: none; display: inline-flex; gap: 40px; }
nav a { text-decoration: none; color: var(--azul-doctor); font-weight: 600; font-size: 1.1rem; position: relative; padding: 8px 4px; transition: var(--transition); }
nav a:hover { color: var(--laranja-destaque); }
.header-cta { margin-left: 40px; }
.btn { padding: 16px 38px; text-decoration: none; border-radius: 8px; font-weight: 700; font-family: var(--font-primary); transition: var(--transition); border: 2px solid transparent; display: inline-block; text-align: center; }
.btn-primary { background-color: var(--azul-doctor); color: var(--branco); }
.btn-primary:hover { background-color: var(--laranja-destaque); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(254, 101, 33, 0.3); }
.hamburger { display: none; }
.cursor-pointer { cursor: pointer; }

/* Efeito de hover para a logo */
.logo-link {
	cursor: pointer;
	display: inline-block;
}

.logo-image {
	transition: transform 0.3s ease-in-out;
}

.logo-link:hover .logo-image {
	transform: scale(1.05);
}

/* == HERO SECTION (Dividido + Overlay Azul) == */
#inicio {
	padding-top: 200px; padding-bottom: 120px;
	background-color: var(--cinza-claro); min-height: 100vh;
	display: flex; align-items: center; position: relative;
}
#inicio::before { /* Elemento da IMAGEM */
	content: ''; position: absolute; top: 0; right: 0;
	width: 50%; height: 100%;
	background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
	clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
	z-index: 1;
}
/* Criar o layer azul sobre a imagem */
#inicio::after { /* Elemento do OVERLAY AZUL */
	content: ''; position: absolute; top: 0; right: 0;
	width: 50%; height: 100%;
	background: linear-gradient(45deg, rgba(0, 52, 102, 0.88), rgba(0, 52, 102, 0.75));
	clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
	z-index: 2;
}
.hero-content { 
	position: relative; z-index: 3; /* Z-index maior */
	max-width: 55%; text-align: left;
}
#inicio h1 { 
	font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1.15; 
	margin-bottom: 30px; color: var(--azul-doctor); font-weight: 900;
}
#inicio .hero-text { font-size: 1.2rem; max-width: 500px; margin: 0 0 40px 0; color: var(--cinza-texto); }
.cta-buttons { display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap; }
.btn-secondary { background-color: transparent; color: var(--azul-doctor); border-color: var(--azul-doctor); }
.btn-secondary:hover { background-color: var(--azul-doctor); color: var(--branco); }

/* == SERVICES SECTION == */
#servicos { background-color: var(--cinza-claro); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { 
	background: var(--branco); padding: 40px; border-radius: 12px;
	border: 1px solid #e0e6ed; transition: var(--transition);
	cursor: pointer;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); border-color: var(--azul-doctor); }
.service-icon-wrapper {
	width: 65px; height: 65px; border-radius: 12px;
	background: var(--azul-doctor); display: grid; place-items: center;
	margin-bottom: 30px; transition: var(--transition);
}
.service-card:hover .service-icon-wrapper { background-color: var(--laranja-destaque); transform: rotate(-10deg); }
.service-icon { font-size: 2rem; color: var(--branco); }
.service-card h3 { font-size: 1.7rem; margin-bottom: 15px; }

/* == ABOUT SECTION == */
/* == ABOUT SECTION (Com Fundo Azul Texturizado) == */
#sobre {
	background-color: var(--azul-doctor); /* Cor de fundo principal */
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Ajustes de cor para o conteúdo ficar legível no fundo azul */
#sobre h2, 
#sobre p {
	color: var(--branco);
}
/* Estilo invertido para o botão se destacar */
#sobre .btn-primary {
	background-color: var(--laranja-destaque);
	border-color: var(--laranja-destaque);
}
#sobre .btn-primary:hover {
	background-color: var(--branco);
	border-color: var(--branco);
	color: var(--laranja-destaque);
}

.about-content { 
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	align-items: center; 
	gap: 80px; 
}
.about-image-wrapper { 
	position: relative; 
}
.about-image-wrapper img {
	width: 100%; 
	height: auto; 
	display: block;
	border-radius: 16px; 
	box-shadow: 0 15px 40px rgba(0,0,0,0.2);
	max-width: 455px;
}
.about-text h2 { 
	text-align: left; 
}
.about-text p { 
	margin-bottom: 20px; 
	font-size: 1.1rem; 
}
#sobre .btn-primary { 
	margin-top: 20px; 
}

/* CSS PARA DEPOIMENTOS EM BARALHO (CARD STACK) */
/* == TESTIMONIALS SECTION (CARROSSEL RESTAURADO) == */
#clientes { background-color: var(--cinza-claro); }
.testimonial-slider { position: relative; max-width: 850px; margin: 0 auto; overflow: hidden; }
.testimonial-wrapper { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-card { 
	min-width: 100%; padding: 40px; 
	background: var(--branco); border-radius: 16px; 
	box-shadow: var(--shadow-subtle); display: flex; 
	flex-direction: column; align-items: center; text-align: center;
}
.testimonial-card .stars{
	color: var(--laranja-destaque);
}
.testimonial-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.testimonial-profile img { width: 70px; height: 70px; object-fit: cover; border-radius: 10%; }
.profile-info { text-align: left; }
.profile-info .name { font-weight: 700; color: var(--azul-doctor); }
.profile-info .google-logo { width: 60px; height: auto; margin-top: 4px; }
.slider-controls {
	position: absolute; top: 50%; width: 100%;
	display: flex; justify-content: space-between;
	transform: translateY(-50%); z-index: 20;
}
.slider-controls button {
	background: var(--branco); color: var(--azul-doctor); border: none;
	box-shadow: var(--shadow-subtle);
	width: 50px; height: 50px; border-radius: 50%;
	cursor: pointer; transition: var(--transition); font-size: 1.2rem;
}
.slider-controls button:hover { background: var(--laranja-destaque); color: white; transform: scale(1.1); }

/* == FAQ SECTION == */
#faq { background-color: var(--branco); }
.faq-accordion { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e6ed; }
.faq-question {
	padding: 30px 10px; cursor: pointer; display: flex; 
	justify-content: space-between; align-items: center;
	font-weight: 700; font-family: var(--font-primary);
	font-size: 1.3rem; transition: var(--transition);
}
.faq-question:hover, .faq-item.active .faq-question { color: var(--laranja-destaque); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s ease-in-out; }
.faq-answer-content { padding: 0 10px 30px 10px; }
.faq-answer-content p { text-align: justify; margin-bottom: 1.2em; }
.faq-item.active .faq-answer { max-height: 1200px; }
.faq-question .icon { transition: transform 0.4s ease; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }

/* == CONTACT SECTION == */
#contato { background-color: var(--cinza-claro); }
.contact-wrapper {
	background: var(--branco); padding: 60px;
	border-radius: 16px; box-shadow: var(--shadow-subtle);
	display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center;
}
.contact-info h2 { text-align: left; }
.contact-info-item { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.contact-info-item i { color: var(--azul-doctor); font-size: 2rem; width: 30px; text-align: center; }
.contact-info-item a { color: var(--cinza-texto); text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
.contact-info-item a:hover { color: var(--laranja-destaque); }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
	width: 100%; padding: 16px; border: 1px solid #dcdcdc; border-radius: 8px;
	font-family: var(--font-primary); font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
	outline: none; border-color: var(--azul-doctor);
	box-shadow: 0 0 0 4px rgba(0, 52, 102, 0.1);
}
.contact-info-item a {
	word-break: break-all; /* Força a quebra de textos longos */
}

/* == FOOTER == */
footer { background-color: var(--azul-doctor-dark); color: var(--cinza-claro); padding: 50px 0; }
.footer-container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 25px; }
.footer-socials a { color: var(--cinza-claro); margin: 0 15px; font-size: 2rem; transition: var(--transition); }
.footer-copyright { color: var(--cinza-claro); margin: 0 15px; font-size: 1.2rem; transition: var(--transition); }
.footer-socials a:hover { color: var(--laranja-destaque); transform: translateY(-3px); }

/* == WHATSAPP FLOAT BUTTON == */
.whatsapp-float {
	position: fixed; bottom: 30px; right: 30px;
	background: var(--whatsapp-green); color: var(--branco); 
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	font-size: 2.2rem; text-decoration: none;
	box-shadow: 0 5px 20px rgba(0,0,0,0.2);
	z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

/* == RESPONSIVE == */
@media (max-width: 992px) {
	/* Bloco de navegação no mobile */
	nav { 
		display: block; /* Mantenha como block para a animação funcionar */
		position: absolute;
		top: 95px; /* Altura do header */
		left: 0;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.98); /* Fundo quase sólido com blur */
		backdrop-filter: blur(10px);
		box-shadow: 0 10px 20px rgba(0, 52, 102, 0.1);
		
		/* ANIMAÇÃO AQUI */
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
	}
	nav.active {
		max-height: 500px; /* Altura máxima que o menu pode atingir */
		opacity: 1;
		padding: 20px 0; /* Adiciona padding vertical quando ativo */
		text-align: center;
	}
	nav ul {
		flex-direction: column;
		align-items: center;
		gap: 30px; /* Aumenta o espaçamento para facilitar o toque */
		text-align: center; /* CENTRALIZA OS ITENS */
	}
	.header-cta { display: none; } /* Esconde o botão "Fale Conosco" do header no mobile */
	.hamburger { 
		display: block; 
		font-size: 1.5rem; 
		color: var(--azul-doctor); 
		cursor: pointer; 
		transition: transform 0.4s ease; /* Adiciona a transição */
		z-index: 1001; /* Garante que fique acima do menu */
	}
	/* Nova classe para girar o ícone */
	.hamburger.active {
		transform: rotate(90deg);
	}
	.about-content, .contact-wrapper { grid-template-columns: 1fr; }
	.about-image-wrapper { order: -1; max-width: 500px; margin: 0 auto 50px auto; }
	.about-text h2, .contact-info h2 { text-align: center; }
	.contact-wrapper { padding: 40px 20px; } 
	.contact-info-item i { color: var(--azul-doctor); font-size: 1.4rem; width: 18px; text-align: center; }
	.contact-info-item a { color: var(--cinza-texto); text-decoration: none; font-size: 1rem; transition: var(--transition); }
	
	/* ESTILO CORRETO PARA A SEÇÃO INICIAL NO MOBILE */
	#inicio { 
		text-align: center; 
		padding-top: 150px;
		padding-bottom: 120px; 
		min-height: 90vh;
		background-color: var(--azul-doctor); /* Cor de fundo sólida */
		background-image: linear-gradient(rgba(0, 52, 102, 0.8), rgba(0, 35, 70, 0.8)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
		background-size: cover;
		background-position: center;
	}
	#inicio::before, 
	#inicio::after { 
		display: none; /* Desativa os elementos da diagonal no mobile */
	}
	.hero-content { 
		max-width: 100%; /* Permite que o conteúdo ocupe a tela toda */
		text-align: center;
	}
	#inicio h1, #inicio .hero-text { 
		color: var(--branco); /* Garante que o texto seja branco sobre o fundo */
	}
	.cta-buttons { 
		justify-content: center; 
	}
	.cta-buttons > a.btn-primary {
		border-color: var(--branco);
	}
	
	/* Regra para o botão secundário no mobile */
	#inicio .btn-secondary {
		background-color: var(--branco);
		color: var(--azul-doctor);
		border-color: var(--branco);
	}
	#inicio .btn-secondary:hover {
		background-color: var(--branco);
		border-color: var(--branco);
		color: var(--laranja-destaque);
	}
}
@media (max-width: 768px) {
	section { padding: 100px 0; }
	.slider-controls { margin-top: -30px; top: 100%; }
	.testimonial-container { padding: 0; }
	.testimonial-card { padding: 30px; }
}