/* ==========================================================================
   DON MUEL PIZZARIA — LINK NA BIO DE ALTA CONVERSÃO & DESIGN DE ELITE
   DNA de Design: O COPY | Cores: Vinho Nobre & Bege Ouro | Mobile-First Rigoroso
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* --- Design Tokens & Variáveis Globais (Alto Contraste & Elegância) --- */
:root {
  /* Paleta Nobre: Vinho Profundo & Bege Ouro */
  --wine-deep: #140307;
  --wine-dark: #22050e;
  --wine-base: #460b1b;
  --wine-rich: #681128;
  --wine-accent: #8e1c3a;
  --wine-glow: rgba(142, 28, 58, 0.45);
  
  --beige-light: #FAF6EE;
  --beige-cream: #F2E8D7;
  --beige-warm: #E6D7BF;
  --beige-muted: #C5B6A0;
  --beige-gold: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.35);

  --bg-noir: #0B0305;
  
  /* Superfícies dos Cards com preenchimento sólido e luminoso em Vinho */
  --surface-card: #280711;
  --surface-card-gradient: linear-gradient(135deg, #320916 0%, #1e050d 100%);
  --surface-card-hover: linear-gradient(135deg, #440d1e 0%, #280711 100%);
  --border-subtle: rgba(226, 211, 184, 0.28);
  --border-hover: rgba(197, 160, 89, 0.6);

  --text-primary: #FAF6EE;
  --text-secondary: #E8DCC8;
  --text-muted: #C5B6A0;

  --status-open: #27ae60;
  --status-open-glow: rgba(39, 174, 96, 0.4);
  --status-closed: #e74c3c;
  --status-closed-glow: rgba(231, 76, 60, 0.4);

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transições & Curvas Aveludadas (Padrão O COPY) */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-noir);
  color: var(--text-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  background-color: var(--bg-noir);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brilho quente ambiente sutil e nativo (zero lag, zero blocos pretos) */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  max-width: 100vw;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 28, 58, 0.2) 0%, rgba(197, 160, 89, 0.06) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Canvas Three.js sutil de atmosfera (apenas desktop) */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

/* Container Mestre de Centralização do Link na Bio */
.bio-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 14px 30px;
  overflow-x: hidden !important;
}

/* ==========================================================================
   HERO SECTION COM VÍDEO REAL, ENQUADRAMENTO FOCO PIZZA & DEGRADÊ CINEMATOGRÁFICO
   ========================================================================== */
.hero-card {
  position: relative;
  width: 100%;
  margin-top: 10px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: var(--wine-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 35px var(--wine-glow);
  isolation: isolate;
  opacity: 1 !important;
}

/* Container do Vídeo e Fallback Poster */
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.92;
  display: block;
}

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: -1;
  opacity: 0.92;
}

/* Overlay cinematográfico refinado: sem blur artificial, nítido e com contraste elegante */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(16, 4, 8, 0.38) 0%,
    rgba(22, 4, 8, 0.14) 28%,
    rgba(38, 7, 16, 0.62) 68%,
    rgba(11, 3, 5, 0.96) 100%
  );
}

.hero-content {
  position: relative;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge de Status Aberto / Fechado em Tempo Real */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 4, 8, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--beige-cream);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
  transition: var(--transition-fast);
}

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

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

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

/* Avatar / Logo com Rim Light */
.avatar-box {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 12px;
}

.avatar-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wine-accent) 20%, var(--beige-gold) 80%);
  filter: blur(10px);
  opacity: 0.7;
  z-index: 1;
  animation: rotate-glow 8s linear infinite;
}

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

.avatar-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--beige-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Tipografia de Marca */
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--beige-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-brand span {
  color: var(--beige-gold);
  background: linear-gradient(135deg, #FAF6EE 0%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--beige-cream);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.hero-subcopy {
  font-size: 0.8rem;
  color: var(--beige-muted);
  max-width: 320px;
  margin-bottom: 16px;
  font-style: italic;
}

/* Selo de Avaliação do Google (Nota 5.0 com 18 avaliações) */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 4, 8, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 6px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.hero-rating-badge:hover {
  border-color: var(--beige-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.google-icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: #F4B400;
}

.rating-stars svg {
  width: 13px;
  height: 13px;
  fill: #F4B400;
}

.rating-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--beige-light);
}

