/* ============================================================
   LP — Dr. Fernando Martins | Psicólogo
   Réplica fiel do design Figma (desktop 1440 / mobile 390)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #001a30;              /* fundo hero */
  --navy-900: #06263f;              /* fundo bio */
  --navy: #00284c;                  /* cor principal escura */
  --navy-card: rgba(0, 40, 76, .87);
  --lilac: #a5add8;
  --lilac-40: rgba(165, 173, 216, .4);
  --lilac-60: rgba(165, 173, 216, .6);
  --periwinkle: #b8bfed;
  --surface: #dbe0ed;               /* fundo seções claras */
  --green: #92c56e;
  --green-dark: #003300;            /* label FAQ */
  --ink-soft: #c7cfe3;              /* texto claro sobre navy */
  --ink-softer: #ccd4e5;
  --body: #3a4a5e;                  /* texto sobre claro */
  --muted: #8c99a8;                 /* placeholders */
  --input-bg: #f5f6fa;

  --font-title: 'Poppins', sans-serif;
  --font-text: 'Roboto Condensed', sans-serif;

  --radius-pill: 999px;
  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.mobile-only { display: none; }

section, footer { position: relative; overflow: hidden; }
section[id] { scroll-margin-top: 16px; }

/* ---------- Componentes base ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--lilac-40);
  border-radius: var(--radius-pill);
  background: rgba(165, 173, 216, .08);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.82px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--navy { background: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--navy);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(146, 197, 110, .35);
}

.btn--ghost {
  padding: 14.5px 30.5px; /* compensa a borda de 1.5px */
  border: 1.5px solid var(--lilac-60);
  background: transparent;
  color: var(--lilac);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(165, 173, 216, .1);
}

.btn--navy {
  padding: 15px 30px;
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 40, 76, .35);
}

.btn--lg {
  padding: 17px 38px;
  font-size: 17px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--lilac);
  flex-shrink: 0;
}

.logo__symbol img { width: 26px; height: 30px; }

.logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.logo__name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.logo__name strong { font-weight: 700; }

.logo__crp {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--lilac);
  white-space: nowrap;
}

/* Animação de entrada. Só esconde o conteúdo se o JS estiver vivo (a classe
   .js é adicionada no <head>); sem JS a página aparece inteira normalmente. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   00 · Header (só a partir de 900px — o design mobile não tem
   header; lá o logo fica dentro do hero)
   ============================================================ */
/* O Figma só desenhou o header no desktop; no mobile ele vira uma barra
   compacta com o menu recolhido, mantendo a mesma navegação. */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  height: 98px;
  margin-inline: auto;
  /* no Figma: 136px à esquerda e 151px à direita em 1440. Abaixo disso as
     margens cedem mais devagar do que a tela encolhe (fatores somam < 1),
     de modo que o espaço útil para os links nunca diminui. */
  padding-left: clamp(24px, calc((100vw - 800px) * .25), 136px);
  padding-right: clamp(24px, calc((100vw - 800px) * .28), 151px);
}

.logo--header { flex-shrink: 0; }

/* no header o wordmark inteiro é branco (no rodapé o CRP é lilás) */
.logo--header .logo__crp { color: #fff; }

/* botão do menu recolhido — só aparece abaixo de 900px */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* vira um "X" quando o menu está aberto */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(12px, 1.81vw, 26px);
}

.site-nav > a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.14;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible { color: var(--green); }

/* Seletor de idioma: mostra o idioma atual (como no Figma) e abre a outra
   opção logo abaixo ao passar o mouse, receber foco pelo teclado ou ser
   tocado (a classe .is-open vem do JS, para funcionar no toque). */
.lang-pick {
  position: relative;
  /* no Figma o vão entre "CONTATO" e a bandeira é ~28px — como o .lang-pick
     é filho flex do .site-nav, o gap de 26px do nav já cobre quase tudo. */
  margin-left: 2px;
}

