/* =========================================================
   Vitruz Academy Performance · Landing page
   Layout: seções escuras (night/ink) alternadas com seções
   "gi" claras; faixa com ponteira como motivo; cantos diagonais.
   Tokens espelham o Design System "Vitruz".
   ========================================================= */

:root {
  /* Cor */
  --vitruz-red: #a82f27;
  --signal-red: #ce251e;
  --ember: #ff958b;
  --ink: #0c0c0c;
  --night: #262422;
  --slate: #45413e;
  --steel: #c1c1bf;
  --mist: #9a9aa6;
  --gi-white: #f4f3f0;
  --gi-shadow: #e3e1dc;
  --graphite: #55555f;
  --whatsapp: #25d366;
  --whatsapp-ink: #073b1e;

  /* Tipografia */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Espaço */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-16: 64px;
  --space-26: 104px;

  /* Forma */
  --radius-sm: 2px;
  --header-h: 64px;
  --wrap: 1200px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--gi-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-stretch: 112%; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow--dark { color: var(--vitruz-red); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--steel); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--vitruz-red); color: var(--gi-white); }
.btn--primary:hover { background: var(--signal-red); }
.btn--ghost { border-color: var(--steel); color: var(--gi-white); }
.btn--ghost:hover { background: var(--gi-white); color: var(--ink); }
.btn--light { background: var(--gi-white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--gi-white); }
.btn--small { padding: 9px 14px; font-size: 14px; }

/* ---------- Faixa de progresso (topo) ---------- */
.belt-progress {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: 5px;
  margin-top: env(safe-area-inset-top, 0px);
  background: var(--slate);
}
.belt-progress__fill {
  position: relative; display: block; height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--gi-white);
}
.belt-progress__fill i {
  position: absolute; right: 0; top: 0; height: 100%; width: 28px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, var(--gi-white) 4px 6px) 6px 0 / 18px 100% no-repeat,
    var(--signal-red);
}

/* ---------- Cabeçalho ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 10;
  height: env(safe-area-inset-top, 0px); background: var(--ink);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: .06em; }
.site-nav { display: none; gap: var(--space-6); }
.site-nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--steel); padding-block: 6px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gi-white); border-bottom-color: var(--signal-red); }
@media (min-width: 860px) { .site-nav { display: flex; } }

/* ---------- Cantos diagonais (da arte da grade) ---------- */
.corner { position: absolute; width: clamp(80px, 12vw, 180px); aspect-ratio: 1 / 1.6; background: var(--signal-red); pointer-events: none; z-index: 0; }
.corner--tl { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner--br { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- Parallax ---------- */
[data-parallax] { will-change: transform; }
.parallax-frame { position: relative; overflow: hidden; }
.parallax-frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }

/* ---------- Moldura das fotos ----------
   A foto fica DENTRO da moldura: linha de 2px com respiro (passe-partout)
   e a ponteira da faixa sobre a linha de baixo, no canto direito.
   Variáveis por contexto: --frame-gap, --frame-line. */
.frame { --frame-gap: 7px; --frame-line: rgba(244,243,240,.38); position: relative; isolation: isolate; padding: var(--frame-gap); }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 2px solid var(--frame-line);
  transition: border-color .3s ease;
}
.frame::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  right: calc(var(--frame-gap) + 8px); bottom: 0;
  width: 64px; height: 12px; transform: translateY(50%);
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, var(--gi-white) 6px 9px) 12px 0 / 33px 100% no-repeat,
    var(--signal-red);
}
.frame--sm { --frame-gap: 4px; }
.frame--sm::after { width: 40px; height: 8px; background:
    repeating-linear-gradient(90deg, transparent 0 4px, var(--gi-white) 4px 6px) 8px 0 / 22px 100% no-repeat,
    var(--signal-red); }
/* Fade na base da foto para fundir com o fundo escuro */
.frame--fade .parallax-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%; pointer-events: none;
  background: linear-gradient(to top, rgba(12,12,12,.65), transparent);
}
.section--gi .frame { --frame-line: rgba(12,12,12,.28); }
/* Nos cards da equipe a ponteira só aparece no hover, para não repetir 6 vezes */
.frame--sm::after { opacity: 0; transition: opacity .3s ease; }
.coach:hover .frame--sm::after { opacity: 1; }
.coach:hover .frame::before, .founder:hover .frame::before { border-color: var(--signal-red); }
@media (max-width: 640px) { .frame { --frame-gap: 5px; } .frame--sm { --frame-gap: 3px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); padding-block: var(--space-16) var(--space-16); }
.hero__word {
  position: absolute; left: 0; right: 0; bottom: -2.5vw; z-index: 0;
  text-align: center;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: min(17vw, 380px); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,243,240,.14);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--space-10); align-items: center; }
