/* ============================================================
   Supreme Fitness — LP v5 (DEFINITIVA)
   Modela o site real (alternância dark/claro, dourado, Orbitron) e eleva execução.
   Motion: reveal SLIDE-ONLY (opacidade instantânea) — evita mid-fade que reprova
   contraste no Lighthouse e trava LCP. Safety-net no main.js.
   ============================================================ */

/* ---------- Fontes self-hosted ---------- */
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/orbitron-700.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/orbitron-800.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
/* Fallbacks metric-adjusted p/ minimizar re-wrap (CLS) durante o font-swap */
@font-face {
  font-family: "Orbitron Fallback"; src: local("Arial");
  ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; size-adjust: 108%;
}
@font-face {
  font-family: "Montserrat Fallback"; src: local("Arial");
  ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; size-adjust: 100%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; overflow: hidden; }
.section--dark    { background: var(--bg-dark); color: var(--text-on-dark); }
.section--deep    { background: var(--bg-dark-deep); color: var(--text-on-dark); }
.section--black   { background: var(--bg-black); color: var(--text-on-dark); }
.section--light   { background: var(--bg-light); color: var(--text-on-light); }
.section--lighter { background: var(--bg-lighter); color: var(--text-on-light); }

/* ---------- Tipografia: headline bipartida (assinatura Supreme) ---------- */
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--c-gold); margin-bottom: var(--space-3); display: inline-block;
}
.section--light .eyebrow, .section--lighter .eyebrow { color: var(--c-gold-text); }

.headline {
  font-family: var(--font-display); line-height: var(--lh-tight);
  letter-spacing: var(--track-display); text-transform: none;
}
.headline span { display: block; }
.headline .hl-top {        /* linha 1: mista, peso 700 */
  font-weight: 700; font-size: var(--fs-h3); color: inherit; opacity: 0.92;
}
.headline .hl-caps {       /* linha 2: CAIXA ALTA peso 800 */
  font-weight: 800; font-size: var(--fs-h2); text-transform: uppercase;
  margin-top: 0.1em;
}
.section--light .headline .hl-caps,
.section--lighter .headline .hl-caps { color: var(--c-ink); }
.lead { font-size: var(--fs-lead); max-width: 56ch; color: var(--text-on-dark-mut); }
.section--light .lead, .section--lighter .lead { color: var(--text-on-light-mut); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-weight: 700; font-size: 0.94rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  min-height: 48px; transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease-out);
  text-align: center; line-height: 1.1;
}
.btn--gold { background: var(--cta-bg); color: var(--cta-text); }
.btn--gold:hover { background: var(--cta-bg-hover); transform: translateY(-2px); }
.btn--ghost-dark { background: transparent; color: var(--text-on-dark); border-color: var(--line-on-dark); }
.btn--ghost-dark:hover { border-color: var(--c-gold); color: var(--c-gold); }
.btn--ghost-light { background: transparent; color: var(--c-ink); border-color: rgba(29,29,27,0.28); }
.btn--ghost-light:hover { border-color: var(--c-gold-deep); color: var(--c-gold-deep); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ============================================================
   HEADER sticky
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(29,29,27,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-dark);
  transition: background-color .25s, box-shadow .25s;
}
.header.is-scrolled { background: rgba(20,20,19,0.96); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); width: 100%; }
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-on-dark);
  opacity: 0.86; transition: opacity .15s, color .15s;
}
.nav a:hover { opacity: 1; color: var(--c-gold); }
.header__cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-white); margin: 5px auto; transition: transform .2s, opacity .2s; }

/* mobile menu */
.mobile-menu { display: none; }

/* ============================================================
   HERO — gradiente real + recorte MK50
   ============================================================ */
