/* ============================================================
   La Station — Estilos globais (custom)
   O Tailwind (via CDN) cobre as classes utilitárias.
   Este arquivo concentra tokens, componentes e animações próprios.
   Sumário:
     1. Design tokens (CSS variables)
     2. Base
     3. Componentes  (eyebrow, skip-link)
     4. Marquee de clientes
     5. Galeria (carrossel infinito)
     6. Lightbox
     7. Movimento reduzido (acessibilidade)
   ============================================================ */

/* 1. Design tokens ----------------------------------------- */
:root {
  --brand-brown: #7d4631;
  /* marrom principal (botões, títulos) */
  --brand-tan: #b59c7f;
  /* dourado/tan (destaques)           */
  --brand-brown-2: #7d5039;
  /* marrom do eyebrow                 */
  --brand-cream: #efe9e2;
  /* creme (texto sobre marrom)        */
  --brand-card: #f8f6ef;
  /* fundo dos cards                   */
  --brand-label: #e3dacf;
  /* labels                            */
  --ink: #6c6c6c;
  /* corpo de texto                    */
  --page-bg: #fdfcfa;
  /* fundo da página                   */
  --hero-cream: #f5efe6;
  /* fundo do hero                     */
}

/* 2. Base -------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
}

/* 3. Componentes ------------------------------------------- */

/* Eyebrow: rótulo em maiúsculas com traço antes (e depois, no .center) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  font-size: .9rem;
  color: var(--brand-brown-2);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.eyebrow.center::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

/* Skip link (pular para o conteúdo) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--brand-brown);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 .5rem 0;
}

.skip-link:focus {
  left: 0;
}

/* 4. Marquee de clientes ----------------------------------- */
.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  animation: marca-scroll 28s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img:hover {
  opacity: 1;
}

@keyframes marca-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 5. Galeria (carrossel infinito) -------------------------- */
/* Duas linhas em loop contínuo, velocidades/direções alternadas.
   A margem por item (em vez de gap) garante loop sem emenda. */
.gal-row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.gal-row>.gal-item {
  margin-right: .75rem;
}

@media (min-width: 768px) {
  .gal-row>.gal-item {
    margin-right: 1rem;
  }
}

.gal-row-1 {
  animation: gal-left 48s linear infinite;
}

.gal-row-2 {
  animation: gal-right 66s linear infinite;
}

.gal-marquee:hover .gal-row {
  animation-play-state: paused;
}

@keyframes gal-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes gal-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.gal-item {
  cursor: zoom-in;
}

.gal-item img {
  transition: transform .4s ease;
}

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

/* 6. Lightbox ---------------------------------------------- */
#lightbox img {
  animation: lb-in .25s ease;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 7. Movimento reduzido (acessibilidade) ------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .marquee-track,
  .gal-row {
    animation: none;
    transform: translateX(0);
  }
}