/* =====================================================================
   OnlyScale — Camada de Modernização Visual  (intensidade: Equilibrado)
   ---------------------------------------------------------------------
   Camada ADITIVA, carregada DEPOIS do CSS principal. Não altera o build
   original (Tailwind compilado). Mantém: nome "OnlyScale", paleta
   preto + dourado e todos os textos. Só refina o acabamento.
   Para reverter: remova o <link> deste arquivo no index.html.
   ===================================================================== */

/* ---------- 1. Base / renderização ---------------------------------- */
html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Seleção de texto dourada */
::selection {
  background: hsl(var(--gold) / 0.85);
  color: #000;
}
::-moz-selection {
  background: hsl(var(--gold) / 0.85);
  color: #000;
}

/* Scrollbar dourada */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--gold) / 0.7) #0a0a0a;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(var(--gold-dark)), hsl(var(--gold)));
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--gold-light));
}

/* ---------- 2. Atmosfera / profundidade nas seções ------------------ */
/* As seções são opacas (#000 / #1a1a1a). Em vez de preto chapado,
   recebem um glow dourado sutil no topo + uma textura (grain) discreta,
   dando sensação premium sem mudar a cor. */
section.bg-secondary,
section.bg-background {
  background-image:
    radial-gradient(75% 55% at 50% 0%, hsl(var(--gold) / 0.05), transparent 60%),
    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.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 160px 160px;
}

/* ---------- 3. Respiro (whitespace) -------------------------------- */
/* Aumenta o espaçamento vertical das seções com leveza. */
section.py-12 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  section.sm\:py-20 {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* ---------- 4. Tipografia ------------------------------------------ */
/* Títulos de display (Playfair) com mais presença e glow sutil. */
.font-display {
  letter-spacing: -0.015em;
  text-shadow: 0 0 45px hsl(var(--gold) / 0.15);
}
/* Palavras douradas ganham um brilho discreto e coeso. */
.text-gold {
  text-shadow: 0 0 16px hsl(var(--gold) / 0.16);
}

/* ---------- 5. Cards ----------------------------------------------- */
/* Profundidade: fundo em leve gradiente, sombra suave, hover que
   eleva e brilha. (Os hovers de scale/border do Tailwind continuam.) */
.bg-card {
  background-image: linear-gradient(180deg, hsl(0 0% 9%), hsl(0 0% 5.5%));
  border-color: hsl(0 0% 16%);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, background-image 0.3s;
}
.bg-card:hover {
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 30px hsl(var(--gold) / 0.12),
    inset 0 1px 0 hsl(0 0% 100% / 0.06);
}

/* ---------- 6. Botões / CTA ---------------------------------------- */
/* CTAs usam o gradiente dourado (from-gold-dark via-gold to-gold-light).
   Acrescenta elevação, brilho e um "shine" passando ao hover. */
a[class*="from-gold-dark"],
button[class*="from-gold-dark"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, filter 0.3s;
}
a[class*="from-gold-dark"]:hover,
button[class*="from-gold-dark"]:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06) saturate(1.05);
}
a[class*="from-gold-dark"]::before,
button[class*="from-gold-dark"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}
a[class*="from-gold-dark"]:hover::before,
button[class*="from-gold-dark"]:hover::before {
  animation: rb-shine 0.9s ease;
}
@keyframes rb-shine {
  to {
    left: 150%;
  }
}

/* ---------- 7. Imagens --------------------------------------------- */
/* Zoom suave dentro de containers que cortam o overflow / grupos. */
.overflow-hidden img,
.group img {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.overflow-hidden:hover > img,
.group:hover img {
  transform: scale(1.04);
}

/* ---------- 8. Animações de entrada (scroll reveal) ---------------- */
/* O rebrand.js adiciona .rb-reveal nas seções/cards e .rb-in quando
   entram na viewport. Progressive enhancement: se o JS não rodar,
   nada fica escondido (a classe só é adicionada via JS). */
.rb-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.rb-reveal.rb-in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. Acessibilidade: respeitar "menos movimento" --------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rb-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  a[class*="from-gold-dark"]:hover,
  button[class*="from-gold-dark"]:hover {
    transform: none;
  }
}

/* ---------- 10. Faixa deslizante (marquee de social proof) --------- */
/* Inserida via rebrand.js logo abaixo do hero. Rola sem parar. */
.rb-marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, hsl(0 0% 8%), hsl(0 0% 4%));
  border-top: 1px solid hsl(var(--gold) / 0.35);
  border-bottom: 1px solid hsl(var(--gold) / 0.35);
  box-shadow: inset 0 0 30px hsl(var(--gold) / 0.08);
  /* desfoca as bordas pra faixa "entrar/sair" suave */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rb-marquee__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.rb-marquee__set {
  display: inline-flex;
  align-items: center;
}
.rb-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.rb-marquee__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.rb-marquee__sep {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: 0 1.6rem;
  border-radius: 50%;
  background: hsl(var(--gold));
  box-shadow: 0 0 10px hsl(var(--gold) / 0.8);
}
@media (max-width: 640px) {
  .rb-marquee__item { font-size: 0.82rem; }
  .rb-marquee__sep { margin: 0 1.1rem; }
}
/* A faixa se move sempre (pedido de design). A pausa no hover dá o
   controle de "parar" para quem precisar. */
