/* ===================================================================
   TEMA COMPARTILHADO · Agenda de Eventos Kim Kataguiri e Rafa Minato
   Base dark/dourado herdada de participe.kimkataguiri.com.br.
=================================================================== */
:root {
  --gold: #E6A81C;
  --gold-bright: #F2B718;
  --gold-deep: #C8860D;
  --bg: #0B0B0C;
  --bg-2: #131210;
  --bg-3: #1A1813;
  --ink: #F5F1E8;
  --ink-dim: #B7B0A2;
  --line: rgba(230, 168, 28, 0.22);
  --radius: 14px;
  --maxw: 1160px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --wa: #25D366;
  --font-display: "Anton", system-ui, sans-serif;
  --font-cond: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.gold { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1206;
  box-shadow: 0 10px 28px rgba(230, 168, 28, 0.32);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(230, 168, 28, 0.5); }
.btn-ghost {
  background: rgba(230, 168, 28, 0.05);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.brand-kim { height: 70px; width: auto; transition: height 0.3s ease; flex: 0 0 auto; }
.brand-minato { height: 30px; width: auto; transition: height 0.3s ease; flex: 0 0 auto; }
.site-header.scrolled .brand-minato { height: 26px; }
site-header.scrolled .brand-kim { height: 40px; }
.brand-sep { width: 1px; height: 24px; background: var(--line); display: inline-block; flex: 0 0 auto; }
.logo-chip { display: inline-flex; align-items: center; background: var(--bg); border-radius: 8px; padding: 6px 11px; }
.logo-chip img { display: block; width: auto; height: 20px; }
.btn-header { padding: 10px 20px; font-size: 0.85rem; }
.brand-group { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }

/* ---------- Botão hamburger ---------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(230, 168, 28, 0.08);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-toggle:hover { background: rgba(230, 168, 28, 0.16); border-color: var(--gold); }
.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Overlay + painel: outros portais ---------- */
.portals-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 4, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.portals-overlay.is-visible { opacity: 1; }

.portals-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.portals-panel.is-open { transform: translateX(0); }

.portals-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.portals-panel-title {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--gold);
}
.portals-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.portals-close:hover { background: rgba(230, 168, 28, 0.12); border-color: var(--gold); }

.portals-list { list-style: none; padding: 10px 12px; }
.portals-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.portals-link:hover { background: rgba(230, 168, 28, 0.1); }
.portals-link-name {
  font-family: var(--font-cond);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.portals-link-url { font-size: 0.78rem; color: var(--ink-dim); }
.portals-link-tag {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  padding: 2px 8px;
  border-radius: 999px;
}
.portals-link.is-current .portals-link-name { color: var(--gold); }

body.portals-open { overflow: hidden; }

/* ---------- Fundo com brilho dourado ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 0%, #241d10 0%, var(--bg) 55%), var(--bg);
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 120vw; height: 80vh;
  background: radial-gradient(ellipse at center, rgba(230, 168, 28, 0.22), transparent 62%);
  filter: blur(20px);
  animation: pulse 7s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- Tipografia de seção ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-title.center { text-align: center; }
.section-sub {
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.72rem, 2vw, 0.92rem);
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(230, 168, 28, 0.05);
}

/* ---------- Rodapé ---------- */
.site-footer { background: #060606; border-top: 1px solid var(--line); padding: 50px 0 40px; text-align: center; }
.footer-brands { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-brands img.footer-logo { height: 34px; width: auto; }
.footer-chip img { height: 26px; }
.footer-event { color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-legal { color: var(--ink-dim); font-size: 0.8rem; max-width: 540px; margin: 0 auto 14px; }
.footer-legal a { color: var(--gold); text-decoration: underline; }
.footer-copy { color: var(--ink-dim); font-size: 0.82rem; font-family: var(--font-cond); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Estados utilitários ---------- */
.is-hidden { display: none !important; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(230, 168, 28, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
  .brand-chip { display: none; }
  .btn-header { padding: 9px 16px; font-size: 0.78rem; }
  .brand-group { gap: 8px; }
  .menu-toggle { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
