/* ==========================================================================
   DOJO LONAS — site.css
   Estilos autorais do site. O arquivo css/tailwind.css traz apenas as
   classes utilitárias (layout, espaçamento, grid). Tudo o que é identidade
   visual — cores, tipografia, botões, marquee, slider, formulário — está aqui.

   Índice
   01. Tokens (cores, medidas)
   02. Fonte
   03. Base
   04. Layout (wrap, bordas)
   05. Tipografia (eyebrow, títulos, textos)
   06. Botões e links
   07. Header e menu mobile
   08. Hero
   09. Marquee de logos
   10. Listas editoriais (autoridade, especificações)
   11. Fotos e galerias
   12. BJJ Stars
   13. Tecnologia
   14. Depoimentos (slider)
   15. Formulário
   16. WhatsApp flutuante
   17. Animações (reveal) e movimento reduzido
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --ink: #0b0b0c;            /* preto da marca */
  --wine: #8c1c24;           /* vinho — baseado no vermelho do logo */
  --wine-dark: #6e141b;      /* hover */
  --wine-light: #d0444d;     /* vinho legível sobre fundo preto */
  --mist: #f4f4f2;           /* cinza muito claro para faixas de respiro */
  --line: #e2e2df;           /* linhas finas sobre branco */
  --graphite: #55555a;       /* texto secundário */
  --line-dark: #2a2a2d;      /* linhas finas sobre preto */
  --mute-dark: #a5a5aa;      /* texto secundário sobre preto */

  --max: 1400px;
  --pad: 20px;
  --header-h: 64px;
  /* distância da borda da tela até o conteúdo (para elementos sangrados) */
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}
@media (min-width: 768px)  { :root { --pad: 40px; } }
@media (min-width: 1024px) { :root { --header-h: 80px; } }
@media (min-width: 1280px) { :root { --pad: 64px; } }

/* 02. Fonte (Archivo variável, hospedada localmente) ---------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
}

/* 03. Base ----------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
::selection { background: var(--wine); color: #fff; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* 04. Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.edge-l { padding-left: var(--edge); }
.edge-r { padding-right: var(--edge); }
.section { padding-block: 84px; }
@media (min-width: 1024px) { .section { padding-block: 152px; } }
.rule { border: 0; border-top: 1px solid var(--line); }
.on-dark { background: var(--ink); color: #fff; }
.on-dark .rule { border-color: var(--line-dark); }

/* 05. Tipografia ----------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--wine-light); }

.display {
  font-weight: 800;
  font-stretch: 88%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1;
  text-wrap: balance;
}
.display-2 { font-size: clamp(2rem, 1.15rem + 3.3vw, 4rem); }
.display-2c { font-size: clamp(2rem, 1.2rem + 2.55vw, 3.5rem); }   /* títulos dentro de colunas estreitas */
.display-3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
.accent { color: var(--wine); }
.on-dark .accent { color: var(--wine-light); }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--graphite); max-width: 34em; }
.on-dark .lead { color: var(--mute-dark); }
.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--graphite);
}
.on-dark .label { color: var(--mute-dark); }
.todo { color: #8a8a8f; font-style: italic; }           /* conteúdo a ser preenchido */
.on-dark .todo { color: #77777c; }

/* 06. Botões e links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { flex: none; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(5px); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--wine); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 0.75rem; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding-block: 6px; border-bottom: 1px solid currentColor;
  transition: color 0.25s ease;
}
.link:hover { color: var(--wine); }
.on-dark .link:hover { color: var(--wine-light); }
.link svg { transition: transform 0.3s ease; }
.link:hover svg { transform: translateX(4px); }

/* 07. Header e menu mobile ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled, .menu-open .site-header { border-bottom-color: var(--line); }
.site-header .bar { height: var(--header-h); }
.brand-name { font-size: 0.9375rem; font-weight: 800; font-stretch: 90%; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.nav-link {
  position: relative; padding-block: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--wine); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.menu-toggle {
  width: 48px; height: 48px; margin-right: -12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: #fff; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 8px var(--pad) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px; border-bottom: 1px solid var(--line);
  font-size: 1.625rem; font-weight: 800; font-stretch: 88%; text-transform: uppercase; letter-spacing: -0.01em;
}
.mobile-menu a.m-link:active { color: var(--wine); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* 08. Hero ----------------------------------------------------------------- */
.hero { display: grid; }
.hero-copy { container-type: inline-size; }
.hero-title { font-size: clamp(1.75rem, 8.2vw, 3rem); }              /* fallback */
@supports (font-size: 1cqw) {
  /* o título ocupa a largura da coluna sem nunca estourar */
  .hero-title { font-size: clamp(1.75rem, 10cqw, 5.5rem); }
}
.hero-title span { display: block; white-space: nowrap; }
.hero-media { position: relative; aspect-ratio: 5 / 4; background: var(--mist); overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) 41vw; min-height: min(calc(100svh - var(--header-h)), 900px); }
  .hero-media { aspect-ratio: auto; min-height: 640px; }
}

/* 09. Marquee de logos ------------------------------------------------------
   Um único conjunto de logos no HTML; o JS duplica o conjunto e a animação
   desloca exatamente 50% da faixa — o laço é contínuo, sem salto. */