.hero__copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero__title { font-weight: 800; font-size: clamp(44px, 7.4vw, 96px); line-height: .92; letter-spacing: -.02em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: var(--space-2); }
.hero__media { margin: 0; position: relative; }
.hero__media .parallax-frame { aspect-ratio: 3 / 4; max-height: 680px; }
.hero__media figcaption {
  position: absolute; left: var(--frame-gap, 0); bottom: var(--frame-gap, 0); z-index: 1; padding: 8px 14px;
  background: var(--vitruz-red); color: var(--gi-white);
  font-family: var(--font-label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px;
}
@media (max-width: 899px) {
  .hero { padding-top: 120px; }
  .corner--tl { width: 64px; }
}
@media (min-width: 900px) {
  .hero { padding-block: var(--space-26) var(--space-26); }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--space-16); }
}


/* ---------- Seções ---------- */
.section { position: relative; overflow: hidden; padding-block: var(--space-16); }
.section > .wrap { position: relative; z-index: 1; }
.section--night { background: var(--night); }
.section--gi { background: var(--gi-white); color: var(--ink); }
.section--gi .lead { color: var(--graphite); }
.section__head { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); }
.section__title { font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: .96; letter-spacing: -.01em; }
@media (min-width: 900px) { .section { padding-block: var(--space-26); } }

/* ---------- Turmas ---------- */
.programs { display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--night); }
.program {
  display: grid; align-content: start; gap: 10px;
  padding: var(--space-6);
  background: var(--slate);
  transition: background-color .25s ease;
}
.program:hover { background: #504b47; }
.program__when { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.program h3 { font-size: 26px; font-weight: 800; line-height: 1.05; }
.program p:last-child { color: var(--steel); font-size: 16px; }
@media (min-width: 640px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .programs { grid-template-columns: repeat(3, 1fr); } .program { padding: var(--space-10) var(--space-6); } }

/* ---------- Conquistas (banda parallax) ---------- */
.podium { position: relative; overflow: hidden; background: var(--ink); padding-block: var(--space-16); }
.podium__bg { position: absolute; inset: 0; overflow: hidden; }
.podium__bg img { width: 100%; height: 130%; margin-top: -15%; object-fit: cover; object-position: center 30%; opacity: .32; filter: grayscale(.3); }
.podium__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(12,12,12,.55) 60%, rgba(12,12,12,.3)); }
.podium__inner { position: relative; z-index: 1; display: grid; gap: var(--space-10); align-items: center; }
.podium__copy { display: grid; gap: var(--space-4); min-width: 0; }
.podium__list { display: grid; gap: 2px; max-width: 460px; }
.podium__list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 14px 18px; background: rgba(38,36,34,.88); border-left: 6px solid var(--signal-red); }
.podium__list span { font-family: var(--font-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.podium__list b { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--ember); }
.podium__card { margin: 0; max-width: 360px; justify-self: start; position: relative; }
.podium__card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 40%; }
.podium__card figcaption { position: absolute; left: var(--frame-gap, 0); bottom: var(--frame-gap, 0); padding: 8px 14px; background: var(--vitruz-red); color: var(--gi-white); font-family: var(--font-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
@media (min-width: 900px) {
  .podium { padding-block: 140px; }
  .podium__inner { grid-template-columns: 1.2fr .8fr; grid-template-areas: "copy card" "list card"; align-content: center; column-gap: var(--space-16); row-gap: var(--space-10); }
  .podium__copy { grid-area: copy; align-self: end; }
  .podium__list { grid-area: list; align-self: start; }
  .podium__card { grid-area: card; justify-self: end; }
}

/* ---------- Equipe ---------- */
.founder { display: grid; gap: var(--space-6); margin-bottom: var(--space-16); align-items: center; }
.founder__photo { aspect-ratio: 4 / 5; max-height: 620px; }
.founder__copy { display: grid; gap: var(--space-4); min-width: 0; }
.founder__copy h3 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: .95; }
.founder__copy p:not(.role) { color: var(--graphite); font-size: 18px; max-width: 52ch; }
.role { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--vitruz-red); }
@media (min-width: 900px) { .founder { grid-template-columns: .9fr 1.1fr; gap: var(--space-16); } }

.team { display: grid; gap: var(--space-10) var(--space-6); grid-template-columns: repeat(2, 1fr); }
.coach { display: grid; gap: 6px; align-content: start; min-width: 0; }
.coach img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .35s ease; background: var(--gi-shadow); }
.coach .frame { margin-bottom: 16px; }
.coach:hover img { filter: none; }
.coach h3 { font-size: 21px; font-weight: 700; line-height: 1.1; }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (hover: none) { .coach img { filter: none; } }

