/* ============================================================
   GLOBAL.CSS — Bruxaria Moderna
   Reset · Variáveis · Tipografia · Componentes reutilizáveis
   Usado em TODAS as páginas do site.
   ============================================================ */

/* ---------- Variáveis ---------- */
:root {
  /* Base escura (identidade: preto, roxo e dourado) */
  --preto:      #100D16;   /* fundo principal */
  --preto-alt:  #17121F;   /* seções alternadas */
  --painel:     #1E1830;   /* cards / painéis */
  --painel-2:   #241C39;   /* card em destaque */

  /* Roxo místico */
  --roxo:       #6D4AA0;
  --roxo-claro: #9B77D4;
  --roxo-glow:  rgba(109, 74, 160, .35);

  /* Dourado */
  --ouro:       #D4AF6A;
  --ouro-claro: #EBD29A;
  --ouro-escuro:#B0894A;
  --ouro-linha: rgba(212, 175, 106, .28);

  /* Texto */
  --texto:      #EDE6D8;
  --texto-sec:  #A79FB2;
  --texto-fraco:#7C7488;

  /* Tokens que os TEMAS de página podem sobrescrever */
  --btn-texto:     #1a1206;   /* cor do texto sobre o botão dourado */
  --titulo-grad-1: #fbf4e6;   /* cor inicial do degradê dos títulos grandes */

  /* Aliases semânticos (compatível com o padrão do projeto) */
  --color-primary:   var(--roxo);
  --color-secondary: var(--ouro);
  --color-bg:        var(--preto);
  --color-text:      var(--texto);
  --color-accent:    var(--ouro);

  /* Tipografia */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent:  'Cinzel', serif;

  /* Sombras */
  --sombra:     0 20px 50px rgba(0, 0, 0, .45);
  --sombra-sm:  0 10px 30px rgba(0, 0, 0, .35);
  --glow-ouro:  0 0 40px rgba(212, 175, 106, .18);

  /* Raio */
  --radius:    14px;
  --radius-sm: 10px;

  /* Espaçamentos */
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 88px;

  /* Larguras */
  --maxw:        1120px;
  --maxw-narrow: 780px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--preto);
  color: var(--texto);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Tipografia base ---------- */
h1, h2, h3, .serif {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--texto);
  font-weight: 600;
  letter-spacing: .3px;
}
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--ouro-claro); }
a { color: var(--ouro); }

/* ---------- Layout reutilizável ---------- */
section { padding: var(--spacing-xl) 22px; position: relative; }
.container { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: var(--maxw-narrow); margin: 0 auto; }
.bg-alt { background: var(--preto-alt); }
.text-center { text-align: center; }

/* ---------- Eyebrow (rótulo místico) ---------- */
.eyebrow {
  font-family: var(--font-accent);
  font-size: .72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ouro);
  font-weight: 600;
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

/* ---------- Títulos de seção ---------- */
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 600;
}
.section-intro {
  text-align: center;
  color: var(--texto-sec);
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 1.08rem;
}

/* ---------- Divisor ornamental ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin: 22px auto 34px;
  color: var(--ouro);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px; width: 60px;
  background: linear-gradient(to right, transparent, var(--ouro-linha), var(--ouro));
}
.ornament::after { background: linear-gradient(to left, transparent, var(--ouro-linha), var(--ouro)); }
.ornament .dot { font-size: .7rem; opacity: .9; letter-spacing: 6px; }

/* ---------- Botão CTA (reutilizável) ---------- */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro) 55%, var(--ouro-escuro));
  color: var(--btn-texto);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 42px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 106, .28);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  text-align: center;
  line-height: 1.35;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 175, 106, .45);
  filter: brightness(1.06);
}
.cta:active { transform: translateY(0); }
.cta-lg { font-size: 1.1rem; padding: 21px 48px; }
.cta-wrap { text-align: center; margin-top: 40px; }

/* Botão secundário (contorno) — usado em catálogos */
.cta-ghost {
  background: transparent;
  color: var(--ouro-claro);
  border: 1px solid var(--ouro-linha);
  box-shadow: none;
}
.cta-ghost:hover {
  background: rgba(212, 175, 106, .08);
  border-color: var(--ouro);
  filter: none;
}

.selo-mini {
  display: block;
  font-size: .88rem;
  color: var(--texto-sec);
  margin-top: 16px;
  letter-spacing: .5px;
}

/* ---------- Lista com checkmarks (reutilizável) ---------- */
.lista-check { list-style: none; max-width: 660px; margin: 0 auto; }
.lista-check li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 175, 106, .14);
  font-size: 1.08rem;
  color: var(--texto);
}
.lista-check li:last-child { border-bottom: none; }
.lista-check .chk {
  color: var(--ouro);
  font-weight: 600;
  flex-shrink: 0;
  background: rgba(212, 175, 106, .12);
  border: 1px solid var(--ouro-linha);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
}

/* ============================================================
   CATÁLOGO / LINKTREE — home, /cursos, /ebooks
   ============================================================ */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, var(--roxo-glow), transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(212,175,106,.08), transparent 45%),
    var(--preto);
}

