/* ==========================================================================
   EDIPRATA | Link-in-Bio Joalheria Premium (João Monlevade/MG)
   Design System: Verde-Esmeralda Luminoso & Aberto + Rosé Sofisticado + Prata 925
   Estrutura: Coluna Centralizada + Grid de Peças Editorial (2 col mobile / 3 col desktop)
   ========================================================================== */

:root {
  /* Paleta Verde-Esmeralda Mais Claro e Aberto (Extraído da Logo Oficial) */
  --bg-emerald: #0b3423;
  --bg-emerald-surface: #0f422d;
  --bg-emerald-light: #16563c;
  
  --emerald-main: #196f4c;
  --emerald-luminous: #228b60;
  --emerald-bright: #2eb47e;
  --emerald-glow: rgba(46, 180, 126, 0.3);
  
  /* Rosé Metálico Sofisticado (Acento da Logo) */
  --rose-main: #e2b2b8;
  --rose-light: #f2d5d9;
  --rose-glow: rgba(226, 178, 184, 0.32);

  /* Prata 925 & Tipografia de Alto Contraste (AA >= 4.5:1) */
  --silver-white: #ffffff;
  --silver-light: #f3f8f5;
  --silver-muted: #cce0d6;
  --silver-subtle: #a1c2b3;

  /* WhatsApp Verde Harmonizado com a Paleta */
  --wa-green: #1f9463;
  --wa-green-hover: #26ab73;
  --wa-glow: rgba(31, 148, 99, 0.4);

  /* Tipografia */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easing Editorial */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-emerald);
  color: var(--silver-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-emerald);
  background-image: 
    radial-gradient(ellipse 95% 65% at 50% -10%, #15553a 0%, #0b3423 72%),
    radial-gradient(circle 600px at 50% 100%, #195d40 0%, #0b3423 85%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Textura de Grão Sutil (Toque Veludo) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Canvas Atmosférico Three.js */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Container de Rolagem e Layout Centralizado */
.scroll-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3.25rem;
}

/* ==========================================================================
   1. ABERTURA / IDENTIDADE (HERO BIO)
   ========================================================================== */
.section-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Medalhão Circular Oficial EDIPRATA */
.medallion-wrap {
  width: 136px;
  height: 136px;
  margin: 0 auto 1.35rem;
  position: relative;
}

.medallion-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.medallion-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--rose-main) 0%, var(--emerald-bright) 50%, var(--rose-light) 100%);
  box-shadow: 
    0 4px 25px var(--rose-glow),
    0 0 50px rgba(46, 180, 126, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s ease;
}

.medallion-ring:hover {
  transform: scale(1.03);
  box-shadow: 
    0 6px 32px var(--rose-glow),
    0 0 65px rgba(46, 180, 126, 0.4);
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #ffffff;
}

/* Brilho que cruza a logo 1x no carregamento */
.medallion-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: logo-shine 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s 1 forwards;
}

@keyframes logo-shine {
  0% { left: -120%; }
  100% { left: 200%; }
}

/* Textos da Marca */
.brand-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--silver-white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--rose-light);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.brand-phrase {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver-white);
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.brand-phrase em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-light);
  text-shadow: 0 0 16px var(--rose-glow);
}

.brand-support {
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--silver-muted);
  line-height: 1.6;
  max-width: 450px;
  margin: 0 auto 1.85rem;
}

/* ==========================================================================
   BOTÕES BIO (LARGURA TOTAL, EMPILHADOS, SHINY SWEEP GLOW)
   ========================================================================== */
.action-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-bio {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-luxury), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-bio:focus-visible {
  outline: 2px solid var(--rose-light);
  outline-offset: 3px;
}

.btn-bio .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-bio .btn-text {
  flex-grow: 1;
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-bio .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s var(--ease-luxury), opacity 0.25s ease;
}

.btn-bio:hover .btn-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Botão Principal: WhatsApp (Verde da Nova Paleta Harmonizado) */
.btn-primary-whatsapp {
  background: linear-gradient(135deg, var(--wa-green) 0%, #156d47 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 18px var(--wa-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary-whatsapp:hover {
  background: linear-gradient(135deg, var(--wa-green-hover) 0%, var(--wa-green) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px var(--wa-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Botão Secundário: Instagram & Outros */
.btn-secondary-outline {
  background: rgba(15, 66, 45, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--silver-white);
  border: 1px solid rgba(226, 178, 184, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-secondary-outline:hover {
  transform: translateY(-2px);
  border-color: var(--rose-main);
  background: rgba(20, 80, 55, 0.7);
  box-shadow: 
    0 6px 22px var(--rose-glow),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Shiny Sweep Glow Effect */
.shiny-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 0.75s ease;
}

.shiny-sweep:hover::after,
.shiny-sweep.sweep-active::after {
  left: 160%;
}

/* ==========================================================================
   2. SEÇÃO DE PEÇAS EM CARDS (JOALHERIA EDITORIAL)
   ========================================================================== */
.section-pieces {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.pieces-header {
  text-align: center;
}

.pieces-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--silver-white);
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.pieces-subtitle {
  font-size: 0.88rem;
  color: var(--silver-muted);
  font-weight: 300;
}

/* Grid de Peças: Ponto Crítico */
.pieces-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Card Individual */
.piece-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 178, 184, 0.28);
  background: rgba(14, 55, 38, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease-luxury), border-color 0.3s ease, box-shadow 0.3s ease;
}

.piece-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose-main);
  box-shadow: 
    0 8px 24px var(--rose-glow),
    0 4px 18px rgba(0, 0, 0, 0.3);
}

.piece-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background-color: #0e3726;
}

.piece-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-luxury);
}

