/* =========================================================
   ART8 · base.css
   Variáveis, tipografia, botões, cabeçalho, rodapé e modal.
   Para mudar uma cor ou fonte do site inteiro, edite aqui.
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --bg-2: #0f0f0f;
  --panel: #111111;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --text: #ffffff;
  --muted: #c4c4c4;
  --dim: #8f8f8f;
  --gold-1: #b18000;
  --gold-2: #ffc200;
  --gold-3: #ffc900;
  --gold-hi: #ffe08a;
  --light: #f4f1ea;
  --ink: #141413;
  --grad: linear-gradient(100deg, #b18000, #ffc200 55%, #ffc900);
  --grad-text: linear-gradient(100deg, #b18000, #ffc200 50%, #ffe08a);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.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: 200;
  background: var(--gold-3); color: #0b0b0b; padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

[data-fit] { overflow: hidden; position: relative; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* texto com degradê dourado */
.g {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-gold { background: var(--grad); color: #0b0b0b; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 201, 0, .22); }
.btn-outline { border-color: var(--gold-2); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 194, 0, .1); transform: translateY(-2px); }
.btn-sm { padding: 12px 22px; font-size: 14px; }
.link-gold { color: var(--gold-3); font-weight: 700; font-size: 14px; text-decoration: none; }
.link-gold:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(11, 11, 11, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a, .nav-drop > button {
  color: #d6d6d6; font-size: 14px; font-weight: 500; text-decoration: none;
  background: none; border: 0; padding: 8px 0; position: relative;
}
.nav > a:hover, .nav-drop > button:hover, .nav a[aria-current="page"] { color: #fff; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: "▾"; margin-left: 6px; font-size: 11px; color: var(--gold-2); }
.drop-menu {
  position: absolute; left: -20px; top: 100%; min-width: 250px; padding: 10px 0; margin-top: 10px;
  background: #121212; border: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu, .nav-drop.is-open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 11px 22px; color: #e6e6e6; font-size: 14px; text-decoration: none; }
.drop-menu a:hover { background: rgba(255, 194, 0, .08); color: var(--gold-3); }
.header-cta { flex: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid #3a3a3a; background: transparent; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #0b0b0b; flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--pad) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open body { overflow: hidden; }
  .nav > a, .nav-drop > button { font-size: 22px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; color: #fff; }
  .nav-drop { width: 100%; }
  .nav-drop > button::after { float: right; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; margin: 0; padding: 0 0 6px 14px; display: none; }
  .nav-drop.is-open .drop-menu { display: block; }
  .drop-menu a { font-size: 17px; padding: 12px 0; }
  .nav > a.nav-cta { background: var(--grad); border-bottom: 0; text-align: center; }
  .nav .nav-cta { display: inline-flex; margin-top: 24px; justify-content: center; font-size: 16px; padding: 16px 24px; border: 1px solid transparent; width: 100%; color: #0b0b0b; }
}
@media (min-width: 981px) { .nav .nav-cta { display: none; } }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 320px; color: var(--muted); font-size: 15px; font-weight: 300; }
.footer-col h3 { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.footer-col a { display: block; color: #d6d6d6; text-decoration: none; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--gold-3); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Janela de vídeo (modal) ---------- */
dialog.player {
  width: min(960px, 94vw); padding: 0; border: 1px solid var(--line-2); background: #000; color: #fff; overflow: visible;
}
dialog.player.is-vertical { width: min(420px, 92vw); }
dialog.player::backdrop { background: rgba(0, 0, 0, .82); }
.player-body { position: relative; aspect-ratio: 16 / 9; background: #000; }
.is-vertical .player-body { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; }
.player-body iframe, .player-body video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-close {
  position: absolute; right: 0; top: -48px; width: 40px; height: 40px; background: transparent; border: 1px solid #555; color: #fff; font-size: 22px; line-height: 1;
}
.player-close:hover { border-color: var(--gold-2); color: var(--gold-3); }

/* ---------- Entrada suave (só quando há JavaScript) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
/* segurança: se o script não carregar, os blocos aparecem depois de 4 segundos */
.js:not(.js-ok) .rv { animation: rv-show .01s 4s forwards; }
@keyframes rv-show { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .site-header, .nav, .drop-menu { transition: none; }
}
