/* =========================================================
   FÁBIO VIVALDINI — PERSONAL TRAINER
   Arquitetura MOBILE-FIRST:
   o bloco base descreve o celular; as media queries usam
   min-width e apenas ACRESCENTAM o que telas maiores ganham.
   ========================================================= */

:root {
  /* ---- Cores ---- */
  --bg:            #0D0D0D;
  --surface:       #1A1A1A;
  --surface-2:     #222222;
  --accent:        #F0294E;
  --accent-dark:   #C81F3E;
  --text:          #FFFFFF;
  --text-body:     #B0B0B0;
  --text-muted:    #7A7A7A;
  --btn-ghost:     #2A2A2A;
  --line:          rgba(255, 255, 255, .12);

  /* ---- Tipografia ---- */
  --font-display:  'Rajdhani', 'Oswald', sans-serif;
  --font-hero:     'Saira Stencil One', 'Rajdhani', sans-serif;  /* fonte estêncil da frase do hero */
  --font-heading:  'Oswald', 'Montserrat', sans-serif;
  --font-body:     'Montserrat', system-ui, sans-serif;

  --fs-hero:       clamp(1.8rem, 7.4vw, 3.4rem);
  --fs-cta:        clamp(1.75rem, 7.5vw, 3rem);
  --fs-section:    clamp(1.75rem, 7vw, 2.75rem);
  --fs-card:       clamp(1.35rem, 5.5vw, 1.55rem);
  --fs-price:      clamp(1.4rem, 5.5vw, 1.5rem);
  --fs-body:       .9375rem;
  --fs-eyebrow:    .75rem;
  --fs-nav:        .8125rem;
  --fs-tag:        .625rem;

  /* ---- Layout ---- */
  --container:     1160px;
  --gutter:        20px;                       /* respiro lateral no celular */
  --section-pad:   clamp(56px, 12vw, 100px);
  --radius:        12px;
  --radius-pill:   999px;
  --tap:           44px;                       /* alvo mínimo de toque */
  --mobile-bar:    68px;                       /* altura da barra fixa de CTA */

  --ease:          cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* impede o iOS de inflar o texto na horizontal */
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* espaço para a barra fixa de CTA não cobrir o fim do conteúdo */
  padding-bottom: var(--mobile-bar);
}

img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; }

a, button {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;  /* remove o flash cinza no toque */
}

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

/* ---------- Ícones SVG ----------
   Contorno em traço fino, sem preenchimento, herdando a cor de quem
   os contém (currentColor). Assim o mesmo ícone serve em vermelho na
   seção Sobre e em cinza no rodapé, sem duplicar arquivo. */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* impede que o traço seja cortado nas bordas do viewBox */
  overflow: visible;
}

.section { padding-block: var(--section-pad); }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-section);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
  /* evita que "VIVALDINI" estoure a tela em aparelhos estreitos */
  overflow-wrap: break-word;
}

/* nome do Fábio na seção Sobre usa a mesma estêncil do hero */
.section-title--stencil {
  font-family: var(--font-hero);
  font-weight: 400;
}

/* =========================================================
   BOTÕES — dimensionados para o dedo, não para o cursor
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 38px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 26px rgba(240, 41, 78, .32);
}

.btn--ghost {
  background: var(--btn-ghost);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  width: 100%;              /* no celular ocupa a largura toda do card */
}

/* Hover só onde existe cursor. No touch, :hover "gruda" após o toque. */
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(240, 41, 78, .45);
  }
  .btn--ghost:hover { background: var(--accent); transform: translateY(-2px); }
}
/* feedback tátil imediato */
.btn:active { transform: scale(.97); }

/* =========================================================
   CABEÇALHO
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 16px;
  transition: background .35s var(--ease), padding .35s var(--ease),
              box-shadow .35s var(--ease);
}
.header.is-scrolled {
  background: rgba(13, 13, 13, .94);
  backdrop-filter: blur(10px);
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo__name {
  display: block;
  font-family: var(--font-heading);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text);
  white-space: nowrap;
}
.logo__role {
  display: block;
  font-size: .5rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Ícones sociais ---------- */
.socials { display: flex; gap: 10px; }

