/*
Theme Name:   FContábil
Theme URI:    https://fcontabil.com.br
Author:       5 Lobos
Author URI:   https://5lobos.com
Description:  Tema de blocos (FSE) do escritório FContábil. Implementa o layout aprovado (v2 — Azul) com tokens de design em theme.json, para edição visual completa via Gutenberg + Spectra.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  fcontabil
Tags:         business, blog, block-patterns, full-site-editing, wide-blocks, custom-colors, custom-logo
*/

/* ═══════════════════════════════════════════════════════════════
   Todas as cores/fontes vêm dos presets do theme.json.
   Nunca escreva um hex aqui — altere o theme.json ou o Editor de
   Site, e estes componentes acompanham automaticamente.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --fc-blue:        var(--wp--preset--color--azul);
  --fc-blue-dark:   var(--wp--preset--color--azul-escuro);
  --fc-blue-light:  var(--wp--preset--color--azul-claro);
  --fc-blue-pale:   var(--wp--preset--color--azul-palido);
  --fc-green:       var(--wp--preset--color--verde);
  --fc-dark:        var(--wp--preset--color--grafite);
  --fc-border:      var(--wp--preset--color--borda);
  --fc-muted:       var(--wp--preset--color--texto-suave);
  --fc-strong:      var(--wp--preset--color--texto-forte);
  --fc-white:       var(--wp--preset--color--branco);
  --fc-radius:      var(--wp--custom--radius--base);
  --fc-radius-lg:   var(--wp--custom--radius--lg);
  --fc-shadow-sm:   var(--wp--preset--shadow--sm);
  --fc-shadow-md:   var(--wp--preset--shadow--md);
  --fc-shadow-lg:   var(--wp--preset--shadow--lg);
  --fc-ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ─── BARRA SUPERIOR ─────────────────────────────────────────── */
.fc-topbar {
  font-size: 0.875rem;
  line-height: 1.4;
}
.fc-topbar a { color: rgba(255,255,255,0.78); text-decoration: none; font-weight: 500; transition: color 0.2s var(--fc-ease); }
.fc-topbar a:hover { color: #4ADE80; text-decoration: none; }
.fc-topbar p { margin: 0; color: rgba(255,255,255,0.78); }

/* ─── CABEÇALHO ──────────────────────────────────────────────── */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-sm);
}
.fc-header .wp-block-site-logo img { height: 44px; width: auto; }
.fc-header .wp-block-navigation { font-size: 0.9375rem; font-weight: 500; }
.fc-header .wp-block-navigation a { color: var(--wp--preset--color--texto-suave); text-decoration: none; transition: color 0.2s var(--fc-ease); }
.fc-header .wp-block-navigation a:hover,
.fc-header .wp-block-navigation .current-menu-item > a { color: var(--fc-blue); }

/* ─── ROTULO DE SEÇÃO (traço + texto maiúsculo) ──────────────── */
.fc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fc-blue);
  margin-bottom: 0.75rem !important;
}
.fc-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
.has-text-align-center .fc-eyebrow,
.fc-eyebrow.has-text-align-center { justify-content: center; }

/* ─── HERO ───────────────────────────────────────────────────── */
.fc-hero { position: relative; overflow: hidden; }
/* ::before = malha sutil · ::after = brilhos radiais azul/verde.
   Ambos são decorativos e não interferem no gradiente escolhido no editor. */
.fc-hero::before,
.fc-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fc-hero::before {
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 50px 50px;
}
.fc-hero::after {
  background-image:
    radial-gradient(circle at 112% -12%, rgba(37,99,235,0.22) 0%, transparent 46%),
    radial-gradient(circle at -12% 112%, rgba(22,163,74,0.13) 0%, transparent 46%);
}
.fc-hero > * { position: relative; z-index: 2; }

