/* =====================================================================
   EXALTAR — style.css (V1)
   Recriação em código puro do site WordPress/Elementor.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --color-primary: #000000;
  --color-secondary: #EFEFEF;
  --color-text: #EFEFEF;
  --color-accent: #DE000F;
  --color-accent-light: #FC0011;
  --color-muted: #A3A3A3;
  --color-gray: #3C3C3C;
  --color-line: #1E1E1E;
  --color-bg: #0C0C0C;

  --font-display: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  /* H1: Space Grotesk 700 em caixa alta, bem fechada */
  --font-h1: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 101px;
  --header-h-small: 72px;

  --container: 1140px;

  /* glow da seção mockup */
  --glow-w: 600px;
  --glow-h: 300px;
  --glow-blur: 150px;
  --glow-from: #DADCF7;
  --glow-to: #AAB0F2;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overscroll-behavior-y: none;   /* evita o "pulo" elástico durante a interpolação */
  -webkit-text-size-adjust: 100%;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 700; }

.page { overflow: hidden; position: relative; padding-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- Efeito degradê no texto ---------- */
.cor1 {
  display: inline;
  background: linear-gradient(81deg, #ffffff 17.09%, #f5f5f5 90.92%, #EDEAD4 99.74%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================================================================
   PRELOADER
   ===================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity .45s ease, visibility .45s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-loading { overflow: hidden; }

.preloader__inner {
  position: relative;
  width: clamp(240px, 32vw, 380px);
}
.preloader__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* a onda vermelha: desenha da esquerda, ondula (SMIL no atributo d) e some */
.pl-wave {
  stroke: var(--color-accent-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: plDraw .6s cubic-bezier(.65,0,.35,1) forwards,
             plFade .32s ease 1.35s forwards;
}
/* a segunda onda, cinza, atrás */
.pl-wave--ghost {
  stroke: rgba(255,255,255,.14);
  stroke-width: 1;
  filter: none;
  animation: plDraw .6s cubic-bezier(.65,0,.35,1) .07s forwards,
             plFade .32s ease 1.35s forwards;
}

.preloader__mark path:nth-child(2) { animation: plGlow 1.6s ease-in-out 1.9s infinite; }

/* páginas internas: só um fade preto, sem onda nem revelação */
.preloader.is-quick { transition-duration: .32s; }
.preloader.is-quick .pl-wave,
.preloader.is-quick .pl-wave--ghost { display: none; }
.preloader.is-quick .preloader__svg { animation: plQuick .28s ease both; }
.preloader.is-quick .preloader__mark path:nth-child(2) { animation: none; }

@keyframes plDraw  { to { stroke-dashoffset: 0; } }
@keyframes plFade  { to { opacity: 0; } }
@keyframes plQuick { from { opacity: 0; } to { opacity: 1; } }
@keyframes plGlow  { 0%,100% { filter: drop-shadow(0 0 0 rgba(252,0,17,0)); } 50% { filter: drop-shadow(0 0 6px rgba(252,0,17,.8)); } }

/* =====================================================================
   BOTÕES
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
  line-height: 1em;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all .5s ease;
}
.btn:hover { transform: scale(1.03); }

.btn__icon { display: inline-flex; }
.btn__icon svg {
  width: 1em;
  height: auto;
  fill: currentColor;
  transform: rotate(0deg);
  transition: transform 300ms ease, width 300ms ease, fill 300ms ease;
}
.btn:hover .btn__icon svg { transform: rotate(45deg); }

/* Header */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: 6px;
  padding: 20px 30px;
  box-shadow: 0 6px 12px 0 rgba(255,255,255,.12) inset, 0 1px 1px 0 rgba(255,255,255,.20) inset;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cards */
.btn--card {
  position: relative;
  background: #FFFFFF;
  color: var(--color-primary);
  font-weight: 700;
  gap: 5px;
  padding: 10px 14px;
  border-left: 1px solid var(--color-accent);
  border-radius: 4px;
}
/* no hover só o ícone muda de cor: o texto continua preto */
.btn--card .btn__icon svg { transition: transform .3s ease-out, fill .3s ease-out; }
.btn--card:hover .btn__icon svg,
.btn--card:focus-visible .btn__icon svg { fill: var(--color-accent); }

/* CTA grande */
.btn--cta {
  position: relative;
  z-index: 10;
  gap: 30px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -.02em;
  border-radius: 14px;
  padding: 30px 60px;
}
.btn--cta .btn__icon svg {
  width: 1em;
  height: auto;
  scale: 1.8;
  transform: none;
  fill: none;
}
.btn--cta:hover .btn__icon svg { transform: none; }
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn--cta:hover .btn__icon svg {
  filter: brightness(1000%) contrast(1000%) saturate(0%);
  transition: 0ms ease;
}
.btn--cta .btn__sub { font-weight: 500; opacity: .85; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  background: rgba(12, 12, 12, .55);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  left: 50%;
  right: auto;
  width: 100%;
  transform: translateX(-50%);
  transition: height .45s cubic-bezier(.4,0,.2,1), top .45s cubic-bezier(.4,0,.2,1), width .45s cubic-bezier(.4,0,.2,1), border-radius .45s cubic-bezier(.4,0,.2,1), background .45s ease, box-shadow .45s ease, border-color .45s ease;
  border-left: 1px solid transparent; border-right: 1px solid transparent; border-top: 1px solid transparent;
}
.site-header.is-scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  width: min(980px, calc(100% - 32px));
  transform: translateX(-50%);
  height: var(--header-h-small);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(14, 14, 15, .72);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.site-header.is-scrolled .header__inner { padding: 0 16px 0 36px; }
.site-header.is-scrolled .btn--primary { border-radius: 999px; padding: 12px 20px; font-size: .92em; }
.site-header.is-scrolled .header__left { gap: 22px; }
.site-header.is-scrolled .nav { gap: 18px; }
.site-header.is-scrolled .nav__link { font-size: .95em; }
.site-header.is-scrolled .btn--primary { padding: 14px 22px; }
.site-header.is-scrolled .logo img { width: 100px; }
.header__inner { width: 100%; transition: padding .4s cubic-bezier(.4,0,.2,1); }
.logo img { transition: width .35s cubic-bezier(.4,0,.2,1); }
.btn--primary { transition: all .5s ease, padding .45s cubic-bezier(.4,0,.2,1), border-radius .45s cubic-bezier(.4,0,.2,1); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  display: inline-block;
  transform: scale(1);
  transition: transform 300ms ease-out;
}
.logo:hover { transform: scale(1.05); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.2em;
  letter-spacing: -.01em;
  color: var(--color-text);
  padding-bottom: 2px;
}

.nav__link.is-active { color: var(--color-accent-light); }
.mobile-menu__link.is-active { color: var(--color-accent-light); }

/* Sublinhado animado (links do menu) */
.sublinhado1 {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 300ms ease-out;
}
.sublinhado1::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: red;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out, box-shadow 300ms ease-out;
}
.sublinhado1:hover { transform: translateY(-2px); }
.sublinhado1:hover::before { transform: scaleX(1); }


/* ---------- Menu mobile (toggle + overlay) ---------- */
.header__right { display: contents; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 100px 24px 40px;
  background: rgba(12, 12, 12, .96);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--color-text);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: .06s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: .12s; }
.mobile-menu .btn--primary { margin-top: 28px; padding: 18px 28px; font-size: 1.05em; }
body.menu-open { overflow: hidden; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 50px 0 40px;
  overflow: hidden;   /* as waves não invadem a dobra seguinte */
}
.hero__inner {
  position: relative;
  z-index: 2;
  /* no original os 2 wrappers das linhas ocupam 2 gaps (60px) antes do título */
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Linhas animadas de fundo */
.linhas-flow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1700px;
  max-width: 2000px;
  margin: 0;
  z-index: 0;
  pointer-events: none;
  contain: layout paint;
}
.linhas-flow svg { width: 100%; height: auto; display: block; }
.linhas-flow--right { transform: translate(-50%, -50%) translateX(1320px); }
.linhas-flow--left  { transform: translate(-50%, -50%) translateX(-1320px); }
.linhas-flow--left svg { transform: scaleX(-1); }

/* Fades pretos nas emendas entre dobras: cobrem onde as linhas de uma
   seção terminam e as da seguinte começam, para a transição não ter costura. */
.hero::after,
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 260px;
  z-index: 1;
  pointer-events: none;
}
.hero::after  { bottom: 0; background: linear-gradient(to top, var(--color-bg) 22%, rgba(12,12,12,.75) 55%, transparent 100%); }
.cta::before  { top: 0;    background: linear-gradient(to bottom, var(--color-bg) 18%, rgba(12,12,12,.7) 52%, transparent 100%); }
.cta::after   { bottom: 0; background: linear-gradient(to top, var(--color-bg) 22%, rgba(12,12,12,.75) 55%, transparent 100%); }

.hero__title {
  max-width: 100%;
  text-align: center;
  font-family: var(--font-h1);
  font-size: clamp(52px, 5.6vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--color-text);
  text-wrap: balance;
}
.hero__text {
  max-width: 840px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--color-muted);
  text-wrap: pretty;
}
.hero__text b { font-weight: 500; }
.divider {
  transform-origin: center;
  width: 300px;
  max-width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-gray);
}
.hero__subtitle {
  max-width: 100%;
  text-align: center;
  font-family: var(--font-h1);
  font-size: clamp(30px, 2.9vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--color-text);
  text-wrap: balance;
}

