/* ==========================================================================
   BIO LINK — SENNA MOTORS ("CARBON & GOLD FLAGSHIP")
   Design System & Master Stylesheet | WCAG 2.2 AA | High-Conversion Performance
   Agência: COPY
   ========================================================================== */

/* 0. FONTES LOCAIS SELF-HOSTED (Zero FOUT, Zero bloqueio de CDN terceira) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('assets/fonts/archivo-display.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-body.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. RESET & DESIGN TOKENS */
:root {
  /* Carbon & Deep Obsidian Base (Superfície sólida translúcida otimizada para GPU) */
  --bg-deep: #070708;
  --bg-base: #0d0e10;
  --surface-card: #101115;
  --surface-card-hover: #16181e;
  --surface-elevated: #15171c;
  --surface-overlay: rgba(7, 7, 8, 0.88);

  /* Senna Gold (Ouro puro quase amarelo, sem saturação estridente) */
  --gold-primary: #e6b800;
  --gold-bright: #f5c518;
  --gold-deep: #b38f00;
  --gold-glow: rgba(230, 184, 0, 0.22);
  --gold-border: rgba(230, 184, 0, 0.32);
  --gold-border-subtle: rgba(230, 184, 0, 0.16);

  /* Supporting Neutrals */
  --white-pure: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Borders & Shadows */
  --border-light: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card-top: rgba(230, 184, 0, 0.28);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.65), 0 0 20px -5px rgba(0, 0, 0, 0.5);
  --shadow-gold-float: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 35px -8px rgba(230, 184, 0, 0.14);

  /* Typography */
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-spring);
  --transition-smooth: 0.28s var(--ease-spring);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-color: var(--bg-deep);
  overflow-x: hidden !important;
  padding: 0;
}

/* 2. SKIP-LINK (ACESSIBILIDADE WCAG 2.2 AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: #070708;
  padding: 12px 24px;
  font-weight: 800;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: top 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.skip-link:focus {
  top: 16px;
}

/* 3. BACKDROP & PONTO FOCAL DE LUZ (Sem filter:blur pesado - Gradiente pré-suavizado) */
.backdrop-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ponto focal dourado de alta performance renderizado puramente na GPU via paradas suaves */
.orb-gold-focal {
  position: absolute;
  width: 560px;
  height: 560px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(230, 184, 0, 0.16) 0%,
    rgba(230, 184, 0, 0.10) 22%,
    rgba(230, 184, 0, 0.05) 42%,
    rgba(230, 184, 0, 0.015) 60%,
    transparent 72%
  );
  pointer-events: none;
}

.backdrop-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, transparent 20%, rgba(7, 7, 8, 0.75) 70%, var(--bg-deep) 100%);
}

/* 4. CANVAS CONTAINER PRINCIPAL */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: 40px 18px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow-x: hidden !important;
}

/* 5. HERO SECTION */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

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

/* Halo do logo renderizado com gradiente de alta performance sem filtro pesado */
.logo-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(230, 184, 0, 0.28) 0%,
    rgba(230, 184, 0, 0.14) 35%,
    rgba(230, 184, 0, 0.04) 58%,
    transparent 72%
  );
  pointer-events: none;
}

.logo-image {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px var(--gold-glow);
  object-fit: cover;
  background: #000;
}

.hero-title {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.title-display {
  font-size: clamp(2.3rem, 7vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white-pure);
  text-transform: uppercase;
}

.title-subline {
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(230, 184, 0, 0.08);
  border: 1px solid var(--gold-border-subtle);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-location-tag svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* 6. MARQUEE TICKER CONTÍNUO (ENGENHARIA DEXTER COM ISOLAMENTO DE PINTURA) */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(230, 184, 0, 0.06);
  border: 1px solid var(--gold-border-subtle);
  border-radius: 12px;
  padding: 8px 0;
  text-decoration: none;
  display: block;
  position: relative;
  contain: paint;
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--gold-bright);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.marquee-diamond {
  color: var(--text-muted);
  font-size: 0.55rem;
}

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

/* 7. CARDS DE AÇÃO (FULL-WIDTH COM DEX-SHINE E ZERO OVERHEAD DE BLUR) */
.cards-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-top: 1px solid var(--border-card-top);
  border-radius: 20px;
  padding: 16px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  min-height: 48px;
  cursor: pointer;
  outline: none;
}

.action-card:focus-visible {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  background: var(--surface-card-hover);
  box-shadow: var(--shadow-gold-float);
}

.action-card:active {
  transform: translateY(0);
}

/* SHINY SWEEP: Feixe diagonal refinado, alocado na GPU sob demanda */
.dex-shine-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 240%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0) 35%,
    rgba(230, 184, 0, 0.10) 48%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(230, 184, 0, 0.10) 52%,
    rgba(255, 255, 255, 0) 65%,
    transparent 80%
  );
  pointer-events: none;
  transform: translateX(-120%);
  z-index: 5;
}

