/* ============================================================
   dianacandida.com - página central
   Mesmo padrão visual da página do livro (preto e dourado)
   Complementa o Bootstrap 5
   ============================================================ */

:root {
  --preto: #101216;
  --grafite: #1b1f26;
  --grafite-claro: #2a303a;
  --dourado: #c9a227;
  --dourado-claro: #e3bf4d;
  --creme: #f7f4ee;
  --texto: #23262c;
  --texto-suave: #5a6068;
  --borda: #e4dfd5;
  --sombra: 0 18px 40px rgba(16, 18, 22, .12);
  --sombra-suave: 0 8px 20px rgba(16, 18, 22, .08);
  --raio: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--texto);
  background-color: #fff;
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, .navbar-brand, .numero {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.16rem; line-height: 1.35; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 2000;
  background: var(--dourado); color: var(--preto);
  padding: .5rem .9rem; border-radius: 8px; font-weight: 600;
}

/* ---------- Navbar ---------- */
#navbarPrincipal {
  background: transparent;
  padding: 1rem 0;
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
#navbarPrincipal.navbar-solida {
  background: rgba(16, 18, 22, .96);
  padding: .55rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
}
.navbar-brand {
  font-size: 1rem;
  max-width: 78vw;
  color: #fff !important;
}
.navbar-brand i { color: var(--dourado); font-size: 1.2rem; }
#navbarPrincipal .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .96rem;
}
#navbarPrincipal .nav-link:hover,
#navbarPrincipal .nav-link:focus { color: var(--dourado-claro); }
.navbar-toggler { border-color: rgba(255, 255, 255, .3); }
.navbar-collapse.show, .navbar-collapse.collapsing {
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-top: .75rem;
}

/* ---------- Botões ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .72rem 1.6rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .9rem; }

.btn-cta {
  background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
  color: var(--preto);
  border: none;
  box-shadow: 0 10px 22px rgba(201, 162, 39, .32);
}
.btn-cta:hover, .btn-cta:focus {
  background: linear-gradient(135deg, var(--dourado), #ab8a1f);
  color: var(--preto);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(201, 162, 39, .4);
}
.btn-outline-light:hover { color: var(--preto); }
.btn, .card-caminho, .card-contato, .retrato { transition: all .25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 9.5rem 0 5rem;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(201, 162, 39, .20), transparent 62%),
    linear-gradient(160deg, #14171d 0%, #0d0f13 55%, #16191f 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--creme));
  pointer-events: none;
}
.badge-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201, 162, 39, .14);
  border: 1px solid rgba(201, 162, 39, .45);
  color: var(--dourado-claro);
  padding: .38rem 1rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; letter-spacing: .02em;
}
.lead-hero {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: #f0ece3;
  margin: 1.3rem 0 1rem;
  max-width: 40ch;
}
.hero-sub { color: rgba(255, 255, 255, .72); max-width: 52ch; margin-bottom: 0; }
.hero-sub strong { color: #fff; }
.hero-badges { color: rgba(255, 255, 255, .68); font-size: .92rem; }
.hero-badges i { color: var(--dourado); margin-right: .4rem; }

.retrato-wrap { position: relative; display: inline-block; }
.retrato {
  max-width: 340px; width: 100%;
  border-radius: 50%;
  border: 6px solid rgba(201, 162, 39, .35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.retrato:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, .6); }

/* ---------- Faixa de números ---------- */
.faixa-numeros {
  background: var(--creme);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  padding: 2.4rem 0;
}
.faixa-numeros .numero {
  display: block; font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--grafite); line-height: 1.1;
}
.faixa-numeros .rotulo {
  display: block; font-size: .87rem; color: var(--texto-suave); margin-top: .25rem;
}

/* ---------- Seções ---------- */
.secao { padding: 5rem 0; }
.secao-alt { background: var(--creme); }
.secao-escura { background: linear-gradient(155deg, #171a20, #0f1115); color: #fff; }
.secao-sub { color: var(--texto-suave); font-size: 1.05rem; max-width: 62ch; }
.text-center .secao-sub { margin-left: auto; margin-right: auto; }
.texto-claro { color: rgba(255, 255, 255, .78); max-width: 60ch; }

/* ---------- Cards de caminho ---------- */
.card-caminho {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--sombra-suave);
}
.card-caminho:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: rgba(201, 162, 39, .5); }
.card-caminho.destaque { border: 2px solid var(--dourado); }
.card-caminho .icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(201, 162, 39, .13); color: var(--dourado);
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card-caminho h3 { margin-bottom: .6rem; }
.card-caminho p { color: var(--texto-suave); margin-bottom: 1.2rem; font-size: .98rem; }

