/* ==========================================================
   Identidade visual oficial (agente-de-conteudo/marca/modelo/estilo.css,
   definida em 28/10/2026). Cores extraídas da logo; texto em Montserrat;
   serifada só no que imita a logo (monograma, nome e assinatura).
   ========================================================== */
/* Fontes hospedadas no próprio site: nenhum dado do visitante vai ao Google */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul-meia-noite: #172b4e;
  --azul-marinho:    #0e1e38;
  --azul-profundo:   #061221;
  --azul-abissal:    #050f1f;

  --bg:        var(--azul-abissal);
  --surface:   #0b1830;
  --surface-2: #112443;
  --line:      rgba(167, 178, 198, 0.14);
  --line-2:    #34425d;

  --white:     #ffffff;
  --text:      #e3e8f2;
  --muted:     #a7b2c6;
  --accent:    #8eb0f6;
  --navy:      var(--azul-marinho);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --width:  560px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  /* Mesmo degradê dos carrosséis: meia-noite no topo, abissal nas bordas */
  background-image: radial-gradient(ellipse 140% 1100px at 50% 0%,
    var(--azul-meia-noite) 0%, var(--azul-marinho) 40%, var(--azul-profundo) 75%, var(--azul-abissal) 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

/* Superfícies do navegador no tom da marca */
html { scrollbar-color: var(--line-2) var(--bg); accent-color: var(--accent); caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--azul-marinho); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.icon-inline { width: 1em; height: 1em; flex: none; }

.page {
  max-width: var(--width);
  margin: 0 auto;
  padding: 56px 20px 40px;
}

/* ---------- Topo ---------- */
.hero { text-align: center; }

.avatar {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--navy));
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg), 0 0 0 7px var(--line);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar__monogram {
  display: grid;
  place-items: center;
  height: 100%;
  font: 500 40px/1 var(--serif);
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero__name {
  font: 500 40px/1.1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--white);
}
.hero__role {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__role .dot { color: var(--accent); margin: 0 4px; }

.hero__tagline {
  margin-top: 22px;
  font: 700 20px/1.35 var(--sans);
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero__tagline em { font-style: normal; color: var(--accent); }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Links ---------- */
.links {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.link:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.link:active { transform: translateY(0); }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.link__icon { flex: none; width: 22px; height: 22px; color: var(--accent); }
.link__text { display: grid; line-height: 1.3; }
.link__text strong { font-size: 15px; font-weight: 600; }
.link__text small { font-size: 12.5px; color: var(--muted); }

.link--primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--navy);
}
.link--primary .link__icon { color: var(--navy); }
.link--primary small { color: #4d5a70; }
.link--primary:hover { background: #ffffff; border-color: #ffffff; }

.link--center { justify-content: center; margin-top: 22px; }

/* ---------- Seções ---------- */
.section {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.section h2 {
  font: 700 25px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--white);
}
.section h3 { font-size: 16px; font-weight: 600; }

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

/* Parágrafos justificados, com hifenização para evitar buracos entre palavras */
.lead, .prose p, .note, .steps p, .card p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.section--cta .lead { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
.prose p { margin-top: 14px; color: var(--muted); }
.note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Frase em destaque (fecha o "Sobre mim") */
.motto { margin: 36px 0 0; }
.motto blockquote {
  margin: 0;
  font: 600 19px/1.45 var(--sans);
  color: var(--white);
}

.motto::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--accent);
}

/* Método */
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.steps__n { font: 800 18px/1.3 var(--sans); color: var(--accent); }
.steps p { margin-top: 3px; font-size: 14.5px; color: var(--muted); }

/* Para quem */
.cards { display: grid; gap: 22px; margin-top: 26px; }
.card { padding-top: 16px; border-top: 1px solid var(--line-2); }
.card h3 { color: var(--white); }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* Corrida */
.race-log {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}
.race-log span { white-space: nowrap; }
.race-log strong { font-weight: 800; color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.gallery a {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 0.5s ease;
}
/* Enquadramento de cada foto (antes ficava no HTML; a política de segurança proíbe estilo inline) */
.gallery a:nth-child(1) { --pos: 50% 40%; }
.gallery a:nth-child(2) { --pos: 50% 90%; }
.gallery a:nth-child(3) { --pos: 50% 52%; }
.gallery a:nth-child(4) { --pos: 50% 60%; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Foto ampliada */
.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 15, 31, 0.94); }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 32px);
  width: auto;
  height: auto;
  border-radius: 10px;
}
.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(14, 30, 56, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Trajetória */
.timeline { margin: 26px 0 0; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 24px 22px;
  border-left: 1px solid var(--line-2);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline__when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.timeline h3 { margin-top: 2px; }
.timeline p { font-size: 14.5px; color: var(--muted); }

.facts { display: grid; gap: 12px; margin: 30px 0 0; }
.facts div {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; }

/* Contato final */
.section--cta { text-align: center; }

/* Versículo */
.verse {
  margin: 72px 0 0;
  text-align: center;
}
.verse p { font: 600 20px/1.4 var(--sans); color: var(--white); }
.verse cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Assinatura (logo) */
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 64px;
}
.signature__mark {
  display: flex;
  padding-right: 18px;
  border-right: 1px solid var(--line-2);
  font: 500 64px/0.9 var(--serif);
}
.signature__mark span:first-child { color: var(--text); }
.signature__mark span:last-child { margin-left: -0.2em; color: var(--accent); }
.signature__text { display: grid; }
.signature__name {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  font: 500 34px/1 var(--serif);
  white-space: nowrap;
}
/* Encolhe junto com a tela para caber em celulares menores */
.signature__mark { font-size: clamp(46px, 15vw, 64px); }
.signature__name { font-size: clamp(24px, 8.4vw, 34px); }
.signature__tagline {
  margin-top: 8px;
  font-size: clamp(7px, 2.35vw, 9.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Rodapé */
.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer p + p { margin-top: 4px; opacity: 0.75; }
.footer p.footer__verify { margin-top: 0; opacity: 1; }
.footer__verify a { display: inline-block; padding: 12px 0; }
.footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(142, 176, 246, 0.4); }

/* ---------- Política de privacidade ---------- */
.legal { padding-top: 40px; }
.legal__back { margin: 0 0 32px; }
.legal h1 { margin-top: 10px; font: 700 30px/1.15 var(--sans); letter-spacing: -0.01em; color: var(--white); }
.legal__updated { margin-top: 8px; font-size: 13px; color: var(--muted); }
.legal h2 { margin-top: 36px; font-size: 17px; font-weight: 600; }
.legal p, .legal li {
  color: var(--muted);
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal p { margin-top: 12px; }
.legal p strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a:not(.text-link) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__button {
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 600 14px var(--sans);
  cursor: pointer;
}
.legal__button:hover { background: var(--surface-2); }

/* ---------- Aviso de cookies ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: calc(var(--width) - 32px);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(14, 30, 56, 0.96);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--muted);
  z-index: 10;
}
.consent[hidden] { display: none; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.consent button {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 13px var(--sans);
  cursor: pointer;
}
.consent button.is-primary { background: var(--text); border-color: var(--text); color: var(--navy); }

/* ---------- Animação: um único momento, a chegada do topo ----------
   Só um leve deslizar: o conteúdo nunca fica invisível, nem em aparelho lento. */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .links > * {
    animation: chegada 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero > :nth-child(2) { animation-delay: 0.06s; }
  .hero > :nth-child(3) { animation-delay: 0.12s; }
  .hero > :nth-child(4) { animation-delay: 0.18s; }
  .hero > :nth-child(5) { animation-delay: 0.24s; }
  .links > :nth-child(1) { animation-delay: 0.32s; }
  .links > :nth-child(2) { animation-delay: 0.38s; }
  .links > :nth-child(3) { animation-delay: 0.44s; }
  .links > :nth-child(4) { animation-delay: 0.50s; }
}
@keyframes chegada {
  from { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link, .gallery img { transition: none; }
}

@media (min-width: 640px) {
  .page { padding-top: 80px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
