/* ==========================================================================
   Débora Denúbila — Advocacia Familiar & Patrimonial
   styles.css
   --------------------------------------------------------------------------
   ÍNDICE
   01. Tokens (cores, tipografia, espaçamentos)
   02. Reset e base
   03. Utilitários (container, ícones, botões)
   04. Header
   05. Hero
   06. Seções e cards
   07. Método
   08. Sobre
   09. Formulário
   10. Encerramento
   11. Footer
   12. WhatsApp flutuante
   13. Animações de entrada
   14. Responsivo
   15. Acessibilidade / movimento reduzido / impressão
   ========================================================================== */

/* ==========================================================================
   00. Fonte (Roboto variável, hospedada localmente)
   ========================================================================== */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   01. Tokens
   ========================================================================== */
:root {
  /* Cores da marca */
  --brand: #434F47;
  --brand-deep: #40544A;
  --brand-soft: #4D5850;
  --brand-soft-hover: #56615A;
  --brand-line: #67716A;

  --gold: #DDB364;
  --gold-deep: #C9A35B;
  --gold-text: #8A6A2F;  /* texto pequeno com contraste AA em fundos claros */
  --gold-title: #A67C33; /* display grande com contraste AA (texto grande) */

  --cream: #F8F7F6;
  --paper: #F7F6F5;
  --ivory: #FFFEFC;
  --ink: #1F1B13;

  /* Texto */
  --text: #434F47;
  --muted: #6F6F6F;
  --muted-light: #CBCFDC;
  --muted-soft: #CDCFCE;
  --muted-footer: #BDBCB8;

  /* Linhas e superfícies */
  --line: #EFEBE7;
  --line-soft: #F1F0ED;
  --field-border: #878D93;
  --placeholder: #6B7075;
  --sage-bg: #EDF0EE;
  --sage-line: #D8E2E4;
  --sky: #9FBDD9;
  --whatsapp: #25D366;

  /* Tipografia */
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 24px;
  --header-h: 88px;
  --section-y: 100px;
  --radius: 20px;
  --radius-sm: 10px;

  /* Movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================================
   02. Reset e base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  caret-color: var(--brand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--brand);
}

@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: #9CA69F #F1F0ED;
    scrollbar-width: thin;
  }
}

/* ==========================================================================
   03. Utilitários
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sem JS, os dois destaques ficam empilhados e os controles somem. */
.no-js .hero__controls {
  display: none;
}

.no-js .hero__slide + .hero__slide {
  margin-top: 64px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
}

/* Em superfícies escuras o ouro claro tem melhor contraste. */
.section--dark :focus-visible,
.section--form :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.btn:focus-visible {
  outline-color: var(--brand);
}

/* Seções recebem foco via JS após a navegação móvel; o deslocamento já é o feedback. */
main > section:focus {
  outline: none;
}

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 5px;
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}

.btn:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 27, 19, .16);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--sm {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-header .btn {
  white-space: nowrap;
}

.btn--block {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

/* ==========================================================================
   04. Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(247, 246, 245, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 10px rgba(0, 0, 0, .06);
  backdrop-filter: saturate(140%) blur(8px);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(31, 27, 19, .10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: 216px;
  height: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--brand);
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold-text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

/* Menu móvel (disclosure) ------------------------------------------------ */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  transition: background-color .2s ease, border-color .2s ease;
}

.menu-toggle:hover {
  border-color: var(--field-border);
  background: var(--sage-bg);
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease-out), opacity .15s ease, top .25s var(--ease-out);
}

.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }

.site-header.is-menu-open .menu-toggle__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 8px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 40px rgba(31, 27, 19, .12);
}

.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-size: 17px;
  font-weight: 500;
}

.mobile-menu__links a:hover,
.mobile-menu__links a.is-active {
  color: var(--gold-text);
}

.mobile-menu .btn {
  margin-top: 18px;
}

/* ==========================================================================
   05. Hero (tela cheia + carrossel de dois destaques)
   ========================================================================== */
.hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 0;
  background: #fff;
}

.hero__slider {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hero__viewport {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.js .hero__viewport {
  overflow: hidden;
}

.hero__track {
  width: 100%;
}

.js .hero__track {
  display: flex;
  transition: transform .65s var(--ease-out);
}

.hero__slide {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero__slide > .hero__grid {
  width: 100%;
}

.js .hero__slide {
  flex: 0 0 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

/* Controles do carrossel */
.hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

.hero__tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero__tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color .2s ease;
}

.hero__tab span {
  font-size: 10px;
  letter-spacing: .04em;
}

.hero__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}

.hero__tab:hover,
.hero__tab.is-active {
  color: var(--brand);
}

.hero__tab.is-active::after {
  transform: scaleX(1);
}

.hero__arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}

.hero__arrow:hover {
  border-color: var(--field-border);
  background: var(--sage-bg);
  transform: translateY(-1px);
}

.hero__arrow .icon {
  width: 18px;
  height: 18px;
}

/* Conteúdo dentro de cada slide */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

.hero__title {
  max-width: 600px;
  color: var(--brand);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.103;
  letter-spacing: -.005em;
  text-wrap: wrap;
}

.hero__title span {
  color: var(--gold-title);
}

@media (min-width: 1101px) {
  .hero__title--palestras {
    font-size: clamp(44px, 4.2vw, 54px);
  }
}

.hero__lead {
  max-width: 580px;
  color: var(--text);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: var(--text);
  font-size: 13px;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__features .icon {
  width: 17px;
  height: 17px;
  color: var(--sky);
}

.hero__media {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.hero__media img {
  width: 100%;
  max-width: 444px;
  border-radius: var(--radius);
  box-shadow: 2px 5px 10px rgba(0, 0, 0, .28);
}

/* Slide de palestras: painel verde, imagem à esquerda e linguagem editorial. */
.hero__slide--palestras {
  overflow: hidden;
  border-radius: 24px;
  background: var(--brand);
}

.hero__slide--palestras .hero__grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 48px;
  padding: 34px;
}

.hero__slide--palestras .hero__media {
  order: -1;
  flex-direction: column;
  gap: 14px;
}

.hero__slide--palestras .hero__media img {
  max-width: 400px;
  border: 1px solid rgba(221, 179, 100, .58);
  border-radius: 220px 220px 16px 16px;
  box-shadow: 0 28px 54px rgba(0, 0, 0, .34);
}

.hero__caption {
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.hero__slide--palestras .hero__title {
  color: #fff;
}

.hero__slide--palestras .hero__title span {
  color: var(--gold);
}

.hero__slide--palestras .hero__lead {
  color: var(--muted-light);
}

.hero__slide--palestras .hero__features {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__slide--palestras .hero__features li {
  gap: 0;
}

.hero__slide--palestras .hero__features li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   06. Seções e cards
   ========================================================================== */
.section {
  padding-block: var(--section-y);
}

.section--dark {
  background: var(--brand);
}

.section--cream {
  background: var(--cream);
}

.section--ivory {
  background: var(--ivory);
}

.section__title {
  max-width: 760px;
  color: var(--brand);
  font-size: 39px;
  font-weight: 700;
  line-height: 1.08;
}

.section__title--light {
  color: #fff;
}

.section__title--center {
  margin-inline: auto;
  text-align: center;
}

.section__lead {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.section__lead--light {
  color: var(--muted-light);
}

.section__lead--center {
  margin-inline: auto;
  text-align: center;
}

.section__lead--wide {
  max-width: 1120px;
}

/* Títulos que precisam de mais largura para manter o desenho original */
.section--inventory .section__title {
  max-width: 1040px;
}

.section--form .section__title {
  max-width: 1000px;
}

.section--form .section__lead {
  max-width: 900px;
}

/* Grid de cards ---------------------------------------------------------- */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

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

.card {
  border-radius: var(--radius);
}

.card h3 {
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.card p {
  font-size: 16px;
  line-height: 1.5;
}

.card__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Cards escuros (riscos) */
.card--dark {
  padding: 20px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  transition: background-color .25s ease, transform .25s var(--ease-out);
}

.card--dark:hover {
  background: var(--brand-soft-hover);
  transform: translateY(-2px);
}

.card--dark h3 {
  margin: 8px 0 16px;
  color: #fff;
}

.card--dark p {
  color: var(--muted-soft);
}

/* Cards de soluções */
.card--solution {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 16px;
  align-items: center;
  padding: 25px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .02);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}

.card--solution:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 27, 19, .08);
}

.card__icon-box {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--sage-bg);
  color: #5E7468;
}

.card__icon-box .icon {
  width: 24px;
  height: 24px;
}

.card--solution h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}

.card--solution p {
  grid-column: 1 / -1;
  color: var(--muted);
}

/* Cards "para quem" */
.card--audience {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  background: var(--paper);
}

.card--audience .card__icon {
  margin-top: 2px;
}

.card__body p {
  margin-top: 8px;
  color: var(--muted);
}

/* Inventário */
.section--inventory {
  padding-top: 50px;
}

.card--inventory {
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
}

.card--inventory h3 {
  margin: 8px 0 16px;
}

.card--inventory p {
  color: var(--text);
}

.inventory__cta {
  margin-top: 40px;
  text-align: center;
}

.inventory__cta p {
  color: var(--muted);
}

.inventory__cta .btn {
  margin-top: 20px;
}

/* ==========================================================================
   07. Método
   ========================================================================== */
.method {
  padding-top: var(--section-y);
  padding-bottom: 50px;
  background: #fff;
}

.method__title {
  margin-bottom: 0;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

/* Linha horizontal que conecta as etapas */
.steps::before {
  content: "";
  position: absolute;
  left: 40px;
  right: calc(33.3333% - 40px);
  top: 30px;
  height: 3px;
  background: rgba(67, 79, 71, .12);
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.step__badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(31, 27, 19, .12);
}

.step__badge--gold { background: var(--gold-deep); }
.step__badge--sage { background: #97B5A9; }
.step__badge--green { background: var(--brand); color: #fff; }

.step h3 {
  color: var(--brand);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.step p {
  color: var(--muted);
}

/* ==========================================================================
   08. Sobre
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.about__media {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.about__media img {
  width: 100%;
  max-width: 440px;
  border-radius: 15px;
  box-shadow: 2px 6px 10px rgba(0, 0, 0, .17);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.about__content p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__value {
  order: -1;
  color: var(--gold-title);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.stat__label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ==========================================================================
   08b. Palestras
   ========================================================================== */
.palestras__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.palestras__media {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.palestras__media img {
  width: 100%;
  max-width: 440px;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(31, 27, 19, .16);
}

.palestras__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

.palestras__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.topic-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.topic-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold-text);
}

.topic-list h3 {
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.topic-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.palestras__note {
  color: var(--muted);
  font-size: 13px;
}

.palestras__content .btn {
  margin-top: 4px;
}

/* ==========================================================================
   09. Formulário
   ========================================================================== */
.section--form {
  background: var(--brand-deep);
}

.form-card {
  max-width: 820px;
  margin: 48px auto 0;
  padding: 46px 40px;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(17, 24, 20, .22);
}

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

/* Resumo de erros: leva o foco ao topo do formulário e liga cada erro ao campo. */
.form__summary {
  padding: 14px 16px;
  border: 1px solid #E3B8B2;
  border-radius: 8px;
  background: #FBECEA;
  color: #7A2E26;
}

.form__summary:focus-visible {
  outline-color: #8E342A;
}

.form__summary-title {
  font-size: 15px;
  font-weight: 700;
}

.form__summary-list {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  line-height: 1.5;
}

.form__summary-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__summary-list a:hover {
  text-decoration-thickness: 2px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background-color: #fff;
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

/* Selects vazios mostram um texto-guia em vez de um campo em branco. */
.field select:invalid {
  color: var(--placeholder);
}

.field select option {
  color: var(--text);
}

.field input:hover,
.field select:hover {
  border-color: #6F777D;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(67, 79, 71, .14);
}

.field input:user-invalid,
.field select:user-invalid,
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #A64036;
  box-shadow: 0 0 0 3px rgba(166, 64, 54, .10);
}

.field__error {
  margin-top: 6px;
  color: #8E342A;
  font-size: 13px;
  line-height: 1.4;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23434F47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  background: #E7F2E9;
  color: #2C5B3C;
}

.form__status.is-error {
  background: #FBECEA;
  color: #8E342A;
}

.form__status a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__noscript {
  color: var(--brand);
  font-size: 14px;
}

.form__noscript a {
  font-weight: 600;
  text-decoration: underline;
}

.form-note {
  max-width: 820px;
  margin: 30px auto 0;
  color: #D8DED9;
  font-size: 15px;
}

/* ==========================================================================
   10. Encerramento
   ========================================================================== */
.closing {
  background: #fff;
}

.closing__inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.closing .section__title {
  max-width: 900px;
}

.closing__inner p {
  margin-top: 14px;
  color: var(--muted);
}

.closing__signature {
  font-size: 15px;
}

/* ==========================================================================
   10b. Página de agradecimento (obrigado.html)
   ========================================================================== */
.thanks {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background: #fff;
}

.thanks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 90px;
  align-items: center;
}

.thanks__content {
  max-width: 580px;
}

.thanks__title {
  color: var(--brand);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}

.thanks__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.thanks__lead .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -.2em;
  color: var(--gold-text);
}

.thanks__content .btn {
  margin-top: 28px;
}

.thanks__media img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(31, 27, 19, .18);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  padding-block: 10px;
  background: var(--ink);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 87px;
}

.brand--footer img {
  width: 216px;
}

.site-footer p {
  color: var(--muted-footer);
  font-size: 15px;
  text-align: right;
}

/* ==========================================================================
   12. WhatsApp flutuante
   ========================================================================== */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease-out), box-shadow .2s ease, opacity .2s ease, visibility .2s;
}

