/* ==================================================================
   YARA RABELO — PSICÓLOGA CLÍNICA
   Folha de estilos
   Índice:
     1. Reset & variáveis (design tokens)
     2. Base tipográfica
     3. Layout utilitário (container, grid, seções)
     4. Header / navegação
     5. Hero
     6. Sobre
     7. Cards ("Para quem" e "Benefícios")
     8. Timeline ("Como funciona")
     9. Accordion (FAQ)
     10. CTA final
     11. Rodapé
     12. Botões flutuantes
     13. Animações de rolagem
     14. Responsividade
   ================================================================== */

/* ------------------------------------------------------------------
   1. RESET & VARIÁVEIS
------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /*
    Paleta de marca — Studio Vaia (fornecida pela cliente)
    Earth, Moss, Sand, Almond e Sage são os 5 tons originais da paleta.
    As variações "-deep"/"-deeper" são versões escurecidas calculadas
    matematicamente (mesma matiz, luminosidade reduzida) só para os usos
    que precisam de contraste de texto — o restante do site usa os tons
    originais da paleta, sem alteração.
  */
  --white:   #FFFFFF;
  --earth:   #95714F;   /* tom âncora — usado em botões, links, ícones de destaque */
  --earth-deep:   #926F4D;   /* variação acessível do Earth p/ texto e fundo de botão (4.56:1 sobre branco) */
  --earth-deeper: #6E543A;   /* hover do earth-deep (7.02:1) */
  --moss:    #8C916C;   /* accent secundário — gradientes, detalhes */
  --moss-deep:    #74785A;   /* variação acessível do Moss (4.59:1 sobre branco) */
  --sand:    #C7AF94;   /* tom decorativo — bordas, preenchimentos suaves */
  --almond:  #EADED0;   /* fundo claro das seções alternadas */
  --sage:    #ACB087;   /* accent decorativo — ícones, halo, detalhes pequenos */

  --gray-bg:      var(--almond);         /* fundos de seção alternada */
  --text:         #332D26;               /* texto principal, neutro levemente quente */
  --text-muted:   #6E655A;               /* texto secundário (5.72:1 sobre branco) */
  --border:       #F1EBE4;               /* borda clara derivada do Sand */

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Raios e sombras */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(51, 51, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(51, 51, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(51, 51, 51, 0.12);

  /* Espaçamento de seção */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-width: 1160px;

  /* Transições */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /*
    Propriedades dinâmicas — não são "tokens" de design fixos como as acima,
    são valores escritos em tempo de execução:
    --reveal-delay:     definida inline em cada .reveal (style="--reveal-delay: 120ms")
                         para escalonar a animação de entrada de cada elemento.
    --cookie-bar-offset: escrita via JS (script.js) com a altura da barra de
                         cookies, para os botões flutuantes não ficarem por baixo dela.
    Os valores abaixo são apenas o estado de repouso (0), usado quando nenhum
    dos dois casos acima se aplica ainda.
  */
  --reveal-delay: 0ms;
  --cookie-bar-offset: 0px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compensa o header fixo ao navegar por âncoras */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   2. BASE TIPOGRÁFICA
------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Foco visível para acessibilidade / navegação por teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Seleção de texto com a cor da marca (detalhe de acabamento) */
::selection {
  background: var(--almond);
  color: var(--text);
}

/* Link "pular para o conteúdo": invisível até receber foco por teclado */
.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 1000;
  background: var(--text);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-deep);
  margin-bottom: 0.75rem;
}

.section__title {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  max-width: 42rem;
  margin-bottom: 1.7rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  border-radius: var(--radius-full);
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--earth) 0%, var(--sage) 100%);
}