.hero {
  background: var(--hero-grad);
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 6vw, 4rem);
  position: relative; overflow: hidden;
}
.hero::after { /* textura sutil de profundidade, sem glow (anti-IA) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 80% 20%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__content { max-width: 620px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display);
  color: var(--c-white); margin-bottom: var(--space-5);
}
.hero__title .gold { color: var(--c-gold); }
.hero__lead { font-size: var(--fs-lead); color: var(--text-on-dark-mut); margin-bottom: var(--space-6); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__media { position: relative; justify-self: end; }
.hero__media img {
  width: 100%; max-width: 540px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}
/* trust microline abaixo do hero */
.hero__trust {
  position: relative; z-index: 1; margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center;
  font-size: var(--fs-sm); color: var(--text-on-dark-mut);
}
.hero__trust b { color: var(--c-gold); font-weight: 700; }

/* ============================================================
   FAIXA DE CLIENTES — marquee CSS puro (o ativo mais importante)
   ============================================================ */
.clients { background: var(--bg-light); color: var(--text-on-light); padding-block: clamp(2.6rem, 6vw, 4rem); }
.clients__head { text-align: center; margin-bottom: var(--space-6); }
.clients__head .hl-top { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); opacity: 0.9; }
.clients__head .hl-caps {
  display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fs-h2); color: var(--c-ink); line-height: var(--lh-tight); margin-top: 0.1em;
}
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: flex; width: max-content; gap: clamp(1rem, 3vw, 2rem);
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: clamp(140px, 22vw, 190px); height: 96px; padding: 14px 22px;
  background: var(--c-white); border-radius: var(--radius); border: 1px solid var(--line-on-light);
}
.client-logo img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; filter: grayscale(0.15); transition: filter .2s; }
.client-logo:hover img { filter: grayscale(0); }

/* ============================================================
   EQUIPAMENTOS — intro + linhas em colunas alternadas
   ============================================================ */
.equip-intro { max-width: var(--container-text); }
.lines { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.line {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.line:nth-child(even) .line__media { order: 2; }
.line__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #2a2a28, #131311);
  border: 1px solid var(--line-on-light);
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center;
}
.line__media img { width: 92%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.45)); }
.line__media video.line__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.line__media.has-video img { opacity: 0; }
/* vídeo vertical: mostra inteiro (contain) sobre fundo desfocado do próprio vídeo */
.line__media[data-video-fit="contain"] video.line__video { object-fit: contain; }
.line__media .line__video-blur { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transform: scale(1.06); }
.line__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-body); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #1D1D1B; background: var(--c-gold);
  padding: 5px 12px; border-radius: 4px;
}
.line__title { font-family: var(--font-display); margin-bottom: var(--space-4); }
.line__title .hl-top { display: block; font-weight: 700; font-size: var(--fs-h3); opacity: 0.85; }
.line__title .hl-caps { display: block; font-weight: 800; font-size: var(--fs-h2); text-transform: uppercase; color: var(--c-ink); line-height: var(--lh-tight); }
.line__body { color: var(--text-on-light-mut); margin-bottom: var(--space-3); }
.line__specs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; }
.spec-chip {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(29,29,27,0.06); border: 1px solid var(--line-on-light); color: var(--c-ink);
}
.spec-chip.is-placeholder { background: rgba(200,16,46,0.06); border-color: rgba(200,16,46,0.25); color: #8E0B20; }
.line__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.line.is-incomplete .line__body { opacity: 0.85; }
.line__note { font-size: var(--fs-xs); color: var(--text-on-light-mut); margin-top: var(--space-3); font-style: italic; }

/* ============================================================
   CONSULTORIA — preto total + foto IHRSA
   ============================================================ */
.consult { position: relative; }
.consult__bg { position: absolute; inset: 0; z-index: 0; }
.consult__bg picture { display: block; width: 100%; height: 100%; }
.consult__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.85; }
.consult::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.35) 100%); }
.consult__inner { position: relative; z-index: 2; max-width: 600px; }
/* mobile: dono visível em cima, texto embaixo sobre área escura (sem cortar o rosto) */
@media (max-width: 760px) {
  .consult { display: flex; align-items: flex-end; min-height: 92vh; }
  .consult__bg img { opacity: 1; object-position: center 22%; }
  .consult::after { background: linear-gradient(180deg, rgba(10,10,9,0.12) 0%, rgba(10,10,9,0.3) 36%, rgba(10,10,9,0.8) 64%, rgba(10,10,9,0.97) 100%); }
}

/* ============================================================
   SEGREDOS — YouTube
   ============================================================ */
