/* ==========================================================================
   NOSSO PONTO PIZZARIA — DESIGN SYSTEM & ESTILOS PREMIUM
   Estética: Luminous Hearth, Amber Gold & Bege Claro Sofisticado
   Transparência Refinada • Zero Caixas Cinzas • Mobile-First Rigoroso • Zero Overflow
   ========================================================================== */

:root {
  /* Paleta Hearth & Transparência Elegante */
  --bg-deep: #0E0C0E;
  --bg-surface: rgba(28, 24, 27, 0.65);
  --bg-card: rgba(30, 25, 29, 0.62);
  --bg-card-hover: rgba(42, 35, 41, 0.75);
  
  /* Amarelo Ouro Premium & Toques de Forno */
  --gold-primary: #F5B82E;
  --gold-light: #FFD56B;
  --gold-dark: #D49216;
  --gold-glow: rgba(245, 184, 46, 0.32);
  --gold-subtle: rgba(245, 184, 46, 0.14);
  --gold-border: rgba(245, 184, 46, 0.24);
  
  /* Bege Claro Sofisticado & Linho */
  --beige-light: #FAF5ED;
  --beige-muted: #D8CCC0;
  --beige-subtle: rgba(250, 245, 237, 0.08);

  /* Textos de Alto Contraste & Legibilidade */
  --text-main: #FFFFFF;
  --text-secondary: #D4CBC0;
  --text-tertiary: #A3998C;
  
  /* Bordas e Sombras Esculpidas */
  --border-light: rgba(245, 184, 46, 0.16);
  --border-card: rgba(245, 184, 46, 0.22);
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 35px -5px rgba(245, 184, 46, 0.14);
  --shadow-btn-glow: 0 10px 28px -4px rgba(245, 184, 46, 0.42), 0 2px 8px rgba(0, 0, 0, 0.4);

  /* Tipografia */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transições Refinadas */
  --ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.28s var(--ease-elastic);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden !important;
  background: radial-gradient(circle at 50% 12%, rgba(245, 184, 46, 0.18) 0%, rgba(255, 106, 26, 0.08) 28%, rgba(24, 19, 21, 0.96) 68%, #0E0C0E 100%), #0E0C0E;
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Fallback de visibilidade instantânea */
.no-js .bio-card,
.no-js .btn-primary-order,
.no-js .bento-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Canvas Three.js: Atmosfera 3D Integrada */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Fallback visual suave caso WebGL não esteja disponível */
.ambient-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 20%, rgba(245, 184, 46, 0.18) 0%, rgba(255, 106, 26, 0.08) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ambient-fallback.is-active {
  opacity: 1;
}

/* Container Locomotive & Rolagem */
#main-scroll-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 44px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Luzes Ambientais de Fundo */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(85px);
  z-index: 0;
}

.glow-hero {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  max-width: 90vw;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.32) 0%, rgba(255, 106, 26, 0.14) 45%, transparent 70%);
}

.glow-center {
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  max-width: 85vw;
  height: 290px;
  background: radial-gradient(circle, rgba(247, 239, 228, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

/* CARTÃO PRINCIPAL LINK-IN-BIO — TRANSLÚCIDO E ELEGANTE */
.bio-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(32, 27, 31, 0.62) 0%, rgba(18, 15, 18, 0.72) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 34px 20px 30px;
  box-shadow: 
    var(--shadow-card),
    inset 0 1px 1px rgba(255, 235, 180, 0.22);
}

/* HEADER & LOGO */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--gold-primary), transparent 35%, var(--gold-primary) 70%, transparent);
  opacity: 0.6;
  filter: blur(8px);
  animation: auraRotate 14s linear infinite;
}

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

.brand-logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  background: #000;
  display: block;
}

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

.brand-tagline {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--beige-muted);
  margin-bottom: 14px;
}

/* TIRA DE INFORMAÇÕES ESSENCIAIS */
.essential-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.essential-pill {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--beige-light);
  background: rgba(250, 245, 237, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 184, 46, 0.18);
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.essential-pill:hover {
  border-color: rgba(245, 184, 46, 0.32);
  background: rgba(250, 245, 237, 0.1);
}

/* BADGE DE STATUS DINÂMICO */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
  flex-shrink: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-badge.is-open .status-pulse {
  background-color: #25D366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.65);
  animation: pulseOpen 2s infinite ease-in-out;
}

.status-badge.is-open {
  border-color: rgba(37, 211, 102, 0.36);
  color: #DCFCE7;
  background: rgba(37, 211, 102, 0.12);
}

@keyframes pulseOpen {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.85; }
}