.marquee {
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-ready { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee.is-ready .marquee-track { animation: marquee 44s linear infinite; }
.marquee-set { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee-item {
  flex: 0 0 calc(100vw / 2.6);                 /* mobile: 2–3 logos visíveis */
  height: 96px; display: flex; align-items: center; justify-content: center;
}
.marquee-item img { width: auto; height: auto; max-width: 62%; max-height: 64px; object-fit: contain; }
@media (min-width: 640px)  { .marquee-item { flex-basis: calc(100vw / 4.5); } }
@media (min-width: 1024px) {
  .marquee-item { flex-basis: calc(100vw / 7); height: 120px; }   /* desktop: 6–8 logos visíveis */
  .marquee-item img { max-height: 86px; max-width: 60%; }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* 10. Listas editoriais ---------------------------------------------------- */
.fact { display: grid; gap: 6px; padding-block: 26px; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact-figure {
  font-weight: 800; font-stretch: 86%; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
}
@media (min-width: 640px) {
  .fact { grid-template-columns: minmax(0, 1fr) 11.5rem; align-items: end; gap: 24px; padding-block: 30px; }
  .fact .label { padding-bottom: 0.6em; }
}

.specs { border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); }
.specs dd { font-size: 0.9375rem; text-align: right; }

.model-name {
  font-weight: 900; font-stretch: 80%; letter-spacing: -0.03em; line-height: 0.82;
  font-size: clamp(5.5rem, 3rem + 13vw, 13.5rem);
}
.model-name-sm { font-size: clamp(4rem, 2.5rem + 6vw, 7.5rem); }

/* 11. Fotos e galerias ------------------------------------------------------
   Toda foto fica dentro de .photo. Para trocar uma imagem, basta substituir
   o arquivo em assets/img/fotos/ mantendo o mesmo nome. */
.photo { position: relative; overflow: hidden; background: var(--mist); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.on-dark .photo { background: #161617; }
.photo[data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stories .s1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.stories .s2, .stories .s3 { aspect-ratio: 1 / 1; }
.stories .s4 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.stories .s5 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .stories { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .stories .s1 { grid-column: 1 / span 5; grid-row: 1; aspect-ratio: 4 / 5; }
  .stories .s2 { grid-column: 6 / span 7; grid-row: 1; aspect-ratio: 3 / 2; align-self: end; }
  .stories .s3 { grid-column: 1 / span 3; grid-row: 2; aspect-ratio: 1 / 1; }
  .stories .s4 { grid-column: 4 / span 5; grid-row: 2; aspect-ratio: 3 / 2; }
  .stories .s5 { grid-column: 9 / span 4; grid-row: 2; aspect-ratio: 4 / 5; }
}

/* 12. BJJ Stars ------------------------------------------------------------ */
.stars-word { container-type: inline-size; }
.stars-word p {
  font-weight: 900; font-stretch: 84%; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.8;
  font-size: 19vw; white-space: nowrap;
}
@supports (font-size: 1cqw) { .stars-word p { font-size: 20.4cqw; } }

/* 13. Tecnologia ----------------------------------------------------------- */
.diagram { border: 1px solid var(--line); }
.diagram svg { display: block; width: 100%; height: auto; }
.step { padding-block: 22px; border-top: 1px solid var(--ink); }
.step-num {
  font-weight: 800; font-stretch: 86%; line-height: 0.9; letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem); color: var(--wine);
}
.step-title { font-weight: 800; font-stretch: 90%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.08; font-size: 1.1875rem; }

/* 14. Depoimentos ---------------------------------------------------------- */
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.quote-mark {
  font-weight: 900; line-height: 0.7; color: var(--wine);
  font-size: clamp(5.5rem, 3rem + 9vw, 11rem); height: 0.42em; display: block;
}
.quote {
  font-weight: 600; font-stretch: 94%; letter-spacing: -0.012em; line-height: 1.16; text-wrap: balance;
  font-size: clamp(1.625rem, 1rem + 2.8vw, 3.625rem);
}
.slider-btn {
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.slider-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.slider-btn:disabled { opacity: 0.25; cursor: default; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 32px; height: 44px; position: relative; }
.slider-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--line); transition: background-color 0.3s ease; }
.slider-dots button[aria-current="true"]::after { background: var(--wine); }

/* 15. Formulário ----------------------------------------------------------- */
.field { display: block; }
.field > .label, .field legend.label { display: block; margin-bottom: 4px; color: var(--mute-dark); }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 10px 0;
  font: inherit; font-size: 1.0625rem; color: #fff;
  background: transparent; border: 0; border-bottom: 1px solid #47474b; border-radius: 0;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: #6d6d72; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: #fff; box-shadow: 0 1px 0 0 #fff; }
.field select {
  padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.field select option { color: #111; background: #fff; }
.field select:invalid { color: #6d6d72; }
.field.has-error input, .field.has-error select { border-bottom-color: var(--wine-light); }
.field .error { display: none; margin-top: 6px; font-size: 0.8125rem; color: #ee8088; }
.field.has-error .error { display: block; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 8px 12px; border: 1px solid #47474b;
  font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice input:hover + span { border-color: #8a8a8f; }
.choice input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.form-status { display: none; padding: 16px 18px; border: 1px solid #47474b; font-size: 0.9375rem; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: var(--wine-light); color: #ee8088; }

/* 16. WhatsApp flutuante --------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.wa-float:hover { background: var(--wine); transform: translateY(-2px); }
@media (min-width: 1024px) { .wa-float { right: 28px; bottom: 28px; width: 56px; height: 56px; } }

/* 17. Animações ------------------------------------------------------------ */
.js .reveal {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee.is-ready { overflow-x: auto; }
  .marquee.is-ready .marquee-track { animation: none; }
  .photo[data-parallax] img { transform: none; }
  .slider-track { scroll-behavior: auto; }
  .btn svg, .link svg { transition: none; }
}