/* Cards */
.cards-shell { width: 100%; }
.cards-dots, .cards-hint { display: none; }
.cards {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card {
  position: relative;
  width: 360px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 60px 60px 40px;
  border: 1px solid var(--color-gray);
  border-radius: 14px;
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}
.card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s ease, box-shadow .45s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transform: translateZ(0);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(252,0,17,.55);
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(252,0,17,.25), 0 0 40px rgba(252,0,17,.12);
}
.card:hover::before { transform: scale(1.05); }
.card .btn--card { position: relative; z-index: 1; }
.card:hover .btn--card { transform: translateY(-2px); }
.card:hover .btn--card svg { transform: rotate(45deg); fill: var(--color-accent); }
.card--comercial { background-image: url('/assets/img/card-jingles-comerciais.avif'); }
.card--radio     { background-image: url('/assets/img/card-identidade-sonora.avif'); z-index: 2; }
.card--eleitoral { background-image: url('/assets/img/card-jingles-eleitorais.avif'); }


/* =====================================================================
   MOCKUP / DEGRAUS
   ===================================================================== */
.mockup {
  position: relative;
  padding: 140px 0 170px;
}
/* brilho azulado pulsante — radial-gradient em vez de blur() para não
   re-rasterizar 600x300px a cada frame; só a opacidade anima. */
