/* ==========================================================================
   TRUFAS DA XUXU — LINK-IN-BIO PREMIUM DESIGN SYSTEM
   Paleta Autoral: Chocolate Cacau Profundo & Rosa Morango Aveludado
   Zero Caixas Cinzas · Tipografia Monumental · Mobile-First Rigoroso
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTES SELF-HOSTED (Cobertura Total a-z, A-Z, 0-9, Acentos pt-BR)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/outfit-800.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');
}

/* --------------------------------------------------------------------------
   2. VARIÁVEIS & TOKENS DE DESIGN (WCAG 2.1 AA / AAA Garantidos)
   -------------------------------------------------------------------------- */
@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Raio do Botão e Anel Vinculados */
  --radius-btn: 20px;

  /* Fundo & Profundidade (Cacau Puro & Chocolate Artesanal) */
  --bg-deep: #130907;
  --bg-surface: #1E0F0C;
  --bg-card: rgba(36, 18, 15, 0.72);
  --bg-card-hover: rgba(48, 24, 20, 0.85);

  /* Família Tonal do Rosa Morango (5 papéis em uso) */
  --strawberry-core: #E85D8A;
  --strawberry-bright: #FF85AB;
  --strawberry-glow: rgba(232, 93, 138, 0.35);
  --strawberry-halo: rgba(232, 93, 138, 0.16);
  --strawberry-deep: #9E1B46;

  /* Cores de Ação Primária (Gradiente Nobre) */
  --btn-grad-start: #C92A5E;
  --btn-grad-end: #96163F;
  --btn-shadow: rgba(201, 42, 94, 0.42);

  /* Textos de Alto Contraste (Legibilidade Impecável) */
  --text-pure: #FFFFFF;
  --text-primary: #FFF2F5;       /* Contraste 18:1 sobre base */
  --text-secondary: #E3C8CE;     /* Contraste 12:1 sobre base */
  --text-muted: #BFA1A8;         /* Contraste 7:1 sobre base */

  /* Linhas de Fio Fino & Arestas de Luz */
  --border-subtle: rgba(255, 230, 235, 0.08);
  --border-active: rgba(232, 93, 138, 0.35);
  --border-light-edge: rgba(255, 255, 255, 0.14);

  /* Status Operacional */
  --status-open: #27C96B;
  --status-open-glow: rgba(39, 201, 107, 0.4);
  --status-closed: #FF5E5E;
  --status-closed-glow: rgba(255, 94, 94, 0.35);

  /* Curvas de Animação & Transição */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE (Zero Overflow Horizontal)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #2A1310 0%, #170A08 55%, #100605 100%);
  background-attachment: fixed;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px calc(88px + env(safe-area-inset-bottom));
}

/* Halos de Luz Difusa de Fundo (Atmosfera Anti-Seca sem Lag) */
.ambient-glow {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 95vw);
  height: 380px;
  background: radial-gradient(ellipse at center, var(--strawberry-halo) 0%, rgba(30, 15, 12, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, 90vw);
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(158, 27, 70, 0.12) 0%, rgba(19, 9, 7, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   4. ESTRUTURA DO SITE LINK-IN-BIO (Coluna Única e Fluida)
   -------------------------------------------------------------------------- */
.bio-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. HERO & ASSINATURA DA MARCA
   -------------------------------------------------------------------------- */
.brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 8px;
}

/* Avatar / Logo Circular com Rim-Light e Anel Morango */
.avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--strawberry-bright) 0%, rgba(255, 255, 255, 0.2) 50%, var(--strawberry-deep) 100%);
  box-shadow: 0 8px 24px var(--strawberry-halo), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background-color: var(--bg-surface);
}

/* Título Monumental — Único H1 */
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 5.8vw, 2.35rem);
  letter-spacing: -0.025em;
  color: var(--text-pure);
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* Frase da Própria Marca (Bio do Instagram, sem emojis) */
.brand-phrase {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--strawberry-bright);
  letter-spacing: 0.015em;
  margin-bottom: 8px;
}

/* Segmento e Cidade */
.brand-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

/* Fato Real e Concreto: 2.718 publicações no Instagram */
.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 22, 18, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.fact-highlight {
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.02em;
}

/* Badge de Horário Dinâmico em Tempo Real */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 15, 12, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  transition: border-color 0.3s ease;
}

.status-badge.open {
  border-color: rgba(39, 201, 107, 0.35);
}

.status-badge.closed {
  border-color: rgba(255, 94, 94, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--status-open);
  box-shadow: 0 0 10px var(--status-open-glow);
  animation: pulseLight 2s infinite ease-in-out;
}

.status-badge.closed .pulse-dot {
  background-color: var(--status-closed);
  box-shadow: 0 0 8px var(--status-closed-glow);
  animation: none;
}

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