.piece-card:hover .piece-img {
  transform: scale(1.035);
}

.piece-info {
  padding: 0.75rem 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.piece-type {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rose-light);
  letter-spacing: 0.04em;
}

/* Botão Consultar no WhatsApp */
.btn-piece-wa {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(25, 111, 76, 0.35);
  border: 1px solid rgba(46, 180, 126, 0.55);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-luxury), background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-piece-wa:hover {
  background: rgba(31, 148, 99, 0.6);
  border-color: var(--emerald-bright);
}

.btn-piece-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-piece-text {
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ==========================================================================
   3. LOJA FÍSICA (FLUXO CONTÍNUO, SEM CARDS)
   ========================================================================== */
.section-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 1.25rem;
}

/* Rótulo "Loja física" (Texto puro, sem caixa) */
.section-tag {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rose-main);
}

/* Status ao Vivo */
.live-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Ponto de status estático com brilho sutil (sem pulsar) */
.status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
  flex-shrink: 0;
}

.status-open .status-pulse-dot {
  background-color: #2eb47e;
  box-shadow: 0 0 10px #2eb47e;
}

.status-closed .status-pulse-dot {
  background-color: var(--rose-main);
  box-shadow: 0 0 10px var(--rose-main);
}

.status-message {
  color: var(--silver-white);
}

/* Endereço Oficial */
.store-address {
  font-style: normal;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--silver-white);
  line-height: 1.6;
  max-width: 480px;
}

/* Telefone com Link */
.store-phone-wrap {
  margin-top: -0.25rem;
}

.store-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-light);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.store-phone-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--rose-glow);
}

/* Grade de Horários (Sem caixas ou blocos com fundo) */
.store-schedule {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--silver-muted);
  padding: 0.25rem 0.2rem;
  transition: color 0.25s ease;
}

/* Destaque do Dia Atual: Apenas Cor e Peso de Texto (Sem caixa) */
.schedule-row.is-today {
  color: var(--rose-light);
  font-weight: 600;
  text-shadow: 0 0 12px var(--rose-glow);
}

.schedule-row.is-today .schedule-day {
  color: var(--rose-light);
}

/* Apoio da Loja */
.store-about {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: var(--silver-white);
  line-height: 1.4;
  margin: 0.25rem 0;
}

/* Mapa ao Vivo Oficial */
.map-container {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(46, 180, 126, 0.4);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(46, 180, 126, 0.15);
  background-color: #0d3826;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Botão Traçar Rota */
.btn-route {
  background: rgba(15, 66, 45, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--silver-white);
  border: 1px solid rgba(46, 180, 126, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-route:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-bright);
  background: rgba(22, 90, 62, 0.75);
  box-shadow: 
    0 6px 24px var(--emerald-glow),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   4. AVALIAR NO GOOGLE (AÇÃO ÚNICA)
   ========================================================================== */
.section-review {
  width: 100%;
}

.btn-google-review {
  background: rgba(14, 55, 38, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--silver-white);
  border: 1px solid rgba(226, 178, 184, 0.32);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-google-review:hover {
  transform: translateY(-2px);
  border-color: var(--rose-main);
  background: rgba(19, 72, 50, 0.75);
  box-shadow: 
    0 6px 22px var(--rose-glow),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   5. RODAPÉ
   ========================================================================== */
.section-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-top: 1rem;
  gap: 0.45rem;
}

.footer-medallion {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--rose-main), var(--emerald-bright));
  margin-bottom: 0.5rem;
  box-shadow: 0 0 16px var(--rose-glow);
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--silver-white);
}

.footer-phrase {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--rose-light);
}

.footer-location {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--silver-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--silver-subtle);
  margin-top: 0.25rem;
}

/* ==========================================================================
   RESPONSIVIDADE & GRID DE PEÇAS (REGRAS DE PRECISÃO)
   ========================================================================== */

/* Tablet (768px a 1024px): 3 colunas, cards 200px a 240px */
@media (min-width: 768px) {
  .page-container {
    max-width: 760px;
  }

  .pieces-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Desktop (acima de 1280px): 3 colunas, cards até 260px, centralizada */
@media (min-width: 1280px) {
  .page-container {
    max-width: 900px;
  }

  .section-pieces {
    max-width: 860px;
  }

  .pieces-grid {
    grid-template-columns: repeat(3, 260px);
    justify-content: center;
    gap: 24px;
  }
}

/* Mobile (361px a 480px): 2 colunas, cards 150px a 190px, margem 20px */
@media (max-width: 480px) {
  .page-container {
    padding: 1.85rem 20px 3.75rem;
    gap: 2.75rem;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-phrase {
    font-size: 1.4rem;
  }

  .btn-bio {
    min-height: 50px;
    font-size: 0.95rem;
    padding: 0.75rem 1.15rem;
  }

  .pieces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .piece-info {
    padding: 0.65rem 0.5rem 0.75rem;
  }

  .piece-type {
    font-size: 1.05rem;
  }

  .btn-piece-wa {
    min-height: 40px;
    font-size: 0.76rem;
    padding: 0.45rem 0.4rem;
  }

  .map-container {
    height: 230px;
  }
}

/* Mobile Compacto Especial (320px a 360px): nunca menos de 140px */
@media (max-width: 350px) {
  .page-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pieces-grid {
    gap: 10px;
  }

  .btn-piece-wa {
    font-size: 0.72rem;
    padding: 0.4rem 0.3rem;
  }
}

/* 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;
  }

  .shiny-sweep::after {
    display: none;
  }

  .medallion-shine {
    display: none;
  }
}
