/* ==========================================================================
   Dr. Bruno Garlet — Cirurgia Plástica
   Design system: tokens, base, layout, componentes
   ========================================================================== */

/* --- Fontes (self-hosted, variável, apenas para títulos) --- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 350 700;
  font-display: swap;
  src: url("../fonts/fraunces-variable.woff2") format("woff2-variations"),
       url("../fonts/fraunces-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 350 700;
  font-display: swap;
  src: url("../fonts/fraunces-variable-italic.woff2") format("woff2-variations"),
       url("../fonts/fraunces-variable-italic.woff2") format("woff2");
}

/* --- Tokens --- */
:root {
  /* Cor */
  --ink: #1b1712;
  --ink-2: #292219;
  --ink-3: #3a3025;
  --cream: #f6f1e9;
  --paper: #fffcf7;
  --accent: #b98a5c;
  --accent-2: #d8b891;
  --accent-dark: #8a6039;
  --text: #241f19;
  --text-muted: #63594c;
  --on-dark: #f6f1e9;
  --on-dark-muted: rgba(246, 241, 233, 0.68);
  --line: rgba(36, 31, 25, 0.12);
  --line-dark: rgba(246, 241, 233, 0.16);
  --success: #4d7358;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --display-4: clamp(1.25rem, 1vw + 1rem, 1.625rem);
  --display-3: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  --display-2: clamp(2rem, 2.6vw + 1rem, 3.125rem);
  --display-1: clamp(2.5rem, 4.2vw + 1rem, 4.5rem);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1220px;
  --container-narrow: 760px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 23, 18, 0.06), 0 1px 1px rgba(27, 23, 18, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(27, 23, 18, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@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;
  }
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section {
  padding-block: var(--space-9);
}
.section-tight {
  padding-block: var(--space-7);
}
@media (max-width: 640px) {
  .section {
    padding-block: var(--space-8);
  }
}
.stack > * + * {
  margin-top: var(--space-5);
}
.surface-ink {
  background: var(--ink);
  color: var(--on-dark);
}
.surface-ink .text-muted {
  color: var(--on-dark-muted);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.fact__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 26%, var(--paper)), color-mix(in srgb, var(--accent) 10%, var(--paper)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-dark);
  margin-bottom: var(--space-4);
}
.fact__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* --- Tipografia utilitária --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-snug);
}
.surface-ink .lede {
  color: var(--on-dark-muted);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}
.italic-accent {
  font-style: italic;
  color: var(--accent);
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.surface-light .btn-outline,
.btn-outline.on-light {
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  color: var(--accent-dark);
  padding-inline: 0.25rem;
  border-radius: 0;
}
.btn-ghost::after {
  content: "→";
  margin-left: var(--space-1);
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.btn-ghost:hover::after {
  transform: translateX(3px);
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}
.brand img {
  height: 58px;
  width: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__role {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav__list a {
  position: relative;
  padding-block: var(--space-2);
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--on-dark);
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--ink-2);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-9) var(--space-6) var(--space-6);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.25);
  }
  html[data-nav-open] .nav {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-lg);
  }
  .nav__list a {
    display: block;
    padding-block: var(--space-3);
    width: 100%;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__cta {
    margin-top: var(--space-6);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle {
    display: inline-flex;
  }
  html[data-nav-open] .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  html[data-nav-open] .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  html[data-nav-open] .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  html[data-nav-open] {
    overflow: hidden;
  }
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 9, 0.5);
    z-index: 90;
  }
  html[data-nav-open] .nav-scrim {
    display: block;
  }
}
@media (min-width: 941px) {
  .nav-scrim {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 78% 20%, var(--ink-3), var(--ink) 65%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-9);
}
.hero__eyebrow {
  color: var(--accent-2);
}
.hero h1 {
  font-size: var(--display-1);
  margin-top: var(--space-4);
}
.hero__kicker {
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
}
.hero__name {
  font-size: var(--display-1);
  color: var(--accent-2);
  margin-top: var(--space-4);
}
.hero__role {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.hero__lede {
  margin-top: var(--space-5);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 23, 18, 0) 55%, rgba(27, 23, 18, 0.55));
  pointer-events: none;
}