.secrets { position: relative; }
.secrets__bg { position: absolute; inset: 0; z-index: 0; }
.secrets__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.secrets::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(29,29,27,0.85), rgba(29,29,27,0.93)); }
.secrets__inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin-inline: auto; }
.secrets__embed {
  position: relative; aspect-ratio: 16/9; margin: var(--space-6) auto 0; max-width: 760px;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-on-dark);
  background: #000;
}
.secrets__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.secrets__embed-fb {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); cursor: pointer; background: center/cover no-repeat;
}
.secrets__embed-fb::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.secrets__play {
  position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%;
  background: var(--c-gold); display: grid; place-items: center;
}
.secrets__play::after { content: ""; border-left: 22px solid #1D1D1B; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.secrets__embed-fb span { position: relative; z-index: 1; color: #fff; font-weight: 600; font-size: var(--fs-sm); }

/* ============================================================
   CONHEÇA / ESTRUTURA — bg claro, split foto + texto
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-on-light); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media.is-tall img { aspect-ratio: 3/4; }
.split__body p { color: var(--text-on-light-mut); margin-top: var(--space-4); }

.struct-list { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.struct-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 600; color: var(--c-ink); }
.struct-list li::before {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 0.45em;
  background: var(--c-gold); transform: rotate(45deg);
}

/* ============================================================
   FORM — bg mais escuro, dourado
   ============================================================ */
.form-section { position: relative; background-color: var(--bg-dark-deep); overflow: hidden; isolation: isolate; }
/* fundo: foto aérea de Mirassol com parallax + overlay escuro p/ legibilidade e blend nas bordas */
.form-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url(../img/orcamento-bg.webp) center/cover no-repeat;
  background-attachment: fixed;
}
.form-section::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, #141413 0%, rgba(20,20,19,.80) 16%, rgba(20,20,19,.72) 50%, rgba(20,20,19,.84) 84%, #141413 100%),
    linear-gradient(90deg, rgba(20,20,19,.66) 0%, rgba(20,20,19,.40) 45%, rgba(20,20,19,.58) 100%);
}
.form-section > .container { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .form-section::before { background-image: url(../img/orcamento-bg-sm.webp); background-attachment: scroll; }
}
.form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-aside p { color: var(--text-on-dark-mut); margin-top: var(--space-4); }
.form-aside .phone { display: inline-flex; align-items: center; gap: 0.5em; margin-top: var(--space-5); color: var(--c-gold); font-weight: 700; font-size: 1.15rem; }
.lead-form { background: var(--surface-dark); border: 1px solid var(--line-on-dark); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-dark-mut); margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--c-white);
  background: rgba(0,0,0,0.4); border: 1px solid var(--line-on-dark); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; transition: border-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(242,242,238,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-gold); outline: none; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field__err { display: block; font-size: var(--fs-xs); color: #FF8A98; margin-top: 4px; min-height: 1em; }
.field--error input, .field--error select { border-color: #FF8A98; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip span {
  display: inline-block; padding: 0.6rem 1rem; font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid var(--line-on-dark); border-radius: var(--radius-pill); color: var(--text-on-dark-mut);
  transition: all .15s; min-height: 44px; display: inline-flex; align-items: center;
}
.radio-chip input:checked + span { background: var(--c-gold); color: #1D1D1B; border-color: var(--c-gold); }
.radio-chip input:focus-visible + span { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.form-status { margin-top: var(--space-4); font-size: var(--fs-sm); font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--c-gold); }
.form-status.err { color: #FF8A98; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: var(--text-on-dark); padding-block: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line-on-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.footer__logo img { height: 32px; margin-bottom: var(--space-4); }
.footer p, .footer a { color: var(--text-on-dark-mut); font-size: var(--fs-sm); }
.footer a:hover { color: var(--c-gold); }
.footer__h { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--space-3); font-weight: 700; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__social { display: flex; gap: 12px; margin-top: var(--space-4); }
.footer__social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(242,242,238,0.22); border-radius: 50%; color: var(--c-paper); transition: background .2s, border-color .2s, color .2s; }
.footer__social a:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-dark); }
.footer__bottom { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); color: rgba(242,242,238,0.5); }

/* ============================================================
   STICKY CTA mobile
   ============================================================ */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,20,19,0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line-on-dark);
  transform: translateY(110%); transition: transform .3s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ============================================================
   REVEAL — slide-only (opacidade instantânea no is-in; sem mid-fade)
   ============================================================ */