.lang-pick__toggle,
.lang-pick__option {
  display: flex;
  align-items: center;
  /* no Figma a sigla quase encosta na bandeira (~2px) */
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* ponte invisível: evita que o menu feche ao mover o mouse até ele */
.lang-pick::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

.lang-pick__flag {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
}

.lang-pick__label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.14;
  color: #fff;
}

.lang-pick__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--navy);
  border: 1px solid rgba(165, 173, 216, .28);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 12, 24, .45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.lang-pick:hover .lang-pick__menu,
.lang-pick:focus-within .lang-pick__menu,
.lang-pick.is-open .lang-pick__menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.lang-pick__option {
  padding: 6px 10px 6px 6px;
  border-radius: 7px;
  transition: background-color .18s ease;
}

.lang-pick__option:hover,
.lang-pick__option:focus-visible { background: rgba(165, 173, 216, .16); }

/* ============================================================
   01 · Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 740px;
  padding: 60px 24px;
  background: var(--navy-950);
}

/* brilho lilás no topo + brilho verde na base (blobs do Figma) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 380px at 50% 100px, rgba(165, 173, 216, .5), transparent 72%),
    radial-gradient(360px 220px at 50% calc(100% + 80px), rgba(146, 197, 110, .26), transparent 72%);
}

/* feixe de luz vertical central */
.hero__beam {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 150px;
  height: 700px;
  border-radius: 75px;
  background: rgba(184, 191, 235, .18);
  filter: blur(42px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 920px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 56px);
  line-height: 1.12;
  max-width: 766px;
  background: linear-gradient(180deg, #fff 0%, var(--periwinkle) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  max-width: 660px;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   02 · Frase de transição (ticker)
   ============================================================ */
.ticker {
  background: var(--lilac);
  padding-block: 44px;
}

/* Cada metade repete a frase 3× — em qualquer largura de tela sempre
   há texto visível, e o loop (-50%) é imperceptível. */
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 80s linear infinite;
  will-change: transform;
}

.ticker__group {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .4px;
  color: var(--navy);
  white-space: nowrap;
  padding-right: 8px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   03 · Como a TCC funciona
   ============================================================ */
.tcc {
  background: var(--surface);
  padding-block: 110px;
}

/* textura de cubos (4%) + brilho lilás no canto superior esquerdo */
.tcc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/pattern-cubos.jpg") center / cover no-repeat;
  opacity: .04;
  pointer-events: none;
}

.tcc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 210px at 220px 90px, rgba(165, 173, 216, .12), transparent 72%);
  pointer-events: none;
}

.tcc__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.tcc__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.14;
  color: var(--navy);
}

.tcc__lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 780px;
  color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  padding-top: 14px;
  text-align: left;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--navy-card);
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.card__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: #fff;
}

.card__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tcc__cta { padding-top: 10px; }

/* ============================================================
   04 · Quem irá te atender
   ============================================================ */
.bio {
  background: var(--navy-900);
  padding-block: 110px;
}

/* brilhos verdes nos cantos */
.bio::before,
.bio::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 635px;
  background: radial-gradient(350px 317px at center, rgba(146, 197, 110, .23), transparent 72%);
  pointer-events: none;
}

.bio::before { left: -299px; top: -286px; }
.bio::after { right: -321px; bottom: -298px; }

.bio__grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.bio__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.bio__text .pill { color: var(--lilac); }

