/* ==========================================================================
   MARCA — Vaapty Franco da Rocha
   Layout do linkbio da Vaapty Itu (ORIGINAIS/itu/css/style.css) sobre o núcleo:
   hero com texto + formulário de avaliação (js/avaliacao.js) + diferenciais,
   cards em arte (2 contatos + localização centralizada) e CTA.
   ========================================================================== */

/* ============================================================
   HERO — texto + formulário, fundo escuro com brilho laranja
   ============================================================ */
.hero {
  display: block;                 /* o núcleo centraliza em coluna; aqui é grade */
  text-align: left;
  padding: clamp(40px, 7vw, 80px) 20px clamp(48px, 7vw, 80px);
  color: #fff;
}

.hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "content" "form" "perks";
  gap: 28px;
}
.hero__content { grid-area: content; }
.lead          { grid-area: form; }
.perks         { grid-area: perks; }

.hero__logo {
  width: 210px;
  max-width: 70%;
  margin: 0 0 22px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
}
.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ff2e79 0%, #ff6a3d 100%);
  box-shadow: 0 0 0 4px rgba(255,46,121,.22);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,46,121,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(255,46,121,.08); }
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.04;
  letter-spacing: -2px;
}
.hero__title span {
  background: linear-gradient(90deg, #ff2e79 0%, #ff6a3d 100%);   /* o degradê do "Contato" nos cards */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin-top: 20px;
  max-width: 560px;
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(.98rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

/* ===== Formulário ===== */
.lead {
  background: #fff;
  color: var(--texto);
  border-radius: var(--raio);
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 30px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.lead__title {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.8px;
  line-height: 1.2;
}
.lead__hint {
  margin: 6px 0 18px;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texto-suave);
}
.lead__field { display: block; margin-bottom: 14px; }
.lead__field span {
  display: block;
  margin-bottom: 7px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0;
}
.lead__field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  font: 400 16px/1 var(--fonte-corpo);   /* 16px evita zoom no iOS */
  letter-spacing: 0;
  color: var(--texto);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead__field input::placeholder { color: #a9a3a8; }
.lead__field input:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 4px rgba(255,46,121,.15);
}
.lead__field input[aria-invalid="true"] { border-color: #d93025; }
.lead__error {
  margin: -2px 0 12px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #d93025;
}
.lead__btn {
  width: 100%;
  margin-top: 6px;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-rodape);
  color: #fff;
  font: 600 1rem/1.2 var(--fonte-corpo);
  letter-spacing: -.5px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255,46,121,.32);
  transition: transform .3s cubic-bezier(.22,1,.36,1),
              box-shadow .3s cubic-bezier(.22,1,.36,1),
              filter .3s ease;
}
.lead__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255,46,121,.42);
  filter: brightness(1.05);
}
.lead__btn:active { transform: translateY(0); }
.lead__btn:focus-visible { outline: 3px solid rgba(255,46,121,.45); outline-offset: 3px; }
.lead__note {
  margin-top: 14px;
  text-align: center;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--texto-suave);
}

/* ===== Diferenciais ===== */
.perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.perk {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.perk strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.2px;
}
.perk span {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  color: rgba(255,255,255,.75);
}

/* celular e tablet: texto centralizado acima do formulário */
@media (max-width: 959px) {
  .hero__content { text-align: center; }
  .hero__logo { margin-left: auto; margin-right: auto; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .perks { width: 100%; max-width: 480px; justify-self: center; }
}

/* desktop: texto à esquerda, formulário à direita */
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    grid-template-areas:
      "content form"
      "perks   form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 30px;
    align-items: center;
  }
  .hero__content { align-self: end; }
  .perks { align-self: start; }
  .lead { justify-self: end; }
}

.lead.reveal  { transition-delay: .12s; }
.perks.reveal { transition-delay: .22s; }

/* ============================================================
   CARDS — abaixo da hero (não sobem para dentro dela, como em Itu)
   ============================================================ */
.cards { margin-top: 40px; }

/* card sozinho na última linha (3º card): ocupa as 2 colunas e centraliza,
   mantendo a mesma largura dos demais */
.cards .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 10px);
  justify-self: center;
}

/* ============================================================
   COMO FUNCIONA — da versão nova da Vaapty Itu (APENAS REF.zip)
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(46,15,43,.08);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--texto);
}
.section__title {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.section__title span {
  background: linear-gradient(90deg, #ff2e79 0%, #ff6a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__text {
  margin-top: 12px;
  max-width: 620px;
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  color: #5b5560;
}
.section__note {
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--texto-suave);
}

.steps { padding: 56px 20px 0; }
.steps__list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.steps__list.reveal { transition-delay: .12s; }
.step {
  counter-increment: step;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(46,15,43,.08);
  box-shadow: 0 10px 24px rgba(46,15,43,.06);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--grad-rodape);
  color: #fff;
  font-size: .9rem;
  letter-spacing: 0;
}
.step strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.3px;
}
.step span {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: #5b5560;
}

/* ============================================================
   GALERIA DE CLIENTES — igual à da versão nova da Vaapty Itu.
   Todos os itens têm a mesma altura (--gal-h) e a largura sai da
   proporção real de cada arquivo (--ar, no HTML). A faixa ocupa a
   tela inteira, alinhada à coluna dos cards. JS: js/galeria.js
   ============================================================ */