.has-js [data-reveal], .has-js [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; transition: transform .65s var(--ease-out); }
.has-js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; transition: transform .6s var(--ease-out); }
/* o LCP (hero title/media) NUNCA recebe reveal — fica visível desde o load */

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .header__cta { display: none; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__media { justify-self: center; order: -1; max-width: 420px; }
  .hero__content { max-width: none; }
  .line, .split { grid-template-columns: 1fr; }
  .line:nth-child(even) .line__media, .split--reverse .split__media { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .sticky-cta { display: block; }

  /* mobile menu */
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; display: flex; flex-direction: column;
    background: rgba(20,20,19,0.98); padding: var(--space-6) var(--gutter);
    transform: translateX(100%); transition: transform .28s var(--ease-out); gap: var(--space-2);
  }
  .mobile-menu.is-open { transform: translateX(0); }
  .mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; padding: var(--space-3) 0; color: var(--c-white); border-bottom: 1px solid var(--line-on-dark); }
  .mobile-menu .btn { margin-top: var(--space-4); }
}
@media (max-width: 540px) {
  .field--row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ============================================================
   prefers-reduced-motion — cinto de segurança
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; transform: none !important; }
  .has-js [data-reveal], .has-js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Modal de catálogo (carrossel) — sem libs, scroll-snap nativo
   ============================================================ */
html.modal-open { overflow: hidden; }

.catmodal {
  border: 0; padding: 0; margin: auto;
  width: min(92vw, 920px); max-width: 92vw;
  max-height: 90vh; background: transparent; color: var(--c-paper);
  overflow: visible;
}
.catmodal::backdrop { background: rgba(10, 10, 9, 0.82); backdrop-filter: blur(3px); }
.catmodal__box {
  display: flex; flex-direction: column; height: min(90vh, 820px); max-height: 90vh;
  background: var(--c-dark); border: 1px solid rgba(200, 168, 87, 0.28);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

/* Cabeçalho */
.catmodal__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(242, 242, 238, 0.1);
}
.catmodal__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--fs-h3); letter-spacing: 0.02em; color: var(--c-white); margin: 0;
}
.catmodal__close {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 242, 238, 0.2); background: transparent; color: var(--c-paper);
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s;
}
.catmodal__close:hover { background: rgba(242, 242, 238, 0.1); border-color: var(--c-gold); }
.catmodal__close:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

/* Viewport + trilho com scroll-snap */
.catmodal__viewport { position: relative; flex: 1 1 auto; min-height: 0; }
.catmodal__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; height: 100%;
}
.catmodal__track::-webkit-scrollbar { display: none; }
.catmodal__track:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -2px; }
.catmodal__slide {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-6) var(--space-5);
  background: radial-gradient(120% 90% at 50% 30%, #26261f 0%, var(--c-dark) 70%);
}
.catmodal__slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.catmodal__cap {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--c-paper-mut);
  text-align: center;
}

/* Setas */
.catmodal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 168, 87, 0.4); background: rgba(20, 20, 19, 0.7);
  color: var(--c-white); font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, opacity .2s;
}
.catmodal__nav:hover { background: var(--c-gold); color: var(--c-dark); }
.catmodal__nav:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.catmodal__nav--prev { left: var(--space-3); }
.catmodal__nav--next { right: var(--space-3); }
.catmodal__nav:disabled { opacity: 0; pointer-events: none; }
.catmodal.is-single .catmodal__nav,
.catmodal.is-single .catmodal__dots { display: none; }

/* Rodapé: dots + contador + CTA */
.catmodal__foot {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(242, 242, 238, 0.1);
}
.catmodal__dots { display: flex; gap: var(--space-2); flex: 1 1 auto; }
.catmodal__dot {
  width: 9px; height: 9px; padding: 0; border-radius: var(--radius-pill);
  border: 0; background: rgba(242, 242, 238, 0.3); cursor: pointer; transition: background .2s, transform .2s;
}
.catmodal__dot.is-active { background: var(--c-gold); transform: scale(1.25); }
.catmodal__dot:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.catmodal__counter { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--c-paper-mut); }
.catmodal__cta { flex: none; }

@media (max-width: 600px) {
  .catmodal__slide { padding: var(--space-4) var(--space-3); }
  .catmodal__foot { gap: var(--space-3); }
  .catmodal__cta { width: 100%; text-align: center; order: 3; }
}
