/*
 * Visual "Pro" — camada por cima de style.css. Só carrega com body.fws-pro.
 * Ideia: o arco do logo vira um goniômetro (régua de amplitude de movimento),
 * o único elemento ousado da página; o resto fica quieto e legível.
 */

.fws-pro {
	--pro-azul: #0848A8;
	--pro-noite: #0B2A55;
	--pro-ciano: #06758C;
	--pro-verde: #2FAE4E;
	--pro-nevoa: #EEF5F9;
	--pro-borda: #D5E3EE;
	--pro-texto-2: #3A5070;
	--pro-raio: 14px;
}

/* ---------- Tipografia: escala mais firme ---------- */
.fws-pro { font-size: 1.125rem; }
.fws-pro h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; }
.fws-pro h2 { font-weight: 500; letter-spacing: -0.018em; line-height: 1.15; }
.fws-pro h3 { font-weight: 500; letter-spacing: -0.01em; }
.fws-pro .wp-block-post-content p,
.fws-pro .wp-block-post-content li { line-height: 1.65; }

/* ---------- Botões ---------- */
.fws-pro .wp-block-button__link { border-radius: 8px; font-weight: 500; transition: background-color .15s, color .15s; }
.fws-pro .wp-block-button__link:hover { background-color: var(--pro-noite); }
.fws-pro .wp-block-post-content .wp-block-button__link { padding: 0.95rem 1.5rem; font-size: 1.0625rem; }
/* Ícone do WhatsApp nos botões cheios que abrem o WhatsApp */
.fws-pro .wp-block-button:not(.is-style-outline) > .wp-block-button__link[href*="wa.me"] { display: inline-flex; align-items: center; gap: 0.6rem; }
.fws-pro .wp-block-button:not(.is-style-outline) > .wp-block-button__link[href*="wa.me"]::before {
	content: ""; width: 1.15em; height: 1.15em; flex: none; background: currentColor;
	-webkit-mask: var(--pro-wa) center / contain no-repeat; mask: var(--pro-wa) center / contain no-repeat;
}
.fws-pro { --pro-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2s.2-1.1.1-1.2l-.4-.2Z'/%3E%3C/svg%3E"); }

/* ---------- Cabeçalho fixo e discreto ---------- */
@media (min-width: 782px) { .fws-pro header:has(.fws-header) { position: sticky; top: 0; z-index: 50; } }
.fws-pro .fws-header { background: #fff; }
.admin-bar.fws-pro header:has(.fws-header) { top: 32px; }

/* ---------- Início: hero com o goniômetro ---------- */
.fws-pro .fws-hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem); overflow: clip; }
.fws-pro .fws-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); max-width: 14ch; margin-bottom: 1.5rem; }
.fws-pro .fws-hero .fws-hero-texto > p { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 42ch; }