/* Evita que o botão flutuante cubra o rodapé. */
.whatsapp.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(.92);
  pointer-events: none;
}

/* Em telas menores, o botão sai da frente dos controles do carrossel. */
@media (max-width: 1400px) {
  .whatsapp.is-hero-near {
    opacity: 0;
    visibility: hidden;
    transform: scale(.92);
    pointer-events: none;
  }
}

.whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.whatsapp svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
}

.whatsapp__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: whatsapp-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { opacity: .65; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* ==========================================================================
   13. Animações de entrada
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Pequeno escalonamento nos grids */
.js .cards > [data-reveal]:nth-child(2),
.js .steps > [data-reveal]:nth-child(2) { transition-delay: .07s; }

.js .cards > [data-reveal]:nth-child(3),
.js .steps > [data-reveal]:nth-child(3) { transition-delay: .14s; }

.js .cards > [data-reveal]:nth-child(4) { transition-delay: .21s; }

/* ==========================================================================
   14. Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  :root {
    --section-y: 80px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__media img {
    max-width: 420px;
  }

  .palestras__grid {
    gap: 40px;
  }

  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__title {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 78px;
    --section-y: 72px;
  }

  .brand img {
    width: 180px;
  }

  .site-header__actions {
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility .25s;
  }

  .site-header.is-menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-header.is-menu-open {
    box-shadow: 0 12px 32px rgba(31, 27, 19, .14);
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero__slide--palestras .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .hero__slide--palestras .hero__content {
    padding: 4px 0;
  }

  .hero__slide--palestras .hero__media {
    order: 2;
    margin-top: 0;
    padding: 4px 5px;
  }

  .hero__controls {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .palestras__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .palestras__media img {
    max-width: 520px;
  }

  .palestras__content {
    padding: 0;
  }

  .hero__title {
    max-width: 640px;
    font-size: 44px;
    text-wrap: balance;
  }

  .hero__lead {
    max-width: 620px;
  }

  .hero__media {
    margin-top: 12px;
  }

  .hero__media img {
    max-width: 560px;
  }

  .cards--3,
  .cards--2 {
    grid-template-columns: 1fr;
  }

  .card--solution {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 32px;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding: 0;
  }

  .step h3 {
    font-size: 18px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__media img {
    max-width: 520px;
  }

  .thanks {
    min-height: 0;
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 88px;
  }

  .thanks__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .thanks__content {
    max-width: 620px;
  }

  .thanks__media img {
    max-width: 560px;
  }

  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-block: 18px;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: 56px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .brand img {
    width: 140px;
  }

  .btn--sm {
    padding: 11px 12px;
    font-size: 13px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 0;
  }

  .hero__content {
    gap: 18px;
    padding: 4px 0;
  }

  .hero__tabs {
    gap: 18px;
  }

  .hero__tab {
    gap: 6px;
    font-size: 11px;
    letter-spacing: .06em;
  }

  .hero__arrow {
    width: 42px;
    height: 42px;
  }

  .hero__controls {
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.1;
    text-wrap: wrap;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  .hero__media {
    padding: 4px 5px;
  }

  .hero__media img {
    border-radius: 16px;
  }

  .hero__slide--palestras .hero__media img {
    border-radius: 200px 200px 16px 16px;
  }

  .palestras__media {
    padding: 0;
  }

  .palestras__media img {
    border-radius: 16px;
  }

  .palestras__content {
    gap: 16px;
  }

  .palestras__lead {
    font-size: 16px;
  }

  .topic-list h3 {
    font-size: 16px;
  }

  .topic-list p {
    font-size: 14px;
  }

  .section__title {
    font-size: 30px;
  }

  .section__lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .cards {
    margin-top: 32px;
  }

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

  .card--solution {
    padding: 22px;
  }

  .section--inventory {
    padding-top: 56px;
  }

  .step__badge {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat__value {
    font-size: 38px;
  }

  .stat__label {
    font-size: 11px;
    letter-spacing: .1em;
  }

  .form-card {
    margin-top: 36px;
    padding: 30px 20px;
  }

  .form {
    gap: 11px;
  }

  .form-note {
    margin-top: 20px;
    font-size: 14px;
  }

  .closing__inner p {
    font-size: 15px;
  }

  .thanks {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 64px;
  }

  .thanks__grid {
    gap: 32px;
  }

  .thanks__title {
    font-size: 31px;
  }

  .brand--footer img {
    width: 175px;
  }

  .site-footer p {
    font-size: 13px;
  }

  .whatsapp {
    right: 15px;
    bottom: 15px;
    width: 55px;
    height: 55px;
  }

  .whatsapp svg {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 430px) {
  .hero__title {
    font-size: 38px;
  }
}

@media (max-width: 380px) {
  .btn--sm {
    padding: 10px 10px;
    font-size: 12px;
  }
}

/* Em telas muito estreitas o CTA do topo dá lugar ao CTA dentro do menu. */
@media (max-width: 350px) {
  .site-header__actions > .btn {
    display: none;
  }
}

@media (max-width: 370px) {
  .brand img {
    width: 132px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero .btn {
    padding-inline: 16px;
    font-size: 15px;
  }

  .hero__controls {
    gap: 10px;
  }

  .hero__tabs {
    gap: 10px;
  }

  .hero__tab {
    gap: 4px;
    font-size: 11px;
  }

  .hero__arrow {
    width: 38px;
    height: 38px;
  }

  .thanks__title {
    font-size: 28px;
  }
}

/* ==========================================================================
   15. Acessibilidade / movimento reduzido / impressão
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .whatsapp__pulse {
    display: none;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .whatsapp,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .hero,
  .section,
  .closing {
    padding-block: 24px;
    background: #fff !important;
  }

  .hero__grid,
  .about__grid {
    display: block;
  }

  .card,
  .form-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
