/* ==========================================================================
   ADOLETÁ GRIFE — Link-in-Bio Premium
   Design System: Carmim Real & Branco Nobre (Editorial Infantil de Alto Padrão)
   Zero caixas cinzas • Zero cara de IA • Zero overflow horizontal
   ========================================================================== */

:root {
  /* Cores Principais */
  --bg-page: #fbfbfa;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8f6f2;
  
  /* Vermelho Adoletá: Carmim Nobre & Rubro Profundo */
  --primary: #b30f1e;
  --primary-dark: #8c0915;
  --primary-light: #d6182a;
  --primary-surface: rgba(179, 15, 30, 0.04);
  --primary-border: rgba(179, 15, 30, 0.14);
  --primary-glow: rgba(179, 15, 30, 0.18);
  
  /* Textos & Neutros */
  --text-main: #191817;
  --text-body: #4a4744;
  --text-muted: #76726d;
  --border-subtle: rgba(26, 25, 24, 0.07);
  --border-card: rgba(26, 25, 24, 0.08);

  /* Feedback de Horário */
  --status-open-bg: rgba(16, 185, 129, 0.08);
  --status-open-border: rgba(16, 185, 129, 0.25);
  --status-open-text: #065f46;
  --status-open-dot: #10b981;
  
  --status-closed-bg: rgba(179, 15, 30, 0.06);
  --status-closed-border: rgba(179, 15, 30, 0.2);
  --status-closed-text: #8c0915;
  --status-closed-dot: #b30f1e;

  /* Sombras Profundas & Orgânicas */
  --shadow-sm: 0 4px 12px rgba(26, 25, 24, 0.03);
  --shadow-md: 0 10px 30px -6px rgba(26, 25, 24, 0.06);
  --shadow-lg: 0 20px 40px -10px rgba(179, 15, 30, 0.12);
  --shadow-hero: 0 14px 32px -4px rgba(179, 15, 30, 0.35);

  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Syne', var(--font-sans);
}

/* Reset Universal & Blindagem Mobile */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ponto Focal de Luz Único (Ambient Radial Glow) */
.ambient-lighting {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100vw);
  height: 380px;
  background: radial-gradient(ellipse at 50% 0%, rgba(179, 15, 30, 0.075) 0%, rgba(251, 251, 250, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container Estrutural Contínuo */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 480px) {
  .page-wrapper {
    padding: 48px 24px 80px;
    gap: 26px;
  }
}

/* ==========================================================================
   HEADER / BRAND HERO
   ========================================================================== */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Badge de Horário Dinâmico */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--status-open-bg);
  border: 1px solid var(--status-open-border);
  color: var(--status-open-text);
  transition: all 0.3s ease;
  max-width: 100%;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-open-dot);
  box-shadow: 0 0 8px var(--status-open-dot);
  flex-shrink: 0;
  animation: pulseStatus 2.2s infinite ease-in-out;
}

.status-pill.is-closed {
  background: var(--status-closed-bg);
  border-color: var(--status-closed-border);
  color: var(--status-closed-text);
}

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

@keyframes pulseStatus {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Moldura Refinada do Logo */
.brand-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.avatar-ring {
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b30f1e 0%, rgba(179, 15, 30, 0.2) 100%);
  box-shadow: 0 10px 24px -4px rgba(179, 15, 30, 0.22);
}

.brand-logo {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--primary);
  border: 3px solid #ffffff;
}

@media (min-width: 480px) {
  .brand-logo {
    width: 110px;
    height: 110px;
  }
}

/* Tipografia Principal */
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto;
}

.brand-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   DECLARAÇÕES OFICIAIS & PROVA SOCIAL
   ========================================================================== */
.official-badges-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
}

.pill-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Barra de Prova Social Verificada */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-val.star-val {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.metric-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

@media (max-width: 360px) {
  .page-wrapper {
    padding: 28px 14px 48px;
  }
  .metrics-row {
    gap: 6px;
  }
  .metric-card {
    padding: 10px 4px;
  }
  .metric-val {
    font-size: 1rem;
  }
  .metric-lbl {
    font-size: 0.66rem;
    letter-spacing: 0.01em;
  }
}

/* ==========================================================================
   CARDS DE CONVERSÃO & ROTAS (LINKS PRINCIPAIS)
   ========================================================================== */
.actions-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Botão Base & Efeito Shiny Sweep Premium */
.action-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(179, 15, 30, 0.25);
}

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

/* Feixe Diagonal de Brilho (Shiny Sweep) */
.action-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card:hover::after,
.action-card:active::after {
  left: 160%;
}

/* Card Primário de Destaque: WhatsApp (Hero de Conversão) */
.action-card.card-featured {
  background: linear-gradient(135deg, #b30f1e 0%, #8c0915 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-hero);
  color: #ffffff;
}

.action-card.card-featured .card-title {
  color: #ffffff;
}

.action-card.card-featured .card-desc {
  color: rgba(255, 255, 255, 0.88);
}

.action-card.card-featured .icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.action-card.card-featured .action-arrow {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.action-card.card-featured:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 18px 36px -4px rgba(179, 15, 30, 0.45);
}

.action-card.card-featured::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Estrutura Interna dos Cards */
.card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-surface);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

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

.card-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: normal;
}

.action-arrow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

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

/* ==========================================================================
   LINKS DIRETOS DE TELEFONE (GRADE DUPLA)
   ========================================================================== */
.phones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

@media (min-width: 440px) {
  .phones-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  min-height: 64px;
}

.phone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 15, 30, 0.25);
  box-shadow: var(--shadow-md);
}

.phone-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phone-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BLOCO DE LOCALIZAÇÃO & LOJA FÍSICA
   ========================================================================== */
.location-section {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 480px) {
  .location-section {
    padding: 28px 24px;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.address-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.address-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.address-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  word-break: normal;
}

.address-city {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tabela de Horários */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 4px 0;
}

.hours-day {
  font-weight: 600;
  color: var(--text-body);
}

.hours-val {
  font-weight: 700;
  color: var(--text-main);
}

.hours-item.is-closed-day .hours-val {
  color: var(--primary);
}

/* Botão de Traçar Rota */
.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px -2px rgba(179, 15, 30, 0.28);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-directions:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -2px rgba(179, 15, 30, 0.38);
}

.btn-directions::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  transition: left 0.75s ease;
}

.btn-directions:hover::after {
  left: 160%;
}

/* Área do Mapa sob Demanda */
.map-embed-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #eae7e1;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f1ec 100%);
}

.btn-load-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-load-map:hover {
  background: var(--bg-page);
  border-color: rgba(179, 15, 30, 0.3);
  transform: translateY(-2px);
  color: var(--primary);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.brand-footer {
  text-align: center;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-credo {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
}

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

/* ==========================================================================
   ACESSIBILIDADE & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .status-dot {
    animation: none !important;
  }
  .action-card::after,
  .btn-directions::after {
    display: none !important;
  }
}