.hero--banner {
  min-height: 0;
  background: var(--ink);
}
.hero--banner .hero__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  /* sem isso, o aspect-ratio:4/5 da regra base vence o inset:0 e a
     imagem para de esticar para preencher a altura real do hero */
  aspect-ratio: auto;
}
.hero--banner .hero__media img {
  width: 100%;
  height: 100%;
  /* "contain" garante que a foto nunca seja cortada, em qualquer
     proporção de tela — o fundo escuro da foto se funde com o fundo
     do hero, então a "sobra" não fica visível como caixa vazia. */
  object-fit: contain;
  object-position: right center;
}
.hero--banner .hero__media::after {
  background: linear-gradient(90deg, rgba(20, 17, 13, 0.94) 0%, rgba(20, 17, 13, 0.72) 38%, rgba(20, 17, 13, 0.18) 68%, rgba(20, 17, 13, 0.05) 100%);
}
.hero--banner .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-10) var(--space-9);
}
.hero--banner .hero__content {
  max-width: 46ch;
}
@media (max-width: 720px) {
  /* No mobile, a foto vira uma faixa nítida no topo (sem overlay escuro
     por cima) e o texto fica abaixo, em bloco sólido — evita "apagar"
     a foto para manter contraste de leitura. */
  .hero--banner .hero__media {
    /* "relative" (em vez de "static") mantém a foto no fluxo normal,
       mas cria contexto de posicionamento para o gradiente de baixo
       se fundir exatamente com o fundo do bloco de texto — sem isso
       a transição foto → texto ficava com um corte reto, meio "quebrado". */
    position: relative;
    aspect-ratio: 4 / 3;
  }
  /* No mobile a proporção do quadro é fixa (4:3), então "cover" é
     seguro aqui — diferente do desktop, onde a altura varia com o
     texto e "contain" evita cortar a foto em telas muito largas/baixas. */
  .hero--banner .hero__media img {
    object-fit: cover;
    object-position: right top;
  }
  .hero--banner .hero__media::after {
    /* rgb(27,23,18) = var(--ink): o gradiente termina 100% opaco na
       cor exata do fundo abaixo, então a foto "derrete" no texto em
       vez de terminar num corte reto. */
    background: linear-gradient(180deg, rgba(27, 23, 18, 0) 45%, rgb(27, 23, 18) 100%);
  }
  .hero--banner .container {
    padding-block: var(--space-7) var(--space-8);
  }
}

.page-hero {
  background: radial-gradient(ellipse 80% 100% at 15% 0%, var(--ink-3), var(--ink) 60%);
  color: var(--on-dark);
  padding-block: var(--space-8) var(--space-7);
}
.page-hero__inner {
  max-width: 62ch;
}
.page-hero h1 {
  font-size: var(--display-2);
  margin-top: var(--space-3);
}
.page-hero .lede {
  margin-top: var(--space-4);
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding-block: var(--space-8) var(--space-7);
    min-height: 0;
  }
  .hero__media {
    order: -1;
    aspect-ratio: 4/3;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
  margin-bottom: var(--space-5);
}
.breadcrumb a:hover {
  color: var(--accent-2);
}
.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* --- Credenciais --- */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}
.credential-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
  flex: none;
}
.surface-light .credential-pill,
.credential-pill.on-light {
  border-color: var(--line);
  color: var(--text-muted);
}
.surface-light .credential-pill svg,
.credential-pill.on-light svg {
  color: var(--accent-dark);
}

/* ==========================================================================
   Seções gerais
   ========================================================================== */
.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-7);
}
.section-head h2 {
  font-size: var(--display-3);
  margin-top: var(--space-3);
}
.section-head.text-center {
  margin-inline: auto;
}

/* --- Cards de procedimento --- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-2);
}
.card__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 26%, var(--paper)), color-mix(in srgb, var(--accent) 10%, var(--paper)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-dark);
  margin-bottom: var(--space-5);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card__icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.35;
}
a.card:hover .card__icon,
a.card:focus-visible .card__icon {
  transform: scale(1.06);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 38%, var(--paper)), color-mix(in srgb, var(--accent) 16%, var(--paper)));
}
.card h3 {
  font-size: var(--text-xl);
}
.card p {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-dark);
}
.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
a.card:hover .card__link svg {
  transform: translateX(3px);
}

/* --- Card com capa ilustrada (destaques da home) --- */
.card--cover {
  display: block;
  padding: 0;
  overflow: hidden;
}
.card__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 42%, var(--ink)) 0%, var(--ink) 70%);
}
.card__cover img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s var(--ease);
}
.card--cover:hover .card__cover img,
.card--cover:focus-visible .card__cover img {
  transform: scale(1.08) translateY(-2px);
}
.card__body {
  display: block;
  padding: var(--space-6);
}
.card--cover .card__link {
  margin-top: var(--space-5);
}

/* --- Blog card --- */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 600;
}
.post-card h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-3);
}

/* --- Localização --- */
.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.location-card h3 {
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.location-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
  flex: none;
}
.location-card address {
  font-style: normal;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}
.location-card__unit {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
}
.location-card__unit:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.location-card .btn-ghost {
  margin-top: var(--space-4);
}

/* --- Mapa click-to-load --- */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-2) center/cover no-repeat;
  border: 1px solid var(--line-dark);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* --- Widget do Instagram (home) --- */
.instagram-embed {
  position: relative;
  min-height: 200px;
}
/* Cobre a marca "Free Instagram Feed Widget" do plano gratuito do Elfsight,
   que fica numa faixa fixa no rodapé do widget. Ajustar a altura aqui se o
   widget mudar de layout (ex: mais colunas de fotos). */
.instagram-embed__cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: var(--cream);
  pointer-events: none;
}

