/* ==========================================================================
   EMPÓRIO DO QUEIJO — Link-in-Bio Premium Oficial
   Ji-Paraná / RO
   Padrão Visual Autoral • Zero Cara de IA • Zero Caixas Cinzas
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Paleta de Cores Extraída da Marca (Amarelo e Marrom)
   -------------------------------------------------------------------------- */
:root {
  /* Tons nobres de Marrom (madeira de maturação, adega, casca) */
  --color-brown-base: #140d07;       /* Fundo primário profundo */
  --color-brown-dark: #1b120a;       /* Superfície quente contínua */
  --color-brown-surface: #25190f;    /* Camada sutil de apoio */
  --color-brown-border: #443020;     /* Linhas e separadores finos */
  --color-brown-warm: #a88f71;       /* Tom exato extraído da logo */
  --color-brown-muted: #857056;      /* Texto de apoio refinado */

  /* Tons vivos de Amarelo (queijo curado, ouro, calor e luz) */
  --color-cheese-gold: #ffcc2b;      /* Amarelo queijo oficial da logo */
  --color-cheese-amber: #e0a310;     /* Amarelo escuro / âmbar de contraste */
  --color-cheese-glow: rgba(255, 204, 43, 0.35); /* Brilho de botão e foco */
  --color-cheese-soft: rgba(255, 204, 43, 0.12); /* Fundo sutil de destaque */

  /* Tons de Leite & Creme (contraste AA para leitura perfeita) */
  --color-cream-light: #fffdec;      /* Branco amanteigado para títulos */
  --color-cream-text: #ebdcc8;       /* Texto de leitura confortável */

  /* Tipografia */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espaçamentos e Geometria */
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-badge: 12px;
  --max-width: 480px;

  /* Safe Area Mobile */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* --------------------------------------------------------------------------
   2. Reset & Estrutura Base (Contínua • Sem Corte • Sem Overflow)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-brown-base);
  color: var(--color-cream-text);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: 
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 204, 43, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 50% 65%, rgba(68, 48, 32, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-brown-base) 0%, var(--color-brown-dark) 45%, var(--color-brown-base) 100%);
  background-attachment: scroll;
  padding: calc(var(--sat) + 20px) calc(var(--sar) + 16px) calc(var(--sab) + 32px) calc(var(--sal) + 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Textura artesanal de queijo e maturação desenhada como tratamento de superfície */
.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(var(--color-cheese-gold) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Container Soberano Mobile */
.page-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   3. Topo de Prova Social (Instagram Real • 174 posts · 5.346 seg)
   -------------------------------------------------------------------------- */
.proof-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(37, 25, 15, 0.85);
  border: 1px solid var(--color-brown-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-cream-text);
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 48px;
}

.proof-top:hover, .proof-top:focus-visible {
  border-color: var(--color-cheese-gold);
  transform: translateY(-1px);
}

.proof-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cheese-gold);
  flex-shrink: 0;
}

.proof-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.proof-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brown-warm);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-text strong {
  color: var(--color-cheese-gold);
  font-weight: 700;
}

.proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-brown-border);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   4. Bloco de Marca & Posicionamento
   -------------------------------------------------------------------------- */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0 8px;
}

.brand-logo-frame {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-cheese-gold) 0%, var(--color-brown-border) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 204, 43, 0.2);
}

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

.brand-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-cream-light);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.brand-tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-brown-warm);
  max-width: 380px;
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cheese-gold);
  background: var(--color-cheese-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 204, 43, 0.25);
}

.brand-location svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   5. Ação Principal Dominante (WhatsApp • Shiny Sweep Glow)
   -------------------------------------------------------------------------- */
.main-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-primary-whatsapp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--color-cheese-gold) 0%, var(--color-cheese-amber) 100%);
  color: #140d07;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px var(--color-cheese-glow);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-whatsapp:hover, .btn-primary-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 204, 43, 0.5);
}

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

