/* Páginas de serviço em blocos (templates/archives/servico/blocos.php) */
.yh-sv {
	--sv-teal: #6eb3b3;
	--sv-teal-dark: #2f6f6f;
	--sv-teal-soft: #eef6f6;
	--sv-gold: #7a6b4f;
	--sv-ink: #2f3b3b;
	--sv-muted: #5d6868;
	--sv-line: #e3eaea;
	--sv-radius: 14px;
	color: var(--sv-ink);
}
.yh-sv h1, .yh-sv h2, .yh-sv h3 { color: var(--sv-ink); }
.yh-sv-img { display: block; width: 100%; height: auto; border-radius: var(--sv-radius); }
.yh-sv-eyebrow {
	display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--sv-teal-dark);
}
.yh-sv-section { padding: 72px 0; }
.yh-sv-section + .yh-sv-section { padding-top: 0; }
.yh-sv-head { max-width: 720px; margin-bottom: 32px; }
.yh-sv-head h2, .yh-sv-texto h2, .yh-sv-quem h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.2; margin-bottom: 12px; }
.yh-sv-head p { color: var(--sv-muted); font-size: 1.05rem; margin: 0; }
.yh-sv-link { font-weight: 700; color: var(--sv-teal-dark); text-decoration: none; }
.yh-sv-link:hover { text-decoration: underline; color: var(--sv-teal-dark); }
.yh-sv-wa .bi { margin-right: 6px; }