.bio__paragraph {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Ajustes de leitura só no desktop, a pedido do cliente (tablet e mobile
   ficam como estavam):
   - bio: respiro maior e uniforme entre os itens e +2px nas fontes
   - seção TCC: +3px nos textos em Roboto Condensed (lead e corpo dos cards) */
@media (min-width: 1025px) {
  .bio__text { gap: 28px; }
  .bio__paragraph { font-size: 20px; }
  .bio .pill { font-size: 15px; }

  .tcc__lead { font-size: 21px; }
  .card__title { font-size: 21px; }
  .card__text { font-size: 18px; }
}

.bio__photo {
  flex-shrink: 0;
  width: 420px;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
}

.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   05 · Outros serviços
   ============================================================ */
.services {
  background: var(--lilac);
  padding-block: 100px;
}

/* símbolo decorativo (15%) nos dois cantos */
.services::before,
.services::after {
  content: "";
  position: absolute;
  width: 503px;
  height: 894px;
  top: -155px;
  background: url("../assets/img/bg-simbolo.png") center / cover no-repeat;
  opacity: .15;
  pointer-events: none;
}

.services::before { left: -300px; }
.services::after { right: -232px; transform: scaleX(-1); }

.services__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1004px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.services__label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2.24px;
  color: var(--navy);
}

.services__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  color: var(--navy);
}

.services__intro {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
}

.services__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  padding-top: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 30px;
  border: 1px solid var(--surface);
  border-radius: 18px;
  background: rgba(255, 255, 255, .24);
  color: var(--navy);
}

.service-card__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.26;
}

.service-card__tag {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
}

.service-card__text {
  font-size: 16px;
  line-height: 1.52;
}

.services__lattes {
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
}

.services__lattes a { text-decoration: underline; }

.services__cta { padding-top: 8px; }

/* ============================================================
   06 · Perguntas frequentes
   ============================================================ */
.faq {
  background: var(--surface);
  padding-block: 100px;
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/pattern-cubos.jpg") center / cover no-repeat;
  opacity: .04;
  pointer-events: none;
}

.faq__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.faq__label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2.24px;
  color: var(--green-dark);
}

.faq__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.15;
  text-align: center;
  color: var(--navy);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding-top: 6px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--surface);
  border-radius: 12px;
  padding: 20px;
}

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.32;
  color: var(--navy);
}

.faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform .3s ease;
}

/* recolhível com animação suave (grid-rows) */
.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .35s ease, opacity .35s ease, margin-top .35s ease;
  opacity: 1;
  margin-top: 10px;
}

.faq__answer > p {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.faq__item.is-closed .faq__answer {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}

/* ============================================================
   07 · CTA final
   ============================================================ */
.cta-final {
  background: var(--navy);
  padding-block: 100px;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.cta-final__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.18;
  color: #fff;
}

.cta-final__title span { color: var(--lilac); }

.cta-final__subtitle {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-softer);
}

.cta-final__action { padding-top: 12px; }

/* ============================================================
   08 · Formulário
   ============================================================ */
.contact {
  background: var(--surface);
  padding-block: 100px;
}

/* símbolos decorativos nas laterais */
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  width: 616px;
  height: 1096px;
  top: -194px;
  background: url("../assets/img/bg-simbolo.png") center / cover no-repeat;
  pointer-events: none;
}

.contact::before { left: -315px; }
.contact::after { right: -333px; transform: scaleX(-1); }

.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.contact__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  color: var(--navy);
}

.contact__subtitle {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: normal;
  color: var(--body);
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 680px;
  padding: 36px;
  border: 1px solid var(--surface);
  border-radius: 20px;
  background: #fff;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 52px;
  padding-inline: 16px;
  border: 1px solid var(--surface);
  border-radius: 10px;
  background: var(--input-bg);
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  height: 120px;
  padding-block: 15px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(165, 173, 216, .25);
}

/* select com seta customizada (▾ como no Figma) */
.select-wrap { position: relative; }

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--navy);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap select:invalid { color: var(--muted); }

/* honeypot fora da tela */
.form-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: 2px;
}

.form-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Sempre renderizado (mesmo vazio) para a live region ser anunciada
   por leitores de tela quando o texto aparecer. Enquanto está vazio
   não ocupa espaço — o margin negativo anula o gap do formulário. */
.form-status {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  text-align: center;
}

.form-status:empty { margin-top: -18px; }

