/* ==========================================================================
   Clínica Viver — estilos do tema
   Cores e fontes vêm de variáveis CSS definidas no Personalizador
   (ver functions.php → cv_dynamic_css).
   ========================================================================== */

/* Fallback das variáveis (caso o CSS inline não carregue). */
:root {
	--cv-gold-light: #e7c878;
	--cv-gold: #c9a24b;
	--cv-dark: #0a0a0a;
	--cv-dark-alt: #141210;
	--cv-cream: #fdfcf9;
	--cv-heading: #1a1713;
	--cv-text: #4a463e;
	--cv-font-heading: 'Cormorant Garamond', serif;
	--cv-font-body: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	font-family: var(--cv-font-body);
	color: var(--cv-heading);
	background: var(--cv-cream);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
::selection { background: var(--cv-gold); color: var(--cv-dark); }

.cv-main { display: block; }

/* ---------- Utilitários ---------- */
.cv-eyebrow {
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--cv-gold);
	display: block;
}
.cv-eyebrow-gold { color: var(--cv-gold); }

.cv-on-dark { color: var(--cv-cream) !important; }

.cv-btn {
	display: inline-block;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .4px;
	padding: 15px 30px;
	border-radius: 40px;
	cursor: pointer;
	border: none;
	transition: transform .2s, box-shadow .2s, opacity .2s;
}
.cv-btn:hover { transform: translateY(-2px); }
.cv-btn-gold {
	background: linear-gradient(135deg, var(--cv-gold-light), var(--cv-gold));
	color: var(--cv-dark);
}
.cv-btn-gold:hover { box-shadow: 0 10px 26px rgba(201, 162, 75, .35); }
.cv-btn-outline {
	border: 1px solid rgba(201, 162, 75, .55);
	color: var(--cv-gold-light);
	font-weight: 500;
}
.cv-btn-lg { font-size: 16px; padding: 16px 38px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.cv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 10, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(201, 162, 75, .25);
}
.cv-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.cv-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.cv-logo img { width: 50px; height: 50px; border-radius: 50%; }
.cv-brand-name {
	font-family: var(--cv-font-heading);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--cv-gold-light);
}
.cv-nav { display: flex; align-items: center; gap: 34px; }
.cv-nav a {
	text-decoration: none;
	color: #f3efe6;
	font-size: 15px;
	letter-spacing: .3px;
	transition: color .2s;
}
.cv-nav a:hover { color: var(--cv-gold-light); }
.cv-header-cta { padding: 11px 22px; font-size: 14px; white-space: nowrap; }

/* Botão hambúrguer (escondido no desktop). */
.cv-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 1px solid rgba(201, 162, 75, .4);
	border-radius: 8px;
	cursor: pointer;
}
.cv-menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--cv-gold-light);
	transition: transform .25s, opacity .25s;
}
.cv-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.cv-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cv-mobile-nav { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.cv-hero-section { position: relative; background: var(--cv-dark); }
.cv-hero {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: stretch;
}
.cv-hero-content {
	padding: 84px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cv-hero-content .cv-eyebrow { margin-bottom: 22px; }
.cv-hero h1 {
	font-family: var(--cv-font-heading);
	font-weight: 600;
	font-size: 60px;
	line-height: 1.05;
	color: var(--cv-cream);
	letter-spacing: -.5px;
	max-width: 560px;
}
.cv-hero-text {
	margin-top: 26px;
	font-size: 18px;
	line-height: 1.7;
	color: #cfc7b6;
	font-weight: 300;
	max-width: 480px;
}
.cv-hero-buttons {
	margin-top: 38px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.cv-hero-media { position: relative; min-height: 520px; }
.cv-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cv-hero-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--cv-dark) 0%, rgba(10, 10, 10, .15) 35%, transparent 100%);
}

/* ==========================================================================
   FAIXA DE DESTAQUES
   ========================================================================== */
.cv-trust { background: var(--cv-dark-alt); }
.cv-trust-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 30px 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	justify-content: space-between;
	align-items: center;
}
.cv-stat { display: flex; flex-direction: column; gap: 4px; }
.cv-stat-num {
	font-family: var(--cv-font-heading);
	font-size: 34px;
	color: var(--cv-gold-light);
	font-weight: 600;
}
.cv-stat-label { font-size: 13px; color: #a39a86; letter-spacing: .5px; }

/* ==========================================================================
   SEÇÕES GENÉRICAS
   ========================================================================== */
.cv-section { padding: 96px 28px; }
.cv-section-cream { background: var(--cv-cream); }
.cv-section-dark { background: var(--cv-dark); }
.cv-section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}
.cv-section-head h2 {
	font-family: var(--cv-font-heading);
	font-weight: 600;
	font-size: 42px;
	line-height: 1.1;
	color: var(--cv-heading);
	margin-top: 14px;
}
.cv-section-dark .cv-section-head h2 { color: var(--cv-cream); }
.cv-section-sub {
	margin-top: 16px;
	font-size: 16.5px;
	line-height: 1.7;
	color: #a39a86;
	font-weight: 300;
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.cv-sobre {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 56px;
	align-items: center;
}
.cv-sobre-media { position: relative; }
.cv-sobre-media img {
	width: 100%;
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.cv-sobre-badge {
	position: absolute;
	bottom: -22px;
	left: -22px;
	background: var(--cv-dark);
	color: var(--cv-gold-light);
	padding: 18px 24px;
	border-radius: 4px;
	font-family: var(--cv-font-heading);
	font-size: 20px;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.cv-sobre-title {
	font-family: var(--cv-font-heading);
	font-weight: 600;
	font-size: 42px;
	line-height: 1.1;
	color: var(--cv-heading);
	margin-top: 14px;
}
.cv-sobre-paras {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--cv-text);
	font-weight: 300;
}
.cv-sobre-quote {
	margin-top: 24px;
	font-family: var(--cv-font-heading);
	font-style: italic;
	font-size: 21px;
	color: var(--cv-heading);
	border-left: 3px solid var(--cv-gold);
	padding-left: 18px;
}

/* ==========================================================================
   ESPECIALIDADES (cards)
   ========================================================================== */
.cv-cards {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.cv-card {
	background: #161412;
	border: 1px solid rgba(201, 162, 75, .22);
	border-radius: 6px;
	padding: 34px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform .25s, border-color .25s;
}
.cv-card:hover {
	transform: translateY(-6px);
	border-color: rgba(201, 162, 75, .6);
}
.cv-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cv-gold-light), var(--cv-gold));
	color: var(--cv-dark);
	font-family: var(--cv-font-heading);
	font-size: 22px;
	font-weight: 700;
}
.cv-card-area {
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cv-gold);
}
.cv-card-name {
	font-family: var(--cv-font-heading);
	font-size: 25px;
	font-weight: 600;
	color: var(--cv-cream);
	line-height: 1.2;
}
.cv-card-desc {
	font-size: 14.5px;
	color: #a39a86;
	font-weight: 300;
	line-height: 1.6;
}