/* ---------- Horários ---------- */
.schedule__tabs { display: flex; gap: 2px; margin-bottom: var(--space-4); overflow-x: auto; }
.schedule__tab {
  flex: 1; min-width: 56px; padding: 12px 8px; border: 0; cursor: pointer;
  background: var(--slate); color: var(--steel);
  font-family: var(--font-label); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
}
.schedule__tab[aria-selected="true"] { background: var(--vitruz-red); color: var(--gi-white); }
.schedule__days { display: grid; gap: 2px; }
.day { display: none; gap: 2px; align-content: start; }
.day.is-active { display: grid; }
.day__name { display: none; }
.day { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); padding: 14px 16px; background: var(--slate); }
.slot__time { font-family: var(--font-label); font-weight: 600; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gi-white); }
.slot__body { display: grid; gap: 10px; min-width: 0; }
.slot__class { display: grid; gap: 2px; }
.slot__name { font-family: var(--font-label); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.slot__meta { font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }

@media (min-width: 900px) {
  .schedule__tabs { display: none; }
  .schedule__days { grid-template-columns: repeat(5, 1fr); }
  .day { display: grid; }
  .day__name {
    display: block; padding: 12px 14px; background: var(--ink);
    font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  }
  .day.is-today .day__name { background: var(--vitruz-red); }
  .day.is-today .day__name::after { content: " · hoje"; font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: .14em; }
  .slot { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; }
  .slot__time { font-size: 20px; }
  .slot__name { font-size: 15px; }
  .slot__meta { font-size: 12px; }
}

/* ---------- Kimura ---------- */
.kimura { background: #ffffff; }
.kimura__inner { display: grid; gap: var(--space-10); align-items: center; }
.kimura__inner > div { display: grid; gap: var(--space-4); min-width: 0; }
.kimura__logo { width: min(100%, 300px); justify-self: center; }
@media (min-width: 900px) { .kimura__logo { width: min(100%, 440px); } }
@media (min-width: 900px) { .kimura__inner { grid-template-columns: .9fr 1.1fr; gap: var(--space-16); } }

/* ---------- Localização ---------- */
.location__inner { display: grid; gap: var(--space-10); align-items: center; }
.location__copy { display: grid; gap: var(--space-6); justify-items: start; min-width: 0; }
.location__address { font-style: normal; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: var(--gi-white); border-left: 6px solid var(--signal-red); padding-left: var(--space-4); }
.location__map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--slate); overflow: hidden; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.location__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-2);
  background:
    linear-gradient(var(--slate) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--slate) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ink);
  color: var(--mist); font-family: var(--font-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.location__placeholder svg { width: 48px; height: 48px; color: var(--signal-red); }
@media (min-width: 900px) { .location__inner { grid-template-columns: .9fr 1.1fr; gap: var(--space-16); } }
.site-footer__brand a { color: var(--steel); text-decoration: none; }
.site-footer__brand a:hover { color: var(--gi-white); }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; background: var(--vitruz-red); padding-block: var(--space-16); }
.cta__bg { position: absolute; inset: 0 0 0 auto; width: min(55%, 640px); overflow: hidden; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.cta__bg img { width: 100%; height: 125%; margin-top: -12%; object-fit: cover; object-position: center 20%; filter: grayscale(1); mix-blend-mode: multiply; opacity: .55; }
.cta__inner { position: relative; z-index: 1; display: grid; gap: var(--space-6); justify-items: start; }
.cta__title { font-weight: 900; font-size: clamp(40px, 6.6vw, 84px); line-height: .92; max-width: 11ch; }
.cta .lead { color: var(--gi-white); }
.cta__phone { font-family: var(--font-label); font-weight: 600; font-size: 18px; letter-spacing: .12em; user-select: all; }
@media (max-width: 720px) { .cta__bg { width: 100%; clip-path: none; opacity: .5; } }
@media (min-width: 900px) { .cta { padding-block: 120px; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--steel); padding-block: var(--space-16) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.site-footer__grid { display: grid; gap: var(--space-10); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__brand { display: flex; gap: var(--space-4); align-items: center; }
.site-footer__brand img { width: 72px; height: 72px; }
.site-footer__brand strong { color: var(--gi-white); }
.site-footer__nav { display: grid; gap: 10px; align-content: start; }
.site-footer__nav a { text-decoration: none; font-family: var(--font-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__nav a:hover { color: var(--gi-white); }
.site-footer__kimura { display: grid; gap: 10px; justify-items: start; }
.site-footer__kimura img { width: 150px; background: #fff; padding: 10px 14px; }
.site-footer__kimura p { font-family: var(--font-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__bottom { display: grid; justify-items: center; gap: var(--space-2); padding-top: var(--space-6); color: var(--mist); text-align: center; }
.site-footer__credit { order: -1; color: var(--steel); }
@media (min-width: 860px) {
  .site-footer__bottom { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-footer__bottom > p:first-child { justify-self: start; }
  .site-footer__credit { order: 0; }
}
.site-footer__bottom a { color: var(--gi-white); font-weight: 600; text-decoration-color: var(--signal-red); text-underline-offset: 3px; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr auto; } }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; z-index: 70;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--whatsapp); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}