/* Cabeçalho sempre no estado fixo (fundo teal) sobre o hero claro */
body.yh-sv-pagina header.fixed_header { background-color: #6eb3b3; border-bottom: 1px solid #d9e1e6; }
body.yh-sv-pagina header.fixed_header .logo_normal { display: none; }
body.yh-sv-pagina header.fixed_header .logo_sticky { display: inline-block; }

/* 1 · Hero */
.yh-sv-hero { padding: 150px 0 72px; background: linear-gradient(180deg, var(--sv-teal-soft), #fff); }
.yh-sv-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.1; margin-bottom: 18px; }
.yh-sv-lead { font-size: 1.15rem; line-height: 1.6; color: var(--sv-muted); margin-bottom: 28px; }
.yh-sv-hero__foto { margin: 0; }
.yh-sv-hero__foto img { aspect-ratio: 4 / 5; object-fit: cover; max-height: 620px; }

/* 2 e 5 · Texto + imagem */
.yh-sv-texto__conteudo p { line-height: 1.75; }
.yh-sv-texto__img { margin: 0; }
.yh-sv-texto__img img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 992px) {
	.yh-sv-texto--invertido .row { flex-direction: row-reverse; }
}

/* 3 · Para quem é */
.yh-sv-paraquem { background: var(--sv-teal-soft); padding-top: 72px !important; }
.yh-sv-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .yh-sv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .yh-sv-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.yh-sv-card { background: #fff; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 18px; }
.yh-sv-card h3 { font-size: 1rem; margin: 0 0 6px; }
.yh-sv-card p { font-size: .92rem; color: var(--sv-muted); margin: 0; line-height: 1.5; }
.yh-sv-aviso { margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--sv-gold); background: #fff; border-radius: 8px; font-size: .95rem; }

/* 4 · O que a consulta inclui */
.yh-sv-inclui { padding-top: 72px !important; }
.yh-sv-icones { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .yh-sv-icones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yh-sv-icones .bi { font-size: 30px; color: var(--sv-teal-dark); display: inline-block; margin-bottom: 10px; }
.yh-sv-icones h3 { font-size: 1.05rem; margin: 0 0 6px; }
.yh-sv-icones p { font-size: .95rem; color: var(--sv-muted); margin: 0; line-height: 1.55; }

/* 6 · Como funciona (vertical no celular, horizontal no desktop) */
.yh-sv-passos { background: #faf8f4; padding-top: 72px !important; }
.yh-sv-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: passo; }
.yh-sv-timeline li { position: relative; padding-left: 58px; }
.yh-sv-timeline__num {
	position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
	background: var(--sv-teal-dark); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.yh-sv-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: -20px; width: 2px; background: var(--sv-line); }
.yh-sv-timeline h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.yh-sv-timeline p { margin: 0; color: var(--sv-muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 992px) {
	.yh-sv-timeline { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
	.yh-sv-timeline li { padding-left: 0; padding-top: 58px; }
	.yh-sv-timeline li:not(:last-child)::after { left: 50px; right: -18px; top: 20px; bottom: auto; width: auto; height: 2px; }
}
.yh-sv-dica { margin: 32px 0 0; padding: 16px 18px; background: #fff; border-radius: var(--sv-radius); border: 1px solid var(--sv-line); }
.yh-sv-dica .bi { color: var(--sv-gold); margin-right: 4px; }

/* 7 · Quem atende */
.yh-sv-quem { padding-top: 72px !important; }
.yh-sv-quem__box { display: grid; gap: 28px; align-items: center; border: 1px solid var(--sv-line); border-radius: 20px; padding: 24px; }
@media (min-width: 768px) { .yh-sv-quem__box { grid-template-columns: 280px 1fr; padding: 32px; } }
.yh-sv-quem__foto { margin: 0; }
.yh-sv-quem__foto img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--sv-radius); }
.yh-sv-quem__esp { font-size: 1.05rem; margin: 0 0 4px; }
.yh-sv-quem__reg { font-weight: 700; color: var(--sv-teal-dark); margin: 0 0 14px; }
.yh-sv-quem__formacao { margin: 0 0 16px; padding-left: 18px; color: var(--sv-muted); }
.yh-sv-quem__formacao li { margin-bottom: 4px; }

/* 8 · Faixa de CTA (texto branco sobre #2f6f6f: contraste 5,8:1) */
.yh-sv-cta { background: var(--sv-teal-dark); color: #fff; text-align: center; padding: 64px 0; }
.yh-sv-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 10px; }
.yh-sv-cta p { color: #fff; margin-bottom: 24px; font-size: 1.05rem; }
.yh-sv .yh-sv-btn-claro, .yh-sv .yh-sv-btn-claro:hover { background: #fff; color: var(--sv-teal-dark); }

/* 9 · Onde fica */
.yh-sv-onde { padding-top: 72px !important; }
.yh-sv-unidades { display: grid; gap: 20px; }
@media (min-width: 768px) { .yh-sv-unidades { grid-template-columns: 1fr 1fr; } }
.yh-sv-unidade { border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 22px; }
.yh-sv-unidade h3 { font-size: 1.1rem; margin-bottom: 12px; }
.yh-sv-unidade p { margin-bottom: 8px; line-height: 1.5; }
.yh-sv-unidade .bi { color: var(--sv-teal-dark); margin-right: 4px; }
.yh-sv-aviso-convenio { margin: 20px 0 0; color: var(--sv-muted); }

/* 10 · Perguntas frequentes */
.yh-sv-acordeao details { border-bottom: 1px solid var(--sv-line); }
.yh-sv-acordeao summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; }
.yh-sv-acordeao summary::-webkit-details-marker { display: none; }
.yh-sv-acordeao summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; color: var(--sv-teal-dark); line-height: 1; }
.yh-sv-acordeao details[open] summary::after { content: "−"; }
.yh-sv-acordeao summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.yh-sv-acordeao summary:focus-visible { outline: 2px solid var(--sv-teal-dark); outline-offset: 2px; }
.yh-sv-acordeao__resp { padding: 0 0 18px; color: var(--sv-muted); line-height: 1.7; }
.yh-sv-acordeao__resp p:last-child { margin-bottom: 0; }

/* 11 · Leia também */
.yh-sv-leia { padding-top: 72px !important; }
.yh-sv-leia__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .yh-sv-leia__lista { grid-template-columns: repeat(3, 1fr); } }
.yh-sv-leia__lista a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 100%;
	padding: 20px; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); color: var(--sv-ink); font-weight: 700; text-decoration: none;
}
.yh-sv-leia__lista a:hover { border-color: var(--sv-teal); color: var(--sv-teal-dark); }

/* 12 · Rodapé de responsabilidade */
.yh-sv-responsabilidade { padding: 28px 0 8px; }
.yh-sv-responsabilidade p { font-size: .88rem; color: var(--sv-muted); margin: 0; }

/* Barra fixa do WhatsApp (só celular): aparece depois do hero e some na faixa de CTA */
.yh-sv-barra { display: none; }
@media (max-width: 991px) {
	.yh-sv-barra {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
		transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
	}
	.yh-sv-barra.is-visivel { transform: none; visibility: visible; }
	.yh-sv-barra__btn { display: block; width: 100%; text-align: center; }
	/* O botão flutuante do site duplicaria a barra */
	body.yh-sv-pagina .wq-whatsapp_btn { display: none; }
	.yh-sv-hero { padding-top: 120px; }
	.yh-sv-section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { .yh-sv-barra { transition: none; } }

/* Foto do hero no celular: recorte 4:5 limitado a 60% da tela (é o LCP) */
@media (max-width: 991px) {
	.yh-sv-hero__foto img { aspect-ratio: 4 / 5; max-height: 60vh; width: 100%; object-fit: cover; object-position: center 20%; }
}

/* Segundo profissional no bloco 7 (card menor) */
.yh-sv-quem__box--secundario { margin-top: 20px; padding: 20px; }
@media (min-width: 768px) { .yh-sv-quem__box--secundario { grid-template-columns: 140px 1fr; padding: 24px 32px; } }
.yh-sv-quem__box--secundario h3 { font-size: 1.2rem; margin-bottom: 4px; }

/* Ícone de tubo de ensaio (o Bootstrap Icons não tem): máscara SVG na cor do texto */
.bi-yh-tubo::before {
	content: ""; width: 1em; height: 1em; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 1.5h7'/%3E%3Cpath d='M5.75 1.5v10.25a2.25 2.25 0 0 0 4.5 0V1.5'/%3E%3Cpath d='M5.75 8h4.5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 1.5h7'/%3E%3Cpath d='M5.75 1.5v10.25a2.25 2.25 0 0 0 4.5 0V1.5'/%3E%3Cpath d='M5.75 8h4.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 767px) { .yh-sv-quem__box--secundario .yh-sv-quem__foto { max-width: 120px; } }
