/* ==========================================================================
   JM IMPORTS | LINK-IN-BIO DESIGN SYSTEM
   Paleta: Preto & Vermelho com profundidade atmosférica (Anti-Seco)
   Tipografia: Syne + Plus Jakarta Sans (Self-hosted WOFF2 com cobertura total)
   ========================================================================== */

/* 1. Self-Hosted Font Declarations */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/syne-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/syne-800.woff2') format('woff2');
}

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

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

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

/* 2. Registered Properties for Safe Conic Gradient Border (No element rotation!) */
@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* 3. Design Tokens */
:root {
  /* Cores de Base */
  --bg-base: #070709;
  --bg-surface: rgba(18, 18, 22, 0.45);
  --bg-surface-hover: rgba(28, 28, 34, 0.65);
  
  /* Família Tonal do Vermelho (Mínimo 5 papéis reais com luz e profundidade) */
  --red-core: #dc2626;
  --red-bright: #ef4444;
  --red-warm: #f87171;
  --red-deep: #991b1b;
  --red-halo: rgba(220, 38, 38, 0.38); /* Opacidade >= 0.30 conforme exigido */
  --red-glow-subtle: rgba(220, 38, 38, 0.16);

  /* Tipografia & Contrastes */
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #9494a0;
  
  /* Bordas e Fios de Luz */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-red: rgba(220, 38, 38, 0.28);
  
  /* Dimensões e Raios */
  --radius-btn: 16px;
  --radius-tag: 8px;
  --ring-border-width: 2px;
  --max-width: 480px;

  /* Font Stacks */
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 4. Global Reset & Performance Constraints */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden !important;
  width: 100%;
  min-height: 100%;
}

/* 5. Atmosphere Layering (Luz difusa de fundo rasterizada via gradiente radial) */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.ambient-top {
  top: -120px;
  left: 50%;
  width: 600px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--red-halo) 0%, rgba(220, 38, 38, 0.1) 45%, transparent 70%);
  opacity: 0.65;
}

.ambient-center {
  top: 45%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-glow-subtle) 0%, transparent 68%);
  opacity: 0.5;
}

/* 6. Site Layout & Single Column */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 28px 20px 48px;
}

.main-column {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 7. Live Store Status Badge */
.header-status {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-indicator.closed {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4f4f5;
}

/* 8. Brand Hero Section (Zero circle, zero border around logo) */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 6px;
}

.logo-wrapper {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border: none !important;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-warm);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 5.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-title .text-glow-red {
  color: var(--red-bright);
  text-shadow: 0 0 20px var(--red-halo);
}

.hero-statement {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 18px;
}

/* Factual Real Proof Strip */
.factual-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.fact-node {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.fact-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fact-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fact-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
}

/* ==========================================================================
   9. DOMINANT PRIMARY CTA (WhatsApp)
   - Conic Border Ring spinning ONLY the angle via --ring-angle
   - Double mask declaration (webkit & standard)
   - Shiny Sweep Glow automatic continuous
   - Radius bound to calc(var(--radius-btn) + 2px)
   ========================================================================== */
.action-dominant-section {
  width: 100%;
}

.btn-dominant {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px var(--red-halo), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-dominant:active {
  transform: scale(0.98);
}

/* Anel com conic-gradient que percorre a borda GIRANDO APENAS O ÂNGULO */
.btn-dominant::before {
  content: "";
  position: absolute;
  inset: calc(var(--ring-border-width) * -1);
  border-radius: calc(var(--radius-btn) + var(--ring-border-width));
  padding: var(--ring-border-width);
  background: conic-gradient(
    from var(--ring-angle),
    transparent 0deg,
    #ffffff 45deg,
    var(--red-warm) 90deg,
    transparent 180deg,
    var(--red-bright) 270deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: ringSpin 5s linear infinite;
  z-index: 2;
}

@keyframes ringSpin {
  to {
    --ring-angle: 360deg;
  }
}

/* Shiny Sweep Glow Automático Contínuo sem depender de hover */
.btn-dominant::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: shinySweep 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  z-index: 3;
}

@keyframes shinySweep {
  0% {
    left: -130%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  32% {
    left: 140%;
    opacity: 0;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

.dominant-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.dominant-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dominant-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.dominant-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.dominant-arrow {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding-left: 12px;
}

/* ==========================================================================
   10. SECONDARY ACTIONS (Continuous flow, zero isolated grey boxes)
   ========================================================================== */
.actions-secondary-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.action-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.action-block:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.block-lead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--red-bright);
  flex-shrink: 0;
}

.block-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.block-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Component Tags Grid (Strictly customer data items) */
.component-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.comp-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-tag);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.comp-tag-wide {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--red-warm);
}

/* Delivery Points */
.delivery-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.delivery-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.delivery-item p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 1px;
}

.delivery-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--red-bright);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Address Box */
.address-display {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.address-main {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.address-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Instagram Stats */
.insta-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  border-radius: var(--radius-tag);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.insta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.insta-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

/* Schedule Table */
.hours-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-tag);
  font-size: 0.84rem;
}

.schedule-active {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--text-primary);
  font-weight: 600;
}

.schedule-active .schedule-time {
  color: var(--red-warm);
}

.schedule-closed {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Secondary Button Style (Refined, clean, stroke-driven) */
.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-subtle:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: var(--border-red);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid var(--border-red);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* 11. SVG Icons */
.icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-wpp {
  width: 22px;
  height: 22px;
}

/* 12. Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

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

.footer-channel {
  font-size: 0.74rem;
  color: var(--red-warm);
  font-weight: 600;
}

/* 13. Accessibility & Motion Controls */
.page-hidden *,
.page-hidden *::before,
.page-hidden *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow,
  .btn-dominant::after,
  .btn-dominant::before,
  .status-indicator {
    animation: none !important;
  }
}

/* 14. Viewport Adjustments (Strictly tested across 320px to 1920px) */
@media (max-width: 360px) {
  .site-wrapper {
    padding: 20px 14px 40px;
  }
  
  .btn-dominant {
    padding: 14px 16px;
  }
  
  .dominant-label {
    font-size: 0.95rem;
  }
  
  .action-block {
    padding: 16px;
  }
}
