/* ============================================================
   BIO ENGINE — folha de estilo do modelo padrão de link na bio
   Não edite este arquivo por cliente. Tudo que muda de cliente
   vive no CONFIG do index.html (cores, textos, fotos, links).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* sobrescritos pelo CONFIG.theme via JS */
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --bg: #0a0a0b;
  --surface: #151517;
  --surface-2: #1e1e22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f6f5;
  --muted: #9b9ba1;

  --radius: 20px;
  --radius-sm: 14px;
  --shell: 480px;
  --pad: 22px;

  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* tamanho padrão de todo ícone SVG — sem isso, um <svg> sem
   width/height cai no default de 300x150 e quebra o layout */
svg { width: 18px; height: 18px; flex: none; }

/* ---------- 3. Ambiente ---------- */

/* foto de fundo opcional (theme.backgroundImage no CONFIG).
   Fica atrás de tudo e bem apagada: é textura, não conteúdo. */
.bgphoto {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--bg-opacity, 0.18);
}

/* brilho difuso no topo — dá profundidade sem pesar */
.ambient {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 65%);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--pad) 120px;
}

/* ---------- 4. Cabeçalho ---------- */
.avatar-wrap {
  width: 106px;
  height: 106px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(150deg, var(--accent), rgba(255,255,255,0.18) 55%, var(--accent));
  box-shadow: 0 12px 40px -12px var(--accent-soft);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 3px solid var(--bg);
}

.name {
  margin: 0;
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.name em { font-style: normal; color: var(--accent); }

.role {
  margin: 6px 0 0;
  text-align: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bio {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}
.bio span { display: block; }

/* ---------- 5. Sociais ---------- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s, background 0.25s;
}
.social svg { width: 19px; height: 19px; }

@media (hover: hover) {
  .social:hover {
    transform: translateY(-3px);
    color: var(--text);
    border-color: var(--accent);
    background: var(--surface-2);
  }
}

/* ---------- 6. Seções ---------- */
.section { margin-top: 26px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-title .ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  flex: none;
}

.stack { display: grid; gap: 11px; }

/* ---------- 7. Card com foto (destaque) ---------- */
.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px -22px rgba(0,0,0,0.9);
  }
  .card:hover .card-img img { transform: scale(1.06); }
}
.card:active { transform: scale(0.985); }

/* variante clara — igual à referência do Júlio */
.card.is-light {
  background: #ffffff;
  color: #101012;
  border-color: rgba(0,0,0,0.08);
}
.card.is-light .card-desc { color: #55555c; }
.card.is-light .card-cta { background: #101012; color: #fff; }
.card.is-light .card-brand { color: #101012; }

.card-inner {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 4px;
  align-items: stretch;
}
.card.no-photo .card-inner { grid-template-columns: 1fr; }

.card-body {
  padding: 18px 4px 18px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card.no-photo .card-body { padding: 18px; }

.card-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.card-desc {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #0b0b0c;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
}
.card-cta .arw { transition: transform 0.25s var(--ease); }
.card-cta svg { width: 15px; height: 15px; }
@media (hover: hover) { .card:hover .card-cta .arw { transform: translateX(4px); } }

.card-img { overflow: hidden; }
.card-img img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}

/* variante arte: a foto vem com a borda esquerda já na cor do card,
   então a coluna é larga e a imagem entra inteira, sem recorte.
   A proporção da coluna acompanha a da foto para não cortar o corpo. */
.card.is-art .card-inner { grid-template-columns: 1fr 46%; gap: 0; }
.card.is-art .card-img { aspect-ratio: 1080 / 1820; }
.card.is-art .card-img img { object-position: center; }
.card.is-art .card-body { justify-content: center; padding: 20px 2px 20px 20px; }

@media (max-width: 380px) {
  .card.is-art .card-inner { grid-template-columns: 1fr 50%; }
  .card.is-art .card-title { font-size: 16.5px; }
  .card.is-art .card-desc { font-size: 12.5px; }
}

/* ---------- 8. Botão de link simples ---------- */
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: var(--surface-2);
  }
  .link:hover .link-arrow { transform: translateX(3px); color: var(--accent); }
}
.link:active { transform: scale(0.985); }

.link-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  flex: none;
}
.link-ico svg { width: 19px; height: 19px; }

.link-txt { flex: 1; min-width: 0; }
.link-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.link-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.link-arrow {
  flex: none;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}

/* destaque opcional no botão simples */
.link.is-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  border-color: transparent;
  color: #0b0b0c;
}
.link.is-primary .link-ico { background: rgba(0,0,0,0.16); color: #0b0b0c; }
.link.is-primary .link-sub,
.link.is-primary .link-arrow { color: rgba(0,0,0,0.6); }

/* ---------- 9. Galeria de fotos ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery a {
  aspect-ratio: var(--cell-ratio, 1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
@media (hover: hover) { .gallery a:hover img { transform: scale(1.08); opacity: 0.85; } }

/* ---------- 9b. Carrossel ---------- */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  position: relative;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: var(--slide-ratio, 1004/620);
  object-fit: cover;
  display: block;
}

.carousel-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
  transition: width 0.3s var(--ease), background 0.3s, border-radius 0.3s;
}
.carousel-dots button[aria-current="true"] {
  width: 22px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------- 9c. Passos numerados ---------- */
.steps { display: grid; gap: 10px; }

.step {
  display: flex;
  gap: 14px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-n {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.step-t { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.step-d { margin: 3px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* ---------- 9d. FAQ ---------- */
/* <details> nativo: abre sem JS e o conteúdo já nasce no HTML,
   então o Google lê a resposta mesmo sem executar script. */
.faq { display: grid; gap: 9px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: var(--accent); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
  border-color: var(--accent);
}

.faq-a {
  margin: 0;
  padding: 0 17px 16px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 9e. Selo dentro do card ---------- */
.card-badge {
  align-self: flex-start;
  margin-top: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card.is-light .card-badge { background: rgba(0,0,0,0.07); color: #101012; }

/* ---------- 10. Barra fixa de CTA ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: var(--shell);
  transform: translateX(-50%);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.dock.show { opacity: 1; visibility: visible; }

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  border-radius: 14px;
  background: var(--accent);
  color: #0b0b0c;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px -10px var(--accent);
}
.dock a:active { transform: scale(0.985); }

/* ---------- 11. Rodapé ---------- */
.foot {
  margin-top: 34px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.65;
}
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 13. Telas pequenas ---------- */
@media (max-width: 360px) {
  :root { --pad: 16px; }
  .card-inner { grid-template-columns: 1fr 96px; }
  .avatar-wrap { width: 104px; height: 104px; }
}