.gallery {
  --vw: calc(100vw - var(--sbw, 0px));   /* largura útil da tela, sem a barra de rolagem (--sbw vem do JS) */
  --gal-h: clamp(240px, 68vw, 420px);
  --gal-gutter: max(20px, calc((var(--vw) - var(--maxw)) / 2 + 20px));
  padding-top: 56px;
}
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 18px;
}
.gallery__title {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.gallery__title span {
  background: linear-gradient(90deg, #ff2e79 0%, #ff6a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gallery__hint {
  margin-top: 8px;
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texto-suave);
}
.gallery__hint--mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery__hint--touch { display: none; }
  .gallery__hint--mouse { display: inline; }
}

.gallery__nav { display: flex; gap: 10px; flex-shrink: 0; }
.gallery__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(46,15,43,.1);
  background: #fff;
  color: var(--texto);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(46,15,43,.08);
  transition: transform .3s cubic-bezier(.22,1,.36,1),
              background .3s ease, color .3s ease, opacity .3s ease;
}
.gallery__arrow svg,
.lightbox__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery__arrow:hover:not(:disabled) {
  background: var(--grad-rodape);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.gallery__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.gallery__arrow:focus-visible { outline: 3px solid rgba(255,46,121,.45); outline-offset: 3px; }

/* faixa rolável: sai da coluna de 880px e vai de ponta a ponta da tela */
.gallery__track {
  list-style: none;
  display: flex;
  gap: 14px;
  width: var(--vw);
  margin-left: calc(50% - var(--vw) / 2);
  padding: 12px var(--gal-gutter) 30px;   /* folga vertical para a sombra não ser cortada */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gal-gutter);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.reveal { transition-delay: .12s; }
.gallery__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.gallery__item {
  position: relative;
  display: block;
  height: var(--gal-h);
  /* largura pela proporção do arquivo; em telas muito estreitas, limita à tela */
  width: min(calc(var(--gal-h) * var(--ar)), calc(var(--vw) - 40px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #dcd7db;
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(46,15,43,.16);
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s cubic-bezier(.22,1,.36,1);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
/* leve escurecido na base, reforçado no hover */
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,5,20,0) 55%, rgba(20,5,20,.35));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.gallery__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(46,15,43,.24);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid rgba(255,46,121,.55); outline-offset: 3px; }

/* barra de progresso da rolagem */
.gallery__progress {
  height: 3px;
  margin: 0 20px;
  border-radius: 3px;
  background: rgba(46,15,43,.1);
  overflow: hidden;
}
.gallery__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-rodape);
  transform-origin: left center;
  transform: scaleX(.25);
  transition: transform .2s linear;
}

.gallery__note { margin: 14px 20px 0; }

/* ============================================================
   LIGHTBOX — foto ampliada em tela cheia (<dialog>)
   ============================================================ */
/* trava o scroll da página com o lightbox aberto */
body.is-locked { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { animation: lbFade .25s ease; }
.lightbox::backdrop {
  background: rgba(20,5,20,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 72px 90px;
  touch-action: pan-y pinch-zoom;   /* swipe horizontal fica com o JS */
}
.lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 180px), 1100px);
  max-height: calc(100dvh - 144px);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: lbIn .35s cubic-bezier(.22,1,.36,1);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn:focus-visible { outline: 3px solid rgba(255,46,121,.6); outline-offset: 3px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,.75);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* celular: setas descem para a base, foto usa a tela toda */
@media (max-width: 700px) {
  .lightbox__stage { padding: 68px 12px 92px; }
  .lightbox__stage img {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 160px);
  }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
  .lightbox__count { bottom: 32px; }
}

/* CTA com o peso e o espaçamento de Itu (o núcleo usa 700) */
.cta__btn { font-weight: 600; letter-spacing: -.5px; }

/* ===== Celular ===== */
@media (max-width: 560px) {
  .cards { margin-top: 32px; }
  .perks { grid-template-columns: 1fr; gap: 10px; }
  .perk { display: flex; align-items: baseline; gap: 10px; padding: 13px 14px; }
  .perk strong { flex: 0 0 64px; }
  .perk span { margin-top: 0; }
  .hero__logo { width: 190px; margin-bottom: 18px; }
  .cards .card:last-child:nth-child(odd) { width: 100%; }
  .steps { padding-top: 44px; }
  .steps__list { grid-template-columns: 1fr; gap: 10px; }
  .gallery { padding-top: 44px; }
  .gallery__track { gap: 12px; }
  .gallery__arrow { width: 40px; height: 40px; }
  .gallery__arrow svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dot, .lead__btn { animation: none; transition: none; }
  .gallery__item, .gallery__item img, .gallery__progress span { transition: none; }
  .gallery__item:hover, .gallery__item:hover img { transform: none; }
  .lightbox[open], .lightbox__stage img { animation: none; }
}