/* SEÇÃO DE AÇÕES */
.actions-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

/* BOTÃO PRINCIPAL: WHATSAPP */
.btn-primary-order {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #D89812 100%);
  color: #12100A;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: var(--shadow-btn-glow);
  border: 1px solid rgba(255, 230, 160, 0.55);
  overflow: hidden;
  transition: transform 0.28s var(--ease-elastic), box-shadow 0.28s var(--ease-elastic);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary-order:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px -4px rgba(245, 184, 46, 0.52);
}

.btn-primary-order:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary-order:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

/* Efeito Shiny Sweep Discreto e Elegante */
.sweep-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: sweepAnim 5.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

@keyframes sweepAnim {
  0%, 70% { left: -120%; }
  100% { left: 220%; }
}

.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  flex-shrink: 0;
  color: #12100A;
}

.official-whatsapp-icon {
  display: block;
}

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

.btn-lead {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.btn-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(18, 16, 10, 0.82);
  margin-top: 2px;
}

.btn-arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

/* BENTO GRID SECUNDÁRIO — TRANSLÚCIDO E SEM OVERFLOW */
.secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(38, 32, 37, 0.55) 0%, rgba(22, 18, 22, 0.65) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 16px 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.25s var(--ease-elastic), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  min-height: 120px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.bento-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(48, 40, 46, 0.68) 0%, rgba(28, 23, 28, 0.78) 100%);
  border-color: rgba(245, 184, 46, 0.35);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
}

.bento-card:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--beige-light);
  flex-shrink: 0;
}

.instagram-icon {
  color: #FF9B66;
  background: rgba(255, 110, 80, 0.14);
}

.location-icon {
  color: var(--gold-primary);
  background: var(--gold-subtle);
}

.official-instagram-icon {
  display: block;
}

.bento-arrow {
  color: var(--text-tertiary);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.bento-card:hover .bento-arrow {
  color: var(--gold-primary);
  transform: translate(2px, -2px);
}

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

.bento-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-detail {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.25;
}

/* CÁPSULA DE HORÁRIOS & ATENDIMENTO */
.schedule-capsule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.08) 0%, rgba(247, 239, 228, 0.03) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
  box-sizing: border-box;
  overflow: hidden;
}

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

.capsule-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  min-width: 0;
}

.capsule-row {
  display: flex;
  flex-direction: column;
}

.capsule-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.capsule-value {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--beige-light);
}

.capsule-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* RODAPÉ */
.brand-footer {
  text-align: center;
  padding-top: 8px;
}

.footer-divider {
  width: 48px;
  height: 1px;
  background: var(--border-light);
  margin: 0 auto 14px;
}

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

.footer-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ==========================================================================
   RESPONSIVIDADE & MEDIA QUERIES (ZERO OVERFLOW EM MOBILE)
   ========================================================================== */

@media (max-width: 520px) {
  #main-scroll-container {
    padding: 20px 12px 36px;
  }
  
  .page-container {
    max-width: 100%;
    padding: 0;
  }

  .bio-card {
    padding: 26px 14px 22px;
    border-radius: 24px;
  }

  .logo-container {
    width: 112px;
    height: 112px;
    margin-bottom: 14px;
  }

  .brand-title {
    font-size: 1.52rem;
  }

  .essential-strip {
    gap: 5px;
    margin-bottom: 12px;
  }

  .essential-pill {
    font-size: 0.68rem;
    padding: 3px 9px;
  }

  .btn-primary-order {
    padding: 16px 16px;
    gap: 12px;
  }

  .btn-lead {
    font-size: 1rem;
  }

  /* Em telas menores que 520px, organiza os botões secundários horizontalmente com zero corte */
  .secondary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .bento-card {
    min-height: auto;
    padding: 13px 14px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .bento-header {
    margin-bottom: 0;
    gap: 10px;
    flex-shrink: 0;
  }

  .bento-content {
    flex-grow: 1;
    min-width: 0;
  }

  .bento-arrow {
    flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  #main-scroll-container {
    padding: 16px 10px 28px;
  }

  .bio-card {
    padding: 22px 12px 20px;
    border-radius: 20px;
  }

  .logo-container {
    width: 100px;
    height: 100px;
  }

  .brand-title {
    font-size: 1.38rem;
  }

  .essential-pill {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .btn-primary-order {
    padding: 14px 12px;
  }

  .btn-lead {
    font-size: 0.94rem;
  }
}

/* Redução de Movimento (Acessibilidade) */
@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;
  }

  .sweep-btn::after {
    display: none !important;
  }

  .logo-aura {
    animation: none !important;
  }
}