/* ------------------------------------------------------------------
   3. LAYOUT UTILITÁRIO
------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section--tinted {
  position: relative;
  background: var(--gray-bg);
  overflow: hidden;
}

/* O header é fixed (78px de altura) e some do fluxo normal do documento.
   Em telas largas, o padding-top padrão da seção (--section-padding,
   4–7rem) já é maior que 78px e cobre isso sozinho. Mas no mobile
   --section-padding cai para 3.5rem (56px), menor que o header — por
   isso a primeira seção de cada página precisa de um mínimo garantido,
   independente do valor de --section-padding naquele breakpoint. */
main > .section:first-of-type {
  padding-top: max(var(--section-padding), calc(78px + 1.5rem));
}

/* Forma orgânica muito discreta, só para tirar a sensação de "chapado"
   nas seções de fundo tintado — não interfere na leitura do conteúdo. */
.section--tinted::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -18%;
  right: -6%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 113, 79, 0.09), transparent 70%);
  pointer-events: none;
}

.section--tinted > .container {
  position: relative;
  z-index: 1;
}

.section__narrow .container {
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--earth-deep);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--earth-deeper);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--moss);
  color: var(--moss-deep);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.65rem 1.4rem; font-size: 0.875rem; }
.btn--lg { padding: 1.15rem 2.5rem; font-size: 1.02rem; }

/* ------------------------------------------------------------------
   4. HEADER / NAVEGAÇÃO
------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(51, 51, 51, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}

.logo__text { line-height: 1.15; }
.logo__text span { display: block; }
.logo__role {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__list {
  display: flex;
  gap: 2.1rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

/* Indica em qual seção o usuário está durante a rolagem (definido via JS) */
.nav__link.is-active {
  color: var(--text);
}

.nav__link.is-active::after {
  width: 100%;
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ------------------------------------------------------------------
   5. HERO
------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(78px + 4.5rem) 0 5rem;
  background: linear-gradient(180deg, var(--almond) 0%, var(--white) 72%);
  overflow: hidden;
}

/* Forma orgânica discreta atrás do texto, só para tirar a sensação de
   "vazio" no lado esquerdo em telas largas — não compete com a foto. */
.hero::before {
  content: '';
  position: absolute;
  top: -12%;
  left: -8%;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 176, 135, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.hero__credential {
  font-size: 0.98rem;
  color: var(--moss-deep);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
  max-width: 15ch;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__trust i {
  color: var(--earth-deep);
}

/* Link secundário e discreto (ver comentário no HTML sobre attention ratio) */
.hero__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero__secondary-link:hover {
  color: var(--moss-deep);
  border-color: currentColor;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Elemento de assinatura visual: um halo que "respira" suavemente
   atrás da foto — remete à calma e à regulação da respiração,
   temas centrais do trabalho terapêutico. */
.hero__glow {
  position: absolute;
  width: 88%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(172, 176, 135, 0.55), rgba(149, 113, 79, 0.25) 60%, transparent 75%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
  z-index: 0;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Painel sólido levemente deslocado atrás da foto: dá profundidade e
   ocupa o espaço em volta da imagem de forma intencional, em vez de
   deixar a composição "chapada" contra o fundo. */
.hero__media::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: min(360px, 78%);
  aspect-ratio: 4 / 5;
  right: 6%;
  top: 8%;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: min(420px, 84%);
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  object-fit: cover;
  object-position: center 18%;
  background: var(--white);
  transition: transform 0.5s var(--ease);
}

.hero__media:hover .hero__photo {
  transform: translateY(-4px);
}

/* Selo flutuante com o CRP: reforça autoridade profissional já na
   primeira dobra, ancorado sobre a foto sem cobrir o rosto. */
.hero__badge {
  position: absolute;
  z-index: 2;
  left: 4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
}

.hero__badge i {
  color: var(--earth-deep);
  font-size: 1.1rem;
}

.hero__badge-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.hero__badge-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------
   6. SOBRE
------------------------------------------------------------------- */
.about__text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.about__text p:last-child { margin-bottom: 0; }

.formacao {
  margin-top: 3.2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.formacao__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-deep);
  margin-bottom: 1.6rem;
}

.formacao__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.formacao__card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--earth);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.formacao__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--moss);
}

