/* ============================================================
   ROTEIRO ALEATÓRIO — Design System
   Dark-first · Dourado Premium · acentos neon por pilar
   Tokens extraídos do Brand Book v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@400;500;600&family=Bebas+Neue&display=swap');

:root {
  /* Principais */
  --gold: #F5B642;
  --gold-soft: #ffd587;
  --black: #0B0B0B;
  --white: #FFFFFF;

  /* Acentos por categoria editorial */
  --blue: #27D3F2;   /* Viagens */
  --orange: #FF6A3D; /* Gastronomia */
  --green: #7CCB5A;  /* Saúde & Bem-Estar */
  --purple: #9B5CFF; /* Passeios & Lazer */
  --pink: #FF4F91;   /* Hospedagens / likes */

  /* Superfícies (dark ramp) */
  --bg-0: #0B0B0B;
  --bg-1: #131313;
  --bg-2: #1A1A1A;
  --bg-3: #232323;
  --line: rgba(255,255,255,0.10);
  --glass: rgba(255,255,255,0.06);

  /* Texto */
  --tx-1: #FFFFFF;
  --tx-2: rgba(255,255,255,0.72);
  --tx-3: rgba(255,255,255,0.48);

  /* Raios */
  --r-btn: 12px;
  --r-card: 18px;
  --r-panel: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  /* Glow assinatura */
  --glow-gold: 0 0 0 1px rgba(245,182,66,0.35), 0 10px 40px -8px rgba(245,182,66,0.45);
  --shadow-deep: 0 24px 60px -20px rgba(0,0,0,0.8);

  /* Tokens com variação por tema (default = dark; theme.css define o clean) */
  --gold-ink: var(--gold);
  --header-bg: rgba(11,11,11,0.78);
  --menu-bg: rgba(11,11,11,0.97);
  --buybar-bg: rgba(11,11,11,0.92);
  --ghost-hover: rgba(255,255,255,0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--tx-1);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #000; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .mont { font-family: 'Montserrat', sans-serif; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.01em; margin: 0; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

.lead { font-family: 'Poppins'; font-weight: 500; font-size: clamp(18px, 2vw, 20px); color: var(--tx-2); }
.body-2 { color: var(--tx-2); }

.label {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  line-height: 1;
}
.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 16px;
  color: var(--gold-ink);
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
section { position: relative; }

/* ---------- Botões ---------- */
.btn {
  font-family: 'Montserrat'; font-weight: 700; font-size: 16px;
  border-radius: var(--r-btn);
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--tx-1); border-color: var(--gold); }
.btn-secondary:hover { background: rgba(245,182,66,0.12); transform: translateY(-2px); }
.btn-ghost { background: var(--glass); color: var(--tx-1); border-color: var(--line); }
.btn-ghost:hover { background: var(--ghost-hover); }

/* ---------- Chips ---------- */
.chip {
  font-family: 'Poppins'; font-weight: 500; font-size: 14px;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--tx-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: rgba(245,182,66,0.6); color: var(--tx-1); transform: translateY(-1px); }
.chip.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--gold)); }

/* tamanhos de botão */
.btn-lg { font-size: 18px; padding: 18px 34px; }
.btn-block { width: 100%; justify-content: center; }
.btn-cat { background: var(--cat, var(--gold)); color: #000; }
.btn-cat:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--cat-rgb,245,182,66),0.35), 0 10px 40px -8px rgba(var(--cat-rgb,245,182,66),0.45); }

/* ---------- Sistema de categorias ----------
   Cada categoria define --cat (cor) e --cat-rgb. Tags, placeholders e
   detalhes herdam automaticamente. */
.cat-passeios { --cat: var(--purple); --cat-rgb: 155,92,255; }
.cat-viagens  { --cat: var(--blue);   --cat-rgb: 39,211,242; }
.cat-hosp     { --cat: var(--pink);   --cat-rgb: 255,79,145; }
.cat-gastro   { --cat: var(--orange); --cat-rgb: 255,106,61; }
.cat-saude    { --cat: var(--green);  --cat-rgb: 124,203,90; }
.cat-loja     { --cat: var(--gold);   --cat-rgb: 245,182,66; }

/* ---------- Tag de categoria ---------- */
.tag {
  font-family: 'Bebas Neue'; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 13px; padding: 4px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--cat, var(--gold));
  box-shadow: inset 0 0 0 1px rgba(var(--cat-rgb, 245,182,66), 0.4);
  white-space: nowrap;
}

/* ---------- Placeholder de imagem (brand: substituir por fotos reais) ----------
   Auto-tintado pela cor da categoria do ancestral (--cat). */
.ph {
  position: relative; overflow: hidden; border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 11px),
    linear-gradient(135deg,
      color-mix(in oklab, var(--cat, #6b6b6b) 42%, #101010),
      color-mix(in oklab, var(--cat, #6b6b6b) 12%, #090909));
  display: flex; align-items: flex-end;
}
.ph::after {
  content: attr(data-ph);
  font-family: 'Poppins'; font-weight: 500;
  font-size: 11px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
  padding: 5px 9px; margin: 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
}
.ph[data-ph=""]::after, .ph.no-label::after { display: none; }

/* imagem real preenchendo um slot .ph (substitui o placeholder) */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; z-index: 1; }
.ph-img.contain { object-fit: contain; }

/* scrim para texto sobre imagem */
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.78) 100%); }

/* ---------- Glass panel ---------- */
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: var(--r-panel);
}

/* ---------- util ----------
   Conteúdo sempre visível por padrão — sem animação de opacidade que possa
   "travar" em frames não pintados (print, reduced-motion, iframes). */
.reveal, .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