/* --------------------------------------------------------------------------
   6. TRANSIÇÃO AUTORAL: CAUDA DE MORANGO GRANULADO (ONDA / RECHEIO)
   -------------------------------------------------------------------------- */
.strawberry-drip-divider {
  width: 100%;
  max-width: 480px;
  height: 48px;
  margin: 4px 0 16px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.strawberry-drip-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   7. AÇÃO PRINCIPAL DOMINANTE (WHATSAPP COM SHINY SWEEP GLOW & CONIC BORDER)
   -------------------------------------------------------------------------- */
.primary-action-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
}

.btn-primary-whatsapp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  color: var(--text-pure);
  text-decoration: none;
  box-shadow: 0 12px 30px var(--btn-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.38);
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 42, 94, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-primary-whatsapp:active {
  transform: translateY(0);
}

/* Conteúdo Interno do Botão */
.btn-primary-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--text-pure);
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 2px;
}

.btn-arrow-icon {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease-smooth);
}

.btn-primary-whatsapp:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* SHINY SWEEP GLOW — Passagem Automática Contínua sem Hover / sem Toque */
.btn-shiny-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
}

.btn-shiny-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 90%
  );
  transform: rotate(25deg);
  animation: shinySweepLoop 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shinySweepLoop {
  0% {
    left: -120%;
  }
  28% {
    left: 180%;
  }
  100% {
    left: 180%;
  }
}

/* ANEL CONIC GRADIENT PERCORRENDO A BORDA (Ciclo de 5s girando apenas o ângulo) */
.btn-conic-glow-border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-btn) + 2px);
  padding: 2px;
  pointer-events: none;
  z-index: 0;
  -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;
  background: conic-gradient(
    from var(--ring-angle),
    transparent 65%,
    rgba(255, 180, 200, 0.25) 78%,
    var(--strawberry-bright) 90%,
    #FFFFFF 98%,
    transparent 100%
  );
  animation: ringSpin 5s linear infinite;
}

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

/* --------------------------------------------------------------------------
   7.1. BOTÃO FLUTUANTE DE WHATSAPP (ATALHO FIXO INTELIGENTE)
   -------------------------------------------------------------------------- */
.btn-whatsapp-floating {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 42, 94, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
}

.btn-whatsapp-floating:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(201, 42, 94, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-whatsapp-floating:active {
  transform: scale(0.96);
}

/* Ocultar quando a ação principal está na tela */
.btn-whatsapp-floating.floating-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. AÇÕES SECUNDÁRIAS (SEM CAIXAS CINZAS · FLUIDEZ INTEGRADA)
   -------------------------------------------------------------------------- */
.secondary-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.3s var(--ease-smooth), background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.action-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-active);
}

.action-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232, 93, 138, 0.12);
  border: 1px solid rgba(232, 93, 138, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--strawberry-bright);
  flex-shrink: 0;
}

.action-card-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.action-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-pure);
  line-height: 1.25;
}

.action-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-card-arrow {
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-smooth), color 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   9. SEÇÃO DE HORÁRIOS & LOCALIZAÇÃO (FATOS CONCRETOS SEM ENROLATION)
   -------------------------------------------------------------------------- */
.details-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-block {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(30, 15, 12, 0.55);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--strawberry-bright);
}

.detail-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-pure);
}

/* Tabela Factual dos Horários */
.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-day {
  color: var(--text-secondary);
}

.schedule-time {
  font-weight: 600;
  color: var(--text-pure);
}

.schedule-time.closed {
  color: var(--strawberry-bright);
  font-weight: 500;
}

.schedule-note {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Bloco de Localização */
.location-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.location-address {
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
   10. RODAPÉ DE AUTORIDADE & ASSINATURA
   -------------------------------------------------------------------------- */
.brand-footer {
  width: 100%;
  text-align: center;
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
}

.brand-footer p {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   11. MOTION REFINADO & REGRAS DE ACESSIBILIDADE
   -------------------------------------------------------------------------- */
.reveal-init {
  opacity: 1; /* Visível imediatamente sem JS */
  transform: translateY(0);
}

/* Pausar animações fora da visualização e em background */
.animations-paused *,
.animations-paused *::after,
.animations-paused *::before {
  animation-play-state: paused !important;
}

@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;
  }
  .btn-shiny-sweep::after,
  .btn-conic-glow-border,
  .pulse-dot {
    animation: none !important;
  }
  .btn-whatsapp-floating {
    transition: none !important;
  }
}

/* Responsividade Mobile Extrema (320px a 480px) */
@media (max-width: 360px) {
  body {
    padding: 24px 12px 36px;
  }
  .brand-title {
    font-size: 1.7rem;
  }
  .btn-primary-whatsapp {
    padding: 16px 16px;
  }
  .btn-title {
    font-size: 0.98rem;
  }
}
