/* ==========================================================================
   ᴀᴅʟ grife — Design System & CSS de Alta Costura Urbana
   Diretrizes: O COPY (Segundo Cérebro) • Padrão Editorial Internacional
   Cores: Preto Absoluto (#030508), Azul Elétrico/Cobalto (#0066FF / #00D2FF), Branco Puro
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
  --color-bg-base: #030508;
  --color-bg-surface: rgba(12, 17, 26, 0.72);
  --color-bg-surface-hover: rgba(18, 25, 38, 0.88);
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-active: rgba(0, 102, 255, 0.45);
  
  --color-primary: #0066FF;
  --color-primary-glow: rgba(0, 102, 255, 0.35);
  --color-cyan: #00D2FF;
  --color-cyan-glow: rgba(0, 210, 255, 0.25);
  
  --color-text-title: #FFFFFF;
  --color-text-body: #B4BCC8;
  --color-text-muted: #6C7688;

  --font-brand: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-action: 20px;
  --radius-card: 24px;
}

/* 2. Reset Rigoroso & Prevenção de Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-bg-base);
  position: relative;
  overflow-x: hidden !important;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  padding: 0 16px 40px;
}

/* 3. Ambient Lighting & Atmosfera Contínua */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  will-change: transform;
}

.glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-middle {
  top: 45%;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  opacity: 0.15;
}

.glow-bottom {
  bottom: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.18;
}

/* 4. Page Wrapper Mobile-First */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* 5. Brand Hero Header */
.brand-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 12px 28px;
}

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

.logo-aura {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(0, 210, 255, 0.1) 60%, transparent 80%);
  filter: blur(12px);
  z-index: 1;
}

.brand-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--color-primary-glow);
  background: #000;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: clamp(2.1rem, 6.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text-title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.15);
}

.brand-sub {
  font-size: 0.95rem;
  color: var(--color-text-body);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  max-width: 380px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #E2E8F0;
}

.pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* 6. Fluxo de Ações Principais (CTAs) */
.action-stream {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

/* Estilo Base dos Itens de Ação (Links) */
.action-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 14px 20px;
  border-radius: var(--radius-action);
  text-decoration: none;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-text-title);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.action-item:hover, .action-item:focus-visible {
  transform: translateY(-2px);
  background: var(--color-bg-surface-hover);
  border-color: var(--color-border-active);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.16);
  outline: none;
}

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

/* Destaque Principal: WhatsApp */
.primary-action {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.22) 0%, rgba(12, 17, 26, 0.85) 75%);
  border: 1px solid rgba(0, 102, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.14);
}

.primary-action .action-icon {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.primary-action .action-headline {
  color: #FFFFFF;
  font-weight: 700;
}

/* Ação Secundária: Instagram */
.secondary-action .action-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ação de Apoio: Rota GPS */
.route-action {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(12, 17, 26, 0.85) 80%);
  border: 1px solid rgba(0, 210, 255, 0.28);
}

.route-action .action-icon {
  background: rgba(0, 210, 255, 0.2);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

/* Ícones e Tipografia dos Botões */
.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  transition: transform 0.3s var(--ease-spring);
}

.action-item:hover .action-icon {
  transform: scale(1.06);
}

.action-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  min-width: 0;
}

.action-headline {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-title);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-subtext {
  font-size: 0.82rem;
  color: var(--color-text-body);
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}

.action-item:hover .action-arrow {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* 7. Shiny Sweep Glow (Feixe Diagonal Elegante & Não Bloqueante) */
.shiny-button {
  position: relative;
}

.shiny-sweep {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  animation: shiny-sweep-animation 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shiny-sweep-animation {
  0%, 65% {
    left: -120%;
  }
  85%, 100% {
    left: 200%;
  }
}

/* 8. Logistics Statement (Envios & Cobertura) */
.logistics-statement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-action);
  padding: 16px 20px;
  margin-top: 4px;
}

.logistics-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.logistics-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.logistics-title {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.logistics-desc {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

/* 9. Seção de Loja Física & Mapa Real ao Vivo */
.store-location-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.section-header {
  text-align: left;
  margin-bottom: 16px;
  padding: 0 4px;
}

.header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-text-title);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.store-address {
  font-size: 0.9rem;
  color: var(--color-text-body);
}

/* Moldura do Mapa Interativo */
.map-container-frame {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #07090E;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}

.map-canvas {
  width: 100%;
  height: 100%;
  background: #07090E;
  z-index: 1;
}

/* Customização Dark Mode do Leaflet */
.leaflet-container {
  background: #07090E !important;
  font-family: var(--font-body) !important;
}

.leaflet-control-attribution {
  background: rgba(3, 5, 8, 0.75) !important;
  color: #6C7688 !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: #8A94A6 !important;
}

.leaflet-bar a {
  background-color: #0F141E !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.leaflet-bar a:hover {
  background-color: #171F2E !important;
}

/* Custom Marker Pin de Neon */
.custom-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.custom-pin-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cyan);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 14px var(--color-cyan);
  z-index: 2;
}

.custom-pin-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.35);
  animation: map-pin-pulse 2.2s ease-out infinite;
  z-index: 1;
}

@keyframes map-pin-pulse {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Fallback do Mapa */
.map-overlay-fallback {
  position: absolute;
  inset: 0;
  background: #07090E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.fallback-pin-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary);
  margin-bottom: 12px;
}

.fallback-text {
  font-size: 0.85rem;
  color: var(--color-text-body);
}

.route-action-wrapper {
  width: 100%;
}

/* 10. Rodapé Minimalista de Grife */
.brand-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 16px;
  margin-top: 24px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--color-text-title);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.footer-legal strong {
  font-family: var(--font-brand);
  letter-spacing: 0.08em;
}

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

/* 11. Toast de Alerta do WhatsApp (Placeholder Handling) */
.notice-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(18, 24, 36, 0.95);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-spring), opacity 0.4s ease;
}

.notice-toast.toast-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-icon {
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-copy {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.8rem;
  color: var(--color-text-body);
  line-height: 1.35;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #FFFFFF;
}

/* 12. Responsividade Fina (Breakpoints 320px até 1920px) */
@media (max-width: 360px) {
  .brand-hero {
    padding-top: 36px;
  }
  .brand-title {
    font-size: 1.85rem;
  }
  .action-headline {
    font-size: 0.95rem;
  }
  .action-subtext {
    font-size: 0.76rem;
  }
  .action-item {
    padding: 12px 14px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  body {
    padding-top: 24px;
    padding-bottom: 60px;
  }
  .page-wrapper {
    max-width: 580px;
  }
  .map-container-frame {
    height: 270px;
  }
  .brand-title {
    font-size: 2.75rem;
  }
}

/* 13. Acessibilidade & Modo de Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .shiny-sweep {
    display: none !important;
  }
  .pulse-ring, .custom-pin-pulse {
    animation: none !important;
  }
}
