/* ==========================================================
   VORTEX — BASE (compartilhado por todas as páginas)
   Tokens, reset, tipografia, botões, cabeçalho e rodapé.
   ========================================================== */

:root {
  /* ---- Marca Vortex (todo o site) ---- */
  --ink-950: #07060d;
  --ink-900: #0d0b17;
  --ink-800: #15122a;
  --ink-700: #1d1938;
  --violet: #3811d9;
  --violet-600: #4a24f0;
  --violet-deep: #220777;
  --magenta: #8716d7;
  --lavender: #9b7fff;
  --lavender-soft: #c9bcff;
  --whatsapp: #15803d;
  --whatsapp-hover: #166534;

  /* Apelidos usados pelos componentes (superfícies escuras) */
  --navy: var(--ink-900);
  --navy-950: var(--ink-950);
  --navy-800: var(--ink-800);
  --navy-700: var(--ink-700);

  /* Acento de detalhes. Padrão: roxo da marca.
     O Portal de Eventos troca para dourado em body.theme-eventos (eventos.css). */
  --gold: var(--lavender);         /* detalhes sobre fundo escuro */
  --gold-deco: var(--violet-600);  /* linhas, números grandes, ícones */
  --gold-text: var(--violet);      /* texto pequeno em fundo claro (contraste AA) */
  --gold-display: var(--violet);   /* texto grande em fundo claro */

  /* Neutros */
  --cream: #f5f4fa;
  --sand: #ebe8f5;
  --white: #fff;
  --ink: #120f24;
  --text: #2c2845;
  --muted: #4c4865;
  --muted-2: #5f5a7a;
  --line: #e4e1ef;
  --line-2: #d6d2e6;
  --line-3: #ece9f4;

  /* Sobre fundo escuro */
  --on-dark: #e6e3f2;
  --on-dark-2: #c9c5dc;
  --on-dark-3: #a39fbd;
  --on-dark-4: #8c88a6;

  /* Chips */
  --chip-gold-bg: #ece8ff;
  --chip-gold-fg: var(--violet);
  --chip-blue-bg: #eeecf8;

  /* Tipografia */
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-h: 66px;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--line { display: flex; align-items: center; gap: 10px; }
.eyebrow--line::before { content: ""; width: 28px; height: 2px; background: var(--gold-deco); flex: none; }
.on-dark .eyebrow, .eyebrow--on-dark { color: var(--gold); }

.display {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  text-wrap: balance;
}
.h2 { font-size: clamp(30px, 4.2vw, 44px); }
.hl { color: var(--gold-display); }
.on-dark .hl, .hl--on-dark { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  padding: 15px 26px; font: 700 14px/1.2 var(--font-sans); text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { padding: 12px 16px; font-size: 13px; font-weight: 800; }
.btn--lg { padding: 17px 28px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-800); color: var(--white); box-shadow: 0 10px 24px -12px rgba(13,11,23,.6); }
.btn--outline { border-color: var(--violet); color: var(--violet); background: transparent; }
.btn--outline:hover { background: var(--violet); color: var(--white); }
/* Botão principal da marca (roxo). O nome --gold é histórico. */
.btn--gold { background: var(--violet); color: var(--white); font-weight: 800; }
.btn--gold:hover { background: var(--violet-600); color: var(--white); box-shadow: 0 12px 24px -14px rgba(56,17,217,.7); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); color: var(--white); }
.btn--ghost-dark { border-color: rgba(255,255,255,.25); color: var(--white); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--lavender); color: var(--lavender); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ink-950);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 38px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 30px; list-style: none; padding: 0; }
.site-nav__link {
  position: relative; color: var(--white); font-size: 15px; font-weight: 600; padding: 8px 0; display: block;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--lavender); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav__link:hover { color: var(--lavender); }
.site-nav__link[aria-current]::after, .site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--lavender); }
.site-nav__link.is-external { display: inline-flex; align-items: center; gap: 5px; }
.site-nav__link.is-external svg { width: 13px; height: 13px; opacity: .7; }
@media (max-width: 960px) { .site-nav__link.is-external { display: flex; } }

.site-header__cta { flex: none; }
.site-header__cta.btn { padding: 12px 22px; font-size: 13.5px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-950); border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { font-size: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav__link::after { display: none; }
  .site-nav__cta { display: flex; margin-top: 16px; }
}
@media (min-width: 961px) {
  .site-nav__cta { display: none; }
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-2); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
  padding-top: 64px; padding-bottom: 40px;
}
.site-footer__logo img { height: 52px; width: auto; }
.site-footer__slogan {
  font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--white);
  margin-top: 22px; max-width: 300px;
}
.site-footer__title { color: var(--lavender); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 12px; text-transform: uppercase; }
.site-footer__list { list-style: none; padding: 0; font-size: 14px; line-height: 2.1; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--lavender); }
.site-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center;
}
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 24px;
  font-size: 12px; color: var(--on-dark-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.site-footer__bottom a { color: var(--on-dark-4); }
.site-footer__legal { display: flex; gap: 14px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(21,128,61,.7);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background-color .2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--whatsapp-hover); color: var(--white); }