/* Palavra destacada no título do hero (formato "Realce" do editor) */
.fc-hero h1 mark.has-verde-color {
  background: linear-gradient(135deg, var(--wp--preset--color--verde) 0%, #4ADE80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.fc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.95rem;
  border-radius: var(--wp--custom--radius--pill);
  font-size: 0.8125rem;
  font-weight: 600;
  /* Verde da marca sobre o gradiente do hero dá 3,14:1. Este tom claro
     chega a 5,9:1 e continua lendo como "verde da FContábil". */
  color: #4ADE80;
}
.fc-pill::before {
  content: "";
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: fc-pulse 2s infinite;
}
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Cartões flutuantes sobre a imagem do hero */
.fc-float {
  position: absolute;
  z-index: 5;
  background: var(--fc-white);
  border-radius: var(--fc-radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--fc-shadow-lg);
  min-width: 130px;
}
.fc-float p { margin: 0; }
.fc-float--tr { top: -1rem; right: -1rem; }
.fc-float--bl { bottom: -1rem; left: -1rem; }
.fc-float__label { font-size: 0.8125rem; color: var(--fc-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.fc-float__value { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }

.fc-hero-media { position: relative; }
.fc-hero-media img { border-radius: var(--fc-radius-lg); display: block; width: 100%; height: auto; }

/* ─── ANIMAÇÃO DE ENTRADA ────────────────────────────────────────
   Envolvida em `no-preference` de propósito: sem a media query o
   elemento nunca recebe opacity:0, então quem tem animação desligada
   (ou um navegador que ignore o keyframe) vê o conteúdo normalmente.
   O contrário — opacity:0 por padrão — arrisca hero invisível.        */
@keyframes fc-sobe {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .fc-anim {
    opacity: 0;
    animation: fc-sobe 0.7s var(--fc-ease) forwards;
  }
  .fc-anim--1 { animation-delay: 0.10s; }
  .fc-anim--2 { animation-delay: 0.20s; }
  .fc-anim--3 { animation-delay: 0.30s; }
  .fc-anim--4 { animation-delay: 0.40s; }
}

/* ─── NÚMEROS DE CONFIANÇA ───────────────────────────────────── */
.fc-stat__number {
  font-family: var(--wp--preset--font-family--titulo);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fc-blue);
  margin: 0 0 0.25rem !important;
}
.fc-stat__label { font-size: 0.875rem; color: var(--fc-muted); margin: 0 !important; }

/* ─── CARTÕES ────────────────────────────────────────────────── */
.fc-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  transition: transform 0.3s var(--fc-ease), box-shadow 0.3s var(--fc-ease), border-color 0.3s var(--fc-ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fc-shadow-md);
  border-color: rgba(37,99,235,0.18);
}
/* Filete azul→verde que se revela no hover */
.fc-card--accent::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--wp--preset--gradient--azul-verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--fc-ease);
}
.fc-card--accent:hover::after { transform: scaleX(1); }

.fc-card__icon {
  width: 48px; height: 48px;
  background: var(--fc-blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  margin: 0 0 1.25rem !important;
  transition: background 0.3s var(--fc-ease), transform 0.3s var(--fc-ease);
}
.fc-card:hover .fc-card__icon { background: var(--fc-blue); transform: scale(1.06); }

.fc-card h3, .fc-card h4 { margin-bottom: 0.5rem; }
.fc-card p { font-size: 0.9375rem; color: var(--fc-muted); line-height: 1.65; margin: 0; }

/* ─── LISTA DE CHECKS ────────────────────────────────────────── */
.fc-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.fc-checks li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--wp--preset--color--texto);
}
.fc-checks li::before {
  content: "✓";
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--fc-green);
  color: var(--fc-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700;
}

/* ─── SELO "20+ ANOS" SOBRE A IMAGEM ─────────────────────────── */
.fc-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 3;
  background: var(--fc-blue);
  color: var(--fc-white);
  padding: 0.75rem 1rem;
  border-radius: var(--fc-radius);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  display: flex; align-items: center; gap: 0.6rem;
}
.fc-badge p { margin: 0; color: inherit; }
.fc-badge__num { font-family: var(--wp--preset--font-family--titulo); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.fc-badge__text { font-size: 0.8125rem; line-height: 1.25; opacity: 0.9; }

/* ─── ARTIGOS (Query Loop) ───────────────────────────────────── */
.fc-articles .wp-block-post {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--fc-ease), box-shadow 0.3s var(--fc-ease);
  display: flex;
  flex-direction: column;
}
.fc-articles .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--fc-shadow-md); }
.fc-articles .wp-block-post-featured-image { margin: 0; }
.fc-articles .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
/* Placeholder quando o post ainda não tem imagem destacada */
.fc-articles .wp-block-post:not(:has(.wp-block-post-featured-image img))::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--wp--preset--gradient--azul-thumb);
}
.fc-articles .wp-block-post-title { font-size: 1rem; line-height: 1.35; margin: 0 0 0.5rem; }
.fc-articles .wp-block-post-title a { color: var(--fc-strong); text-decoration: none; }
.fc-articles .wp-block-post-title a:hover { color: var(--fc-blue); }
.fc-articles .wp-block-post-date { font-size: 0.8125rem; color: var(--fc-muted); margin-bottom: 0.5rem; }
.fc-articles .wp-block-post-excerpt { font-size: 0.875rem; color: var(--fc-muted); line-height: 1.6; }
.fc-articles .wp-block-post-excerpt__more-text { display: none; }