.fws-pro .fws-retrato { max-width: 500px; isolation: isolate; }
.fws-pro .fws-retrato img { padding: 34px; }
/* arco do logo, mais firme */
.fws-pro .fws-retrato::before {
	inset: 14px;
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
	        mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
/* régua do goniômetro: marcas a cada 10°, maiores a cada 30°, só no trecho do arco (SVG leve) */
.fws-pro .fws-retrato::after {
	content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27%3E%3Cline x1=%2732.90%27 y1=%2796.98%27 x2=%2734.13%27 y2=%2793.60%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2725.00%27 y1=%2793.30%27 x2=%2726.10%27 y2=%2791.40%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2717.86%27 y1=%2788.30%27 x2=%2719.27%27 y2=%2786.62%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2711.70%27 y1=%2782.14%27 x2=%2714.46%27 y2=%2779.83%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%276.70%27 y1=%2775.00%27 x2=%278.60%27 y2=%2773.90%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%273.02%27 y1=%2767.10%27 x2=%275.08%27 y2=%2766.35%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%270.76%27 y1=%2758.68%27 x2=%274.30%27 y2=%2758.06%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%270.00%27 y1=%2750.00%27 x2=%272.20%27 y2=%2750.00%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%270.76%27 y1=%2741.32%27 x2=%272.93%27 y2=%2741.70%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%273.02%27 y1=%2732.90%27 x2=%276.40%27 y2=%2734.13%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%276.70%27 y1=%2725.00%27 x2=%278.60%27 y2=%2726.10%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2711.70%27 y1=%2717.86%27 x2=%2713.38%27 y2=%2719.27%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2717.86%27 y1=%2711.70%27 x2=%2720.17%27 y2=%2714.46%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2725.00%27 y1=%276.70%27 x2=%2726.10%27 y2=%278.60%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2732.90%27 y1=%273.02%27 x2=%2733.65%27 y2=%275.08%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2741.32%27 y1=%270.76%27 x2=%2741.94%27 y2=%274.30%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2750.00%27 y1=%270.00%27 x2=%2750.00%27 y2=%272.20%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2758.68%27 y1=%270.76%27 x2=%2758.30%27 y2=%272.93%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2767.10%27 y1=%273.02%27 x2=%2765.87%27 y2=%276.40%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2775.00%27 y1=%276.70%27 x2=%2773.90%27 y2=%278.60%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2782.14%27 y1=%2711.70%27 x2=%2780.73%27 y2=%2713.38%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2788.30%27 y1=%2717.86%27 x2=%2785.54%27 y2=%2720.17%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2793.30%27 y1=%2725.00%27 x2=%2791.40%27 y2=%2726.10%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2796.98%27 y1=%2732.90%27 x2=%2794.92%27 y2=%2733.65%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2799.24%27 y1=%2741.32%27 x2=%2795.70%27 y2=%2741.94%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%27100.00%27 y1=%2750.00%27 x2=%2797.80%27 y2=%2750.00%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2799.24%27 y1=%2758.68%27 x2=%2797.07%27 y2=%2758.30%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2796.98%27 y1=%2767.10%27 x2=%2793.60%27 y2=%2765.87%27 stroke=%27%230B2A55%27 stroke-width=%270.55%27/%3E%3Cline x1=%2793.30%27 y1=%2775.00%27 x2=%2791.40%27 y2=%2773.90%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3Cline x1=%2788.30%27 y1=%2782.14%27 x2=%2786.62%27 y2=%2780.73%27 stroke=%27%239DB3CB%27 stroke-width=%270.4%27/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@media (max-width: 781px) {
	.fws-pro .fws-retrato { max-width: 320px; }
	.fws-pro .fws-retrato img { padding: 24px; }
	.fws-pro .fws-retrato::before { inset: 10px; }
	.fws-pro .fws-retrato::after { inset: -4px; }
}

/* Faixa de fatos: cada coluna com a cor do trecho do arco */
.fws-pro .fws-fatos { border: 0; background: var(--pro-nevoa); }
.fws-pro .fws-fatos dl > div { border-top: 3px solid var(--pro-azul); padding-top: 0.9rem; }
.fws-pro .fws-fatos dl > div:nth-child(2) { border-top-color: #08B0C8; }
.fws-pro .fws-fatos dl > div:nth-child(3) { border-top-color: var(--pro-verde); }
.fws-pro .fws-fatos dd { font-weight: 500; color: var(--pro-noite); }

/* Lista de serviços: a linha inteira é clicável */
.fws-pro .fws-servicos > li { position: relative; padding: 1.75rem 3.25rem 1.75rem 1rem; margin-inline: -1rem; border-radius: 10px; border-bottom-color: transparent; background-image: linear-gradient(var(--pro-borda), var(--pro-borda)); background-size: calc(100% - 2rem) 1px; background-position: 1rem 100%; background-repeat: no-repeat; transition: background-color .15s; }
.fws-pro .fws-servicos { border-top: 0; }
.fws-pro .fws-servicos h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.fws-pro .fws-servicos h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fws-pro .fws-servicos > li::after {
	content: ""; position: absolute; right: 1.1rem; top: 1.95rem; width: 1.25rem; height: 1.25rem; background: var(--pro-azul);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s;
}
.fws-pro .fws-servicos > li:hover { background-color: var(--pro-nevoa); }
.fws-pro .fws-servicos > li:hover::after { transform: translateX(3px); }
.fws-pro .fws-servicos > li:hover h3 a { text-decoration: none; color: var(--pro-azul); }
.fws-pro .fws-servicos > li:has(a:focus-visible) { outline: 3px solid #08B0C8; outline-offset: 2px; }
.fws-pro .fws-servicos h3 a:focus-visible { outline: 0; }

/* Fotos de procedimento: composição assimétrica */
.fws-pro .fws-procedimentos { gap: clamp(1.5rem, 3vw, 3rem) !important; align-items: start; margin-top: clamp(3rem, 6vw, 5rem) !important; }
.fws-pro .fws-procedimentos img { border-radius: var(--pro-raio); }
@media (min-width: 782px) {
	.fws-pro .fws-procedimentos > .wp-block-column:first-child { flex-basis: 58% !important; }
	.fws-pro .fws-procedimentos > .wp-block-column:first-child img { aspect-ratio: 5 / 4; }
	.fws-pro .fws-procedimentos > .wp-block-column:last-child { flex-basis: 42% !important; margin-top: clamp(3rem, 8vw, 7rem); }
	.fws-pro .fws-procedimentos > .wp-block-column:last-child img { aspect-ratio: 4 / 5; }
}

/* Na clínica ou em casa */
.fws-pro .fws-locais .wp-block-column { border-top-width: 3px; padding-top: 1.5rem; }
.fws-pro .fws-locais h3 { font-size: 1.5rem; }

/* Como começa: os passos ligados por uma linha (é uma sequência) */
@media (min-width: 782px) {
	.fws-pro .fws-passos { position: relative; }
	.fws-pro .fws-passos::before { content: ""; position: absolute; top: 1.4rem; left: 3rem; right: 33%; height: 2px; background: linear-gradient(90deg, var(--pro-azul), #08B0C8 55%, var(--pro-verde)); }
}
.fws-pro .fws-passos > li::before { position: relative; width: 2.8rem; height: 2.8rem; background: #fff; font-size: 1.125rem; }

/* Fotos de pessoas: cantos suaves */
.fws-pro .wp-block-post-content .wp-block-image:not(.fws-retrato) img { border-radius: var(--pro-raio); }

/* Perguntas frequentes */
.fws-pro .fws-faq summary { font-size: 1.25rem; padding-block: 0.2rem; }
.fws-pro .fws-faq summary:hover { color: var(--pro-azul); }

/* Faixa final de contato: azul-noite com o arco ao fundo */
.fws-pro .wp-block-post-content > .has-azul-background-color:last-child { background-color: var(--pro-noite) !important; position: relative; overflow: clip; }
.fws-pro .wp-block-post-content > .has-azul-background-color:last-child::after {
	content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -160px; top: 50%; translate: 0 -50%; border-radius: 50%;
	background: conic-gradient(from 200deg, #2FAE4E 0deg, #08B0C8 110deg, #3D7BD9 230deg, #3D7BD9 290deg, transparent 290deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
	        mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
	opacity: .55; pointer-events: none;
}
.fws-pro .wp-block-post-content > .has-azul-background-color:last-child > * { position: relative; z-index: 1; }
.fws-pro .has-azul-background-color .wp-block-button__link { background: #fff; color: var(--pro-noite); }
.fws-pro .has-azul-background-color .wp-block-button__link:hover { background: #DDF3F7; }

/* ---------- Páginas internas ---------- */
.fws-pro.page:not(.home) .wp-block-post-content > h1,
.fws-pro.single h1.wp-block-post-title { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.fws-pro .fws-lead { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.6; }
.fws-pro.page .wp-block-post-content > h2,
.fws-pro.single .wp-block-post-content > h2 { margin-top: 3.25rem; font-size: clamp(1.625rem, 2.6vw, 2rem); }
.fws-pro .wp-block-post-content > ul:not([class]) > li::marker,
.fws-pro .wp-block-post-content > ol:not([class]) > li::marker { color: var(--pro-ciano); font-weight: 600; }
.fws-pro .fws-cta-final { border-radius: var(--pro-raio); border-left: 4px solid #08B0C8; }
.fws-pro .fws-trilha { font-size: 0.9375rem; }
.fws-pro .fws-trilha a { text-underline-offset: 3px; }
.fws-pro .fws-revisao { display: flex; gap: .75rem; align-items: flex-start; }

/* Blog: lista limpa com data antes do título */
.fws-pro.blog .wp-block-post-template > li,
.fws-pro .wp-block-query .wp-block-post-template > li { border-bottom: 1px solid var(--pro-borda); padding-bottom: 1.75rem; }
.fws-pro .wp-block-query .wp-block-post-title a { color: var(--pro-noite); text-decoration: none; }
.fws-pro .wp-block-query .wp-block-post-title a:hover { color: var(--pro-azul); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.fws-pro .wp-block-query .wp-block-post-date { color: var(--pro-ciano); font-weight: 500; }

/* ---------- Rodapé ---------- */
.fws-pro .fws-footer a { text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.fws-pro .fws-footer a:hover { text-decoration-color: currentColor; }

/* Sem faixa branca entre o último bloco e o rodapé */
.fws-pro .wp-block-post-content > .alignfull:last-child,
.fws-pro .wp-block-post-content > .alignfull:has(+ :last-child:empty),
.fws-pro .wp-block-post-content > :last-child:empty { margin-block-end: 0 !important; }
.fws-pro .wp-block-post-content:has(> .alignfull:last-child) { margin-block-end: 0 !important; }

@media (max-width: 781px) {
	.fws-pro .fws-hero h1 { font-size: clamp(2.125rem, 9vw, 2.5rem); }
}

/* ---------- Aviso de cookies: cores da marca e compacto no celular ---------- */
.fws-pro #wpconsent-root {
	--wpconsent-background: #0B2A55 !important;
	--wpconsent-accept-bg: #FFFFFF !important; --wpconsent-accept-color: #0B2A55 !important;
	--wpconsent-cancel-bg: #1D3F70 !important; --wpconsent-cancel-color: #FFFFFF !important;
	--wpconsent-preferences-bg: transparent !important; --wpconsent-preferences-color: #FFFFFF !important;
	--wpconsent-font-size: 15px !important;
}
.fws-pro #wpconsent-container::part(wpconsent-banner) { font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif; box-shadow: 0 -1px 0 rgba(255,255,255,.12); }
.fws-pro #wpconsent-container::part(wpconsent-button-accept),
.fws-pro #wpconsent-container::part(wpconsent-button-cancel),
.fws-pro #wpconsent-container::part(wpconsent-button-preferences) { font-family: Lexend, system-ui, sans-serif; font-weight: 500; border-radius: 8px; min-height: 44px; }
.fws-pro #wpconsent-container::part(wpconsent-button-preferences) { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) {
	.fws-pro #wpconsent-root { --wpconsent-font-size: 14px !important; }
	.fws-pro #wpconsent-container::part(wpconsent-banner) { padding: 14px 16px 8px; }
	.fws-pro #wpconsent-container::part(wpconsent-banner-body) { text-align: left; margin-bottom: 10px; line-height: 1.45; }
	.fws-pro #wpconsent-container::part(wpconsent-banner-footer) { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.fws-pro #wpconsent-container::part(wpconsent-button-accept),
	.fws-pro #wpconsent-container::part(wpconsent-button-cancel),
	.fws-pro #wpconsent-container::part(wpconsent-button-preferences) { width: 100%; margin: 0; padding: 10px 4px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.fws-pro .fws-servicos > li, .fws-pro .fws-servicos > li::after { transition: none; }
}