/* --- Cards de mapa (home) --- */
.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.map-card .map-embed {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
}
.map-card__info {
  padding: var(--space-5) var(--space-6);
}
.map-card__info strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.map-card__info address {
  font-style: normal;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

/* --- Timeline (Sobre) --- */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: var(--space-2);
}
.timeline__item {
  position: relative;
  padding: 0 0 var(--space-7) var(--space-6);
}
.timeline__item:last-child {
  padding-bottom: 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.timeline__year {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.timeline__item h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}
.timeline__item p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* --- Listas com marcador em traço --- */
.check-list li,
.dash-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-top: var(--space-3);
  color: var(--text-muted);
}
.check-list li::before,
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.check-list li strong,
.dash-list li strong {
  color: var(--text);
}

/* --- Passos numerados --- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-5);
}
.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
}
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
}
.steps__item h3 {
  font-size: var(--text-lg);
}
.steps__item p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* --- FAQ (details/summary nativo) --- */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-dark);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding-bottom: var(--space-5);
  color: var(--text-muted);
  max-width: 66ch;
}

/* --- CTA band --- */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: var(--display-3);
  max-width: 32ch;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Aviso / disclaimer --- */
.notice {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Autor (blog) --- */
.author-box {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.author-box h3 {
  font-size: var(--text-base);
  margin: 0;
}
.author-box p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: var(--space-1) 0 0;
}

/* --- Artigo --- */
.article {
  max-width: var(--container-narrow);
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--text);
}
.article h2 {
  font-size: var(--display-4);
  margin-top: var(--space-8);
}
.article h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
}
.article p {
  margin-top: var(--space-4);
  color: var(--text);
}
.article p.lede {
  color: var(--text-muted);
}
.article ul,
.article ol {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}
.article ul li,
.article ol li {
  position: relative;
  padding-left: var(--space-6);
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.article ol {
  counter-reset: art;
}
.article ol li::before {
  counter-increment: art;
  content: counter(art) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-dark);
}
.article blockquote {
  margin-top: var(--space-6);
  padding-left: var(--space-6);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--ink);
}
.article strong {
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--space-9) var(--space-6);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--space-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
}
.footer__about {
  max-width: 34ch;
}
.footer__about img {
  height: 42px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer__about p {
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}
.footer__list {
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}
.footer__list a:hover {
  color: var(--accent-2);
}
.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.footer__social svg {
  width: 16px;
  height: 16px;
}
.footer__bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  color: var(--on-dark-muted);
}
.footer__legal-links {
  display: flex;
  gap: var(--space-5);
}
.footer__legal-links a:hover {
  color: var(--accent-2);
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Vídeos (player + fileira horizontal de miniaturas)
   ========================================================================== */
.video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-md);
}
.video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-main__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-main__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-main__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.34);
  transition: background 0.2s var(--ease);
}
.video-main__poster:hover::after {
  background: rgba(20, 17, 13, 0.2);
}
.video-play-btn {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.video-play-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.video-main__poster:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--accent-2);
}

.video-row-wrap {
  position: relative;
  margin-top: var(--space-5);
}
.video-thumbs {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: var(--space-2) 2px var(--space-3);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.video-thumbs::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.video-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line-dark);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 13, 0.15);
  color: var(--on-dark);
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.video-thumb__play svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.video-thumb:hover,
.video-thumb.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.video-thumb:hover .video-thumb__play {
  opacity: 1;
  background: rgba(20, 17, 13, 0.3);
}
.video-thumb.is-active .video-thumb__play {
  opacity: 1;
  background: rgba(20, 17, 13, 0.1);
}
.video-thumb.is-active .video-thumb__play svg {
  color: var(--accent-2);
}
.video-scroll-btn {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  z-index: 3;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.video-scroll-btn:hover {
  background: var(--accent-2);
  transform: translateY(-50%) scale(1.06);
}
.video-scroll-btn svg {
  width: 18px;
  height: 18px;
}
.video-scroll-btn--prev {
  left: -18px;
  transform: translateY(-50%);
}
.video-scroll-btn--next {
  right: -18px;
  transform: translateY(-50%);
}
.video-scroll-btn--prev svg {
  transform: rotate(180deg);
}
@media (max-width: 720px) {
  .video-thumb {
    width: 140px;
  }
  .video-scroll-btn {
    display: none;
  }
}

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.wa-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--success);
  color: #fff;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover {
  transform: translateY(-2px);
}
.wa-float__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex: none;
}
.wa-float__icon svg {
  width: 20px;
  height: 20px;
}
.wa-float span.label {
  font-size: var(--text-sm);
  font-weight: 600;
}
@media (max-width: 640px) {
  .wa-float span.label {
    display: none;
  }
  .wa-float {
    padding: var(--space-3);
  }
}
html.cookie-banner-open .wa-float {
  display: none;
}

/* --- Aviso de cookies --- */
.cookie-banner {
  position: fixed;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 110;
  max-width: 680px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner p {
  flex: 1 1 320px;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}
.cookie-banner a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex: 0 0 auto;
}
.cookie-banner .btn {
  padding: 0.7rem 1.3rem;
  font-size: var(--text-sm);
}
@media (max-width: 560px) {
  .cookie-banner {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    padding: var(--space-4);
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__actions .btn {
    flex: 1;
  }
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: var(--space-4);
}

/* --- 404 --- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-9);
}
.error-page .display-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--accent);
  line-height: 1;
}