/* ==========================================================================
   ESTRUTURA / GALERIA
   ========================================================================== */
.cv-gallery {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: 14px;
}
.cv-g-item { overflow: hidden; border-radius: 6px; }
.cv-g-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}
.cv-g-item:hover img { transform: scale(1.05); }
.cv-g-big { grid-column: span 2; grid-row: span 2; }
.cv-g-wide { grid-column: span 2; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cv-cta {
	padding: 80px 28px;
	background: linear-gradient(135deg, var(--cv-dark-alt), var(--cv-dark));
}
.cv-cta-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cv-cta-title {
	font-family: var(--cv-font-heading);
	font-weight: 600;
	font-size: 40px;
	line-height: 1.15;
	color: var(--cv-cream);
}
.cv-cta-inner p {
	margin-top: 16px;
	font-size: 17px;
	color: #cfc7b6;
	font-weight: 300;
}
.cv-cta-inner .cv-btn { margin-top: 32px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cv-footer {
	background: #070707;
	border-top: 1px solid rgba(201, 162, 75, .2);
	padding: 64px 28px 28px;
}
.cv-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
}
.cv-footer-logo { display: flex; align-items: center; gap: 14px; }
.cv-footer-logo img { width: 62px; height: 62px; border-radius: 50%; }
.cv-footer-name {
	font-family: var(--cv-font-heading);
	font-size: 24px;
	font-weight: 600;
	color: var(--cv-gold-light);
	display: block;
}
.cv-footer-sub {
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #7c745f;
	display: block;
}
.cv-footer-desc {
	margin-top: 22px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #9a9180;
	font-weight: 300;
	max-width: 340px;
}
.cv-footer-col h4 {
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cv-gold);
	margin-bottom: 18px;
}
.cv-footer-links { display: flex; flex-direction: column; gap: 14px; }
.cv-footer-links a {
	text-decoration: none;
	color: #d8d1c2;
	font-size: 15px;
	font-weight: 300;
	display: flex;
	align-items: center;
	gap: 9px;
	transition: color .2s;
}
.cv-footer-links a:hover { color: var(--cv-gold-light); }
.cv-ico { color: var(--cv-gold-light); }
.cv-footer-data {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	color: #9a9180;
	font-weight: 300;
	line-height: 1.6;
}
.cv-footer-label { color: #d8d1c2; }
.cv-footer-bottom {
	max-width: 1240px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .06);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
}
.cv-footer-copy { font-size: 13px; color: #6f6755; }
.cv-footer-social { display: flex; gap: 14px; }
.cv-footer-social a {
	text-decoration: none;
	color: #9a9180;
	font-size: 13px;
	transition: color .2s;
}
.cv-footer-social a:hover { color: var(--cv-gold-light); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 900px) {
	.cv-nav { display: none; }
	.cv-header-cta { display: none; }
	.cv-menu-toggle { display: flex; }

	.cv-mobile-nav {
		display: flex;
		flex-direction: column;
		gap: 4px;
		max-height: 0;
		overflow: hidden;
		background: rgba(10, 10, 10, .98);
		border-top: 1px solid rgba(201, 162, 75, .15);
		transition: max-height .3s ease;
	}
	.cv-mobile-nav.is-open { max-height: 360px; }
	.cv-mobile-nav a {
		text-decoration: none;
		color: #f3efe6;
		font-size: 16px;
		padding: 14px 28px;
	}
	.cv-mobile-nav a:last-child {
		margin: 12px 28px 18px;
		text-align: center;
		padding: 13px 22px;
	}

	.cv-hero { grid-template-columns: 1fr; }
	.cv-hero-content { padding: 60px 24px 48px; }
	.cv-hero-media { min-height: 320px; order: -1; }
	.cv-hero h1 { font-size: 44px; }

	.cv-sobre { grid-template-columns: 1fr; gap: 48px; }
	.cv-sobre-badge { left: 16px; bottom: -18px; }

	.cv-cards { grid-template-columns: 1fr; }

	.cv-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.cv-g-big, .cv-g-wide { grid-column: span 1; grid-row: span 1; }

	.cv-footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
	.cv-section { padding: 64px 22px; }
	.cv-hero h1 { font-size: 36px; }
	.cv-section-head h2, .cv-sobre-title { font-size: 32px; }
	.cv-gallery { grid-template-columns: 1fr; }
	.cv-trust-inner { gap: 18px; }
	.cv-stat { flex: 1 1 40%; }
}