.social {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-body);
  transition: all .25s var(--ease);
}
.social .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .social:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
  }
}
.social:active { background: var(--accent); color: #fff; }

/* escondidos no topo do celular — reaparecem no rodapé */
.socials--header { display: none; }

/* ---------- Hambúrguer ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu em tela cheia (padrão no celular) ---------- */
.nav {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 13, 13, .97);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav.is-open { opacity: 1; pointer-events: auto; }

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 12px 20px;          /* área de toque generosa */
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 6px;
  width: 0; height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 40%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  /* 100svh = altura visível estável: não pula quando a barra
     de endereço do celular recolhe. 100vh fica de reserva. */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* imagem leve por padrão; telas maiores pedem versões maiores abaixo */
  background: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=800&q=70')
              center / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.85) 0%, rgba(13,13,13,.55) 45%, rgba(13,13,13,.95) 100%);
}
.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-hero);
  font-size: var(--fs-hero);
  font-weight: 400;  /* Saira Stencil One tem peso único */
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 30px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
  /* no celular as quebras fixas desequilibram o bloco: deixamos o
     navegador distribuir as linhas e ignoramos os <br> do HTML */
  text-wrap: balance;
}

/* palavra-chave em destaque vermelho — leve brilho para legibilidade sobre a foto */
.hero__title--accent {
  color: var(--accent);
  text-shadow: 0 2px 24px rgba(240, 41, 78, .45);
}
.hero__title br, .cta__title br { display: none; }

/* =========================================================
   SOBRE
   ========================================================= */
.about__grid { display: grid; gap: 36px; }

/* no celular a foto vem antes do texto: rosto primeiro, argumento depois */
.about__media { order: -1; display: flex; justify-content: center; }
.about__desc  { margin-bottom: 15px; }
.about__desc:last-of-type { margin-bottom: 28px; }

.features { display: grid; gap: 4px; }

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--tap);
  transition: transform .25s var(--ease);
}
@media (hover: hover) {
  .feature:hover { transform: translateX(6px); }
}

.feature__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--accent);
  border: 1px solid rgba(240, 41, 78, .35);
  border-radius: 6px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.feature__icon .icon { width: 19px; height: 19px; }

@media (hover: hover) {
  .feature:hover .feature__icon {
    background: rgba(240, 41, 78, .1);
    border-color: var(--accent);
  }
}
.feature__label { font-size: var(--fs-body); color: var(--text-body); }

/* ---------- Foto com moldura vermelha deslocada ---------- */
.about__frame {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.about__frame::before {
  content: '';
  position: absolute;
  /* deslocamento menor no celular para não empurrar a tela */
  inset: 12px -12px -12px 12px;
  border: 3px solid var(--accent);
  border-radius: 4px;
  z-index: 0;
  transition: inset .4s var(--ease);
}
@media (hover: hover) {
  .about__frame:hover::before { inset: 8px -8px -8px 8px; }
}

.about__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(.15) contrast(1.05);
}

/* =========================================================
   SERVIÇOS / PLANOS
   ========================================================= */
.services .container { display: grid; gap: 22px; }

