/* ==========================================================================
   Fisiocenter — CSS principal do tema
   Sem framework, sem page builder. Tokens no :root, componentes prefixados
   fc- para nunca colidir com nome de classe de plugin.
   ========================================================================== */

:root {
	/* Paleta ajustada à logo real da clínica (verde #00823c + vermelho #e2001a),
	   recebida depois da primeira versão do tema — antes disso, a paleta era
	   um placeholder próprio (azul petróleo + verde-água) sem logo pra seguir.
	   Os nomes das variáveis ficaram do jeito antigo de propósito: são usados
	   em dezenas de regras no arquivo inteiro, e trocar só o valor aqui já
	   reaplica a nova cor no site inteiro sem precisar caçar cada seletor. */
	--fc-azul-petroleo: #0d4326;        /* verde escuro da marca — fundos escuros, texto de título */
	--fc-azul-petroleo-escuro: #082e1a; /* mais escuro ainda — rodapé */
	--fc-verde-agua: #00823c;           /* verde vivo, tirado direto da logo — botões, links, destaque */
	--fc-verde-agua-claro: #e2f3e8;     /* tom claro do verde da logo — fundos suaves */
	--fc-vermelho-marca: #e2001a;       /* vermelho da logo — só pra pontos de destaque, nunca em área grande */
	--fc-creme: #f7f3ec;
	--fc-branco: #ffffff;
	--fc-texto: #1c2b20;
	--fc-texto-suave: #566058;
	--fc-borda: #e0ddd0;

	--fc-fonte-titulo: 'Fraunces', Georgia, 'Times New Roman', serif;
	--fc-fonte-corpo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--fc-raio: 14px;
	--fc-raio-pequeno: 8px;
	--fc-sombra: 0 12px 30px -14px rgba(13, 67, 38, 0.25);
	--fc-largura-max: 1180px;
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--fc-fonte-corpo);
	color: var(--fc-texto);
	background: var(--fc-branco);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
	font-family: var(--fc-fonte-titulo);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--fc-azul-petroleo);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.fc-sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fc-pular-conteudo {
	position: absolute; left: -999px; top: 0; background: var(--fc-azul-petroleo);
	color: #fff; padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.fc-pular-conteudo:focus { left: 0; }

.fc-container {
	max-width: var(--fc-largura-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Botões ---------- */
.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fc-btn--primario { background: var(--fc-verde-agua); color: #fff; }
.fc-btn--primario:hover { background: #268b7d; transform: translateY(-1px); box-shadow: var(--fc-sombra); }
.fc-btn--secundario { background: var(--fc-azul-petroleo); color: #fff; }
.fc-btn--secundario:hover { background: var(--fc-azul-petroleo-escuro); }
.fc-btn--fantasma { border-color: var(--fc-azul-petroleo); color: var(--fc-azul-petroleo); background: transparent; }
.fc-btn--fantasma:hover { background: var(--fc-azul-petroleo); color: #fff; }
.fc-btn--grande { padding: 16px 32px; font-size: 1rem; }

/* ---------- Cabeçalho ---------- */
.fc-cabecalho { position: sticky; top: 0; z-index: 100; background: var(--fc-branco); box-shadow: 0 1px 0 var(--fc-borda); }
.fc-cabecalho__faixa { background: var(--fc-azul-petroleo); color: #fff; font-size: 0.85rem; }
.fc-cabecalho__faixa-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px; flex-wrap: wrap; }
.fc-cabecalho__contato { font-weight: 600; }
.fc-cabecalho__redes { display: flex; gap: 14px; }
.fc-cabecalho__redes a:hover { text-decoration: underline; }

.fc-cabecalho__principal { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.fc-logo { display: flex; align-items: center; }
.fc-logo__texto { font-family: var(--fc-fonte-titulo); font-size: 1.5rem; font-weight: 700; color: var(--fc-azul-petroleo); }
.fc-logo__texto--rodape { color: #fff; font-size: 1.4rem; display: inline-block; margin-bottom: 8px; }

/* Teto de tamanho pra logo, direto no CSS — não depende só do tamanho
   configurado no WordPress, então continua controlado mesmo se um dia
   subirem um arquivo de logo com outra resolução.
   ".custom-logo-link" é o link que o próprio WordPress gera ao redor da
   imagem (via the_custom_logo()) — não é uma classe nossa, mas precisa de
   display:block pra não herdar o comportamento inline padrão de link. */
.fc-logo .custom-logo-link { display: block; line-height: 0; }
.fc-logo img { max-height: 56px; width: auto; height: auto; display: block; }
@media (max-width: 760px) {
	.fc-logo img { max-height: 42px; }
}

.fc-nav { display: flex; align-items: center; gap: 28px; }
.fc-nav__lista { display: flex; gap: 24px; font-weight: 600; }
.fc-nav__lista a:hover { color: var(--fc-verde-agua); }
.fc-nav__cta { white-space: nowrap; }

.fc-menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 42px; height: 42px; border: none; background: transparent; cursor: pointer;
}
.fc-menu-toggle span { display: block; height: 2px; background: var(--fc-azul-petroleo); border-radius: 2px; }

/* Botão flutuante WhatsApp */
.fc-whatsapp-flutuante {
	position: fixed; bottom: 22px; right: 22px; z-index: 200;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
	animation: fc-pulso 2.8s ease-in-out infinite;
}
@keyframes fc-pulso {
	0%, 100% { box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.45); }
	50%      { box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4), 0 0 0 9px rgba(37,211,102,0); }
}
.fc-whatsapp-flutuante svg { width: 28px; height: 28px; fill: #fff; }
.fc-whatsapp-flutuante:hover { transform: scale(1.06); animation-play-state: paused; }

/* ---------- Seções genéricas ---------- */
.fc-secao { padding: 72px 0; }
.fc-secao--clara { background: var(--fc-creme); }
.fc-secao--escura { background: var(--fc-azul-petroleo); color: #fff; }
.fc-secao--escura h2, .fc-secao--escura h3 { color: #fff; }
.fc-secao--escura p { color: rgba(255,255,255,0.85); }
.fc-secao--cta { background: var(--fc-verde-agua-claro); text-align: center; }
.fc-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.8rem; color: var(--fc-verde-agua); margin-bottom: 12px; }
.fc-nota { color: var(--fc-texto-suave); font-size: 0.9rem; }
.fc-centralizado { text-align: center; margin-top: 32px; }

/* ---------- Hero ---------- */
.fc-hero { padding: 80px 0 64px; background: linear-gradient(180deg, var(--fc-creme) 0%, var(--fc-branco) 100%); overflow: hidden; }
.fc-hero__grade { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.fc-hero__lead { font-size: 1.1rem; color: var(--fc-texto-suave); max-width: 46ch; }
.fc-hero__acoes { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.fc-hero__visual { display: flex; justify-content: center; position: relative; }
.fc-hero__visual::after {
	content: ""; position: absolute; inset: 9% 9% 9% 9%; z-index: -1;
	border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%;
	border: 2px solid var(--fc-verde-agua); opacity: 0.35;
}
.fc-hero__forma {
	width: 82%; aspect-ratio: 4/5; object-fit: cover;
	border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%;
	position: relative; z-index: 2;
}

/* ---------- Entrada do hero: um único momento orquestrado no carregamento,
   não animação repetida em cada seção da página (ver princípios de motion) ---------- */
@keyframes fc-sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fc-forma-entra { from { opacity: 0; transform: scale(0.85) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
.fc-hero__texto > * { opacity: 0; animation: fc-sobe 0.7s ease-out forwards; }
.fc-hero__texto .fc-eyebrow     { animation-delay: 0.05s; }
.fc-hero__texto h1              { animation-delay: 0.16s; }
.fc-hero__texto .fc-hero__lead  { animation-delay: 0.32s; }
.fc-hero__texto .fc-hero__acoes { animation-delay: 0.48s; }
.fc-hero__forma { animation: fc-forma-entra 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }

@media (prefers-reduced-motion: reduce) {
	.fc-hero__texto > *, .fc-hero__forma { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Apresentação / texto institucional ---------- */
.fc-apresentacao, .fc-texto-institucional { max-width: 74ch; }
.fc-texto-institucional p { font-size: 1.05rem; }

/* ---------- Ícones (categorias e benefícios) ---------- */
.fc-icone-categoria { display: block; width: 72px; height: 72px; color: var(--fc-verde-agua); flex-shrink: 0; }
.fc-icone-categoria svg { width: 100%; height: 100%; }
.fc-topo-categoria { display: flex; align-items: center; gap: 24px; }
.fc-categoria-foto { width: 100%; height: clamp(220px, 32vw, 420px); overflow: hidden; }
.fc-categoria-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-icone-card { display: block; width: 44px; height: 44px; color: var(--fc-verde-agua); margin-bottom: 14px; }
.fc-icone-card svg { width: 100%; height: 100%; }

/* Ícones "chegam" (giro + escala) quando entram na tela ao rolar a página —
   um dispositivo visual único e consistente, aplicado só aos ícones, em vez
   de animação repetida em cada seção. Ativado via classe pelo JS. */
.fc-icone-categoria, .fc-icone-card {
	opacity: 0; transform: scale(0.6) rotate(-12deg);
	transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fc-icone-categoria.fc-em-vista, .fc-icone-card.fc-em-vista {
	opacity: 1; transform: scale(1) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
	.fc-icone-categoria, .fc-icone-card { opacity: 1; transform: none; transition: none; }
}

.fc-icone-check { display: inline-flex; width: 18px; height: 18px; color: var(--fc-verde-agua); flex-shrink: 0; }
.fc-icone-check svg { width: 100%; height: 100%; }

/* ---------- Cards de tratamento ---------- */
.fc-grade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.fc-card-tratamento {
	position: relative; display: block; background: var(--fc-branco);
	border: 1px solid var(--fc-borda); border-radius: var(--fc-raio);
	overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fc-card-tratamento:hover { transform: translateY(-4px); box-shadow: var(--fc-sombra); border-color: var(--fc-verde-agua); }
.fc-card-tratamento__foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.fc-card-tratamento__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fc-card-tratamento:hover .fc-card-tratamento__foto img { transform: scale(1.05); }
.fc-badge--sobre-foto { position: absolute; top: 14px; right: 14px; }
.fc-card-tratamento__corpo { padding: 24px; }
.fc-card-tratamento h2, .fc-card-tratamento h3 { margin-bottom: 8px; }
.fc-lista-itens { margin-top: 12px; }
.fc-lista-itens li { padding: 4px 0; color: var(--fc-texto-suave); font-size: 0.92rem; }
.fc-lista-itens--grande li { font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid var(--fc-borda); }

.fc-badge {
	position: absolute; top: -10px; right: 18px; background: var(--fc-vermelho-marca); color: #fff;
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 4px 12px; border-radius: 999px;
}
.fc-badge--inline { position: static; display: inline-block; margin-left: 0; margin-bottom: 10px; }

/* Cards de técnica/tratamento individual, dentro da página de categoria */
.fc-grade-tecnicas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 8px; }
.fc-tecnica { position: relative; background: var(--fc-branco); border: 1px solid var(--fc-borda); border-radius: var(--fc-raio); padding: 26px; }
.fc-tecnica h3 { font-size: 1.1rem; margin-bottom: 8px; }
.fc-tecnica p { color: var(--fc-texto-suave); margin: 0 0 14px; font-size: 0.96rem; }

.fc-lista-beneficios { display: grid; gap: 8px; }
.fc-lista-beneficios li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--fc-texto); }
.fc-lista-beneficios .fc-icone-check { margin-top: 2px; }

.fc-categoria-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.fc-indicado {
	background: var(--fc-branco); border: 1px solid var(--fc-borda); border-radius: var(--fc-raio);
	padding: 24px 28px;
}
.fc-indicado h2 { font-size: 1.1rem; margin-bottom: 14px; }
.fc-indicado ul { display: grid; gap: 10px; }
.fc-indicado li {
	padding-left: 22px; position: relative; color: var(--fc-texto-suave); font-size: 0.95rem;
}
.fc-indicado li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
	border-radius: 50%; background: var(--fc-verde-agua);
}

/* ---------- Avaliações do Google ---------- */
.fc-google-resumo { text-align: center; font-weight: 600; color: var(--fc-azul-petroleo); margin-top: -8px; margin-bottom: 32px; }
.fc-google-estrelas, .fc-avaliacao__estrelas { color: #f5a623; letter-spacing: 1px; }
.fc-grade-avaliacoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fc-avaliacao { background: var(--fc-creme); border-radius: var(--fc-raio); padding: 24px; }
.fc-avaliacao p { color: var(--fc-texto); font-size: 0.95rem; margin: 10px 0; }
.fc-avaliacao__cabecalho { display: flex; align-items: center; gap: 12px; }
.fc-avaliacao__foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fc-avaliacao__cabecalho div { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Diferenciais ---------- */
.fc-grade-diferenciais { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.fc-diferencial h3 { font-family: var(--fc-fonte-corpo); font-size: 1.05rem; }

/* ---------- Placeholder (estrutura/depoimentos pendentes) ---------- */
.fc-estrutura__placeholder {
	border: 2px dashed var(--fc-borda); border-radius: var(--fc-raio);
	padding: 48px 24px; text-align: center; color: var(--fc-texto-suave);
	background: var(--fc-branco);
}

/* ---------- Equipe ---------- */
.fc-grade-equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 32px; }
.fc-grade-equipe--preview { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fc-pessoa { text-align: center; }
.fc-pessoa__foto {
	width: 100%; aspect-ratio: 4/5; object-fit: cover;
	border-radius: var(--fc-raio); margin-bottom: 16px;
}
.fc-pessoa__avatar {
	display: flex; align-items: center; justify-content: center;
	width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%;
	background: var(--fc-verde-agua-claro); color: var(--fc-azul-petroleo);
	font-family: var(--fc-fonte-titulo); font-size: 2rem; font-weight: 700;
}
.fc-pessoa h2, .fc-pessoa h3 { margin-bottom: 4px; }
.fc-pessoa p { color: var(--fc-texto-suave); margin: 0; }

/* ---------- Convênios ---------- */
.fc-lista-convenios { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; }
.fc-convenio {
	background: var(--fc-branco); border: 1px solid var(--fc-borda); border-radius: var(--fc-raio-pequeno);
	padding: 18px; display: flex; align-items: center; justify-content: center;
	height: 110px; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.fc-convenio:hover { box-shadow: var(--fc-sombra); transform: translateY(-2px); }
.fc-convenio img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fc-convenio--grande { height: 140px; padding: 24px; }

/* ---------- CTA ---------- */
.fc-cta, .fc-cta-inline { text-align: center; }
.fc-cta h2 { margin-bottom: 8px; }
.fc-cta p { color: var(--fc-texto-suave); margin-bottom: 24px; }

/* ---------- Localização / mapa ---------- */
.fc-mapa { margin-top: 24px; border-radius: var(--fc-raio); overflow: hidden; box-shadow: var(--fc-sombra); }
.fc-mapa iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Contato ---------- */
.fc-contato-grade { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.fc-form { display: grid; gap: 6px; }
.fc-form label { font-weight: 600; margin-top: 10px; }
.fc-form input, .fc-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--fc-borda); border-radius: var(--fc-raio-pequeno);
	font-family: var(--fc-fonte-corpo); font-size: 1rem; background: var(--fc-branco);
}
.fc-form input:focus, .fc-form textarea:focus { outline: 2px solid var(--fc-verde-agua); border-color: var(--fc-verde-agua); }
.fc-form button { margin-top: 16px; justify-self: start; }
.fc-campo-oculto { position: absolute; left: -9999px; }
.fc-aviso { padding: 14px 18px; border-radius: var(--fc-raio-pequeno); margin-bottom: 20px; font-weight: 600; }
.fc-aviso--sucesso { background: #e3f3ea; color: #1c6b3f; }
.fc-aviso--erro { background: #fbe6e4; color: #a3312a; }
.fc-nota--form { margin-top: 18px; }
.fc-nota--form a { color: var(--fc-verde-agua); font-weight: 700; }

/* ---------- Página genérica (topo) ---------- */
.fc-pagina-topo { padding: 64px 0 32px; background: var(--fc-creme); }

/* ---------- Rodapé ---------- */
.fc-rodape { background: var(--fc-azul-petroleo-escuro); color: rgba(255,255,255,0.85); padding-top: 56px; }
.fc-rodape__grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.fc-rodape__titulo { color: #fff; font-family: var(--fc-fonte-corpo); font-size: 1rem; margin-bottom: 14px; }
.fc-rodape__coluna a:hover { text-decoration: underline; }
.fc-rodape__redes { display: flex; gap: 14px; margin-top: 12px; }
.fc-rodape__horario li { margin-bottom: 6px; }
.fc-rodape__nav { display: grid; gap: 8px; }
.fc-rodape__base { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; font-size: 0.85rem; }
.fc-rodape__base-linha { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
	.fc-hero__grade { grid-template-columns: 1fr; }
	.fc-hero__visual { order: -1; max-width: 320px; margin: 0 auto; }
	.fc-contato-grade { grid-template-columns: 1fr; }
	.fc-rodape__grade { grid-template-columns: 1fr 1fr; }
	.fc-categoria-intro { grid-template-columns: 1fr; }
	.fc-topo-categoria { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 760px) {
	.fc-cabecalho__faixa-linha { justify-content: center; text-align: center; }
	.fc-menu-toggle { display: flex; }
	.fc-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--fc-branco);
		flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
		box-shadow: 0 12px 20px -12px rgba(0,0,0,0.2); display: none;
	}
	.fc-nav.fc-nav--aberto { display: flex; }
	.fc-nav__lista { flex-direction: column; gap: 0; }
	.fc-nav__lista a { display: block; padding: 12px 0; border-bottom: 1px solid var(--fc-borda); }
	.fc-nav__cta { margin-top: 16px; }
	.fc-rodape__grade { grid-template-columns: 1fr; }
	.fc-rodape__base-linha { flex-direction: column; text-align: center; }
}
