/* ==========================================================================
   ENOIXKITA — ESTILO CANÔNICO LINK NA BIO ATACADO
   Faixa de conformidade: CSS <= 23 KB · Zero CDN · Zero Google Fonts
   ========================================================================== */

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

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

/* 2. Variáveis de Design Tokens da Marca */
:root {
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Superfícies — Preto premium no topo/fundo e Branco premium no meio */
  --bg-dark: #08090c;
  --bg-light: #f5f6f8;
  
  /* Textos */
  --text-light-primary: #ffffff;
  --text-light-secondary: rgba(255, 255, 255, 0.72);
  --text-dark-primary: #0a0b0e;
  --text-dark-secondary: #4a4d54;
  
  /* Acento Vermelho Ketchup — Acento estrito */
  --accent-red: #d81e28;
  --accent-red-hover: #b8141d;
  --accent-red-glow: rgba(216, 30, 40, 0.28);
  
  /* Bordas e Divisores orgânicos (sem cinza de sistema) */
  --border-light: rgba(255, 255, 255, 0.14);
  --border-dark: rgba(10, 11, 14, 0.12);
  
  /* Transições e Espaçamentos */
  --transition-standard: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-btn: 12px;
  --radius-card: 16px;
}

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

html {
  font-family: var(--font-base);
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-light-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

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

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

/* Marca d'água monumental cortada na borda (Assinatura visual) */
.watermark-bg {
  position: fixed;
  top: 18%;
  right: -5vw;
  font-size: clamp(4.5rem, 16vw, 16rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* 4. Navbar Minimalista Mobile e Desktop */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 9, 12, 0.94);
  border-bottom: 1px solid var(--border-light);
  padding: env(safe-area-inset-top, 0) 0 0 0;
}

.nav-container {
  width: min(92%, 1440px);
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-action {
  height: 38px;
  min-width: 100px;
  padding: 0 16px;
  background: var(--accent-red);
  color: var(--text-light-primary);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 5. Shiny Sweep Contido (Obrigatório: Contido em todos os frames) */
.btn-sweep {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition-standard), background-color var(--transition-standard);
  will-change: transform;
}

.btn-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.45) 52%,
    transparent 80%
  );
  transform: translateX(-150%);
  animation: sweepCycle 4.8s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes sweepCycle {
  0%, 65% {
    transform: translateX(-150%);
  }
  85%, 100% {
    transform: translateX(150%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn-sweep:hover {
    transform: scale(1.018);
    background-color: var(--accent-red-hover);
  }
  .btn-sweep:hover::after {
    animation-duration: 1.8s;
  }
}

.btn-sweep:active {
  transform: scale(0.985);
}

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

/* 6. Botões Gerais */
.btn-primary {
  min-height: 48px;
  padding: 12px 24px;
  background: var(--accent-red);
  color: var(--text-light-primary);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.btn-secondary {
  min-height: 48px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition-standard), transform var(--transition-standard);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.015);
  }
}

/* 7. Tags e Rótulos de Bloco */
.block-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.block-num {
  font-weight: 600;
  color: var(--accent-red);
}

.block-label {
  font-weight: 600;
  color: var(--text-light-secondary);
}

.tag-light .block-label {
  color: var(--text-dark-secondary);
}

/* 8. BLOCO 01 — Hero Cartaz (Ocupação: 90% útil em 1440) */
.block-hero {
  width: min(90%, 1440px);
  margin: 32px auto 0 auto;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-heading {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-light-primary);
  margin-bottom: 18px;
  max-width: 24ch;
}