.service {
  display: grid;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.service__media img {
  width: 100%;
  aspect-ratio: 4 / 5;        /* fotos em pé (retrato) */
  object-fit: cover;
  object-position: 50% 18%;   /* corte alto: mantém os rostos */
  filter: grayscale(.2);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
@media (hover: hover) {
  .service:hover .service__media img {
    transform: scale(1.06);
    filter: grayscale(0);
  }
}

.service__card { padding: 26px var(--gutter) 28px; }

.service__title {
  font-family: var(--font-heading);
  font-size: var(--fs-card);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 6px;
}

.service__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.price {
  font-family: var(--font-heading);
  font-size: var(--fs-price);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  font-variant-numeric: tabular-nums;  /* números não "tremem" ao animar */
}
.price__unit { font-size: .6875rem; color: var(--text-muted); }

.service__lead { margin-bottom: 14px; font-size: .875rem; }

.service__list { display: grid; gap: 10px; margin-bottom: 24px; }
.service__list li {
  position: relative;
  padding-left: 16px;
  font-size: .875rem;
  color: var(--text-body);
}
.service__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =========================================================
   CONSULTORIA ONLINE
   ========================================================= */
.consult { background: #101010; }   /* leve contraste com as vizinhas */

/* palavra em destaque, reaproveitada dentro da seção */
.consult .ac { color: var(--accent); }

.consult__head { margin-bottom: 32px; }
.eyebrow__icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }

.consult__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-wrap: balance;
}

.consult__grid { display: grid; gap: 26px; }

.consult__intro p { margin-bottom: 14px; }
.consult__intro p:last-child { margin-bottom: 0; }

/* o parágrafo que derruba a objeção ganha barra e fundo:
   é o argumento central da seção, não pode passar batido */
.consult__pivot {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(240, 41, 78, .07);
  color: var(--text);
}
.consult__pivot strong { color: var(--accent); font-weight: 600; }

/* ---------- Caixa "O que você recebe" ---------- */
.consult__box {
  padding: 26px var(--gutter);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.consult__box-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.consult__list { display: grid; gap: 13px; }

.consult__list li {
  display: grid;
  grid-template-columns: auto 1fr;   /* ícone fixo + texto que quebra alinhado */
  gap: 11px;
  align-items: start;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-body);
}
.consult__list .icon {
  width: 17px; height: 17px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.6;
}

/* ---------- Para quem é ---------- */
.consult__for {
  margin-top: 30px;
  padding: 28px var(--gutter);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.consult__for-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.consult__for-text {
  max-width: 54ch;
  margin: 0 auto 22px;
}

/* a síntese da seção: tratada como frase de impacto, na estêncil do hero */
.consult__punch {
  font-family: var(--font-hero);
  font-size: clamp(1.25rem, 5.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 26px;
  text-wrap: balance;
}

/* =========================================================
   ▸ 640px
   ========================================================= */
@media (min-width: 640px) {
  .consult__box { padding: 32px; }
  .consult__for { padding: 36px; }
}

/* =========================================================
   ▸ 900px — texto e caixa lado a lado
   ========================================================= */
@media (min-width: 900px) {
  .consult__head { margin-bottom: 46px; max-width: 46ch; }

  .consult__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }

  .consult__intro p { font-size: .9375rem; margin-bottom: 16px; }
  .consult__pivot  { padding: 18px 22px; }

  .consult__box { padding: clamp(28px, 3vw, 40px); }
  .consult__list li { font-size: .875rem; }

  .consult__for { margin-top: 44px; padding: 44px; }
}

/* =========================================================
   CONSULTORIA VIP — oferta premium
   Tratamento distinto das demais secoes: card com borda e
   brilho em accent, para ler como "topo de linha".
   ========================================================= */
.vip .ac { color: var(--accent); }

.vip__card {
  position: relative;
  padding: 30px var(--gutter) 32px;
  border: 1px solid rgba(240, 41, 78, .38);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(240, 41, 78, .12) 0%, rgba(240, 41, 78, 0) 60%),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.vip__head { text-align: center; margin-bottom: 28px; }

.vip__selo {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(240, 41, 78, .5);
  border-radius: var(--radius-pill);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.vip__titulo { margin-bottom: 8px; }

.vip__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.vip__lead { max-width: 60ch; margin-inline: auto; }

.vip__grid { display: grid; gap: 26px; }

.vip__sub {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.vip__lista { display: grid; gap: 14px; }
.vip__lista li {
  display: grid;
  grid-template-columns: auto 1fr;   /* icone fixo, texto quebra alinhado */
  gap: 11px;
  align-items: start;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-body);
}
.vip__lista .icon {
  width: 17px; height: 17px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.6;
}
.vip__lista strong { color: var(--text); font-weight: 600; }

/* ---------- bloco do preco ---------- */
.vip__oferta {
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  text-align: center;
}

.vip__valor {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 9vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.vip__periodo {
  font-size: .875rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.vip__resumo { font-size: .875rem; margin-bottom: 22px; }
/* no celular o botao ocupa a largura toda; com padding de 38px
   (herdado de .btn--primary) o rotulo quebrava em duas linhas */
.vip__btn { width: 100%; padding-inline: 18px; }
.vip__nota {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--text-muted);
}

/* ---------- diferencial ---------- */
.vip__diferencial {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.vip__diferencial p { margin-bottom: 12px; }
.vip__diferencial p:last-child { margin-bottom: 0; }

/* =========================================================
   ▸ 640px
   ========================================================= */
@media (min-width: 640px) {
  .vip__card { padding: 40px 34px; }
  .vip__oferta { padding: 30px; }
  .vip__btn { width: auto; padding-inline: 34px; }
}

/* =========================================================
   ▸ 900px — lista e preco lado a lado
   ========================================================= */
@media (min-width: 900px) {
  .vip__card { padding: clamp(40px, 5vw, 60px); }
  .vip__head { margin-bottom: 42px; }

  .vip__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(32px, 4vw, 52px);
    align-items: start;
  }

  .vip__lista li { font-size: .875rem; }
  .vip__oferta { position: sticky; top: 110px; }
  .vip__diferencial { margin-top: 42px; padding-top: 36px; }
}

/* =========================================================
   ANTES x DEPOIS — comparador deslizante
   ========================================================= */
.ba__head { margin-bottom: 30px; }
.ba__x { color: var(--accent); font-weight: 400; }
.ba__lead { font-size: .875rem; color: var(--text-muted); }

.ba__grid { display: grid; gap: 22px; }

.ba__item { margin: 0; }

.ba__frame {
  --pos: 50%;                 /* posição da divisória, controlada pelo JS */
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  /* impede o navegador de rolar a página ao arrastar na horizontal */
  touch-action: pan-y;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* A foto "antes" fica por cima e é RECORTADA, não redimensionada —
   por isso usamos clip-path em vez de largura: assim as duas imagens
   permanecem exatamente alinhadas em qualquer tamanho de tela. */
.ba__img--antes {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  filter: grayscale(1) contrast(.95) brightness(.85);
}

/* ---------- Etiquetas ---------- */
.ba__tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(13, 13, 13, .78);
  backdrop-filter: blur(4px);
  color: #fff;
  pointer-events: none;
}
.ba__tag--antes  { left: 12px; }
.ba__tag--depois { right: 12px; background: var(--accent); }

/* ---------- Controle ----------
   Um <input type="range"> invisível por cima do quadro. Ele já traz
   arrasto no toque, no mouse e navegação por teclado (setas) de graça,
   sem precisarmos escrever nada disso à mão. */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  /* touch-action NAO e herdado: sem esta linha o navegador trata o
     arrasto horizontal como gesto de pagina e o controle nunca recebe
     o toque. pan-y deixa a rolagem vertical com o navegador e entrega
     o movimento horizontal ao slider. */
  touch-action: pan-y;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 46px; height: 100%;
  cursor: ew-resize;
}
.ba__range::-moz-range-thumb {
  width: 46px; height: 100%;
  border: none; opacity: 0;
  cursor: ew-resize;
}

/* ---------- Divisória visível ---------- */
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, .55);
  pointer-events: none;   /* quem recebe o toque é o range, atrás dele */
}
.ba__handle .icon {
  width: 22px; height: 22px;
  padding: 7px;
  box-sizing: content-box;
  color: #0D0D0D;
  background: #fff;
  border-radius: 50%;
  stroke-width: 2.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}

/* foco por teclado precisa ser visível: o range é transparente, então
   o anel aparece na divisória (por isso o range vem antes dela no HTML) */
.ba__range:focus-visible + .ba__handle .icon {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ba__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}
.ba__caption strong { font-size: .9375rem; color: var(--text); }
.ba__caption small {
  font-size: var(--fs-tag);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials__grid { display: grid; gap: 18px; }


.quote {
  background: var(--surface);
  border-radius: 20px;
  padding: 26px var(--gutter);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) {
  .quote:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

.quote blockquote {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 22px;
}

.quote__author { display: flex; align-items: center; gap: 14px; }
/* Avatar de iniciais: evita usar rosto de outra pessoa ao lado do nome.
   Quando houver foto real do aluno (com autorização), troque o <span>
   por um <img> e acrescente object-fit: cover. */
.quote__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.quote__author strong { display: block; font-size: .875rem; color: var(--text); }
.quote__author small {
  font-size: var(--fs-tag);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   CHAMADA FINAL
   ========================================================= */
.cta {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=800&q=70')
              center / cover no-repeat;
  /* NADA de background-attachment: fixed aqui — no iOS ele trava,
     pisca e estica a imagem. O efeito parallax entra só no desktop. */
  background-attachment: scroll;
  filter: grayscale(1) contrast(1.05);
}
.cta__overlay { position: absolute; inset: 0; background: rgba(13, 13, 13, .8); }
.cta .container { position: relative; z-index: 2; }

.cta__title {
  font-family: var(--font-display);
  font-size: var(--fs-cta);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { padding-block: clamp(48px, 10vw, 80px) 28px; }

.footer__grid { display: grid; gap: 30px; }

.footer__title {
  position: relative;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.footer__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--accent);
}

.footer__info { font-size: .9375rem; color: var(--text-body); }
/* telefone e e-mail são links de toque no celular */
a.footer__info { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (hover: hover) { a.footer__info:hover { color: var(--accent); } }

/* ---------- Redes sociais do rodapé ----------
   Tratamento próprio: chips preenchidos (não só contorno) para lerem
   como um conjunto coeso e alinhado, menores que os alvos de toque
   gerais. No celular ficam confortáveis; no desktop encolhem. */
.socials--footer { gap: 10px; margin-top: 4px; }

.socials--footer .social,
.socials--about .social {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-body);
}
.socials--footer .icon,
.socials--about .icon { width: 18px; height: 18px; }

/* variação da seção Sobre: mesmo chip do rodapé, com respiro próprio */
.socials--about { gap: 10px; margin-bottom: 30px; }

@media (hover: hover) {
  .socials--footer .social:hover,
  .socials--about .social:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
  }
}

.footer__copy {
  margin-top: 42px;
  text-align: center;
  font-size: .625rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* =========================================================
   BARRA FIXA DE CTA — exclusiva do celular
   Mantém a ação principal sempre ao alcance do polegar.
   ========================================================= */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter);
  /* respeita a faixa inferior dos iPhones com notch */
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 18, 18, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }

.mobile-cta__price { flex: 1 1 auto; line-height: 1.25; }
.mobile-cta__price strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--accent);
}
.mobile-cta__price small { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.mobile-cta .btn { flex: 0 0 auto; padding-inline: 26px; }

/* =========================================================
   VOLTAR AO TOPO — só no desktop; no celular a barra manda
   ========================================================= */
.to-top { display: none; }

/* =========================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* =========================================================
   ▸ 640px — tablets pequenos
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }

  /* a partir daqui cabe a quebra de linha desenhada no HTML */
  .hero__title, .cta__title { text-wrap: initial; }
  .hero__title br, .cta__title br { display: inline; }

  .btn--ghost { width: auto; }
  .about__frame { max-width: 360px; }
  .service__card { padding: 34px 32px; }
  .quote { padding: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

/* =========================================================
   ▸ 900px — a partir daqui é desktop:
     menu horizontal, grids de 2 colunas, barra fixa some
   ========================================================= */
@media (min-width: 900px) {
  :root { --gutter: 24px; }

  body { padding-bottom: 0; }

  .header { padding-block: 22px; }
  .header.is-scrolled { padding-block: 12px; }

  .logo__name { font-size: 1rem; letter-spacing: .14em; }
  .logo__role { font-size: .5625rem; letter-spacing: .22em; }

  .socials--header { display: flex; gap: 8px; }
  /* no desktop os chips voltam ao tamanho compacto da referência */
  .socials--header .social { width: 32px; height: 32px; }
  .socials--header .icon { width: 16px; height: 16px; }

  .nav-toggle { display: none; }

  /* menu deixa de ser overlay e vira barra */
  .nav {
    position: static;
    display: block;
    background: none;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list { flex-direction: row; gap: 30px; }
  .nav__link {
    padding: 0;
    font-size: var(--fs-nav);
  }
  .nav__link::after { left: 0; bottom: -6px; transform: none; }
  .nav__link.is-active::after { width: 100%; }
  @media (hover: hover) {
    .nav__link:hover { color: var(--text); }
    .nav__link:hover::after { width: 100%; }
  }

  .hero::before {
    background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1800&q=80');
  }
  /* trava as 3 linhas do hero no desktop: cada linha (separada por <br>)
     nunca quebra internamente, então são sempre exatamente 3 linhas */
  .hero__title { margin-bottom: 38px; letter-spacing: .04em; white-space: nowrap; }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
  }
  .about__media { order: 0; }
  .about__desc  { max-width: 44ch; margin-bottom: 16px; }
  .about__desc:last-of-type { margin-bottom: 32px; }
  .features { gap: 18px; }
  .feature { min-height: 0; }
  .about__frame::before { inset: 18px -18px -18px 18px; }

  .services .container { gap: 26px; }
  .service { grid-template-columns: 1fr 1fr; }
  .service--reverse .service__media { order: 2; }
  .service__media img { height: 420px; min-height: 0; aspect-ratio: auto; }
  .service__card { padding: clamp(28px, 4vw, 52px); align-self: center; }
  .service__list li { font-size: .8125rem; }

  .ba__head { margin-bottom: 44px; max-width: 60ch; }
  /* tres transformacoes lado a lado */
  .ba__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .ba__frame { aspect-ratio: 3 / 4; }

  .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .quote { border-radius: 22px; padding: clamp(26px, 3.5vw, 40px); }
  .quote blockquote { font-size: .875rem; }

  .cta { min-height: 380px; }
  /* o parallax de fundo só aqui, onde é estável */
  .cta::before { background-attachment: fixed; }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .socials--footer .social,
  .socials--about .social { width: 38px; height: 38px; border-radius: 9px; }
  .socials--footer .icon,
  .socials--about .icon { width: 16px; height: 16px; }
  .footer__info { font-size: .875rem; }
  a.footer__info { min-height: 0; }
  .footer__copy { margin-top: 56px; }

  /* barra fixa sai de cena; volta o botão de topo */
  .mobile-cta { display: none; }

  .to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: var(--tap); height: var(--tap);
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
  }
  .to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .to-top:hover { background: var(--accent-dark); }
}

/* =========================================================
   ▸ Telas baixas e deitadas (celular na horizontal)
   ========================================================= */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 520px; padding-block: 90px 40px; }
}

/* =========================================================
   ▸ Acessibilidade: respeita quem pediu menos movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-cta { transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
