/* =========================
    RESET / BASE
========================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Montserrat", sans-serif;
	background-color: #ffffff;
	color: #333333;
}

html {
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	display: block;
}

.container {
	width: 90%;
	max-width: 1124px;
	margin: 0 auto;
}

/* =========================
	  HEADER
  ========================= */
.header {
	background-color: #2b4c99;
	color: white;
	height: 100px;
	display: flex;
	align-items: stretch;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo {
	align-self: stretch; /* ocupa toda a altura do header (faixa branca) */
	display: flex;
	align-items: center;
	background-color: #ffffff;
	padding: 0 24px;
}

.logo a {
	display: flex;
	align-items: center;
}

.logo img {
	height: 56px;
}

.menu ul {
	display: flex;
	list-style: none;
}

.menu li {
	margin-left: 30px;
	text-transform: uppercase;
}

.menu li a {
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	position: relative;
}

.menu li a::after {
	content: "";
	width: 0;
	height: 2px;
	background: white;
	position: absolute;
	left: 0;
	bottom: -5px;
	transition: width 0.3s;
}

.menu li a:hover::after,
.menu li.active a::after {
	width: 100%;
}

.menuopener {
	display: none;
}

/* =========================
	  SECTIONS GERAIS
  ========================= */

section[id] {
	scroll-margin-top: 100px;
}

.fullscreen-section {
	min-height: calc(100vh - 100px);
}

.section-default {
	padding: 80px 0;
}

.bg-gray {
	background-color: #f7f7f7;
}

.bg-white {
	background-color: #ffffff;
}

.bg-light {
	background-color: #f7f7f7;
}

.section-title {
	font-size: 32px;
	text-align: center;
	color: #2b4c99;
	margin-bottom: 50px;
}

.equipe-hint {
	text-align: center;
	color: #666;
	font-size: 14px;
	margin-top: -38px; /* aproxima do título (que tem 50px de margin-bottom) */
	margin-bottom: 40px;
}

/* =========================
	  HOME
  ========================= */
.home-section {
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.home-content {
	text-align: left;
}

.home-content h1 {
	font-size: clamp(36px, 8vw, 72px);
	color: #fff;
	margin-bottom: 20px;
	text-shadow: #555 0px 1px 2px;
}

.home-content h2 {
	font-size: 20px;
	color: #fff;
	margin-bottom: 30px;
	text-shadow: #555 0px 1px 2px;
}

.button {
	display: inline-block;
	background-color: #2b4c99;
	color: white;
	padding: 10px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s;
	margin-top: 5px;
}

.button:hover {
	background-color: #0079c7;
}

.home-cards {
	display: flex;
	position: absolute;
	bottom: 30px;
	width: 100%;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px; /*novo*/
}

.card-home {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	/*height: 200px;
	max-width: 360px;
	min-height: 200px;*/
	min-width: 280px;
	max-width: 360px;
	min-height: 200px;
}

.card-home-title {
	flex: 0 0 auto;
	text-align: center;
}

.card-home-title h3 {
	font-size: 20px;
	color: #2b4c99;
}

.card-home-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.card-home-content p {
	font-size: 14px;
	color: #666;
}

.card-home-content .hours {
	width: 100%;
}

.card-home-button {
	flex: 0 0 auto;
	text-align: center;
}

.semana,
.sabado,
.domingo {
	display: flex;
	justify-content: space-between;
	padding: 5px 0px;
}

.semana,
.sabado {
	border-bottom: 1px solid #2b4c99;
}

/* =========================
	  DENTISTAS
  ========================= */
.card-dentista {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	min-height: 360px;
}

.img-dentista {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 16px;
	cursor: pointer;
}

.nome-dentista {
	font-size: 18px;
	font-weight: 600;
	color: #2b4c99;
	margin-bottom: 6px;
}

.profissao-dentista {
	font-size: 14px;
	color: #666;
}

.cro-dentista {
	font-size: 12px;
	color: #999;
	margin-bottom: 12px;
}

.redes-dentista {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: auto;
	height: 40px;
	align-items: center;
}

.icone-rede {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #0079c7;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s;
}

.icone-rede:hover {
	background-color: #005999;
}

.icone-rede img {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

/* =========================
      GALERIA 
  ========================= */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.gallery-grid a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	transition: transform 0.3s, box-shadow 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid a:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: opacity 0.3s ease;
}

/* =========================
      TRATAMENTOS
  ========================= */
.tratamentos-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.tratamento-card {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tratamento-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.tratamento-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.tratamento-titulo {
	font-size: 18px;
	font-weight: 600;
	color: #2b4c99;
	flex: 1;
}

.tratamento-icone {
	font-size: 24px;
	color: #2b4c99;
	font-weight: bold;
	transition: transform 0.5s ease;
}

.tratamento-card.open .tratamento-icone::after {
	content: "×";
	font-size: 24px;
	transform: none;
}

.tratamento-icone::after {
	content: "+";
	display: inline-block;
	transition: transform 0.5s ease;
}

.tratamento-conteudo {
	font-size: 14px;
	color: #555;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	margin-top: 0;
}

.tratamento-card.open .tratamento-conteudo {
	max-height: 500px;
	opacity: 1;
	margin-top: 12px;
}

/* =========================
	  LOCALIZACAO E CONTATO
  ========================= */

.localizacao-section {
	height: auto;
	padding: 80px 0;
	margin-bottom: 100px; /* reserva espaço pro footer */
}

.contato-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	background: #f7f7f7;
	padding: 32px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contato-mapa,
.contato-info {
	flex: 1;
}

.mapa-iframe {
	border-radius: 8px;
	width: 100%;
	height: 300px;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contato-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contato-clinica {
	font-size: 24px;
	color: #2b4c99;
	margin-bottom: 20px;
}

.contato-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #333;
}

.icone-contato {
	width: 40px;
	height: 40px;
	aspect-ratio: 1 / 1; /* garante que seja um círculo */
	background-color: #0079c7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icone-contato img {
	width: 20px;
	height: 20px;
	filter: brightness(0) invert(1);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================
	  FOOTER
  ========================= */
.footer {
	background-color: #2b4c99;
	padding: 30px 0;
	color: white;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer-social {
	display: flex;
	gap: 16px;
}

.footer-icon {
	width: 40px;
	height: 40px;
	background-color: #0079c7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
}

.footer-icon:hover {
	background-color: #005999;
}

.footer-copy {
	font-size: 12px;
	margin-top: 20px;
}

/* =========================
	  WHATSAPP BUTTON
  ========================= */
.whatsapp-button {
	position: fixed;
	bottom: 30px;
	right: 40px;
	background-color: rgb(64, 194, 81);
	padding: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	height: 64px;
	width: 64px;
	z-index: 9999; /* <- garante que fique acima de tudo */
}

/* =========================
	  MODAL CURRÍCULO
  ========================= */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal.active {
	display: flex;
}

.modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
	width: 90%;
	max-width: 500px;
	position: relative;
}
.modal-close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 28px;
	color: #333;
	background: none;
	border: none;
	cursor: pointer;
}

.modal-title {
	font-size: 24px;
	color: #2b4c99;
	text-align: center;
	margin-bottom: 10px;
}

.modal-subtitle,
.modal-cro {
	font-size: 14px;
	color: #555;
	text-align: center;
}

.modal-list {
	margin-top: 20px;
	list-style: disc inside;
	color: #333;
	font-size: 14px;
}

/* =========================
	  AJUSTE DE VISIBILIDADE - RESPONSIVIDADE
  ========================= */

@media (max-width: 1024px) {
	.header-container {
		padding: 0 16px;
	}

	.home-cards {
		justify-content: center;
		gap: 24px;
		padding: 0 16px;
	}

	.nome-dentista {
		max-width: 220px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.menu ul {
		display: none;
		flex-direction: column;
		background-color: #2b4c99;
		position: absolute;
		top: 100px;
		right: 0;
		width: 100%;
		padding: 20px 0;
		box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
		animation: fadeSlide 0.4s ease forwards;
	}

	.menu ul.active {
		display: flex;
	}

	.menu li {
		margin: 10px 0;
		text-align: center;
	}

	.menuopener {
		display: block;
		width: 32px;
		cursor: pointer;
	}

	.header-container {
		padding: 0 16px;
	}

	.home-cards {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		padding: 0 16px;
		position: static; /* remove o posicionamento absoluto */
		margin-top: 32px;
		margin-bottom: 32px;
	}

	.card-home {
		width: 100%;
		max-width: 360px;
	}

	.contato-grid {
		flex-direction: column;
		align-items: stretch;
	}

	.whatsapp-button {
		width: 48px;
		height: 48px;
		bottom: 20px;
		right: 20px;
		padding: 8px;
	}
}

@media (max-width: 425px) {
	.home-cards {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 375px) {
	.logo img {
		height: 48px;
	}

	.tratamento-titulo {
		font-size: 16px;
	}
}

@keyframes fadeSlide {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