.form-status.is-ok { color: #3e7a1e; }
.form-status.is-error { color: #b3261e; }

/* ============================================================
   09 · Rodapé
   ============================================================ */
.footer {
  background: var(--navy);
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.logo--footer .logo__name { color: var(--lilac); }

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 15px;
  text-align: right;
  color: var(--lilac);
}

.footer__contact a {
  font-family: var(--font-title);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.footer__contact a:hover { text-decoration: underline; }

.footer__divider {
  margin: 26px 0;
  border: 0;
  height: 1px;
  background: rgba(165, 173, 216, .28);
}

/* segunda divisória (entre logo e contato) só existe no mobile */
.footer__divider--top { display: none; }

.footer__copy {
  font-size: 13px;
  color: var(--lilac);
}

/* ============================================================
   Consentimento de cookies
   ============================================================ */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px 22px;
  border: 1px solid rgba(165, 173, 216, .3);
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 12, 24, .45);
}

.cookie[hidden] { display: none; }

.cookie__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cookie__text a { color: #fff; }

.cookie__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie__btn {
  padding: 11px 26px;
  font-size: 15px;
}

.cookie__decline {
  padding: 11px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  color: var(--lilac);
  cursor: pointer;
  transition: color .2s ease;
}

.cookie__decline:hover,
.cookie__decline:focus-visible { color: #fff; }

@media (max-width: 640px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .cookie__text { font-size: 14px; }
  .cookie__actions { justify-content: space-between; }
  .cookie__btn { flex: 1; }
}

/* ============================================================
   Responsivo — a partir de 900px: entra o header do design
   (o logo sai do hero e vai para a barra do topo)
   ============================================================ */
@media (min-width: 900px) {
  /* compensa o logo (42px) + gap (24px) que o Figma reserva no hero,
     agora que o logo vive no header — mantém as posições do design */
  .hero__content { padding-top: 66px; }
}

/* ============================================================
   Header recolhido (< 900px) — não existe no Figma; criado para
   o mobile não ficar sem navegação
   ============================================================ */
@media (max-width: 899px) {
  .site-header__inner {
    height: 64px;
    padding-inline: 20px;
  }

  .logo--header .logo__symbol {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .logo--header .logo__symbol img { width: 21px; height: 24px; }
  .logo--header .logo__name { font-size: 16px; }
  .logo--header .logo__crp { font-size: 8px; letter-spacing: 1.1px; }

  .nav-toggle { display: flex; }

  /* o menu vira um painel que desce a partir da barra */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 16px;
    background: var(--navy);
    border-top: 1px solid rgba(165, 173, 216, .18);
    box-shadow: 0 18px 30px rgba(0, 12, 24, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(165, 173, 216, .14);
  }

  /* no painel recolhido não há hover: as duas opções ficam sempre à vista */
  .site-nav .lang-pick {
    margin-left: 0;
    padding-top: 6px;
  }

  .lang-pick::after { display: none; }

  .lang-pick__toggle {
    width: 100%;
    padding: 14px 0;
    gap: 8px;
    cursor: default;
  }

  .lang-pick__menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .lang-pick__option {
    padding: 14px 0;
    gap: 8px;
    border-radius: 0;
    border-top: 1px solid rgba(165, 173, 216, .14);
  }
}

/* entre 900 e 1120px o header encolhe a tipografia em vez de espremer
   os links (a partir de 1120px já cabem nos tamanhos do Figma) */
@media (min-width: 900px) and (max-width: 1120px) {
  .logo--header .logo__name { font-size: 17px; }
  .logo--header .logo__crp { font-size: 9px; letter-spacing: 1.1px; }
  .site-nav > a,
  .lang-pick__label { font-size: 14px; }
}

/* ============================================================
   Responsivo — telas grandes (≥ 1440px)
   O conteúdo fica limitado a 1120px (como no Figma) e o hero
   mantém os 740px do design; apenas os fundos e as decorações
   esticam para preencher a tela.
   ============================================================ */

/* ============================================================
   Responsivo — desktop compacto / tablet horizontal (≤ 1180px)
   A foto da bio encolhe proporcionalmente para continuar ao
   lado do texto o máximo possível.
   ============================================================ */
@media (max-width: 1180px) {
  .bio__grid { gap: 40px; }

  .bio__photo {
    width: min(420px, 36vw);
    height: auto;
    aspect-ratio: 420 / 520;
  }
}

/* ============================================================
   Responsivo — tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero { min-height: 640px; }

  .tcc, .bio { padding-block: 84px; }
  .services, .faq, .contact { padding-block: 80px; }
  .cta-final { padding-block: 84px; }

  /* os 3 cards se reacomodam conforme o espaço (3 → 2 → 1 colunas) */
  .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

  .card { padding: 26px 24px; }
  .card__title { font-size: 18px; }
  .card__text { font-size: 15px; }

  .tcc__lead, .services__intro, .bio__paragraph { font-size: 17px; }
}

/* ============================================================
   Responsivo — tablet vertical (≤ 900px)
   Bio empilhada e centralizada; serviços em coluna única.
   ============================================================ */
@media (max-width: 900px) {
  .bio__grid { flex-direction: column; gap: 28px; }

  .bio__text {
    align-items: center;
    text-align: center;
  }

  .bio__paragraph { max-width: 560px; }

    .bio__photo { width: min(420px, 60vw); }

  .services__inner {
    align-items: center;
    text-align: center;
  }

  .services__cards { grid-template-columns: 1fr; max-width: 560px; }

  .service-card { text-align: left; }
}

/* ============================================================
   Responsivo — tablet pequeno (≤ 720px)
   ============================================================ */
@media (max-width: 720px) {
  .footer__row {
    flex-direction: column;
    align-items: center;
  }

  .footer__contact {
    align-items: center;
    text-align: center;
  }

  .footer__copy { text-align: center; }
}

/* ============================================================
   Responsivo — mobile (≤ 640px, ref. Figma 390)
   ============================================================ */
@media (max-width: 640px) {
  .mobile-only { display: inline; }
  .desktop-only { display: none; }

  /* --- hero --- */
  .hero {
    min-height: 455px;
    padding: 60px 24px 36px;
    justify-content: flex-start;
  }

  .hero::before {
    background:
      radial-gradient(500px 380px at 50% -136px, rgba(165, 173, 216, .5), transparent 72%),
      radial-gradient(360px 220px at 50% calc(100% + 30px), rgba(146, 197, 110, .26), transparent 72%);
  }

  .hero__beam {
    top: -213px;
    width: 120px;
    height: 700px;
  }

  .hero__content { gap: 16px; }

  /* O frame do Figma tem 390px reais, então os tamanhos dele são o tamanho
     final na tela — 9px e 11px ficariam ilegíveis. Mantido o menor tamanho
     que ainda se lê confortavelmente no celular. */
  .hero .pill {
    padding: 7px 18px;
    font-size: 11px;
    letter-spacing: 1.3px;
  }

  .hero__title { max-width: 300px; }

  .hero__subtitle {
    font-size: 15px;
    line-height: 1.45;
    max-width: min(330px, 100%);
  }

  .hero__actions { padding-top: 6px; }

  .hero .btn--primary {
    padding: 11px 35px;
    font-size: 15px;
  }

  /* --- ticker --- */
  .ticker { padding-block: 19px; }
  .ticker__group { font-size: 12px; }

  /* --- TCC --- */
  .tcc { padding-block: 54px 65px; }
  .tcc__lead { font-size: 16px; }
  .tcc__cta .btn { padding: 11px 35px; font-size: 15px; }

  /* Carrossel dos pilares. O card que entra ou sai da tela é esmaecido nas
     bordas, para o texto nunca aparecer fatiado no meio de uma palavra.
     O laço infinito é montado no main.js. */
  .cards {
    --fade: 34px;

    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: -24px;
    padding-inline: 24px;
    padding-bottom: 8px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;

    -webkit-mask-image: linear-gradient(to right,
      transparent 0, #000 var(--fade),
      #000 calc(100% - var(--fade)), transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0, #000 var(--fade),
      #000 calc(100% - var(--fade)), transparent 100%);
  }

  .cards::-webkit-scrollbar { display: none; }

  .card {
    flex: 0 0 215px;
    /* o card em foco para no centro da tela, com os vizinhos esmaecidos
       aparecendo dos dois lados */
    scroll-snap-align: center;
    padding: 30px 28px;
  }

  .card__title { font-size: 16px; }
  .card__text { font-size: 13px; }

  /* enquanto o laço se reposiciona, o snap é desligado para não brigar */
  .cards.is-looping { scroll-snap-type: none; }

  /* --- bio --- */
  .bio { padding-block: 52px 53px; }
  .bio__paragraph { font-size: 15px; max-width: min(430px, 100%); }

  .bio__photo {
    width: 168px;
    height: 208px;
    border-radius: 16px;
  }

    /* --- serviços --- */
  .services { padding-block: 66px 57px; }

  .services::before { display: none; }

  .services::after {
    width: 100%;
    height: 100%;
    inset: 0;
    transform: none;
  }

  .services__inner {
    align-items: center;
    text-align: center;
  }

  .services__label { font-size: 12px; letter-spacing: 2px; }
  .services__intro { font-size: 16px; max-width: min(430px, 100%); }
  .services__cards { max-width: min(430px, 100%); margin-inline: auto; }
  .service-card { text-align: left; }

  /* o Figma escondia estes dois no mobile; reexibidos porque a seção
     ficaria sem chamada para ação justamente onde há mais tráfego */
  .services__lattes {
    max-width: min(430px, 100%);
    font-size: 15px;
  }

  .services__cta .btn {
    max-width: min(340px, 100%);
    padding: 14px 24px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  /* --- FAQ --- */
  .faq { padding-block: 79px 41px; }
  .faq__title { font-size: 40px; }

  /* --- CTA final --- */
  .cta-final { padding-block: 73px; }
  .cta-final__title { font-size: 36px; }
  .cta-final__subtitle { max-width: min(430px, 100%); }

  .cta-final__action .btn--lg {
    width: 288px;
    max-width: 100%;
  }

  /* --- formulário --- */
  .contact { padding-block: 70px 55px; }

  .contact::before { display: none; }

  .contact::after {
    width: 100%;
    height: 100%;
    inset: 0;
    transform: none;
    opacity: .25;
  }

  .form-card { padding: 24px 20px; }

  /* Placeholders um pouco menores, como no Figma mobile. Os campos em si
     ficam em 16px: abaixo disso o Safari do iPhone dá zoom na página ao
     focar o campo — e não volta ao sair dele. Por isso o <select> não
     entra nesta regra (ela mudaria o tamanho do próprio campo). */
  .form-field input::placeholder,
  .form-field textarea::placeholder { font-size: 14px; }

  /* --- rodapé --- */
  .footer { padding-top: 34px; padding-bottom: 40px; }

  .footer .logo__name { font-size: 13px; }
  .footer .logo__crp { font-size: 8px; letter-spacing: 1.1px; }

  .footer__divider {
    width: 250px;
    margin-inline: auto;
  }

  .footer__divider--top {
    display: block;
    width: 250px;
    margin: 0 auto;
  }

  .footer__contact { font-size: 14px; gap: 4px; }

  .footer__copy { font-size: 12px; }
}

/* ============================================================
   Acessibilidade — movimento reduzido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker { overflow-x: auto; }
  .ticker__track { animation: none; }

  .btn { transition: none; }
  .faq__answer { transition: none; }
}
