/* ==========================================================================
   VESTE FÉ — DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Paleta: Preto e Branco Premium (Zero Cinza Neutro, Zero Azul)
   ========================================================================== */

/* 1. TOKENS GLOBAIS */
:root {
  --color-black: #000000;
  --color-black-pure: #000000;
  --color-black-elevated: #080808;
  --color-white: #ffffff;
  --color-white-pure: #ffffff;
  --color-white-sub: rgba(255, 255, 255, 0.75);
  --color-black-sub: rgba(0, 0, 0, 0.75);
  
  --border-light: rgba(255, 255, 255, 0.14);
  --border-light-hover: rgba(255, 255, 255, 0.35);
  --border-dark: rgba(0, 0, 0, 0.12);
  --border-dark-hover: rgba(0, 0, 0, 0.3);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --header-height: 56px;
  --container-max-width: 1200px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET E BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-black);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--color-black);
  color: var(--color-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
  width: 100%;
}

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

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

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

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

/* 4. HEADER MINIMALISTA (Até 56px de altura, mobile-first) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: contain;
}

.header-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

.header-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 9999px;
  height: 36px;
  min-width: 44px;
  transition: transform 0.2s var(--transition-smooth), opacity 0.2s ease;
  white-space: nowrap;
}

.header-quick-action:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

/* 5. SEÇÕES E ALTERNÂNCIA PRETO E BRANCO */
.section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  overflow: visible;
}

.section-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section-white {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* Transições suaves entre seções (sem corte seco, sem divisória de linha) */
.section-transition {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 10;
}

.transition-to-white {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 60%, #ffffff 100%);
}

.transition-to-black {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 60%, #000000 100%);
}

/* 6. HERO SECTION */
.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
}

.ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: 480px;
  height: 480px;
  max-width: 90vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrapper {
  margin-bottom: 24px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  /* Logo integrado diretamente na página, sem caixa, sem círculo, sem selo */
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.15));
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 10px;
}

.hero-segment {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-white-sub);
  margin-bottom: 26px;
}

.hero-bio-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 680px;
}

.bio-pill {
  display: inline-block;
  background: var(--color-black-elevated);
  color: var(--color-white);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.hero-description {
  max-width: 580px;
  font-size: 1rem;
  color: var(--color-white-sub);
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

.cta-microcopy {
  font-size: 0.8rem;
  color: var(--color-white-sub);
  letter-spacing: 0.02em;
}

/* 7. BOTÃO PRINCIPAL WHATSAPP COM SHINY SWEEP GLOW (Idêntico no topo, meio e final) */
.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-white);
  color: var(--color-black) !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 38px;
  border-radius: 9999px;
  text-decoration: none;
  min-height: 52px;
  min-width: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
  white-space: nowrap;
  touch-action: manipulation;
  z-index: 1;
}

.btn-whatsapp .btn-icon {
  stroke: var(--color-black);
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.45), 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

/* Shiny Sweep Glow Branco em Loop Suave */
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shinySweepLoop 3.6s var(--transition-smooth) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shinySweepLoop {
  0% {
    left: -80%;
  }
  38% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* 8. SEÇÃO ESTEIRA DE PEÇAS (PORTFÓLIO) */
.conveyor-section {
  padding-top: 90px;
  padding-bottom: 100px;
  overflow: hidden;
}

.section-header-white {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.text-black {
  color: var(--color-black);
}

.text-white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.text-black-sub {
  color: var(--color-black-sub);
}

.text-white-sub {
  color: var(--color-white-sub);
}

.conveyor-viewport {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

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

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

.conveyor-card {
  flex: 0 0 280px;
  width: 280px;
  background-color: var(--color-white);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.conveyor-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-dark-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f5f5f5;
}

.piece-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
}

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

.card-caption {
  padding: 16px 18px;
  background-color: var(--color-white);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-black-sub);
  letter-spacing: 0.02em;
}

.conveyor-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-black-sub);
  letter-spacing: 0.03em;
}

/* 9. SEÇÃO LINKS OFICIAIS */
.links-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.middle-cta-box {
  display: flex;
  justify-content: center;
  margin: 36px 0 50px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--color-black-elevated);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
  min-height: 80px;
  text-decoration: none;
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light-hover);
  background-color: #111111;
}

.card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-black);
  border: 1px solid var(--border-light);
  color: var(--color-white);
  flex-shrink: 0;
  transition: transform 0.3s var(--transition-smooth);
}

.link-card:hover .card-icon-box {
  transform: scale(1.08);
  border-color: var(--color-white);
}

.card-info {
  flex: 1;
}

.card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white-sub);
  margin-bottom: 2px;
}

.card-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--color-white-sub);
}

.card-arrow {
  color: var(--color-white-sub);
  transition: transform 0.3s var(--transition-smooth), color 0.3s ease;
  flex-shrink: 0;
}

.link-card:hover .card-arrow {
  transform: translate(3px, -3px);
  color: var(--color-white);
}

/* 10. SEÇÃO LOJA FÍSICA */
.store-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.store-card {
  max-width: 680px;
  margin: 40px auto 0;
  background-color: var(--color-white);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.store-badge {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.store-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 16px;
}

.store-address-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--color-black);
}

.store-icon {
  flex-shrink: 0;
}

.store-address {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: normal;
}

.store-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-black-sub);
}

.feature-bullet {
  font-weight: 900;
  color: var(--color-black);
}

/* 11. SEÇÃO FINAL & RODAPÉ */
.final-section {
  padding-top: 90px;
  padding-bottom: 60px;
}

.final-content {
  max-width: 600px;
  margin: 0 auto 60px;
}

.final-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.site-footer {
  width: 100%;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin-bottom: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-white-sub);
}

.footer-brand {
  font-weight: 800;
  color: var(--color-white);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.footer-copyright {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* 12. ESTADOS INICIAIS GSAP (Prevenção de Flash de Conteúdo Não Estilizado - FOUC) */
.gsap-fade {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

/* 13. RESPONSIVIDADE RIGOROSA (320px a 1920px) */
@media (max-width: 768px) {
  :root {
    --header-height: 54px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 70px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-segment {
    font-size: 1rem;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .bio-pill {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  /* No celular, botão grande e texto que não quebra */
  .btn-whatsapp {
    width: 100%;
    max-width: 360px;
    font-size: 0.95rem;
    padding: 16px 20px;
    letter-spacing: 0.02em;
    min-height: 52px;
    white-space: nowrap;
  }

  .conveyor-card {
    flex: 0 0 230px;
    width: 230px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    padding: 16px 18px;
    min-height: 72px;
  }

  .store-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .store-address {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .btn-whatsapp {
    font-size: 0.88rem;
    padding: 15px 14px;
    gap: 8px;
  }
  
  .header-brand-name {
    font-size: 0.85rem;
  }

  .conveyor-card {
    flex: 0 0 200px;
    width: 200px;
  }
}

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

  .btn-whatsapp::before {
    display: none !important;
  }

  .conveyor-viewport {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    cursor: default !important;
  }

  .conveyor-card {
    scroll-snap-align: start;
  }
}
