/* ============================================================
   LOJA DA NEGUINHA — ESTILO & SISTEMA VISUAL (DESDE 1948)
   Paleta: Preto Profundo & Ouro Acetinado Mineiro
   Padrão: Acabamento Premium, Mobile-First, Performance Pura
   ============================================================ */

/* --- Fontes Auto-Hospedadas (Zero dependência externa) --- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cinzel-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cinzel-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2');
}

/* --- Variáveis e Tokens de Design --- */
:root {
  /* Fundo Escuro com Atmosfera Quente */
  --bg-dark: #07080a;
  --bg-surface: rgba(18, 17, 16, 0.72);
  --bg-surface-hover: rgba(26, 24, 22, 0.88);
  
  /* Família Tonal do Dourado Nobre */
  --gold-core: #d4af37;
  --gold-bright: #fbf1c7;
  --gold-warm: #e5a93c;
  --gold-deep: #7a5413;
  --gold-dark: #362407;
  --gold-glow: rgba(212, 175, 55, 0.36);
  --gold-border: rgba(212, 175, 55, 0.22);
  --gold-border-bright: rgba(251, 241, 199, 0.45);
  
  /* Cores Neutras & Textos */
  --text-pure: #ffffff;
  --text-main: #f5f3ef;
  --text-muted: #b8b1a5;
  --text-dim: #7d776d;
  
  /* Status */
  --status-open: #25d366;
  --status-open-glow: rgba(37, 211, 102, 0.35);
  --status-closed: #e5a93c;
  --status-closed-glow: rgba(229, 169, 60, 0.35);

  /* Tipografia */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
}

/* --- Atmosfera de Fundo (Camada de Luz Difusa) --- */
.ambient-lighting {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-light-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(122, 84, 19, 0.08) 45%, transparent 72%);
  border-radius: 50%;
}

.ambient-light-bottom {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 500px;
  background: radial-gradient(circle, rgba(181, 137, 36, 0.12) 0%, transparent 68%);
  border-radius: 50%;
}

/* --- Container Principal Link-in-Bio --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 480px) {
  .page-wrapper {
    padding: 56px 24px 72px;
  }
}

/* --- Cabeçalho & Brasão de 1948 --- */
.brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.emblem-wrapper {
  position: relative;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.emblem-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 2px solid var(--gold-border-bright);
  background: radial-gradient(circle, rgba(30, 26, 20, 0.9) 0%, rgba(10, 9, 8, 0.95) 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), inset 0 1px 2px rgba(251, 241, 199, 0.3), 0 0 28px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  clip-path: circle(50% at 50% 50%);
}

.emblem-picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  clip-path: circle(50% at 50% 50%);
}

.vintage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.vintage-badge svg {
  color: var(--gold-core);
}

.store-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 10px;
}

.store-title span {
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-bright) 45%, var(--gold-core) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-tagline {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 16px;
}

/* --- Status de Funcionamento em Tempo Real --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(18, 17, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-open);
  box-shadow: 0 0 10px var(--status-open-glow);
  animation: pulse-dot 2.5s infinite var(--ease-spring);
}

.status-pill.is-closed .status-dot {
  background-color: var(--status-closed);
  box-shadow: 0 0 10px var(--status-closed-glow);
}

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

.status-detail {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 4px;
}

/* --- Container dos Links (Coluna Única) --- */
.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- CTA PRINCIPAL DOMINANTE: WhatsApp com Ouro Metálico & Brilho Ativo --- */
.cta-master {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: #0d0c0a;
  background: linear-gradient(135deg, #fff2d1 0%, var(--gold-core) 45%, #b58320 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--gold-glow);
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
  min-height: 78px;
  z-index: 1;
}

/* Anel giratório contínuo de luz (~5s de ciclo) */
.cta-border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.cta-border-beam::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, #ffffff 320deg, var(--gold-bright) 360deg);
  animation: rotate-beam 5s linear infinite;
}

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

/* Shiny sweep contínuo passando automaticamente a cada ~4.5s */
.cta-sweep-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.cta-sweep-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-24deg);
  animation: sweep-auto 4.5s infinite ease-in-out;
}

@keyframes sweep-auto {
  0% { transform: translateX(0) skewX(-24deg); }
  35% { transform: translateX(380%) skewX(-24deg); }
  100% { transform: translateX(380%) skewX(-24deg); }
}

.cta-master:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75), 0 0 45px rgba(212, 175, 55, 0.55);
}

.cta-master:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cta-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #120e06;
  line-height: 1.25;
}

.cta-subtitle {
  font-size: 0.8rem;
  color: #3d2f13;
  font-weight: 600;
}

.cta-arrow {
  color: #1a150b;
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.25s ease;
}

.cta-master:hover .cta-arrow {
  transform: translateX(4px);
}

/* --- BOTÕES SECUNDÁRIOS EM COLUNA ÚNICA --- */
.action-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(251, 241, 199, 0.08);
  color: var(--text-main);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 68px;
}

.action-card:hover {
  transform: translateY(-2px);
  background: var(--bg-surface-hover);
  border-color: var(--gold-border-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.18);
}

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

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 16px;
}

.action-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.action-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-pure);
  line-height: 1.3;
}

.action-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.action-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.25s ease, color 0.25s ease;
}

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

/* --- Card de Métricas do Instagram Real --- */
.insta-metrics-badge {
  display: inline-flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--gold-core);
  font-weight: 600;
  margin-top: 2px;
}

/* --- Card Interativo: Localização & Rota com Mapa Ancorado por CID --- */
.location-block {
  width: 100%;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(251, 241, 199, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

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

.location-info h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-pure);
  line-height: 1.3;
}

.location-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 3px;
}

/* Moldura Refinada do Mapa */
.map-frame-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: #0d0c0a;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(0.9);
}

.route-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
}

.route-btn:hover {
  background: var(--gold-core);
  color: #07080a;
  border-color: var(--gold-core);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* --- Card de Horários com a Irregularidade Destacada --- */
.schedule-block {
  width: 100%;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(251, 241, 199, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.schedule-header-text h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-pure);
}

.schedule-header-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.schedule-row.is-today {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--gold-bright);
  font-weight: 600;
}

.schedule-row.is-special {
  /* Terça e Quarta que abrem 08:30 */
  border-left: 2px solid var(--gold-warm);
}

.day-name {
  color: var(--text-main);
}

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

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

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

.day-closed {
  color: var(--text-dim);
}

/* --- Rodapé Institucional (Confiança de Gerações) --- */
.page-footer {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-core), transparent);
  margin-bottom: 6px;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1.4;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-meta strong {
  color: var(--text-muted);
}

/* --- Otimizações de Acessibilidade & Motion Reduzido --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cta-border-beam::before {
    animation: none;
    transform: none;
    background: var(--gold-bright);
    opacity: 0.4;
  }
  .cta-sweep-light::after {
    animation: none;
    display: none;
  }
}