/* ─── NOTÍCIAS EXTERNAS ──────────────────────────────────────── */
.fc-news-item {
  background: var(--wp--preset--color--fundo-claro);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  transition: border-color 0.25s var(--fc-ease), box-shadow 0.25s var(--fc-ease);
}
.fc-news-item:hover { border-color: var(--fc-blue); box-shadow: var(--fc-shadow-sm); }
.fc-news-item h3 {
  font-family: var(--wp--preset--font-family--corpo);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
  margin: 0 0 0.3rem;
}
.fc-news-item h3 a { color: var(--fc-strong); text-decoration: none; }
.fc-news-item h3 a:hover { color: var(--fc-blue); }
.fc-news-item .fc-source {
  font-size: 0.8125rem; font-weight: 700; color: var(--fc-blue);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0;
}
.fc-news-thumb {
  width: 72px; flex: 0 0 72px;
  margin: 0 !important;
}
.fc-news-thumb img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--fc-blue-light);
  display: block;
}

/* ─── BLOCO DE NOTÍCIAS DO FECON-MG ──────────────────────────── */
.fc-fecon { display: grid; gap: 1rem; }
/* O número de colunas é escolhido no editor, então manda no CSS —
   auto-fit ignoraria a escolha e reflowaria sozinho. */
.fc-fecon--cols-1 { grid-template-columns: 1fr; }
.fc-fecon--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-fecon--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .fc-fecon--cols-2, .fc-fecon--cols-3 { grid-template-columns: 1fr; }
}
.fc-fecon .fc-news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
/* Aviso de feed indisponível — visível apenas para quem edita */
.fc-feed-aviso {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 1.1rem;
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  background: var(--wp--preset--color--fundo-claro);
  color: var(--fc-muted);
  font-size: 0.875rem;
}

/* ─── LINKS ÚTEIS ────────────────────────────────────────────── */
.fc-links-head { margin-bottom: 1.1rem; }
.fc-links-card .fc-links-icon {
  width: 28px; height: 28px; flex: 0 0 28px;
  background: var(--fc-blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; line-height: 1;
  margin: 0 !important;
}
.fc-links { list-style: none; padding: 0; margin: 0; }
.fc-links li { border-bottom: 1px solid var(--wp--preset--color--borda); }
.fc-links li:last-child { border-bottom: none; }
.fc-links a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: var(--fc-muted);
  text-decoration: none;
  transition: color 0.2s var(--fc-ease), padding-left 0.2s var(--fc-ease);
}
.fc-links a::before { content: "→"; font-size: 0.8125rem; color: var(--fc-blue); opacity: 0; transition: opacity 0.2s var(--fc-ease); }
.fc-links a:hover { color: var(--fc-blue); padding-left: 0.25rem; text-decoration: none; }
.fc-links a:hover::before { opacity: 1; }