.cat-header { text-align: center; padding: 64px 22px 8px; }
.cat-brand {
  font-family: var(--font-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--ouro);
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}
.cat-title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  background: linear-gradient(180deg, var(--titulo-grad-1) 20%, var(--ouro-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cat-sub {
  color: var(--texto-sec);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}

/* Avatar redondo (home linktree) */
.cat-avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto 22px;
  object-fit: cover;
  border: 2px solid var(--ouro-linha);
  box-shadow: var(--glow-ouro);
  background: var(--painel);
}

/* Grade de produtos (catálogos) */
.catalog {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 22px 72px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-content: start;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--painel), var(--preto-alt));
  border: 1px solid rgba(212, 175, 106, .14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra), var(--glow-ouro);
  border-color: var(--ouro-linha);
}
.product-card .thumb {
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 40% 35%, rgba(212,175,106,.20), rgba(109,74,160,.16));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  border-bottom: 1px solid var(--ouro-linha);
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  font-family: var(--font-accent);
  font-size: .66rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ouro); margin-bottom: 10px;
}
.product-card h3 { font-size: 1.5rem; color: var(--ouro-claro); margin-bottom: 8px; }
.product-card p { color: var(--texto-sec); font-size: .98rem; flex: 1; }
.product-card .price { color: var(--ouro-claro); font-weight: 500; margin-top: 14px; font-size: 1.05rem; }
.product-card .go {
  margin-top: 16px;
  font-family: var(--font-accent);
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ouro);
}

/* Card "em breve" / vazio */
.product-card.soon { opacity: .6; pointer-events: none; }

/* Lista de links estilo linktree (home) */
.linktree {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 22px 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.linktree a.link {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(160deg, var(--painel), var(--preto-alt));
  border: 1px solid rgba(212, 175, 106, .18);
  border-radius: 50px;
  padding: 18px 26px;
  text-decoration: none;
  color: var(--texto);
  font-weight: 400;
  font-size: 1.05rem;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.linktree a.link:hover {
  transform: translateY(-2px);
  border-color: var(--ouro);
  box-shadow: var(--sombra-sm), var(--glow-ouro);
}
.linktree a.link .ico { font-size: 1.3rem; }
.linktree a.link .arw { margin-left: auto; color: var(--ouro); }

/* Link em destaque (ex.: Noite das Bruxas) */
.linktree a.link.featured {
  border-color: var(--ouro);
  background: linear-gradient(160deg, rgba(212,175,106,.16), var(--preto-alt));
  box-shadow: var(--sombra-sm), var(--glow-ouro);
}
.linktree a.link .link-col { display: flex; flex-direction: column; line-height: 1.25; }
.link-agenda {
  font-family: var(--font-accent);
  font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ouro-claro); margin-top: 4px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4b4b; display: inline-block; margin-right: 7px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(255,75,75,.6);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,75,75,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,75,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,75,75,0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Barra horizontal de redes sociais (só ícones) */
.social-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.social-bar a {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--sombra-sm);
  transition: transform .18s ease, filter .2s ease, box-shadow .2s ease;
}
.social-bar a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: var(--sombra);
}
.social-bar a svg { width: 24px; height: 24px; fill: currentColor; }
.social-bar .yt { background: #FF0000; }
.social-bar .tk { background: #010101; border: 1px solid rgba(255,255,255,.18); }
.social-bar .fb { background: #1877F2; }
.social-bar .ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF 78%, #515BD4); }

/* ============================================================
   MENU DE NAVEGAÇÃO — hambúrguer discreto + painel lateral
   ============================================================ */
.nav-toggle {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 1002;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(30, 24, 48, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--ouro-linha);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: rgba(45, 36, 70, .7); border-color: var(--ouro); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ouro-claro);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 6, 12, .6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(300px, 82vw);
  background: linear-gradient(160deg, var(--painel), var(--preto));
  border-left: 1px solid var(--ouro-linha);
  box-shadow: var(--sombra);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1001;
  padding: 90px 24px 32px;
  display: flex; flex-direction: column; gap: 6px;
}
body.nav-open .nav-panel { transform: translateX(0); }
.nav-panel .nav-brand {
  font-family: var(--font-accent);
  font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ouro); margin-bottom: 14px;
}
.nav-panel a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--texto);
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--ouro-linha);
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.nav-panel a:hover {
  background: rgba(212, 175, 106, .08);
  color: var(--ouro-claro);
  padding-left: 18px;
}

/* ---------- Rodapé global ---------- */
.site-footer {
  background: #0b0910;
  color: var(--texto-sec);
  text-align: center;
  padding: 40px 22px;
  font-size: .92rem;
  border-top: 1px solid var(--ouro-linha);
}
.site-footer .marca {
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--ouro-claro);
  margin-bottom: 10px;
}
.site-footer a { color: var(--ouro); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 16px; font-size: .78rem; color: var(--texto-fraco); }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .catalog { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 18px; }
  .cta { padding: 17px 30px; font-size: .95rem; }
}