/* ---------- Aviso sem JS ---------- */
.noscript {
  background: var(--chip-gold-bg); color: var(--ink); padding: 14px var(--gutter); text-align: center; font-size: 14px;
}
.site-footer .btn--gold, .site-footer .btn--gold:hover { color: var(--white); }

/* ==========================================================
   MOBILE — refinamentos (só telas pequenas)
   ========================================================== */
@media (max-width: 640px) {
  /* rodapé: colunas de links lado a lado e alvos de toque confortáveis */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 48px; }
  .site-footer__grid > div:first-child, .site-footer__grid > div:last-child { grid-column: 1 / -1; }
  .site-footer__logo img { height: 44px; }
  .site-footer__slogan { margin-top: 16px; font-size: 15px; }
  .site-footer__list { line-height: 1.4; }
  .site-footer__list li a { display: inline-block; padding: 8px 0; }
  .site-footer__bottom { flex-direction: column; gap: 4px; }
  .site-footer__legal a { display: inline-block; padding: 10px 0; }
  .site-footer__legal { gap: 20px; }
  .site-header__logo { padding: 3px 0; }
}
@media (pointer: coarse) { .site-footer__legal a { display: inline-block; padding: 10px 0; } }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); } /* WordPress: barra de administração */

/* ---------- Lightbox (fotos e artes ampliadas) ---------- */
.lb-open { overflow: hidden; }
.lb { border: 0; padding: 0; background: rgba(6,6,9,.94); color: #fff; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; }
.lb::backdrop { background: rgba(0,0,0,.6); }
.lb[open] { display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; align-items: center; justify-items: center; }
.lb__fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; padding: 56px 0 48px; }
.lb__img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; opacity: 0; transform: scale(.98); transition: opacity .25s, transform .25s; }
.lb__img.is-in { opacity: 1; transform: none; }
.lb__cap { font-size: 14px; color: #d8d8e2; text-align: center; max-width: 70ch; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #b4b4c0; margin: 0; }
.lb__btn { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.lb__btn:hover { background: rgba(255,255,255,.22); }
.lb__btn:focus-visible { outline: 3px solid #f7b900; outline-offset: 3px; }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__prev { grid-column: 1; grid-row: 1; }
.lb__next { grid-column: 3; grid-row: 1; }
.lb__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
[data-lb] { cursor: zoom-in; }
@media (max-width: 720px) {
  .lb[open] { grid-template-columns: 0 minmax(0,1fr) 0; }
  .lb__fig { padding: 64px 12px 56px; }
  .lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,.55); width: 42px; height: 42px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lb__img { transition: none; } }

/* ---------- Toque (celular e tablet): alvos de 44 px e textos legíveis ---------- */
@media (pointer: coarse), (max-width: 1024px) {
  .site-footer__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
  .site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header__logo, .site-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .site-nav__link { padding-top: 12px; padding-bottom: 12px; }
  .site-footer__title { font-size: 12px; }
  .chip, .eyebrow { font-size: 12px; }
}
@media (max-width: 960px) {
  .site-nav__link { min-height: 48px; display: flex; align-items: center; }
  .nav-toggle { width: 48px; height: 48px; }
}
input[type="checkbox"], input[type="radio"] { min-width: 22px; min-height: 22px; }
.a-form label:has(input[type="checkbox"]), label.consent { display: flex; align-items: center; gap: 12px; min-height: 44px; }

/* Lightbox: tamanho real (arrastar para ver detalhes) */
.lb__zoom { position: absolute; top: 14px; right: 70px; z-index: 2; }
.lb__zoom[aria-pressed="true"] { background: #f7b900; }
.lb__zoom[aria-pressed="true"] svg { stroke: #1a1400; }
.lb__img { cursor: zoom-in; }
.lb.is-zoom .lb__img { cursor: zoom-out; max-width: none; max-height: none; width: auto; height: auto; border-radius: 0; }
.lb.is-zoom .lb__fig { overflow: auto; justify-content: flex-start; align-items: flex-start; padding: 64px 12px 56px; max-height: 100dvh; width: 100%; -webkit-overflow-scrolling: touch; }
.lb.is-zoom .lb__cap { display: none; }
@media (max-width: 720px) { .lb__zoom { right: 66px; } .lb.is-zoom .lb__fig { padding: 64px 0 56px; } }
.site-footer__cta { margin-top: 20px; }