/* ─── BOTÕES DE ACESSO (barra superior) ──────────────────────── */
.fc-acessos { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.fc-acesso {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.2s var(--fc-ease);
  white-space: nowrap;
}
.fc-acesso:hover { color: var(--fc-green); text-decoration: none; }

/* ─── FORMULÁRIO DE CONTATO ──────────────────────────────────── */
.fc-contato__form {
  padding: 1.75rem;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-sm);
}
.fc-contato__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .fc-contato__linha { grid-template-columns: 1fr; } }
.fc-contato__form p { margin: 0 0 1rem; }
.fc-contato label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--fc-strong); }
.fc-contato :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9375rem;
  background: var(--fc-white);
  color: var(--wp--preset--color--texto);
}
.fc-contato textarea { resize: vertical; min-height: 140px; }
.fc-contato :is(input, select, textarea):focus-visible { border-color: var(--fc-blue); }
.fc-contato__consentimento label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fc-muted);
  line-height: 1.5;
}
.fc-contato__consentimento input { margin-top: 0.15rem; flex-shrink: 0; }
.fc-contato .wp-element-button {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 6px;
  background: var(--fc-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.fc-contato .wp-element-button:hover { background: var(--fc-blue-dark); }
/* Armadilha anti-spam: fora da tela, fora do fluxo, fora do leitor de tela */
.fc-contato__armadilha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.fc-contato__dados p { font-size: 0.9375rem; line-height: 1.6; }
.fc-contato__dados a { color: var(--wp--preset--color--texto); text-decoration: none; }
.fc-contato__dados a:hover { color: var(--fc-blue); }

/* ─── ÁREA DO CLIENTE ────────────────────────────────────────── */
.fc-area {
  max-width: 720px;
  margin-inline: auto;
}
.fc-area__cabecalho {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--fc-border);
}
.fc-area__cabecalho h2 { margin: 0 0 0.25rem; }
.fc-area__sair {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fc-muted);
  text-decoration: none;
  white-space: nowrap;
}
.fc-area__sair:hover { color: var(--fc-blue); }
.fc-area__titulo { margin: 2rem 0 0.75rem; font-size: 1rem; }
.fc-area__ajuda { font-size: 0.875rem; color: var(--fc-muted); margin: 0.35rem 0; }
.fc-area__vazio {
  padding: 1.5rem;
  border: 1px dashed var(--fc-border);
  border-radius: var(--fc-radius);
  color: var(--fc-muted);
  font-size: 0.9375rem;
  text-align: center;
}

