/* =========================================================
   Bertocco — Fisioterapia & Performance
   Estilo "energético esportivo", mobile-first, escrito à mão.
   ========================================================= */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #141414;
  --ink:       #f4f4f0;
  --ink-dim:   #9a9a93;
  --volt:      #d7ff3e;   /* cor de destaque */
  --volt-deep: #b6e000;
  --line:      rgba(255,255,255,.10);

  --font-display: "Anton", system-ui, sans-serif;
  --font-text:    "Archivo", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --maxw: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 800; }

/* textura sutil de fundo (grão), feita só com CSS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(215,255,62,.10), transparent 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(215,255,62,.06), transparent 55%);
}

/* ---------- barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--volt);
  z-index: 100;
  box-shadow: 0 0 12px rgba(215,255,62,.6);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  backdrop-filter: blur(10px);
  background: rgba(10,10,10,.55);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  background: var(--volt);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 1.25rem;
  border-radius: 7px;
  transform: rotate(-6deg);
}
.brand__name {
  font-family: var(--font-display);
  letter-spacing: .08em;
  font-size: 1.05rem;
}

/* ---------- botões ---------- */
.btn {
  --h: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--solid {
  background: var(--volt);
  color: #0a0a0a;
  box-shadow: 0 8px 30px -8px rgba(215,255,62,.55);
}
.btn--solid:hover { background: var(--volt-deep); transform: translateY(-2px); }
.btn--solid svg { transition: transform .18s ease; }
.btn--solid:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); }

.btn--sm  { --h: 2.5rem; padding: 0 1.1rem; font-size: .9rem; }
.btn--lg  { --h: 3.75rem; padding: 0 2rem; font-size: 1.1rem; }

.header__nav { display: flex; align-items: center; gap: 1rem; }
.header__nav > a:not(.btn) {
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink-dim);
}
.header__nav > a:not(.btn):hover { color: var(--volt); }
.header__cta { flex: none; }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: .55rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.4rem);
  letter-spacing: .12em;
  color: var(--ink-dim);
  animation: marquee 18s linear infinite;
}
.marquee__track .dot { color: var(--volt); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;  /* foto em cima no celular */
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 3rem);
  padding: clamp(2rem, 7vw, 4rem) var(--pad);
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- foto do hero (pôster) ---- */
.hero__media {
  position: relative;
  align-self: center;
  width: min(80%, 330px);
  isolation: isolate;
}
/* bloco sólido volt deslocado atrás (efeito camada) */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 14px -16px -16px 14px;
  border-radius: 20px;
  background: var(--volt);
  z-index: -2;
}
/* textura de pontos ao redor */
.hero__media::after {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -3;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.2px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  opacity: .55;
}
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #0a0a0a;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.9);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  filter: saturate(1.06) contrast(1.04);
}
/* selo discreto no rodapé da foto */
.hero__badge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.85));
}
/* cantos tipo mira */
.hero__corner {
  position: absolute;
  width: 30px; height: 30px;
  z-index: 1;
}
.hero__corner--tl {
  top: -8px; left: -8px;
  border-top: 3px solid var(--volt);
  border-left: 3px solid var(--volt);
  border-top-left-radius: 8px;
}
.hero__corner--br {
  right: -11px; bottom: -11px;
  border-bottom: 3px solid #0a0a0a;
  border-right: 3px solid #0a0a0a;
  border-bottom-right-radius: 8px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--ink-dim);
}
.pulse {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 0 rgba(215,255,62,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 .6rem rgba(215,255,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(215,255,62,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 18vw, 9rem);
  line-height: .88;
  letter-spacing: -.01em;
  margin: .2rem 0;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--volt);
  position: relative;
}
.hero__title--accent::after {
  content: "JOGO";          /* sombra preenchida atrás do contorno */
  position: absolute;
  inset: 0;
  color: var(--volt);
  -webkit-text-stroke: 0;
  transform: translate(6px, 6px);
  opacity: .14;
  z-index: -1;
}

.hero__lede {
  max-width: 34ch;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  color: var(--ink-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}
.hero__actions .btn { flex: 1 1 auto; min-width: 9rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1;
  color: var(--volt);
}
.hero__stats span { font-size: .85rem; color: var(--ink-dim); }

/* indicador de scroll */
.hero__scroll {
  align-self: center;
  margin-bottom: 1.5rem;
  display: grid;
  justify-items: center;
}

/* --- mouse (desktop) --- */
.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid var(--line);
  border-radius: 999px;
  display: none;          /* escondido no mobile */
  justify-items: center;
  padding-top: 7px;
}
.scroll-mouse > span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--volt);
  animation: scrolly 1.6s ease-in-out infinite;
}
@keyframes scrolly {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(8px); opacity: .3; }
}