.mockup::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  width: calc(var(--glow-w) * 2.2);
  height: calc(var(--glow-h) * 2.2);
  background: radial-gradient(ellipse at center,
    rgba(202, 206, 246, .55) 0%,
    rgba(180, 186, 240, .32) 28%,
    rgba(170, 176, 242, .12) 52%,
    transparent 72%);
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
  animation: glowPulse 2.6s ease-in-out alternate infinite;
}
@keyframes glowPulse {
  from { opacity: .25; }
  to   { opacity: 1; }
}

.mockup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.mockup__device {
  position: relative;
  z-index: 3;
  width: 100%;
}
/* sombra de contato elíptica sob o notebook */
.mockup__device::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 40%, transparent 72%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}
/* reflexo sutil abaixo da base */
.mockup__device::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.18) 70%, transparent);
  pointer-events: none;
}
.mockup__img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
}
.mockup__title {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  font-family: var(--font-h1);
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--color-text);
  text-wrap: balance;
  will-change: transform, opacity, filter;
  transition: transform 120ms linear, opacity 120ms linear;
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
  position: relative;
  min-height: 729px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.cta .linhas-flow { width: 1500px; }
.cta .container { position: relative; z-index: 2; }
.cta .container { display: flex; justify-content: center; }
.cta__box {
  position: relative;
  width: 900px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cta__blue {
  position: absolute;
  left: 187px;
  top: -122px;
  z-index: 1;
  width: 558px;
  height: auto;
}
.cta__kicker, .cta__note { display: none; }
.cta__deco {
  position: absolute;
  height: auto;
  pointer-events: none;
}
.cta__deco.mini-player { pointer-events: auto; z-index: 12; }
.cta__deco--player-1 { width: 290px; right: -48px; bottom: -144px; }
.cta__deco--player-2 { width: 230px; left: 11px;   top: -173px; }
.cta__deco--frame-14 { width: 147px; right: -42px; top: -251px; }
.cta__deco--frame-8  { width: 117px; left: -101px; bottom: -161px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--color-primary);
  border-top: 1px solid var(--color-line);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer__icon {
  width: 26px;
  height: 26px;
  transform: scale(1);
  transition: transform 300ms ease-out;
}
.footer__icon:hover { transform: scale(1.05); }
.footer__copy {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2em;
  color: #8A8A8A;
}

/* =====================================================================
   ENTRADA DA HERO
   Coreografia tipo pulso sonoro: as palavras do H1 sobem em cascata,
   como picos de uma onda; depois texto, divisor (que se abre do centro
   como uma onda), subtítulo e cards. Só transform e opacity — tudo no
   compositor, sem custo de layout ou repaint.
   ===================================================================== */
.hero__title:not(.is-split),
.pf-title:not(.is-split) { visibility: hidden; }
html:not(.js) .hero__title,
html:not(.js) .pf-title { visibility: visible !important; }
.hero__title.is-split,
.pf-title.is-split { visibility: visible; }
.hero__title .w,
.pf-title .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  will-change: transform, opacity;
}
.hero-el { opacity: 0; }
.hero-card { opacity: 0; }
html:not(.js) .hero__title .w,
html:not(.js) .pf-title .w,
html:not(.js) .hero-el,
html:not(.js) .hero-card { opacity: 1 !important; transform: none !important; }