.rating-count {
  font-size: 0.76rem;
  color: var(--beige-muted);
  font-weight: 400;
}

/* ==========================================================================
   SEÇÃO DE BOTÕES PRINCIPAIS DE CONVERSÃO & REDIRECIONAMENTO (ALTA VISIBILIDADE)
   ========================================================================== */
.actions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  opacity: 1 !important;
}

/* Card Botão Primário (Base com preenchimento sólido em vinho nobre) */
.btn-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-normal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(250, 246, 238, 0.08);
  overflow: hidden;
  opacity: 1 !important;
}

.btn-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px var(--wine-glow);
}

.btn-card:active {
  transform: translateY(0) scale(0.99);
}

/* Card Destaque Oficial: iFood Ouro/Vinho */
.btn-card.highlight-order {
  background: linear-gradient(135deg, #5c0f24 0%, #300612 100%);
  border: 1.5px solid var(--beige-gold);
  box-shadow: 0 8px 24px rgba(92, 15, 36, 0.5), 0 0 24px rgba(197, 160, 89, 0.25);
}

.btn-card.highlight-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(250, 246, 238, 0.18), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 4.5s infinite;
}

@keyframes shine-sweep {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

.btn-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.btn-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(240, 230, 210, 0.12);
  border: 1px solid rgba(226, 211, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.btn-card:hover .btn-icon-wrap {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--beige-gold);
  transform: scale(1.05);
}

.btn-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: var(--beige-gold);
  stroke: none;
  transition: var(--transition-fast);
}

.btn-icon-wrap svg.icon-stroke {
  fill: none;
  stroke: var(--beige-gold);
}

.btn-card.highlight-order .btn-icon-wrap {
  background: var(--beige-gold);
  border-color: var(--beige-gold);
}

.btn-card.highlight-order .btn-icon-wrap svg {
  fill: #160408;
  stroke: none;
}

.btn-card.highlight-order .btn-icon-wrap svg.icon-stroke {
  fill: none;
  stroke: #160408;
}

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

.btn-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #FAF6EE;
  line-height: 1.25;
}

.btn-subtitle {
  font-size: 0.8rem;
  color: #D4C5AE;
  margin-top: 2px;
  font-weight: 400;
}

.btn-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-badge-live {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--beige-gold);
  color: #160408;
  padding: 4px 10px;
  border-radius: 999px;
}

.btn-arrow-svg {
  width: 18px;
  height: 18px;
  stroke: var(--beige-gold);
  transition: var(--transition-fast);
}

.btn-card:hover .btn-arrow-svg {
  stroke: var(--beige-light);
  transform: translateX(3px);
}

/* ==========================================================================
   ESTEIRA DE AVALIAÇÕES REAIS DO GOOGLE (TICKER CONTÍNUO SOFISTICADO)
   ========================================================================== */
.reviews-section {
  margin-top: 18px;
  width: 100%;
  opacity: 1 !important;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.section-label-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--beige-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label-text svg {
  width: 16px;
  height: 16px;
  stroke: var(--beige-gold);
}

.section-action-link {
  font-size: 0.78rem;
  color: var(--beige-warm);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.section-action-link:hover {
  color: var(--beige-light);
}

.reviews-ticker-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-card-gradient);
  border: 1px solid var(--border-subtle);
  padding: 14px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.reviews-ticker-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 0 14px;
  animation: scroll-reviews 26s linear infinite;
  will-change: transform;
}

.reviews-ticker-container:hover .reviews-ticker-track,
.reviews-ticker-container:focus-within .reviews-ticker-track {
  animation-play-state: paused;
}

@keyframes scroll-reviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 260px;
  background: linear-gradient(135deg, #3d0c1b 0%, #20050e 100%);
  border: 1px solid rgba(226, 211, 184, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.review-card:hover {
  border-color: var(--beige-gold);
  transform: translateY(-2px);
}

.review-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 13px;
  height: 13px;
  fill: #F4B400;
}

.review-google-tag {
  font-size: 0.7rem;
  color: var(--beige-muted);
  font-weight: 500;
}

.review-quote {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #FAF6EE;
  font-style: italic;
  margin-bottom: 8px;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--beige-muted);
  border-top: 1px solid rgba(240, 230, 210, 0.1);
  padding-top: 6px;
}