.fc-area__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.fc-area__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  transition: border-color 0.2s var(--fc-ease), box-shadow 0.2s var(--fc-ease);
}
.fc-area__item:hover { border-color: var(--fc-blue); box-shadow: var(--fc-shadow-sm); }
.fc-area__item strong { display: block; font-size: 0.9375rem; color: var(--fc-strong); }
.fc-area__meta { font-size: 0.8125rem; color: var(--fc-muted); }
.fc-area__baixar {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  background: var(--fc-blue);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.fc-area__baixar:hover { background: var(--fc-blue-dark); text-decoration: none; }

.fc-area__login, .fc-area__form {
  padding: 1.75rem;
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-sm);
}
.fc-area__login h2 { margin-top: 0; }
.fc-area :is(input[type="text"], input[type="password"], input[type="email"], input[type="file"]) {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9375rem;
  background: var(--fc-white);
}
.fc-area label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--fc-strong); }
.fc-area .login-remember label { font-weight: 400; }
.fc-area :is(.wp-element-button, #wp-submit) {
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: var(--fc-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.fc-area :is(.wp-element-button, #wp-submit):hover { background: var(--fc-blue-dark); }

.fc-area__aviso {
  padding: 0.85rem 1.1rem;
  border-radius: var(--fc-radius);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--fc-border);
  background: var(--wp--preset--color--fundo-claro);
}
.fc-area__aviso--ok   { border-color: var(--fc-green); background: var(--wp--preset--color--verde-claro); color: var(--wp--preset--color--verde-escuro); }
.fc-area__aviso--erro { border-color: #DC2626; background: #FEF2F2; color: #991B1B; }

/* ─── CTA ────────────────────────────────────────────────────── */
.fc-cta { position: relative; overflow: hidden; }
.fc-cta::before, .fc-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.fc-cta::before { top: -80px; right: -80px; width: 300px; height: 300px; background: rgba(37,99,235,0.10); }
.fc-cta::after  { bottom: -60px; left: -60px; width: 250px; height: 250px; background: rgba(22,163,74,0.07); }
.fc-cta > * { position: relative; z-index: 2; }

/* ─── BARRA DE CONTATO ───────────────────────────────────────── */
.fc-contact-bar .fc-contact-icon { font-size: 1.5rem; margin: 0 0 0.5rem !important; }
.fc-contact-bar .fc-contact-label {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.62); margin: 0 0 0.25rem !important;
}
.fc-contact-bar .fc-contact-value { font-size: 1rem; font-weight: 600; color: var(--fc-white); margin: 0 !important; }
.fc-contact-bar .fc-contact-value a { color: var(--fc-white); text-decoration: none; }
.fc-contact-bar .fc-contact-value a:hover { color: #4ADE80; }

/* ─── RODAPÉ ─────────────────────────────────────────────────── */
.fc-footer h2, .fc-footer h3, .fc-footer h4 {
  font-family: var(--wp--preset--font-family--corpo);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  /* Azul da marca sobre o grafite do rodapé dá 3,45:1 — reprovado.
     Este azul claro chega a 7:1 e mantém a leitura de "cor da marca". */
  color: #93C5FD;
  margin-bottom: 1rem;
}
.fc-footer p, .fc-footer li { font-size: 0.875rem; color: rgba(255,255,255,0.62); line-height: 1.7; }
.fc-footer a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.2s var(--fc-ease); }
.fc-footer a:hover { color: var(--fc-white); text-decoration: none; }
.fc-footer .wp-block-list { list-style: none; padding-left: 0; margin: 0; }
.fc-footer .wp-block-list li { margin-bottom: 0.25rem; }
.fc-footer .wp-block-navigation { flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.fc-footer .wp-block-site-logo img { height: 40px; width: auto; }
.fc-footer-bottom { font-size: 0.8125rem; color: rgba(255,255,255,0.55); }
.fc-footer-bottom p { font-size: inherit; color: inherit; margin: 0; }

/* ─── BANNER DE CONSENTIMENTO (Complianz) ────────────────────
   O plugin já vem com aparência própria; aqui só resolvemos dois
   atritos com o nosso layout.                                        */

/* 1. Marcadores órfãos.
   O rodapé do banner traz quatro links — "Gerenciar opções", "Gerenciar
   serviços", "Gerenciar N fornecedores" e a documentação do TCF. Todos
   apontam para a Política de Cookies gerada pelo plugin e para o TCF,
   e nós desligamos os dois: a nossa Política de Privacidade já descreve
   as categorias. O plugin esconde os links, mas não os <li>, e sobra
   uma coluna de bolinhas no meio do banner. */
.cmplz-cookiebanner .cmplz-links.cmplz-information {
  display: none !important;
}

/* 2. Botão de fechar: o ícone vem de um ::before do próprio plugin, então
   NÃO adicionamos outro — só suavizamos. Uma tentativa anterior de
   desenhar um "×" próprio resultou em dois X empilhados. */
.cmplz-cookiebanner .cmplz-close {
  opacity: 0.45;
  transition: opacity 0.2s var(--fc-ease);
}
.cmplz-cookiebanner .cmplz-close:hover,
.cmplz-cookiebanner .cmplz-close:focus-visible { opacity: 1; }

/* 3. Barra compacta: o padrão respira demais para um aviso de rodapé. */
.cmplz-cookiebanner.cmplz-bottom {
  padding: 0.9rem 1.25rem !important;
}
.cmplz-cookiebanner .cmplz-body { padding: 0 !important; }

/* 4. O botão do WhatsApp mora no canto inferior direito, exatamente onde
   a barra do banner aparece. Enquanto ela estiver na tela, o botão sobe. */
body:has(.cmplz-cookiebanner:not(.cmplz-dismissed)) .fc-whatsapp {
  bottom: calc(1.5rem + 150px);
  transition: bottom 0.3s var(--fc-ease);
}
@media (max-width: 600px) {
  body:has(.cmplz-cookiebanner:not(.cmplz-dismissed)) .fc-whatsapp {
    bottom: calc(1.5rem + 230px);
  }
}

/* ─── BOTÃO FLUTUANTE DO WHATSAPP ────────────────────────────── */
.fc-whatsapp {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--wp--preset--color--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(14,124,107,0.45);
  text-decoration: none;
  transition: transform 0.3s var(--fc-ease), box-shadow 0.3s var(--fc-ease);
  animation: fc-wa 2.4s infinite;
}
.fc-whatsapp:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(14,124,107,0.6); }
.fc-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fc-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(14,124,107,0.45); }
  50%      { box-shadow: 0 4px 20px rgba(14,124,107,0.45), 0 0 0 12px rgba(14,124,107,0.10); }
}
.fc-whatsapp__tip {
  position: absolute; right: 72px;
  background: var(--fc-white);
  color: var(--fc-strong);
  font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  box-shadow: var(--fc-shadow-md);
  white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.3s var(--fc-ease), transform 0.3s var(--fc-ease);
  pointer-events: none;
}
.fc-whatsapp__tip::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border-left: 6px solid var(--fc-white);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.fc-whatsapp:hover .fc-whatsapp__tip { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .fc-whatsapp, .fc-pill::before { animation: none; }
  .fc-card:hover, .fc-articles .wp-block-post:hover, .fc-whatsapp:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── ESTILOS DE BOTÃO (registrados em functions.php) ────────── */
.wp-block-button.is-style-fc-verde .wp-block-button__link {
  /* #16A34A com texto branco dá 3,3:1 — abaixo do mínimo para texto.
     O verde escuro da paleta chega a 5:1 sem sair da identidade. */
  background-color: var(--wp--preset--color--verde-escuro);
  color: #fff;
}
.wp-block-button.is-style-fc-verde .wp-block-button__link:hover { background-color: #106932; }

.wp-block-button.is-style-fc-whatsapp .wp-block-button__link {
  /* O verde de marca do WhatsApp (#25D366) com texto branco dá 1,98:1 —
     reprovado até para ícone (mínimo 3:1). Este tom, da mesma família,
     chega a 5,1:1 sem prejudicar o reconhecimento do botão. */
  background-color: var(--wp--preset--color--whatsapp);
  color: #fff;
}
.wp-block-button.is-style-fc-whatsapp .wp-block-button__link:hover { background-color: #0B6357; }

.wp-block-button.is-style-fc-escuro .wp-block-button__link { background-color: var(--fc-dark); color: #fff; }
.wp-block-button.is-style-fc-escuro .wp-block-button__link:hover { background-color: var(--wp--preset--color--grafite-medio); }

.wp-block-button.is-style-fc-contorno-azul .wp-block-button__link {
  background-color: transparent; color: var(--fc-blue);
  box-shadow: inset 0 0 0 1.5px var(--fc-blue);
}
.wp-block-button.is-style-fc-contorno-azul .wp-block-button__link:hover { background-color: var(--fc-blue-pale); color: var(--fc-blue-dark); }

.wp-block-button.is-style-fc-contorno-claro .wp-block-button__link {
  background-color: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28);
}
.wp-block-button.is-style-fc-contorno-claro .wp-block-button__link:hover {
  background-color: rgba(255,255,255,0.06); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6);
}

.wp-block-button .wp-block-button__link { transition: all 0.25s var(--fc-ease); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); text-decoration: none; }

/* ─── ESTILOS DE GRUPO ───────────────────────────────────────── */
.wp-block-group.is-style-fc-secao-clara { background-color: var(--wp--preset--color--fundo-claro); }
.wp-block-group.is-style-fc-cartao { background: var(--fc-white); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); padding: 2rem; }