/* --- mão arrastando (mobile) --- */
.scroll-swipe {
  display: grid;
  justify-items: center;
  gap: .35rem;
}
.scroll-hand {
  width: 30px;
  height: 40px;
  overflow: visible;
}
.scroll-hand__h {
  fill: var(--volt);
  animation: handbob 1.7s ease-in-out infinite;
}
.scroll-hand__h path { fill: var(--volt); }
.scroll-hand__motion path {
  fill: none;
  stroke: var(--ink-dim);
  stroke-width: 2;
  stroke-linecap: round;
}
.scroll-hand__motion { animation: motionpulse 1.7s ease-in-out infinite; }
@keyframes handbob {
  0%, 100% { transform: translateY(4px); }
  50%      { transform: translateY(-3px); }
}
@keyframes motionpulse {
  0%, 100% { opacity: .2; }
  50%      { opacity: 1; }
}
.scroll-swipe em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- portfólio ---------- */
.work {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 10vw, 6rem) var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
}
.work__head { display: grid; gap: .75rem; margin-bottom: 1.75rem; }
.work__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 4rem);
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
}
.work__title span { color: var(--volt); }
.work__lede { color: var(--ink-dim); max-width: 46ch; margin: 0; }

.work__tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work__tabs::-webkit-scrollbar { display: none; }
.work__tab {
  flex: none;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-text);
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}
.work__tab:hover { color: var(--ink); border-color: var(--ink-dim); }
.work__tab.is-active {
  background: var(--volt);
  color: #0a0a0a;
  border-color: var(--volt);
}
.work__desc { color: var(--ink-dim); margin: 0 0 1.5rem; font-size: .95rem; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.work__item {
  position: relative;
  padding: 0;
  border: none;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  animation: pop .45s ease backwards;
  animation-delay: calc(var(--i) * .05s);
}
@keyframes pop {
  from { opacity: 0; transform: scale(.94); }
}
.work__item img,
.work__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.work__item:hover img,
.work__item:hover video { transform: scale(1.06); }
.work__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #0a0a0a;
  pointer-events: none;
}
.work__play::before {
  content: "";
  position: absolute;
  width: 3rem; height: 3rem;
  background: var(--volt);
  border-radius: 50%;
  box-shadow: 0 8px 24px -6px rgba(215,255,62,.6);
  z-index: -1;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(5,5,5,.94);
  backdrop-filter: blur(8px);
  padding: 1rem;
}
.lightbox.is-open { display: grid; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lb__stage {
  max-width: min(92vw, 900px);
  max-height: 82vh;
  display: grid;
  place-items: center;
  transition: transform .25s ease, opacity .25s ease;
  touch-action: pan-y;
}
.lb__stage img,
.lb__stage video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  display: block;
}
.lb__close, .lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background .18s ease, color .18s ease;
}
.lb__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.lb__prev { left: .75rem; }
.lb__next { right: .75rem; }
.lb__close:hover, .lb__nav:hover { background: var(--volt); color: #0a0a0a; }
.lb__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  color: var(--ink-dim);
  letter-spacing: .05em;
}

/* em telas de toque: sem setas, navega deslizando o dedo */
@media (hover: none) and (pointer: coarse) {
  .lb__nav { display: none !important; }
  .lb__counter::after {
    content: " · deslize";
    opacity: .7;
  }
}

/* ---------- feedbacks ---------- */
.fb {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 10vw, 6rem) 0;
  border-top: 1px solid var(--line);
}
.fb__head {
  display: grid;
  gap: .75rem;
  max-width: var(--maxw);
  margin: 0 auto 1.75rem;
  padding-inline: var(--pad);
}

/* slider: um por vez */
.fb__slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.fb__track::-webkit-scrollbar { display: none; }
.fb__card {
  flex: 0 0 100%;          /* um slide ocupa a largura toda */
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: .5rem var(--pad);
}
.fb__card img {
  width: auto;
  max-width: min(86vw, 300px);
  max-height: 68vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #000;
  cursor: zoom-in;
  display: block;
}

/* setas (escondidas no toque) */
.fb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20,20,20,.85);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.fb__arrow:hover { background: var(--volt); color: #0a0a0a; }
.fb__arrow--prev { left: clamp(.5rem, 3vw, 2rem); }
.fb__arrow--next { right: clamp(.5rem, 3vw, 2rem); }

/* bolinhas */
.fb__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  padding-inline: var(--pad);
}
.fb__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.fb__dot.is-active {
  background: var(--volt);
  transform: scale(1.4);
}

@media (hover: none) and (pointer: coarse) {
  .fb__arrow { display: none; }      /* no celular: só desliza */
}

/* ---------- CTA / contato ---------- */
.cta {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vw, 7rem) var(--pad);
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(215,255,62,.04)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta__inner { max-width: 640px; margin-inline: auto; display: grid; gap: 1.25rem; justify-items: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
}
.cta__title span { color: var(--volt); }
.cta__text { color: var(--ink-dim); font-size: 1.1rem; max-width: 32ch; margin: 0; }
.cta__small { font-size: .8rem; color: var(--ink-dim); margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  font-size: .85rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--volt); }

/* ---------- animação de reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__stats { gap: 1rem 3.5rem; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .hero__text { flex: 1 1 56%; }
  .hero__media {
    flex: 0 0 38%;
    align-self: center;
    width: auto;
    max-width: 360px;
  }

  .work__grid { grid-template-columns: repeat(4, 1fr); gap: .85rem; }

  /* troca o indicador de scroll: mouse no desktop, mão some */
  .scroll-mouse  { display: grid; }
  .scroll-swipe  { display: none; }
}