body.hero-in .hero__title .w,
body.hero-in .pf-title .w {
  animation: heroWord .9s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(var(--w) * 110ms);
}
body.hero-in .hero-el {
  animation: heroRise .8s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(420ms + var(--i) * 120ms);
}
body.hero-in .divider.hero-el {
  animation-name: heroLine;   /* a linha abre do centro, como uma onda */
}
body.hero-in .pf-hero__art.hero-el { animation-name: heroCard; }
body.hero-in .hero-card {
  animation: heroCard .85s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(900ms + var(--i) * 120ms);
}

@keyframes heroWord {
  from { opacity: 0; transform: translate3d(0, 56px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroLine {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes heroCard {
  from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.965); }
  to   { opacity: 1; transform: none; }
}

/* limpa o will-change quando a coreografia termina */
body.hero-done .hero__title .w,
body.hero-done .pf-title .w { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero__title .w, .pf-title .w, .hero-el, .hero-card { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =====================================================================
   ANIMAÇÕES DE ENTRADA (equivalentes ao Elementor)
   ===================================================================== */
.reveal { visibility: hidden; }
/* sem JavaScript nada pode ficar escondido esperando um script que não vem */
html:not(.js) .reveal { visibility: visible !important; opacity: 1 !important; }
.reveal.animated {
  visibility: visible;
  animation-duration: 1.25s;
  animation-fill-mode: both;
  animation-delay: var(--delay, 0ms);
}
.reveal.animated[data-anim="fadeIn"]      { animation-name: fadeIn; }
.reveal.animated[data-anim="fadeInUp"]    { animation-name: fadeInUp; }
.reveal.animated[data-anim="fadeInDown"]  { animation-name: fadeInDown; }
.reveal.animated[data-anim="fadeInLeft"]  { animation-name: fadeInLeft; }
.reveal.animated[data-anim="fadeInRight"] { animation-name: fadeInRight; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* quem pede menos movimento continua vendo a intro inteira: onda e
     revelação da logo acontecem uma vez e param. Só o brilho que pulsava
     em laço infinito sai. */
  .preloader__mark path:nth-child(2) { animation: none !important; }
  .linhas-flow { opacity: .5; }
  /* sem animação nada devolvia a opacidade: os blocos ficavam invisíveis
     para quem desliga animações no sistema */
  .reveal, .reveal.animated { visibility: visible !important; opacity: 1 !important; }
  .reveal.animated { animation: none; }
  .wobble { filter: none !important; }
  .mockup::before { animation: none; opacity: .6; }
  .mockup__title { transform: none !important; opacity: 1 !important; filter: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --container: 1024px; }
  .container { padding-left: 20px; padding-right: 20px; }

  .site-header { padding: 20px 0; }
  .header__left { width: auto; flex: 0 1 auto; min-width: 0; }

  .hero__title { max-width: 100%; }
  .hero__text  { max-width: 560px; font-size: 18px; }
  .hero__subtitle { max-width: 100%; }

  .cards { gap: 16px; padding: 40px 0; }
  .card {
    width: auto;
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: 3 / 4;
    padding: 20px;
    gap: 0;
    border-radius: 16px;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: hidden;
    background-position: center;
    background-size: cover;
  }
  .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, transparent 70%);
    pointer-events: none;
  }
  .card .btn--card { position: relative; z-index: 1; }

  .mockup__inner { padding-left: 0; padding-right: 0; } /* mockup full-bleed */
  .mockup__title { max-width: 640px; }

  .cta__box { width: 600px; }
  .cta__blue { left: 0; width: 100%; }
  .btn--cta { font-size: 1.2em; line-height: 1.6em; }

  .cta__deco--player-1 { right: 10px; bottom: -144px; }
  .cta__deco--player-2 { left: 26px; top: -145px; }
  .cta__deco--frame-14 { right: 47px; top: -257px; }
  .cta__deco--frame-8  { left: -30px; bottom: -206px; }

  .site-footer { padding: 22px 0; }
  .footer__copy { line-height: 1em; }
}

/* =====================================================================
   TABLET  (768–1024px)
   O menu de texto não cabe em cinco itens: usa o mesmo hambúrguer do
   celular, com a pílula flutuante e o overlay.
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  :root { --header-h: 84px; --header-h-small: 66px; }

  .nav { display: none; }
  .menu-toggle { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; }
  .site-header.is-scrolled .menu-toggle { width: 42px; height: 42px; }
  .mobile-menu { display: flex; }

  .header__right { display: flex; align-items: center; gap: 10px; }
  .header__left { flex: 0 0 auto; }
  .logo img { width: 116px; height: auto; }
  .site-header.is-scrolled .logo img { width: 104px; }

  .btn--primary { border-radius: 999px; padding: 13px 20px; font-size: .95em; white-space: nowrap; }
  .site-header.is-scrolled .btn--primary { padding: 12px 19px; }
  .site-header.is-scrolled { width: min(660px, calc(100% - 40px)); }
  .site-header.is-scrolled .header__inner { padding: 0 12px 0 26px; }

  /* overlay: duas colunas não fazem sentido aqui, mantém a lista central */
  .mobile-menu { padding: calc(var(--header-h) + 40px) 32px 40px; gap: 4px; }
  .mobile-menu__link { font-size: 2.4rem; padding: 14px 0; }
  .mobile-menu .btn--primary { margin-top: 32px; padding: 18px 32px; font-size: 1.05em; }
  .mobile-menu__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .7s ease .15s; }
  .mobile-menu.is-open .mobile-menu__bg { opacity: .45; }
  .mobile-menu .linhas-flow { width: 1200px; top: 50%; }
  .mobile-menu .linhas-flow--menu-right { transform: translate(-50%, -50%) translateX(560px); }
  .mobile-menu .linhas-flow--menu-left  { transform: translate(-50%, -50%) translateX(-560px); }
}