.formacao__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--almond);
  color: var(--earth-deep);
  font-size: 0.95rem;
}

.formacao__card-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.formacao__card-place {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.formacao__status {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: rgba(140, 145, 108, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.servicos__intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 42rem;
  margin-bottom: 3rem;
}

/* Quando o título da seção é seguido por um parágrafo de introdução,
   reduz o espaço grande que .section__title normalmente reserva abaixo
   dele (esse espaço passa a ficar só depois do parágrafo). */
.section__title:has(+ .servicos__intro) {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   7. CARDS
------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.section--tinted .card { background: var(--white); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  font-size: 1.5rem;
  color: var(--sage);
  margin-bottom: 1.1rem;
  transition: color 0.3s var(--ease);
}

.card:hover .card__icon {
  color: var(--earth-deep);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.card--benefit { padding: 2.2rem 1.8rem; }

.card__text {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 0.6rem;
}

/* ------------------------------------------------------------------
   8. TIMELINE — "Como funciona"
------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 46rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: var(--border);
}

.timeline__item {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--almond);
  color: var(--earth-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline__step {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.3rem;
}

.timeline__title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.timeline__content p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ------------------------------------------------------------------
   9. ACCORDION — FAQ
------------------------------------------------------------------- */
.accordion__item {
  border-bottom: 1px solid var(--border);
}

/* O <h3> existe apenas para dar estrutura de navegação a leitores de tela
   (padrão WAI-ARIA de accordion); visualmente não deve alterar nada. */
.accordion__heading {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  margin: 0;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.4rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.accordion__icon {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--sage);
  transition: transform 0.3s var(--ease);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.accordion__panel p {
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  font-size: 0.98rem;
}

/* ------------------------------------------------------------------
   10. CTA FINAL
------------------------------------------------------------------- */
.cta {
  /* Gradiente com tons escurecidos (não os decorativos) para manter
     o texto branco em conformidade com WCAG AA em qualquer ponto do degradê */
  background: linear-gradient(135deg, var(--moss-deep) 0%, var(--earth-deep) 100%);
  padding: var(--section-padding) 0;
}

.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.cta__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--white);
  max-width: 38rem;
  line-height: 1.5;
}

.cta .btn--primary {
  background: var(--white);
  color: var(--moss-deep);
}

.cta .btn--primary:hover {
  background: var(--gray-bg);
  color: var(--text);
}

/* ------------------------------------------------------------------
   11. RODAPÉ
------------------------------------------------------------------- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

.footer__role, .footer__crp {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__social {
  display: flex;
  gap: 0.9rem;
}

.footer__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer__icon:hover {
  background: var(--sage);
  border-color: var(--sage);
  transform: translateY(-3px);
}

.footer__bottom {
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.footer__policy-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__policy-link:hover {
  color: var(--white);
}

/* ------------------------------------------------------------------
   12. BOTÕES FLUTUANTES
------------------------------------------------------------------- */
.float-btn {
  position: fixed;
  right: 1.6rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), box-shadow .25s var(--ease), bottom 0.25s var(--ease);
}

.float-btn--whatsapp {
  /* --cookie-bar-offset é somado pelo JS enquanto a barra de cookies está visível,
     evitando que ela sobreponha o botão flutuante */
  bottom: calc(1.6rem + var(--cookie-bar-offset, 0px));
  /* Tom oficial mais escuro do WhatsApp: mantém a marca reconhecível
     e garante contraste adequado do ícone contra o fundo (~3:1, WCAG 1.4.11) */
  background: #1DA851;
  color: var(--white);
}

.float-btn--whatsapp:hover { transform: scale(1.08); }

.float-btn--top {
  bottom: calc(6rem + var(--cookie-bar-offset, 0px));
  background: var(--white);
  color: var(--moss-deep);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.float-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-btn--top:hover {
  background: var(--gray-bg);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   12b. AVISO DE COOKIES (LGPD)
------------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.1rem 1.6rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

/*
  Bug corrigido: CSS de autor sempre tem prioridade sobre o CSS nativo do
  navegador (que é quem aplica display:none ao atributo [hidden]), não
  importa a especificidade. Sem esta regra, "display: flex" acima vencia
  o [hidden] e a barra ficava sempre presente no layout (só deslocada
  para fora da tela pelo transform), continuando acessível via Tab.
*/
.cookie-bar[hidden] {
  display: none;
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-bar__text {
  font-size: 0.85rem;
  max-width: 46rem;
  line-height: 1.5;
}

.cookie-bar__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar .btn--sm {
  flex-shrink: 0;
}

/* ------------------------------------------------------------------
   13. ANIMAÇÕES DE ROLAGEM
------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   14. RESPONSIVIDADE
------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__title { max-width: none; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  /* Bug corrigido: .hero__trust é display:flex (uma caixa de bloco), então
     text-align:center do elemento pai não a centraliza sozinho — precisa
     do próprio justify-content, assim como .hero__actions logo acima. */
  .hero__trust { justify-content: center; }
  .hero__media { order: -1; margin-bottom: 1rem; }
  .hero__photo { width: min(320px, 74%); object-position: center 15%; }
  .hero__media::after { display: none; }
  .hero__badge { padding: 0.55rem 0.8rem; left: 8%; bottom: 6%; }
  .hero__badge-title { font-size: 0.72rem; }
  .hero__badge-sub { font-size: 0.62rem; }

  .section__title { margin-bottom: 2.1rem; }
  .section__title::after { margin-top: 1.15rem; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: 78px 0 0 0; height: calc(100vh - 78px); }
  .nav {
    background: var(--white);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
  }

  .nav__list li { border-bottom: 1px solid var(--border); }

  .nav__link {
    display: block;
    padding: 1.1rem 0.2rem;
    font-size: 1.05rem;
  }

  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  :root { --section-padding: 3.5rem; }

  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .formacao__grid { grid-template-columns: 1fr; }

  .hero { padding-top: calc(78px + 2.5rem); }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .section__title { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  .timeline::before { left: 23px; }
  .timeline__marker { width: 48px; height: 48px; font-size: 1rem; }

  .footer__inner { flex-direction: column; text-align: center; }

  .float-btn { width: 50px; height: 50px; font-size: 1.25rem; right: 1.1rem; }
  .float-btn--whatsapp { bottom: calc(1.1rem + var(--cookie-bar-offset, 0px)); }
  .float-btn--top { bottom: calc(5.2rem + var(--cookie-bar-offset, 0px)); }

  .cookie-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
}

/* Celulares bem estreitos (ex.: iPhone SE, Android compactos) */
@media (max-width: 400px) {
  .grid--4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   15. BLOG (listagem e artigos)
------------------------------------------------------------------- */
.blog-hero { padding-bottom: 1rem; }

.blog-hero__intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--earth-deep);
  background: var(--almond);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.blog-card .card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--earth-deep);
}

.blog-card__cta i {
  font-size: 0.8rem;
  transition: transform 0.25s var(--ease);
}

.blog-card:hover .blog-card__cta i {
  transform: translateX(3px);
}

.blog-card--soon {
  opacity: 0.6;
  cursor: default;
}

.blog-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.blog-card--soon .blog-card__tag {
  background: var(--sand);
  color: var(--text);
}

/* Página de artigo individual */
.article {
  max-width: 720px;
}

.article__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--earth-deep);
  background: var(--almond);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.article__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.4rem;
}

.article__body h2 {
  font-size: 1.3rem;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
}

.article__body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
}

.article__back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--earth-deep);
  margin-bottom: 2.4rem;
}

.article__back i { font-size: 0.85rem; }
