@import './tokens.css';

/* ==========================================================================
   RESET & SETUP GLOBAL
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden !important;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   FUNDO AUTORAL EM CSS PURO (Stripes + Glows + Grain — Idêntico às Referências)
   Zero partículas 3D, zero poluição visual
   ========================================================================== */
.bg-stripes {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212, 175, 55, 0.05) 0 2px,
    transparent 2px 28px
  );
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -5;
  pointer-events: none;
}

.glow-a {
  width: 560px;
  height: 380px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 175, 55, 0.18);
}

.glow-b {
  width: 440px;
  height: 440px;
  bottom: -200px;
  right: -100px;
  background: rgba(212, 175, 55, 0.08);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   TICKER / MARQUEE TOPO (Estilo Crazy's Style / Los Manos / QBD)
   ========================================================================== */
.marquee-top {
  width: 100%;
  background: linear-gradient(90deg, #9E7D17 0%, #D4AF37 50%, #9E7D17 100%);
  color: #0A0A0C;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 2px solid #000;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLoop 24s linear infinite;
  will-change: transform;
}

.marquee-track span {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 2.5rem;
}

.marquee-track i {
  font-size: 0.72rem;
  color: #1A1A1E;
}

@keyframes marqueeLoop {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   ESTRUTURA & CONTAINER CENTRAL (Max 540px - Mobile Soberano)
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 540px;
  padding: 1.8rem 1.15rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: #000;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent-gold);
}

/* ==========================================================================
   HERO / PERFIL COM LOGO REAL E RIM-LIGHT
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 0.4rem;
}

.logo-tilt {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 1.1rem;
}

.logo-aura {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0.55;
  z-index: 1;
}

.logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-gold-glow);
  background: #000;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.brand-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-hot);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.brand-city {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-city i {
  color: var(--accent-gold);
}

/* Rótulo de Divisão Estilo Crazy's Style */
.section-label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.8rem 0 1.25rem;
}

.section-label span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   STACK DE BOTÕES & CARDS DE ALTA CONVERSÃO (O FORMATO DAS REFERÊNCIAS)
   ========================================================================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 68px;
}

.btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gold);
  opacity: 0.9;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.2);
  background: var(--bg-card-hover);
}

.btn:active {
  transform: translateY(0);
}

/* Ícone Dentro do Card */
.btn-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: scale(1.08);
}

.btn-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.btn-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.btn-text small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.25;
}

.btn-go {
  color: var(--accent-gold);
  font-size: 1.15rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.btn:hover .btn-go {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* BOTÃO 1: DESTAQUE SUPREMO (WhatsApp Quente com Shimmer) */
.btn-hot {
  background: linear-gradient(135deg, #25D366 0%, #1EAE54 55%, #15833B 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  box-shadow: 0 12px 36px var(--accent-wa-glow), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-hot::before {
  display: none;
}

.btn-hot .btn-icon {
  background: rgba(0, 0, 0, 0.28);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-hot .btn-text strong {
  color: #FFFFFF;
  font-size: 1.06rem;
}

.btn-hot .btn-text small {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.btn-hot .btn-go {
  color: #FFFFFF;
}

.btn-hot:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(37, 211, 102, 0.55), 0 0 24px rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, #2BE671 0%, #22C55E 55%, #169644 100%);
}

/* Shimmer Reflexivo Contínuo */
.shiny-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shinySweep 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shinySweep {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* BOTÃO 2: INSTAGRAM OFICIAL */
.ghost-insta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2) 0%, rgba(245, 96, 64, 0.2) 100%);
  color: #F56040;
  border: 1px solid rgba(225, 48, 108, 0.35);
}

.btn-insta:hover .ghost-insta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.35) 0%, rgba(245, 96, 64, 0.35) 100%);
}

/* CARDS 3 & 4: INFORMAÇÕES CONFIRMADAS (Localização & Horário) */
.ghost-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--line);
}

.btn-info {
  cursor: default;
}

.btn-info:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CARD DE PILARES / SERVIÇOS (Idêntico ao QBD STORE / Dom Oliver)
   ========================================================================== */
.trust-card {
  width: 100%;
  background: var(--bg-card-glass);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gold-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.trust-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.trust-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.trust-divider {
  width: 1px;
  height: 38px;
  background: var(--line-subtle);
}

/* ==========================================================================
   FAQ SECTION (Cards Elegantes em Acordeão)
   ========================================================================== */
.faq-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-fast);
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gold);
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--line);
}

.faq-item[open]::before {
  opacity: 1;
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary i {
  color: var(--accent-gold);
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary i {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.25rem 1.1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
}

/* ==========================================================================
   FOOTER MINIMALISTA
   ========================================================================== */
.footer {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.25rem;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--muted-dark);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .shiny-sheen::after {
    animation: none !important;
  }
}