.btn-primary-whatsapp svg {
  width: 22px;
  height: 22px;
  stroke: #140d07;
  flex-shrink: 0;
}

/* Efeito Shiny Sweep Glow nos botões (Brilho que percorre a superfície) */
.shiny-sweep::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  animation: shinySweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0% { left: -120%; }
  30%, 100% { left: 160%; }
}

.action-benefit {
  font-size: 14px;
  text-align: center;
  color: var(--color-brown-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   6. Ações Secundárias (Links de Alta Conversão)
   -------------------------------------------------------------------------- */
.secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(37, 25, 15, 0.95) 0%, rgba(27, 18, 10, 0.95) 100%);
  border: 1px solid var(--color-brown-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-cream-text);
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.action-card:hover, .action-card:focus-visible {
  border-color: rgba(255, 204, 43, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(46, 31, 18, 0.95) 0%, rgba(32, 22, 12, 0.95) 100%);
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 204, 43, 0.08);
  border: 1px solid rgba(255, 204, 43, 0.2);
  color: var(--color-cheese-gold);
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-cream-light);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 14px;
  color: var(--color-brown-warm);
  line-height: 1.35;
  margin-top: 2px;
}

.card-arrow {
  color: var(--color-brown-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

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

/* --------------------------------------------------------------------------
   7. Contexto da Loja Física (Endereço • Horário • Mapa)
   -------------------------------------------------------------------------- */
.store-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(37, 25, 15, 0.8) 0%, rgba(20, 13, 7, 0.9) 100%);
  border: 1px solid var(--color-brown-border);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

/* Detalhe de acabamento sutil inspirado na curvatura e textura de corte do queijo */
.store-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 204, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.section-icon {
  color: var(--color-cheese-gold);
  display: flex;
  align-items: center;
}

.section-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-cream-light);
}

.store-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.info-bullet {
  color: var(--color-cheese-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-bullet svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-cheese-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-val {
  font-size: 15px;
  color: var(--color-cream-text);
  line-height: 1.4;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--color-cream-text);
  border-bottom: 1px dashed rgba(68, 48, 32, 0.4);
  padding-bottom: 4px;
}

.hours-row.closed {
  color: var(--color-brown-warm);
}

/* Botão de Como Chegar secundário */
.btn-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--color-cheese-soft);
  border: 1px solid rgba(255, 204, 43, 0.4);
  border-radius: var(--radius-pill);
  color: var(--color-cheese-gold);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-directions:hover, .btn-directions:focus-visible {
  background: rgba(255, 204, 43, 0.2);
  border-color: var(--color-cheese-gold);
  transform: translateY(-1px);
}

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

/* Mapa Embutido Oficial (1 Único • Lazy) */
.map-frame-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-brown-border);
  background: #19110b;
}

.store-map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   8. Rodapé Mínimo
   -------------------------------------------------------------------------- */
.footer-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(68, 48, 32, 0.5);
}

.footer-copy {
  font-size: 14px;
  color: var(--color-brown-muted);
}

.footer-link {
  font-size: 14px;
  color: var(--color-brown-warm);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover, .footer-link:focus-visible {
  color: var(--color-cheese-gold);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Acessibilidade & Reduced Motion
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-cheese-gold);
  outline-offset: 3px;
}

@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;
  }
}

/* --------------------------------------------------------------------------
   10. Telas Pequenas (320px • Mobile First) & Paisagem
   -------------------------------------------------------------------------- */
@media (max-width: 350px) {
  .brand-title {
    font-size: 22px;
  }
  .btn-primary-whatsapp {
    font-size: 16px;
    padding: 14px 16px;
  }
  .action-card {
    padding: 12px 14px;
  }
  .card-title {
    font-size: 15px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  body {
    padding-top: 12px;
    padding-bottom: 20px;
  }
  .brand-logo-frame {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }
  .brand-title {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .main-action-wrap {
    margin-top: 2px;
  }
}