.link-caminho {
  margin-top: auto;
  color: var(--grafite);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
  align-self: flex-start;
}
.link-caminho i { transition: transform .2s ease; }
.link-caminho:hover, .link-caminho:focus { color: var(--dourado); }
.link-caminho:hover i { transform: translateX(4px); }

/* ---------- Agenda ---------- */
.card-agenda {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--sombra-suave);
  transition: all .25s ease;
}
.card-agenda:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: rgba(201, 162, 39, .5); }
.card-agenda h3 { margin-bottom: .5rem; }
.card-agenda p { color: var(--texto-suave); font-size: .98rem; }
.card-agenda .btn { margin-top: auto; align-self: flex-start; }

.etiqueta {
  display: inline-flex; align-items: center; align-self: flex-start; gap: .45rem;
  background: rgba(16, 18, 22, .06);
  color: var(--texto-suave);
  padding: .32rem .85rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.etiqueta-ativa {
  background: rgba(201, 162, 39, .14);
  border: 1px solid rgba(201, 162, 39, .45);
  color: #8a6f18;
}
.card-agenda .quando {
  color: var(--grafite); font-weight: 600; font-size: .95rem; margin-bottom: .75rem;
}
.card-agenda .quando i { color: var(--dourado); margin-right: .35rem; }

.btn-outline-dark { border: 1px solid var(--grafite); color: var(--grafite); }
.btn-outline-dark:hover, .btn-outline-dark:focus { background: var(--grafite); color: #fff; }

/* ---------- Cards de contato ---------- */
.card-contato {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 2.1rem 1.6rem;
  box-shadow: var(--sombra-suave);
  text-decoration: none;
  color: inherit;
}
.card-contato:hover, .card-contato:focus {
  transform: translateY(-5px);
  box-shadow: var(--sombra);
  border-color: rgba(201, 162, 39, .5);
  color: inherit;
}
.card-contato .icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(201, 162, 39, .13); color: var(--dourado);
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card-contato h3 { margin-bottom: .35rem; }
.card-contato p { color: var(--texto-suave); font-size: .92rem; margin-bottom: 0; overflow-wrap: break-word; line-height: 1.5; }

/* ---------- Rodapé ---------- */
.rodape { background: #0b0d10; color: rgba(255, 255, 255, .68); padding: 3.2rem 0 2rem; }
.rodape-titulo { color: #fff; font-weight: 600; font-size: .98rem; }
.rodape a { color: rgba(255, 255, 255, .68); text-decoration: none; overflow-wrap: anywhere; }
.rodape a:hover { color: var(--dourado-claro); }
.rodape li { margin-bottom: .35rem; }
.rodape hr { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.2rem; }
.redes a { display: inline-flex; }

/* ---------- Botão voltar ao topo ---------- */
.btn-topo {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1030;
  width: 46px; height: 46px; padding: 0;
  display: none; align-items: center; justify-content: center;
  background: var(--dourado); color: var(--preto);
  border: none; border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.btn-topo.visivel { display: inline-flex; }
.btn-topo:hover { background: var(--dourado-claro); }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 3.5rem; text-align: center; }
  .lead-hero, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero .d-flex, .hero-badges { justify-content: center; }
  .retrato { max-width: 250px; margin-bottom: .5rem; }
  .secao { padding: 3.5rem 0; }
  .navbar-brand span { font-size: .9rem; }
  #aula .text-lg-end { text-align: left; }
  .texto-claro { margin-left: auto; margin-right: auto; }
}

@media (max-width: 575.98px) {
  body { font-size: .99rem; }
  .btn-lg { width: 100%; }
  .hero .d-flex.flex-wrap { flex-direction: column; }
  .hero-badges span { display: block !important; margin: 0 0 .5rem 0 !important; }
  .faixa-numeros { padding: 1.8rem 0; }
  .card-caminho, .card-contato, .card-agenda { padding: 1.6rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card-caminho:hover, .card-contato:hover, .card-agenda:hover, .retrato:hover { transform: none; }
  .link-caminho:hover i { transform: none; }
}