.hero-heading .text-accent {
  color: var(--accent-red);
}

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
  color: var(--text-light-secondary);
  margin-bottom: 24px;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.proof-phrase {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light-secondary);
  letter-spacing: -0.01em;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-media-wrapper {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* 9. Zonas de Transição (Contínuas de 120px — 2 passagens) */
.transition-zone-1 {
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, #08090c 0%, #f5f6f8 100%);
  margin-top: 48px;
}

.transition-zone-2 {
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, #f5f6f8 0%, #08090c 100%);
  margin-bottom: 48px;
}

/* 10. BLOCO 02 — Esteira de Produtos (Ocupação: 92% útil) */
.block-esteira {
  background-color: var(--bg-light);
  padding: 24px 0 48px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.esteira-header {
  width: min(92%, 1440px);
  margin: 0 auto 28px auto;
}

.section-heading {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.heading-dark {
  color: var(--text-dark-primary);
}

.esteira-lead {
  font-size: 1rem;
  line-height: 1.45;
  max-width: 54ch;
}

.text-dark {
  color: var(--text-dark-secondary);
}

.esteira-container {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding: 8px 0;
}

.esteira-container:active {
  cursor: grabbing;
}

.esteira-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: esteiraSlide 32s linear infinite;
}

.esteira-track:hover,
.esteira-track:focus-within {
  animation-play-state: paused;
}

@keyframes esteiraSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.esteira-half {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

.product-card {
  width: 280px;
  flex-shrink: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-dark);
  box-shadow: 0 8px 24px rgba(10, 11, 14, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(10, 11, 14, 0.12);
  }
}

.card-media {
  width: 100%;
  overflow: hidden;
  background-color: #eaecef;
}

.card-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  aspect-ratio: 9 / 16;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .card-media img {
    transform: scale(1.03);
  }
}

.card-meta {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark-primary);
  letter-spacing: -0.015em;
}

.card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-red);
}

/* 11. BLOCO 03 — Como Funciona o Atacado (Ocupação: 40% deslocada) */
.block-atacado {
  background-color: var(--bg-light);
  padding: 32px 0 48px 0;
  width: 100%;
}

.atacado-inner {
  width: min(40%, 1440px);
  margin: 0 auto 0 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.atacado-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 50ch;
}

.atacado-action {
  margin-top: 8px;
}

/* 12. BLOCO 04 — Local e Expedição (Ocupação: 35% deslocada) */
.block-local {
  width: min(35%, 1440px);
  margin: 0 8% 48px auto;
  position: relative;
  z-index: 1;
}

.local-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.local-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-light-secondary);
}

.local-address strong {
  color: var(--text-light-primary);
  font-weight: 600;
}

.local-hours {
  color: var(--text-light-secondary);
}

.local-shipping {
  color: var(--accent-red);
  font-weight: 600;
}

.local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* 13. BLOCO 05 — Rodapé (Ocupação: 88% útil) */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0)) 0;
  background-color: var(--bg-dark);
}

.footer-inner {
  width: min(88%, 1440px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light-primary);
}

.footer-summary {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light-primary);
  transition: background-color var(--transition-standard);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

/* ==========================================================================
   14. BREAKPOINTS EXPLÍCITOS — 320, 360, 375, 390, 414, 430, 480, 600, 768, 1024, 1280, 1440, 1920
   Sem zona cega entre 375 e 767.
   ========================================================================== */

@media (max-width: 1024px) {
  .atacado-inner {
    width: min(65%, 1440px);
    margin-left: 5%;
  }
  .block-local {
    width: min(60%, 1440px);
    margin-right: 5%;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-media-wrapper {
    max-width: 420px;
    max-height: 70vh;
  }
  .atacado-inner {
    width: min(90%, 1440px);
    margin-left: auto;
    margin-right: auto;
  }
  .block-local {
    width: min(90%, 1440px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 2.125rem;
  }
  .local-actions {
    flex-direction: column;
    width: 100%;
  }
  .local-actions a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-card {
    width: 240px;
  }
  .card-media img {
    height: 330px;
  }
}

@media (max-width: 430px) {
  .nav-container {
    height: 52px;
  }
  .hero-media-wrapper {
    max-height: 65vh;
  }
}

@media (max-width: 414px) {
  .hero-heading {
    font-size: 1.875rem;
  }
}

@media (max-width: 390px) {
  .hero-inner {
    gap: 24px;
  }
  .hero-actions .btn-primary {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .brand-name {
    font-size: 1rem;
  }
  .hero-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 360px) {
  .nav-action {
    padding: 0 12px;
    font-size: 0.8125rem;
  }
  .product-card {
    width: 220px;
  }
}

@media (max-width: 320px) {
  .nav-container {
    height: 48px;
    gap: 8px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 0.9375rem;
  }
  .nav-action {
    height: 34px;
    padding: 0 10px;
    min-width: 80px;
    font-size: 0.75rem;
  }
  .hero-heading {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.875rem;
    padding: 10px 16px;
    min-height: 44px;
  }
}

/* 15. Prefers Reduced Motion (Desliga animações e mantém tudo visível e funcional) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn-sweep::after {
    display: none !important;
  }
  .esteira-track {
    animation: none !important;
    transform: none !important;
  }
  .esteira-container {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }
  .product-card {
    scroll-snap-align: start;
  }
}