/* ==========================================================================
   MAGNATA IMPORTS BR — DESIGN SYSTEM & DIREÇÃO DE ARTE DE ELITE
   Stack: HTML5 + CSS3 + Vanilla JS + GSAP 3 + Three.js + Locomotive Scroll
   Cores Oficiais: Azul e Branco | Tema: Dark Sneaker Boutique
   ========================================================================== */

:root {
  --bg-base: #030712;
  --bg-card: rgba(10, 18, 36, 0.84);
  --bg-card-hover: rgba(16, 30, 60, 0.94);
  
  --primary-blue: #0066ff;
  --royal-blue: #0047cc;
  --accent-cyan: #00d4ff;
  --accent-glow: rgba(0, 102, 255, 0.45);
  
  --text-pure: #ffffff;
  --text-soft: #e2e8f0;
  --text-muted: #94a3b8;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.45);
  
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Universal & Zero Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-base);
  color: var(--text-pure);
  font-family: var(--font-sans);
  overflow-x: hidden !important;
  position: relative;
}

/* Three.js Canvas Global: Fixo atrás de todo o conteúdo */
#bg-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  border: none !important;
  outline: none !important;
  display: block !important;
}

/* Fallback de Luz & Atmosfera em CSS (Garante fundo impecável) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 50% 10%, rgba(0, 102, 255, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #030712 0%, #060d24 50%, #030712 100%);
  pointer-events: none;
}

/* ==========================================================================
   1. FAIXA (MARQUEE) NO TOPO — EDGE-TO-EDGE, INCLINADA E SEM OVERFLOW
   ========================================================================== */
.top-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 14px;
  position: relative;
  z-index: 2;
}

.top-marquee-bar {
  width: 114%;
  margin-left: -7%;
  background: linear-gradient(90deg, #002b80 0%, #0052cc 25%, #00d4ff 50%, #0052cc 75%, #002b80 100%);
  padding: 8px 0;
  transform: rotate(-1.2deg);
  box-shadow: 0 4px 22px rgba(0, 102, 255, 0.35);
}

.top-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: topTicker 24s linear infinite;
}

.ticker-text {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0 14px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dot {
  color: #030712;
  font-size: 0.95rem;
}

@keyframes topTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respeito a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .top-marquee-track {
    animation: none !important;
  }
}

/* Container Estrutural Limpo e Centralizado */
.site-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-x: hidden !important;
}

/* ==========================================================================
   5. HERO & APRESENTAÇÃO PROFISSIONAL DA LOGO
   ========================================================================== */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 5px;
}

.logo-wrapper {
  position: relative;
  width: 94px;
  height: 94px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-backglow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.45) 0%, rgba(0, 212, 255, 0.2) 50%, transparent 70%);
  filter: blur(12px);
  border-radius: 26px;
  z-index: 0;
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(0.94); opacity: 0.65; }
  100% { transform: scale(1.06); opacity: 0.95; }
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 102, 255, 0.3);
  display: block;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}

.brand-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.brand-action-note {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   2 & 3. HUB DE AÇÕES & BOTÕES (Com Ícones Oficiais e Shiny Sweep)
   ========================================================================== */
.actions-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.25), 0 0 16px rgba(0, 212, 255, 0.15);
}

.action-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Card em Destaque Especial: Loja Virtual Oficial */
.featured-card {
  background: linear-gradient(135deg, rgba(10, 26, 60, 0.92) 0%, rgba(8, 16, 36, 0.86) 100%);
  border-color: rgba(0, 212, 255, 0.38);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25), 0 0 16px rgba(0, 212, 255, 0.1);
}

.featured-card:hover {
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 14px 32px rgba(0, 102, 255, 0.35), 0 0 22px rgba(0, 212, 255, 0.25);
}

/* Shiny Sweep Glow em todos os botões */
.sweep-glow {
  position: absolute;
  top: 0;
  left: -160%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), rgba(0, 212, 255, 0.2), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.65s ease;
}

.action-btn:hover .sweep-glow,
.action-btn:active .sweep-glow {
  left: 170%;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  pointer-events: none;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ícone Oficial WhatsApp: Verde Oficial #25D366 */
.icon-whatsapp {
  background: #25D366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Ícone Oficial Instagram: Fundo com Gradiente Oficial */
.icon-instagram {
  background: transparent;
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.3);
}

.icon-instagram svg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* Ícone Loja Virtual */
.icon-store {
  background: linear-gradient(135deg, #0052cc, #00d4ff);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

/* Ícone Grupo VIP */
.icon-vip {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}

/* Tipografia dos Botões */
.btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.btn-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-chevron {
  color: var(--text-muted);
  transition: transform 0.25s var(--ease-smooth), color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.action-btn:hover .btn-chevron {
  transform: translateX(3px);
  color: var(--accent-cyan);
}

/* ==========================================================================
   4. HORÁRIOS — CARD FINAL (Último bloco antes do footer)
   ========================================================================== */
.schedule-section {
  width: 100%;
}

.schedule-card {
  background: rgba(8, 15, 32, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.schedule-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.7);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseGreen 2s infinite;
}

.pulse-indicator.closed {
  background-color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.7);
  animation: none;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.status-callout {
  color: #ffffff;
}

.schedule-tz {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.schedule-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.schedule-days-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
  transition: background 0.2s ease;
}

.day-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* Destaque do Dia Atual */
.day-row.current-day {
  background: rgba(0, 102, 255, 0.16);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #ffffff;
  font-weight: 700;
}

.day-row.current-day .day-time {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   RODAPÉ OFICIAL
   ========================================================================== */
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding-top: 4px;
}

.footer-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.6);
}

/* ==========================================================================
   REGRA Nº 1: CONTEÚDO SEMPRE VISÍVEL NATIVO
   ========================================================================== */
.brand-header,
.actions-hub,
.schedule-section,
.brand-footer {
  opacity: 1;
  visibility: visible;
}

/* Ajuste Telas Estreitas (< 360px) */
@media (max-width: 360px) {
  .site-container {
    padding: 10px 12px 28px;
    gap: 16px;
  }
  
  .brand-title {
    font-size: 1.45rem;
  }

  .btn-title {
    font-size: 0.88rem;
  }
}
