﻿/* =========================================================
   Valquiria Pichiteli Guimarães — Clínica de Psicologia e Bem Estar
   Folha de estilos única. Mobile first.
   Sumário:
     1.  Tokens
     2.  Reset e base
     3.  Tipografia e utilitários
     4.  Botões e links
     5.  Cabeçalho e navegação
     6.  Hero
     7.  Faixa de autoridade
     8.  Blocos de conteúdo (frames, cards, listas)
     9.  Seções específicas
     10. Formulário
     11. Rodapé e botão flutuante
     12. Animações de entrada
     13. Breakpoints
   ========================================================= */

/* ============ 1. TOKENS ============ */
:root {
  /* ---- Cores oficiais da marca ----
     Paleta de destaque em fundos claros: #cba571 · #9c7f56 · #988992 */
  --background: #f4f0e9;      /* oficial */
  --background-soft: #e9e4de; /* oficial */
  --background-contact: #ede7e8; /* leve viés lilás: separa a seção de contato
                                    das vizinhas */
  --surface: #fffdf9;
  --gold: #9c7f56;            /* oficial — linhas, marcadores, textos de acento */
  --gold-light: #cba571;      /* oficial — itálicos em títulos e destaques mais suaves */
  --gold-dark: #9c7f56;       /* alias de --gold; mantido para compatibilidade */
  --lavender: #988992;        /* oficial — destaques lilás e fundos de acento */
  --lavender-dark: #6f6269;   /* lavender escurecido — botões e elementos interativos */
  --lavender-soft: #d9cfd8;
  --blue-gray: #aebbc2;
  --blue-gray-soft: #dce3e6;
  --text: #37322f;            /* 11.1:1 sobre --background */
  --text-soft: #635b56;       /* 5.9 / 5.3 / 6.5 sobre os três fundos */
  --border: rgba(119, 97, 65, 0.22);
  --border-strong: rgba(119, 97, 65, 0.4);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(55, 50, 47, 0.04), 0 4px 14px rgba(55, 50, 47, 0.05);
  --shadow: 0 2px 6px rgba(55, 50, 47, 0.05), 0 18px 46px rgba(55, 50, 47, 0.09);

  --header-h: 72px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============ 2. RESET E BASE ============ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;          /* trava scroll horizontal das formas decorativas */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Foco visível e consistente */
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--gold-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Reforço: se algum navegador ainda transformar o CRP em link de telefone,
   ele não deve parecer um link (sem azul nem sublinhado). */
a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}

