/* ==========================================================================
   BIO LINK — BOX SENNA ("ESTÉTICA AUTOMOTIVA DE ALTO PADRÃO")
   Design System & Master Stylesheet | WCAG 2.2 AA | High-Conversion Performance
   ========================================================================== */

/* 1. RESET & DESIGN TOKENS */
:root {
  /* Automotive Dark Palette */
  --bg-deep: #07080a;
  --bg-base: #0d0f13;
  --surface-card: rgba(16, 19, 24, 0.9);
  --surface-card-hover: rgba(22, 26, 33, 0.96);
  --surface-elevated: #15181f;
  --surface-overlay: rgba(7, 8, 10, 0.85);

  /* Gold & Amber Accents (Refined Automotive Gold, WCAG AA compliant) */
  --gold-primary: #f5b700;
  --gold-bright: #ffd700;
  --gold-amber: #e5a93c;
  --gold-glow: rgba(245, 183, 0, 0.22);
  --gold-glow-subtle: rgba(245, 183, 0, 0.12);
  --gold-border: rgba(245, 183, 0, 0.32);
  --gold-border-subtle: rgba(245, 183, 0, 0.15);

  /* Neutrals & Text */
  --white-pure: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #9ca3af;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card-top: rgba(255, 255, 255, 0.14);

  /* Shadows */
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(245, 183, 0, 0.1);

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

  /* Transitions */
  --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 (WCAG 2.2 AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: #07080a;
  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.5);
}

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

/* 3. BACKDROP & SINGLE FOCAL AMBIENT GLOW */
.backdrop-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.backdrop-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(245, 183, 0, 0.05) 0%, transparent 65%),
              linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
}

/* Único ponto focal de luz na página (Hero top) */
.orb-amber-focal {
  position: absolute;
  width: 460px;
  height: 460px;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
}

/* 4. CANVAS CONTAINER */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 40px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  body {
    padding: 36px 16px;
  }
  .page-container {
    min-height: auto;
    background: rgba(13, 15, 19, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 36px 24px 44px;
    margin: 20px auto;
  }
}

/* 5. HERO SECTION */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

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

.logo-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.35) 0%, transparent 72%);
  filter: blur(10px);
}

.logo-image {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.title-display {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
  text-transform: uppercase;
}

.title-subline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 0 4px;
}

.hero-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 183, 0, 0.08);
  border: 1px solid var(--gold-border-subtle);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

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

/* Banner Showcase Box Senna */
.hero-banner-container {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, #12151b 0%, #0a0b0e 100%);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
}

.banner-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.live-status-pill.is-open {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.live-status-pill.is-open .status-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.live-status-pill.is-closed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.live-status-pill.is-closed .status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.banner-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.banner-subcaption {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 6. FAIXA MARQUEE */
.marquee-container {
  display: block;
  text-decoration: none;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #101217 0%, #171b22 50%, #101217 100%);
  border-top: 1px solid var(--gold-border-subtle);
  border-bottom: 1px solid var(--gold-border-subtle);
  padding: 11px 0;
  margin: 18px 0 24px;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-roll 28s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.marquee-diamond {
  color: rgba(245, 183, 0, 0.45);
  font-size: 0.65rem;
}

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

/* 7. ACTION CARDS COM SHINY SWEEP */
.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-card-top);
  border-radius: 18px;
  padding: 18px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  min-height: 48px;
}

.action-card:hover,
.action-card:focus-visible {
  background: var(--surface-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-2px);
  outline: none;
}

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

/* Shiny Sweep (Feixe diagonal elegante de baixa opacidade) */
.dex-shine-sweep {
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 215, 0, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 215, 0, 0.08) 55%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 5;
  transition: left 0.75s ease;
}

.action-card:hover .dex-shine-sweep,
.action-card:active .dex-shine-sweep {
  left: 120%;
}

.card-content-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.card-icon-box {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
}

.icon-brand-whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.22);
}

.icon-brand-instagram {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.22);
}

.icon-brand-location {
  color: var(--gold-bright);
  background: rgba(245, 183, 0, 0.08);
  border-color: var(--gold-border-subtle);
}

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

.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;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.card-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

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

.pill-muted {
  background: rgba(100, 116, 139, 0.14);
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: var(--text-muted);
}

.card-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.35;
  word-break: normal;
}

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

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

/* 8. CARD DE LOCALIZAÇÃO (MAPA VIVO) */
.map-card-wrapper {
  cursor: default;
}

.map-viewport-container {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0 12px;
  background: #090a0d;
  border: 1px solid var(--border-subtle);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f13;
  transition: opacity 0.35s ease;
}

.map-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(245, 183, 0, 0.2);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-touch-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 10, 0.3);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.map-touch-shield.is-unlocked {
  pointer-events: none;
  opacity: 0;
}

.map-iframe-live {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-seal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.seal-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
}

.map-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.btn-map-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  min-height: 48px;
}

.btn-route-primary {
  background: var(--gold-primary);
  color: #07080a;
}

.btn-route-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-copy-address {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-copy-address:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.map-meta-links {
  text-align: center;
  padding-top: 4px;
}

.link-ver-google {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* 9. MICRO-LINK DISCRETO */
.micro-link-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.micro-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.micro-link:hover {
  color: #ffffff;
  background: rgba(245, 183, 0, 0.08);
}

/* 10. TRUST GRID (3 COLUNAS) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(16, 19, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 6px;
  gap: 4px;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.trust-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.trust-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* 11. HORÁRIOS DE ATENDIMENTO SEMANAL */
.hours-section {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 28px;
}

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

.hours-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

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

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

.hours-row.is-today {
  background: rgba(245, 183, 0, 0.08);
  border-left: 2px solid var(--gold-bright);
  color: var(--text-primary);
  font-weight: 700;
}

.hours-day {
  color: inherit;
}

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

/* 12. RODAPÉ (EXATAMENTE 2 LINHAS) */
.footer-section {
  text-align: center;
  padding: 16px 8px 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-line-copyright {
  margin-bottom: 2px;
}

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

.footer-agency-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 13. TOAST NOTICE */
.toast-notice {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #181b22;
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  z-index: 10000;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  bottom: 24px;
}

.toast-notice svg {
  color: var(--gold-bright);
}

/* 14. ACESSIBILIDADE (PREFERS-REDUCED-MOTION) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .dex-shine-sweep {
    display: none !important;
  }
}
