/* ==========================================================================
   G GRIFES — Petrolina, PE
   Design Autoral Premium: Preto, Branco & Dourado Ouro Brilhante
   Tipografia: Inter (Auto-hospedada woff2)
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

:root {
  --bg-black: #000000;
  --bg-black-soft: #080808;
  --bg-white: #ffffff;
  --bg-white-soft: #f8f8fa;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-deep: #a88420;
  --gold-gradient: linear-gradient(135deg, #f5dd8c 0%, #d4af37 50%, #9e7916 100%);
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-glow: rgba(212, 175, 55, 0.28);
  
  --text-white: #ffffff;
  --text-white-muted: rgba(255, 255, 255, 0.72);
  --text-dark: #050505;
  --text-dark-muted: rgba(5, 5, 5, 0.68);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: initial; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Botões com Shiny Sweep Glow */
.btn-gold {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 190, 0.7);
  box-shadow: 0 6px 24px var(--gold-glow);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(212, 175, 55, 0.45);
}

.btn-gold:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(25deg);
  animation: shinySweep 3.6s infinite;
  pointer-events: none;
}

.btn-dark {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.4);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-dark:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #f3e5ab;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.25);
}

.btn-dark:active {
  transform: translateY(0) scale(0.98);
}

.btn-dark::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  transform: rotate(25deg);
  animation: shinySweep 4s infinite 1s;
  pointer-events: none;
}

@keyframes shinySweep {
  0% { left: -60%; }
  35%, 100% { left: 140%; }
}

/* Ícones SVG */
.icon-whatsapp {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   1. HERO SECTION (Preto Premium)
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--bg-black);
  padding: 70px 20px 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Aura & Parallax Layers */
.hero-ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo: Proporção original, sem moldura quadrada, sem fundo quadrado */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-logo {
  width: 260px;
  height: auto;
  max-width: 85vw;
  object-fit: contain;
  /* Sem filtro de cor CSS para preservar as cores originais da logo */
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
}

.hero-badge-city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-badge-city .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.hero-tagline {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-tagline span {
  color: var(--gold-primary);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-white-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.hero-cta .btn-gold {
  width: 100%;
  max-width: 320px;
}

/* Degradê suave da hero para a próxima seção */
.hero-transition-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent 0%, #000000 100%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   2. ESTEIRA DE PRODUTOS (Horizontal Infinita GSAP)
   ========================================================================== */
.conveyor-section {
  position: relative;
  background: var(--bg-black);
  padding: 40px 0 70px;
  overflow: hidden;
  width: 100%;
}

.conveyor-header {
  text-align: center;
  padding: 0 20px 32px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.conveyor-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.conveyor-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding: 10px 0;
}

.conveyor-viewport:active {
  cursor: grabbing;
}

.conveyor-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.conveyor-item {
  position: relative;
  flex: 0 0 260px;
  width: 260px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  background: #080808;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.conveyor-item:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.2);
}

.conveyor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.conveyor-item:hover img {
  transform: scale(1.06);
}

/* Overlay com Botão ao passar o mouse ou tocar */
.conveyor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.conveyor-item:hover .conveyor-overlay,
.conveyor-item:focus-within .conveyor-overlay,
.conveyor-item.is-active .conveyor-overlay {
  opacity: 1;
  visibility: visible;
}

.conveyor-overlay .btn-gold {
  padding: 12px 20px;
  font-size: 0.85rem;
  width: 100%;
  min-height: 44px;
}

/* Transição contínua entre Preto e Branco */
.section-blend-dark-to-light {
  height: 80px;
  background: linear-gradient(180deg, var(--bg-black) 0%, #151515 25%, #444444 60%, var(--bg-white) 100%);
}

/* ==========================================================================
   3. CATEGORIAS (Seção Branco Premium)
   ========================================================================== */
.categories-section {
  position: relative;
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 80px 20px;
}

.categories-section .section-label {
  color: var(--gold-deep);
}

.categories-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.categories-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.categories-subtitle {
  font-size: 1rem;
  color: var(--text-dark-muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(212, 175, 55, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 48px rgba(212, 175, 55, 0.22);
}

.category-top {
  margin-bottom: 30px;
}

.category-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #000000;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.category-icon-box svg {
  width: 26px;
  height: 26px;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.category-desc {
  font-size: 0.94rem;
  color: var(--text-dark-muted);
  line-height: 1.45;
}

.category-card .btn-dark {
  width: 100%;
}

/* Transição contínua entre Branco e Preto */
.section-blend-light-to-dark {
  height: 90px;
  background: linear-gradient(180deg, var(--bg-white) 0%, #d8d8d8 25%, #222222 70%, var(--bg-black) 100%);
}

/* ==========================================================================
   4. LOJA E LOCALIZAÇÃO (Preto Premium)
   ========================================================================== */
.location-section {
  position: relative;
  background: var(--bg-black);
  color: var(--text-white);
  padding: 80px 20px 90px;
  overflow: hidden;
}

.location-ambient-glow {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.location-card {
  max-width: 820px;
  margin: 0 auto;
  background: #000000;
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 2;
}

.location-header {
  margin-bottom: 32px;
}

.location-title {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 10px;
}

.location-info-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.location-pill svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
}

.location-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.location-actions .btn-gold,
.location-actions .btn-dark {
  min-width: 240px;
}

/* ==========================================================================
   5. RODAPÉ (Preto Premium & Dourado)
   ========================================================================== */
.footer-section {
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-white-muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-link {
  color: var(--text-white-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================================
   6. RESPONSIVIDADE (320px a 1920px)
   ========================================================================== */

/* Telas Médias / Tablets */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
  }
}

/* Telas Pequenas / Mobile (<= 600px) */
@media (max-width: 600px) {
  .hero-section {
    padding: 48px 16px 60px;
    min-height: auto;
  }

  .hero-logo {
    width: 210px;
  }

  .hero-tagline {
    font-size: 1.35rem;
  }

  .hero-cta .btn-gold {
    max-width: 100%;
  }

  .conveyor-section {
    padding: 30px 0 50px;
  }

  .conveyor-item {
    flex: 0 0 200px;
    width: 200px;
    height: 270px;
  }

  /* No mobile, overlay é visível com opacidade suave ou ativa ao toque */
  .conveyor-overlay {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    padding: 12px;
  }

  .conveyor-overlay .btn-gold {
    padding: 10px 14px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .categories-section {
    padding: 60px 16px;
  }

  .category-card {
    padding: 28px 20px;
  }

  .location-section {
    padding: 60px 16px;
  }

  .location-card {
    padding: 32px 18px;
    border-radius: 18px;
  }

  .location-info-group {
    flex-direction: column;
    gap: 12px;
  }

  .location-pill {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .location-actions {
    flex-direction: column;
    width: 100%;
  }

  .location-actions .btn-gold,
  .location-actions .btn-dark {
    width: 100%;
    min-width: auto;
  }
}

/* ==========================================================================
   7. ACESSIBILIDADE E REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn-gold::after,
  .btn-dark::after {
    animation: none !important;
    display: none !important;
  }
  
  .conveyor-track {
    animation: none !important;
    transform: none !important;
  }
}