/* ============ 3. TIPOGRAFIA E UTILITÁRIOS ============ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--soft { background: var(--background-soft); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section__head--center .eyebrow { justify-content: center; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section__title {
  font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.1rem);
  color: var(--text);
}

.section__title em {
  font-style: italic;
  color: var(--gold-light);
}

.section__intro,
.lead {
  color: var(--text-soft);
  max-width: 62ch;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.75;
}

.section__intro { margin-top: 1.1rem; }

.section__head--center .section__intro { margin-inline: auto; }

p + p { margin-top: 1.1rem; }

.section__title + .lead,
.section__title + p { margin-top: 1.4rem; }

.center { text-align: center; }

/* Lista com marcador em losango dourado */
.marks {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.marks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============ 4. BOTÕES E LINKS ============ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;              /* área de toque confortável */
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* Botões de ação em lilás (branco por cima: 5.8, AA). O dourado fica reservado
   a linhas, marcadores e detalhes — assim "lilás = ação, dourado = ornamento". */
.btn--primary {
  --btn-bg: #988992;
  --btn-fg: #fff;
  --btn-bd: #988992;
  box-shadow: 0 6px 20px rgba(152, 137, 146, 0.3);
}

.btn--primary:hover {
  --btn-bg: #584e54;
  --btn-bd: #584e54;
  transform: translateY(-2px);
}

/* Secundário do hero: acompanha o primário, em contorno */
.btn--ghost {
  --btn-fg: #988992;
  --btn-bd: #988992;
}

.btn--ghost:hover {
  --btn-bg: rgba(152, 137, 146, 0.14);
  --btn-bd: #988992;
}

.btn--whats {
  --btn-bg: #988992;
  --btn-fg: #fff;
  --btn-bd: #988992;
  box-shadow: 0 6px 20px rgba(152, 137, 146, 0.3);
}

.btn--whats:hover {
  --btn-bg: #584e54;
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

.btn--block { width: 100%; }

.icon-msg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;          /* área de toque */
  margin-top: 1.6rem;
  padding-block: 0.5rem;
  color: var(--gold-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.85rem;
  border-color: var(--gold-dark);
}

/* ============ 5. CABEÇALHO E NAVEGAÇÃO ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(244, 240, 233, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(55, 50, 47, 0.05);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.site-header.is-stuck {
  background: rgba(244, 240, 233, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(55, 50, 47, 0.05);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Marca: símbolo no mobile, lockup oficial a partir de 768px (ver <picture>).
   A altura é controlada aqui porque as duas artes têm proporções diferentes. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding-block: 0.4rem;
}

.brand__logo {
  width: auto;
  height: 52px;
  flex: none;
}

/* Botão hambúrguer */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  flex: none;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Painel mobile */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__list {
  list-style: none;
  padding: 0;
  display: grid;
}

.nav__list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__list a:hover { color: var(--gold-dark); }

.nav__cta { margin-top: 1.1rem; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(55, 50, 47, 0.32);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-scrim.is-visible { opacity: 1; }

/* ============ 6. HERO ============ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vw, 5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background-image: url("assets/images/brand/background-hero.jpg");
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 3rem);
}

.hero__text,
.hero__media { min-width: 0; }

/* No mobile o texto vem antes da imagem (ordem natural do DOM) */
.hero__title {
  font-size: clamp(2rem, 0.7rem + 2.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: #cba571;
}

.hero__subtitle {
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: clamp(0.875rem, 0.825rem + 0.3vw, 0.9375rem);
  line-height: 1.7;
}

.hero__credential {
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
}

.hero__actions .btn {
  white-space: normal;
  flex: 1;
  text-align: center;
}

@media (max-width: 599px) {
  .hero__actions .btn { padding-inline: 0.875rem; }
}

.hero__title--accent { color: #988992; }

.hero__trust-list {
  margin-top: 2.25rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.hero__trust-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero__trust-line {
  width: 28px;
  height: 1px;
  background: var(--lavender);
  flex: none;
}

.hero__media { position: relative; }

.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--background-soft);
  box-shadow: var(--shadow);
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Linha fina dourada deslocada, dando o toque editorial */
.hero__frame-line {
  position: absolute;
  z-index: 0;
  inset: 22px -18px -22px 22px;
  border: 1px solid var(--lavender);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* ============ 6b. ELEMENTOS DA MARCA (ágata e círculo) ============
   Artes da identidade usadas como textura de fundo, sempre decorativas
   (aria-hidden) e atrás do conteúdo. A opacidade é mantida baixa por dois
   motivos: não competir com as fotos e preservar o contraste do texto —
   sobre o bege, a ágata clareia o fundo em vez de escurecê-lo, então os
   textos continuam acima de AA.
   As seções que as recebem precisam de position:relative + overflow:hidden. */
/* Círculo dourado: detalhe fino, apenas um ponto no site.
   Escondido no mobile: lá o texto ocupa a largura toda e o anel cairia
   sobre ele, derrubando o contraste. No desktop nada o cruza. */
.circulo {
  display: none;
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  top: 6%;
  right: 1%;
  width: 150px;
  opacity: 0.8;
}

/* Elementos posicionados pintam acima de conteúdo não posicionado: sem isto,
   a ágata e o círculo cobririam o texto destas seções. */
.primeiro-contato > .container,
.footer__inner,
.footer__bottom {
  position: relative;
  z-index: 1;
}

/* ============ 7. FAIXA DE AUTORIDADE ============ */
.authority {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.authority__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

.authority__item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.authority__item:last-child { border-bottom: 0; }

/* ============ 8. FRAMES E CARDS ============ */
.frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--background-soft);
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
  object-fit: cover;
}

.frame--tall img {
  aspect-ratio: 4 / 5;
  object-position: 50% 30%;
}

/* Âncora da moldura: o .frame__accent é absoluto e precisa de um pai posicionado.
   Sem isto, quando a animação de entrada termina (transform: none) — ou com JS
   desligado / movimento reduzido — a moldura perde a âncora e passa a se posicionar
   pela seção inteira, virando uma borda que desce ao lado do texto. */
.abordagem__media { position: relative; }

.frame__accent {
  position: absolute;
  z-index: 0;
  inset: 20px -16px -20px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.frame__accent--left { inset: 20px 20px -20px -16px; }

.cards {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card__title {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.7rem);
  color: var(--text);
}

.card .marks { margin-top: 1.25rem; }

/* ============ 9. SEÇÕES ESPECÍFICAS ============ */

/* --- Sobre --- */
.section.sobre {
  background-image: url("assets/images/brand/background-sobre.jpg");
  background-size: cover;
  background-position: center;
}

.section.sobre .eyebrow {
  color: #fff;
}

.section.sobre .eyebrow::before {
  background: #cba571;
}

.section.sobre .section__title {
  color: #fff;
}

.section.sobre .lead,
.section.sobre p {
  color: #f4f0e9;
}

/* --- Faixa editorial de diferenciais (Sobre) --- */
.sobre__stats {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  border-top: 1px solid rgba(156, 127, 86, 0.45);
  border-bottom: 1px solid rgba(156, 127, 86, 0.45);
}

.sobre__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid rgba(156, 127, 86, 0.2);
}

.sobre__stat:last-child {
  border-bottom: none;
}

.sobre__stat-accent {
  display: block;
  width: 22px;
  height: 1px;
  background: #cba571;
  margin-bottom: 0.45rem;
}

.sobre__stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(203, 165, 113, 0.85);
  margin: 0;
  line-height: 1.4;
}

.sobre__stat-value {
  font-size: 0.9375rem;
  color: #f4f0e9;
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

@media (min-width: 600px) and (max-width: 959px) {
  .sobre__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sobre__stat {
    flex: 0 0 33.333%;
    padding: 1.5rem 1.25rem 1.5rem 0;
    border-bottom: none;
    border-right: 1px solid rgba(156, 127, 86, 0.2);
  }

  .sobre__stat:nth-child(3) {
    border-right: none;
    padding-right: 0;
  }

  .sobre__stat:nth-child(4),
  .sobre__stat:nth-child(5) {
    flex: 0 0 50%;
    border-top: 1px solid rgba(156, 127, 86, 0.2);
    padding-top: 1.5rem;
  }

  .sobre__stat:nth-child(5) {
    border-right: none;
    padding-right: 0;
  }
}

@media (min-width: 960px) {
  .sobre__stats {
    flex-direction: row;
  }

  .sobre__stat {
    flex: 1;
    padding: 1.75rem 0.875rem;
    border-bottom: none;
    border-right: 1px solid rgba(156, 127, 86, 0.2);
  }

  .sobre__stat:first-child {
    padding-left: 0;
  }

  .sobre__stat:last-child {
    border-right: none;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sobre__stat {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .sobre__stat.is-visible {
    opacity: 1;
    transform: none;
  }
}

.sobre__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.sobre__text { max-width: 680px; }

/* --- Para quem é o atendimento ---
   O título "Motivos que costumam trazer alguém à terapia" deve ficar em uma
   única linha. Ele precisa de ~880px nesse corpo, então o limite de 62ch do
   bloco padrão é removido aqui; o nowrap só entra a partir de 960px, onde há
   largura suficiente. Abaixo disso ele quebra: forçar uma linha exigiria
   reduzir a fonte para ~18px, menor que o texto corrido. */
.para-quem .section__head { max-width: none; }

.para-quem .section__intro { max-width: 62ch; }
.para-quem .section__title { color: #988992; }
.para-quem .card__title {
  color: #cba571;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  margin-bottom: 1rem;
}

/* --- Abordagem --- */
.abordagem .section__title { color: var(--lavender); }

.abordagem { overflow: hidden; }

.abordagem__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(80vw, 640px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.abordagem__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* --- Modalidades --- */
.section.modalidades {
  background-image: url("assets/images/brand/background-modalidades.jpg");
  background-size: cover;
  background-position: center;
}

.modalidades .section__title { color: #988992; }
.modalidades .card__title { color: #cba571; }

.modalidades__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.modalidade {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.modalidade__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.modalidade__body > p {
  margin-top: 1rem;
  color: var(--text-soft);
}

.modalidade .link-arrow { margin-top: auto; padding-top: 1.6rem; }

.meta {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.meta dt {
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.25em;
}

.meta dd {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;   /* respiro no endereço de várias linhas */
}

/* Destaque do "hora marcada": tom forte para saltar do texto ao redor */
.modalidade__body strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Formação --- */
.formacao .section__title { color: var(--lavender); }

.section.modalidades { box-shadow: inset 0 -28px 56px rgba(0, 0, 0, 0.13); }

.section.formacao {
  background-image: url("assets/images/brand/background-forma%C3%A7%C3%A3o-e-experiencia.jpg");
  background-size: cover;
  background-position: center;
}

.formacao__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 52rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 1.75rem;
}

.timeline li {
  position: relative;
  padding-left: 1.75rem;
  border-left: 1px solid var(--border);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.timeline p {
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Valores --- */
.valores .section__title { color: #988992; }

.pillars {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid #988992;
}

.pillar__num {
  display: block;
  margin-bottom: 0.75rem;
  color: #cba571;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
}

.pillar h3 { font-size: 1.3rem; }

.pillar p {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Avaliações públicas --- */
.reviews {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(203, 165, 113, 0.16), transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(152, 137, 146, 0.15), transparent 34%),
    var(--surface);
}

.reviews__symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.reviews__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.reviews__head .section__title { max-width: 18ch; }
.reviews__head .section__title em { color: var(--lavender); }

.reviews__intro {
  max-width: 55ch;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.reviews__grid {
  display: grid;
  gap: 1rem;
}

.review {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(55, 50, 47, 0.07);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.review::before {
  content: "“";
  position: absolute;
  top: 0.25rem;
  right: 1rem;
  color: rgba(203, 165, 113, 0.28);
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
}

.review:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(55, 50, 47, 0.11);
}

.review--accent { background: rgba(233, 228, 222, 0.72); }

.review__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--lavender);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.review__name {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.review__rating { display: flex; gap: 0.14rem; margin-top: 0.2rem; }
.review__rating svg { width: 15px; height: 15px; fill: var(--gold-light); }

.review blockquote {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.42;
}

.reviews__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-strong);
}

.reviews__cta p { color: var(--text-soft); }

/* --- Primeiro contato --- */
.primeiro-contato {
  overflow: hidden;
  background-color: #988992;
}

.primeiro-contato .eyebrow { color: #fff; }
.primeiro-contato .eyebrow::before { background: #cba571; }
.primeiro-contato .section__title { color: #fff; }
.primeiro-contato .section__intro { color: rgba(255, 255, 255, 0.85); }
.primeiro-contato .step { background: #f4f0e9; }

.primeiro-contato .btn--primary {
  --btn-bg: #cba571;
  --btn-bd: #cba571;
  box-shadow: 0 6px 20px rgba(203, 165, 113, 0.4);
}
.primeiro-contato .btn--primary:hover {
  --btn-bg: #b08d58;
  --btn-bd: #b08d58;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #cba571;
  border-radius: 50%;
  color: #cba571;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1;
}

.step p { color: var(--text-soft); }

.primeiro-contato .center { margin-top: clamp(2.25rem, 5vw, 3rem); }

/* ============ 10. FORMULÁRIO ============ */
/* Tom próprio, entre o fundo base e o do rodapé: a página escurece de leve
   ao chegar na conversão. */
.contato {
  overflow: hidden;
  background: var(--background-contact);
}

.contato .section__title { color: #cba571; }
.contato .section__title em { color: #988992; }

.contato__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
}

.contato .btn--whats { margin-top: 2rem; }

.contato__list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.1rem;
}

.contato__list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.contato__list li:last-child { border-bottom: 0; }

.contato__label {
  color: var(--gold-dark);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contato__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  justify-self: start;
  transition: color 0.2s var(--ease);
}

.contato__list a:hover { color: var(--gold-dark); }

.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__intro {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* Honeypot antispam */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field { margin-bottom: 1rem; }

.field > label,
.field--fieldset legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.req { color: var(--gold-dark); }

.opt {
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;   /* evita zoom automático no iOS */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder { color: #9c938c; }

.field input:hover,
.field textarea:hover { border-color: var(--border-strong); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(119, 97, 65, 0.14);
}

.field--fieldset {
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.choice input { accent-color: var(--gold-dark); width: 16px; height: 16px; flex: none; }

.choice:hover { border-color: var(--border-strong); }

.choice:has(input:checked) {
  border-color: var(--gold-dark);
  background: rgba(119, 97, 65, 0.08);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.field--check { margin-top: 1.75rem; }

.choice--consent {
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.choice--consent input { margin-top: 0.2rem; }

.field__note {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Erros: cor + ícone + texto (não dependem apenas de cor) */
.field__error {
  display: none;
  margin-top: 0.5rem;
  color: #8f3a2f;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field__error.is-shown { display: flex; gap: 0.4rem; }

.field__error.is-shown::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.12em;
  background: #8f3a2f;
  border-radius: 50%;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #8f3a2f; }

.field--check:has(input[aria-invalid="true"]) .choice--consent { border-color: #8f3a2f; }

.form .btn--block { margin-top: 0.5rem; }

.form.is-sending .btn--block { opacity: 0.7; pointer-events: none; }

.form__disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ============ 11. RODAPÉ E BOTÃO FLUTUANTE ============ */
.site-footer {
  position: relative;   /* ancora a ágata do rodapé */
  overflow: hidden;
  background: var(--background-soft);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 7vw, 5rem);
  /* folga para o botão flutuante não cobrir o rodapé (menor no desktop, ver breakpoint) */
  padding-bottom: 6.5rem;
}

.footer__inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3rem);
}

.footer__brand img {
  width: min(280px, 78%);
  height: auto;
}

.footer__crp {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__title {
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__nav ul,
.footer__contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.1rem;    /* os links já têm altura própria de toque */
}

.footer__nav a,
.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;          /* área de toque confortável no mobile */
  color: var(--text-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover { color: var(--gold-dark); }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Crédito de desenvolvimento: presente, porém discreto */
.footer__credit { letter-spacing: 0.04em; }

/* Botão flutuante discreto */
.whats-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  background: var(--lavender-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(55, 50, 47, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s, background-color 0.2s var(--ease);
}

.whats-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Recua enquanto o formulário está na tela, para não cobrir campos */
.whats-float.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}

.whats-float:hover { background: #584e54; }

/* ============ 12. SEPARADORES ENTRE SESSÕES ============
   Linha dourada de 1 px no topo das sessões com fundo escuro: elimina o corte
   abrupto com as sessões claras adjacentes sem alterar o layout. A sombra interna
   reforça a sensação de profundidade. */
.section.sobre,
.section.formacao,
.primeiro-contato {
  box-shadow: inset 0 10px 36px rgba(0, 0, 0, 0.07);
}


/* ============ 13. ANIMAÇÕES DE ENTRADA ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sem JS, nada fica escondido */
.no-js .reveal { opacity: 1; transform: none; }

/* ============ 13. BREAKPOINTS ============ */

/* --- ≥ 600px: faixa de autoridade em 2 colunas --- */
@media (min-width: 600px) {
  .authority__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 clamp(1rem, 4vw, 3rem);
  }

  .authority__item:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* --- ≥ 768px: tablets --- */
@media (min-width: 768px) {
  /* entra o lockup oficial: mais largo e mais baixo que o símbolo */
  .brand__logo { height: 64px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .reviews__head { grid-template-columns: 1.25fr 0.75fr; align-items: end; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .modalidades__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }

  .footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

/* --- ≥ 960px: desktop --- */
@media (min-width: 960px) {
  :root { --header-h: 84px; }

  .brand__logo { height: 74px; }

  /* só aqui a coluna de texto deixa de ocupar a largura toda */
  .circulo { display: block; }

  /* largura suficiente para o título caber em uma linha */
  .para-quem .section__title { white-space: nowrap; }

  /* ainda precisa passar da altura do botão flutuante (48px) + seu recuo (28px) */
  .site-footer { padding-bottom: 5.5rem; }

  /* Hero em duas colunas, assimétrico. stretch: as duas colunas ficam com a
     mesma altura, então a imagem acompanha a altura do bloco de texto. */
  .hero__inner {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: stretch;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .hero__media { padding-right: 18px; }

  /* a moldura e a foto preenchem a altura da coluna (= altura do texto);
     object-fit: cover recorta sem distorcer. Um piso evita foto achatada
     caso o texto fique curto. */
  .hero__frame { height: 100%; min-height: 420px; }

  .hero__frame img {
    aspect-ratio: auto;
    height: 100%;
  }

  /* Abordagem: texto à esquerda, foto à direita */
  .abordagem__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .abordagem__media { padding-left: 16px; }

  .abordagem__watermark {
    top: 50%;
    left: auto;
    right: -6%;
    width: min(46vw, 560px);
    transform: translateY(-50%);
    opacity: 0.05;
  }


  /* Modalidades: o card com foto ocupa a coluna maior */
  /* dois cards de texto: colunas iguais */
  .modalidades__grid { align-items: stretch; }
  .pillars { grid-template-columns: repeat(4, 1fr); }

  .steps { grid-template-columns: repeat(4, 1fr); }

  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
  }

  /* Contato: texto e formulário lado a lado */
  .contato__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(3rem, 6vw, 5rem);
  }

}

/* --- ≥ 960px: navegação horizontal --------------------------------------
   Cabe com folga: a logo oficial ocupa ~150px, bem menos que o bloco de
   marca anterior. Abaixo disso, o hambúrguer.
   -------------------------------------------------------------------- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    grid-auto-flow: column;
    gap: clamp(1.1rem, 1.8vw, 1.9rem);
  }

  .nav__list a {
    position: relative;
    padding: 0.35rem 0;
    border: 0;
    font-size: 0.9375rem;
    color: var(--text);
  }

  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold-dark);
    transition: width 0.28s var(--ease);
  }

  .nav__list a:hover::after { width: 100%; }

  .nav__cta { margin-top: 0; }

  .nav-scrim { display: none; }
}

/* --- ≥ 1200px: respiro extra --- */
@media (min-width: 1200px) {
  .abordagem__media { padding-left: 24px; }
}

/* ============ MOVIMENTO REDUZIDO ============ */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ IMPRESSÃO ============ */
@media print {
  .site-header,
  .whats-float,
  .nav-scrim,
  .circulo { display: none !important; }

  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