/* ─── SPECTRA (V3, blocos `spectra/*`) ───────────────────────────
   O Spectra Blocks usa os supports nativos do Gutenberg, então cores,
   fontes e espaçamentos já vêm do theme.json — não há nada a corrigir
   aqui. As regras abaixo só alinham os títulos à tipografia da marca,
   caso um bloco Spectra seja inserido numa página.                    */
:where(.wp-block-spectra-container, .wp-block-spectra-content) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--wp--preset--font-family--titulo);
}
.wp-block-spectra-counter { font-family: var(--wp--preset--font-family--titulo); }

/* ─── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fc-hero-media { display: none; }
  .fc-hero .wp-block-columns { text-align: center; }
  .fc-pill { margin-inline: auto; }
  /* text-align não alcança um contêiner flex — os botões precisam disto */
  .fc-hero .wp-block-buttons { justify-content: center; }
}
@media (max-width: 781px) {
  .fc-topbar { display: none; }
  .fc-checks { grid-template-columns: 1fr; }
  .fc-float { position: static; margin-top: 0.75rem; }
  .fc-header .wp-block-site-logo img { height: 36px; }
}

/* ─── ACESSIBILIDADE ─────────────────────────────────────────── */
:where(a, button, .wp-block-button__link, input, select, textarea):focus-visible {
  outline: 2px solid var(--fc-blue);
  outline-offset: 2px;
  border-radius: 3px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999;
  width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--fc-white); color: var(--fc-blue);
  padding: 0.75rem 1.25rem; border-radius: 6px;
  box-shadow: var(--fc-shadow-lg); font-weight: 600;
}