/* =====================================================================
   MOBILE  (≤767px)
   Ritmo vertical em múltiplos de 8. Escala tipográfica reduzida,
   respiro generoso entre dobras e alvos de toque de 44px+.
   ===================================================================== */
@media (max-width: 767px) {
  :root {
    --container: 767px;
    --glow-w: 260px;
    --glow-h: 140px;
    --pad: 22px;
    --header-h: 74px;
    --header-h-small: 62px;
    --gap-section: 64px;   /* respiro entre dobras */
  }
  .container { padding-left: var(--pad); padding-right: var(--pad); }
  body { font-size: 15px; }

  /* ---------- Header ---------- */
  .site-header { background: rgba(12, 12, 12, .72); }
  .site-header.is-scrolled {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 999px;
  }
  .site-header.is-scrolled .header__inner { padding: 0 10px 0 20px; }
  .site-header.is-scrolled .logo img { width: 86px; }
  .header__inner { gap: 12px; }
  .header__left { width: auto; flex: 0 1 auto; gap: 0; min-width: 0; }
  .logo img { width: 94px; height: auto; }
  .nav { display: none; }
  .header__right { display: flex; align-items: center; gap: 8px; }

  /* CTA do topo: mantém sempre o texto, nunca vira só ícone */
  .btn--primary {
    flex: none;
    padding: 11px 16px;
    font-size: .84em;
    border-radius: 999px;
    gap: 7px;
    white-space: nowrap;
  }
  .btn--primary .btn__text { display: inline; }
  .site-header.is-scrolled .btn--primary { padding: 10px 15px; font-size: .82em; }

  /* hambúrguer: círculo perfeito, 44px de alvo */
  .menu-toggle {
    display: inline-flex;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    transition: width .45s cubic-bezier(.4,0,.2,1), height .45s cubic-bezier(.4,0,.2,1),
                background .3s ease, border-color .3s ease;
  }
  .menu-toggle:active { background: rgba(255,255,255,.1); }
  .site-header.is-scrolled .menu-toggle { width: 40px; height: 40px; }

  /* ---------- Menu overlay: mesma linguagem do desktop ---------- */
  .mobile-menu {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: calc(var(--header-h) + 24px) var(--pad) 32px;
    background: rgba(10, 10, 11, .94);
  }
  .mobile-menu__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .7s ease .15s;
  }
  .mobile-menu.is-open .mobile-menu__bg { opacity: .45; }
  .mobile-menu .linhas-flow { width: 1200px; }
  .mobile-menu .linhas-flow--menu-right { transform: translate(-50%, -50%) translateX(700px); }
  .mobile-menu .linhas-flow--menu-left  { transform: translate(-50%, -50%) translateX(-700px); }
  .mobile-menu__link {
    position: relative;
    z-index: 1;
    font-size: 1.85rem;
    line-height: 1.15;
    padding: 10px 0;
    transform: translateY(18px);
  }
  .mobile-menu__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: var(--color-accent-light);
    box-shadow: 0 0 10px rgba(252,0,17,.8);
    transform: translateX(-50%);
    transition: width .3s ease;
  }
  .mobile-menu__link:active::after { width: 56px; }
  .mobile-menu .btn--primary {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding: 18px 30px;
    font-size: 1.05em;
    border-radius: 999px;
  }

  /* ---------- Hero ---------- */
  .hero { min-height: auto; padding: 0 0 64px; }
  .hero__inner { padding: 48px var(--pad) 0; gap: 24px; }
  .linhas-flow { width: 620px; }
  .linhas-flow--right,
  .cta .linhas-flow--cta-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
            mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  }
  .linhas-flow--left,
  .cta .linhas-flow--cta-left {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 55%);
            mask-image: linear-gradient(to left, transparent 0%, #000 55%);
  }
  .hero::after, .cta::before, .cta::after { height: 150px; }
  .linhas-flow--right { transform: translate(-50%, -50%) translateX(340px); }
  .linhas-flow--left  { transform: translate(-50%, -50%) translateX(-340px); }

  .hero__title {
    font-size: clamp(2.1rem, 9.6vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    text-wrap: balance;
  }
  .hero__text {
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .divider { width: 96px; margin: 8px 0; }
  .hero__subtitle {
    max-width: 100%;
    margin-top: 8px;
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
    line-height: 1.06;
    letter-spacing: -.02em;
  }

  /* ---------- Cards: carrossel horizontal com snap ----------
     Antes eram 3 blocos empilhados (scroll longo). Agora as três
     frentes ficam na mesma altura da tela, com "peek" do próximo. */
  .cards-shell { position: relative; margin-top: 4px; }
  .cards {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    /* sangra só à direita: o 1º card alinha com o texto e o próximo
       aparece cortado na borda da tela, sinalizando que há mais conteúdo */
    padding: 4px var(--pad) 14px 0;
    margin: 0 calc(var(--pad) * -1) 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    /* o snap entra só depois da animação de entrada, senão ele disputa
       com o transform dos cards e desloca o carrossel */
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  body.hero-done .cards { scroll-snap-type: x mandatory; }
  .card {
    flex: 0 0 calc(100% - var(--pad) * 2 - 46px);
    width: calc(100% - var(--pad) * 2 - 46px);
    min-height: 0;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    padding: 16px;
    gap: 0;
    border-radius: 18px;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
  }
  .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.22) 48%, transparent 74%);
    pointer-events: none;
  }
  .card:active { transform: scale(.985); }
  .card .btn--card {
    position: relative;
    z-index: 1;
    font-size: .95em;
    padding: 12px 16px;
    border-radius: 4px;
  }
  /* indicador de posição */
  .cards-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
  }
  .cards-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    transition: width .3s ease, background .3s ease;
  }
  .cards-dots span.is-active {
    width: 20px;
    border-radius: 3px;
    background: var(--color-accent-light);
  }
  .cards-hint {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: #6F6F6F;
    transition: opacity .4s ease;
  }
  .cards-hint.is-hidden { opacity: 0; }

  /* ---------- Mockup ---------- */
  .mockup { padding: 0 0 40px; }
  .mockup::before { top: 26%; }
  .mockup__inner { gap: 26px; padding-left: var(--pad); padding-right: var(--pad); }
  .mockup__img { filter: drop-shadow(0 16px 22px rgba(0,0,0,.6)); }
  .mockup__title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    line-height: 1.06;
    letter-spacing: -.02em;
  }

  /* ---------- CTA: só o botão, tudo em uma linha ---------- */
  .cta {
    min-height: 0;
    padding: 0 0 56px;
  }
  .cta .linhas-flow { width: 620px; }
  .cta .linhas-flow--cta-right { transform: translate(-50%, -50%) translateX(300px); }
  .cta .linhas-flow--cta-left  { transform: translate(-50%, -50%) translateX(-300px); }
  .cta .container { padding-left: var(--pad); padding-right: var(--pad); }
  .cta__box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .cta__blue { display: none; }
  .cta__kicker {
    display: block;
    align-self: center;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(252,0,17,.35);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
  }
  .cta__note {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.4;
    color: #7A7A7A;
  }
  .btn--cta {
    width: 100%;
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.02em;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    border-radius: 999px;
    padding: 20px 20px;
  }
  .btn--cta .btn__icon svg { scale: 1.35; }
  .btn--cta .btn__text { display: inline; }
  .btn--cta .btn__sep,
  .btn--cta .btn__sub { display: none; }   /* no mobile fica só "Quero atendimento" */

  /* mini-players e frames saem da última dobra no mobile */
  .cta__box .cta__deco { display: none; }

  /* ---------- Footer ---------- */
  .site-footer { padding: 24px 0 26px; }
  .footer__inner { flex-direction: row; justify-content: center; align-items: center; gap: 9px; flex-wrap: nowrap; }
  .footer__icon { width: 19px; height: 19px; margin: 0; }
  .footer__copy { font-size: 13px; line-height: 1; white-space: nowrap; color: #8A8A8A; }
}

/* Mobile muito estreito (≤360px) */
@media (max-width: 360px) {
  :root { --pad: 16px; }
  .site-header .btn--primary { padding: 10px 12px; font-size: .78em; gap: 5px; }
  .logo img { width: 84px; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero__title { font-size: 1.95rem; }
  .mobile-menu__link { font-size: 1.65rem; padding: 9px 0; }
}