.action-card:hover .dex-shine-sweep,
.action-card:focus-visible .dex-shine-sweep,
.action-card:active .dex-shine-sweep {
  animation: dexSweepFast 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1;
  will-change: transform;
}

@keyframes dexSweepFast {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* BRILHO DOURADO AUTOMÁTICO PERCORRENDO A BORDA (APENAS NO CARD WHATSAPP COM ISOLAMENTO STRICT) */
.card-featured {
  border-color: var(--border-light);
}

.card-border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  overflow: hidden;
  contain: strict;
}

.beam-rotator {
  position: absolute;
  top: -80%;
  left: -40%;
  width: 180%;
  height: 260%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 285deg,
    rgba(230, 184, 0, 0.20) 320deg,
    rgba(245, 197, 24, 0.65) 345deg,
    #ffffff 352deg,
    rgba(245, 197, 24, 0.65) 358deg,
    transparent 360deg
  );
  transform-origin: center center;
  animation: beamLoop 5s linear infinite;
  will-change: transform;
}

@keyframes beamLoop {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pausa inteligente quando fora da viewport ou aba oculta */
.card-featured.is-paused .beam-rotator {
  animation-play-state: paused;
}

/* Linha de Conteúdo Principal do Card */
.card-content-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(230, 184, 0, 0.08);
  border: 1px solid var(--gold-border-subtle);
  color: var(--gold-bright);
}

.card-icon-box svg {
  width: 22px;
  height: 22px;
}

.card-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  min-width: 0;
}

.card-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white-pure);
  text-transform: uppercase;
}

.card-pill {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pill-gold {
  background: rgba(230, 184, 0, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: normal;
}

.card-chevron {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-chevron svg {
  width: 18px;
  height: 18px;
}

.action-card:hover .card-chevron {
  transform: translateX(3px);
  color: var(--gold-bright);
}

/* 8. CARD DE DESTAQUE (INSTAGRAM HIGHLIGHT COM MOCKUP REAL) */
.card-highlight {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  border-color: rgba(230, 184, 0, 0.24);
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.96) 0%, rgba(14, 15, 18, 0.98) 100%);
}

.card-highlight .card-content-row {
  padding: 14px 18px 10px;
}

.instagram-mockup {
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: #090a0d;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #0d0f12;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; opacity: 0.75; }
.dot-amber { background: #f59e0b; opacity: 0.75; }
.dot-green { background: #10b981; opacity: 0.75; }

.browser-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.browser-url-bar svg {
  width: 12px;
  height: 12px;
  color: var(--gold-bright);
}

.browser-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

.instagram-preview-body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(230, 184, 0, 0.04) 0%, transparent 100%);
}

.insta-avatar-box {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-deep) 100%);
  flex-shrink: 0;
}

.insta-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  display: block;
}

.insta-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.insta-handle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white-pure);
}

.insta-bio-snippet {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.card-internal-cta {
  width: 100%;
  padding: 10px 18px;
  background: rgba(230, 184, 0, 0.06);
  border-top: 1px solid var(--gold-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

/* 9. MICRO-LINK DISCRETO */
.micro-link-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.micro-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  padding: 8px 12px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.micro-link:hover {
  color: var(--gold-bright);
}

/* 10. HORÁRIO DE ATENDIMENTO (PADRÃO DEXTER MENSWEAR — OTIMIZADO) */
.hours-section {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-top: 1px solid var(--border-card-top);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-top: 4px;
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.hours-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-pure);
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-status-pill.is-open {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.live-status-pill.is-open .status-dot {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: dotPulse 1.8s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.live-status-pill.is-closed {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.live-status-pill.is-closed .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.card-pill.is-closed {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

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

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.hours-row.is-today {
  background: rgba(230, 184, 0, 0.10);
  color: var(--white-pure);
  font-weight: 700;
  border: 1px solid var(--gold-border-subtle);
}

.hours-row.is-today .hours-day {
  color: var(--gold-bright);
}

.hours-time {
  font-variant-numeric: tabular-nums;
}

/* 11. RODAPÉ — EXATAMENTE 2 LINHAS */
.footer-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-line-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-line-agency {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-agency-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.footer-agency-link:hover {
  color: var(--gold-bright);
}

/* 12. REGRAS DE REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .dex-shine-sweep {
    display: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .beam-rotator {
    animation: none !important;
    display: none !important;
  }
  .card-border-beam {
    border: 1px solid var(--gold-border-subtle);
    padding: 0;
    -webkit-mask: none;
    mask: none;
  }
}

/* 13. AJUSTES RESPONSIVOS */
@media (max-width: 360px) {
  .page-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .title-display {
    font-size: 2.1rem;
  }
  .title-subline {
    font-size: 1.3rem;
  }
  .card-title {
    font-size: 0.88rem;
  }
  .card-subtitle {
    font-size: 0.78rem;
  }
}