.review-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--beige-gold);
  font-weight: 600;
}

.review-verified svg {
  width: 12px;
  height: 12px;
  stroke: var(--beige-gold);
}

/* ==========================================================================
   HORÁRIOS DE ATENDIMENTO DETALHADOS (BASE OFICIAL GOOGLE)
   ========================================================================== */
.hours-section {
  margin-top: 18px;
  width: 100%;
  opacity: 1 !important;
}

.hours-card {
  background: var(--surface-card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(240, 230, 210, 0.1);
  padding-bottom: 10px;
}

.hours-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-title-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--beige-gold);
}

.hours-main-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--beige-light);
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 6px;
  color: #D4C5AE;
  transition: var(--transition-fast);
}

.hours-row.is-today {
  color: #FAF6EE;
  font-weight: 700;
  background: rgba(197, 160, 89, 0.15);
  border-left: 3px solid var(--beige-gold);
}

.hours-day {
  display: flex;
  align-items: center;
  gap: 6px;
}

.today-indicator {
  font-size: 0.65rem;
  background: var(--beige-gold);
  color: #160408;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.hours-time {
  font-weight: 600;
}

.hours-time.closed-label {
  color: #e74c3c;
  font-weight: 700;
}

/* ==========================================================================
   LOCALIZAÇÃO, MAPA INTERATIVO E ROTA GOOGLE MAPS
   ========================================================================== */
.location-section {
  margin-top: 18px;
  width: 100%;
  opacity: 1 !important;
}

.location-card {
  background: var(--surface-card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.location-info {
  padding: 16px 18px;
}

.location-address-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.location-pin-icon {
  width: 22px;
  height: 22px;
  stroke: var(--beige-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-texts h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--beige-light);
  margin-bottom: 2px;
}

.location-texts p {
  font-size: 0.82rem;
  color: var(--beige-muted);
  line-height: 1.4;
}

/* Botão de Traçar Rota com alto contraste e clareza */
.btn-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.25) 0%, rgba(197, 160, 89, 0.14) 100%);
  border: 1.5px solid var(--beige-gold);
  border-radius: 12px;
  color: var(--beige-light);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-route:hover {
  background: var(--beige-gold);
  color: #160408;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.35);
}

.btn-route svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Container Seguro do Mapa Google Oficial */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #1e050d;
  overflow: hidden;
  border-top: 1px solid rgba(226, 211, 184, 0.15);
}

.map-embed-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL & ASSINATURA DE ELITE
   ========================================================================== */
.bio-footer {
  margin-top: 22px;
  text-align: center;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 1 !important;
}

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

.footer-signature {
  font-size: 0.72rem;
  color: rgba(184, 166, 139, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-signature span {
  color: var(--beige-gold);
  font-weight: 600;
}

/* ==========================================================================
   ACESSIBILIDADE: PREFERS-REDUCED-MOTION
   ========================================================================== */
@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;
  }
  .reviews-ticker-track {
    animation: none !important;
    overflow-x: auto;
  }
  #ambient-canvas {
    display: none;
  }
}

/* ==========================================================================
   BREAKPOINTS: VALIDAÇÃO MOBILE-FIRST (320px, 360px, 390px, 414px)
   ========================================================================== */
@media (max-width: 360px) {
  .bio-wrapper {
    padding: 0 10px 24px;
  }
  .hero-content {
    padding: 18px 12px 16px;
  }
  .avatar-box {
    width: 74px;
    height: 74px;
  }
  .hero-brand {
    font-size: 1.55rem;
  }
  .btn-card {
    padding: 12px 14px;
  }
  .btn-title {
    font-size: 0.94rem;
  }
  .btn-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .review-card {
    width: 230px;
  }
  .map-wrapper {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .hero-card {
    margin-top: 24px;
  }
  .bio-wrapper {
    padding-bottom: 50px;
  }
}
