/* ==========================================================================
   sections.css — hero, serviços, preços, unidades, tour, horário
   ========================================================================== */

/* ==========================================================================
   HERO — tela cheia
   Camadas (de trás pra frente): brilho → E gigante (parallax) → faixas de luz
   → fades (.hero__fade) → texto. O texto fica sempre sobre o fade preto sólido.
   ========================================================================== */
.hero--full {
  --sym: clamp(420px, 78svh, 860px);   /* tamanho do E gigante */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--preto);
}

/* ---------- Fundo decorativo ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* brilho vermelho atrás do E */
.hero__bg::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) + 12px + var(--sym) / 2);
  right: calc(var(--sym) * -0.35);
  width: calc(var(--sym) * 1.5);
  height: calc(var(--sym) * 1.5);
  margin-top: calc(var(--sym) * -0.75);
  background: radial-gradient(closest-side, rgba(237, 28, 36, .22), rgba(237, 28, 36, .06) 55%, transparent);
}

/* E gigante cortado na borda direita, começa logo abaixo do header; o parallax
   desce até 160px e a parte de baixo some no fade inferior */
.hero__symbol {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  right: calc(var(--sym) * -0.3);
  width: var(--sym);
  height: var(--sym);
  max-width: none;
  opacity: .4;
  transition: none; /* parallax por frame */
}

/* ---------- Faixas de luz: rastros de faróis (longa exposição) ----------
   Ambiente, não efeito: finas, sem halo, pontas que somem, cores dessaturadas,
   passagens lentas com pausa longa entre elas. Só transform + opacity. */
.hero__beam {
  --beam-w: 46vw;
  --beam-dur: 20s;
  --beam-delay: 0s;
  --beam-color: rgba(200, 30, 36, .5);
  --beam-peak: .9;
  position: absolute;
  left: 0;
  top: 40%;
  z-index: 2;
  width: var(--beam-w);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--beam-color) 55%, transparent);
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  animation: hero-beam var(--beam-dur) linear var(--beam-delay) infinite;
}

/* lanterna traseira: vermelho escurecido, da esquerda para a direita */
.hero__beam--1 { top: 36%; --beam-w: 48vw; --beam-dur: 19s; --beam-delay: -3s; }

/* farol: branco quente bem fraco, no sentido contrário */
.hero__beam--2 {
  top: 63%;
  --beam-w: 40vw;
  --beam-dur: 24s;
  --beam-delay: -14s;
  --beam-color: rgba(255, 235, 210, .25);
  height: 1px;
  animation-direction: reverse;
}

/* 3ª: só desktop, quase imperceptível */
.hero__beam--3 {
  top: 78%;
  --beam-w: 36vw;
  --beam-dur: 25s;
  --beam-delay: -21s;
  --beam-color: rgba(200, 30, 36, .3);
  --beam-peak: .6;
  height: 1px;
}

@keyframes hero-beam {
  /* passa em ~55% do ciclo e some; o resto é pausa.
     Acende só depois de cruzar a coluna do texto. */
  0%   { transform: translate3d(-100%, 0, 0); opacity: 0; }
  20%  { opacity: 0; }
  30%  { opacity: var(--beam-peak); }
  46%  { opacity: var(--beam-peak); }
  55%  { transform: translate3d(calc(100vw + 10%), 0, 0); opacity: 0; }
  100% { transform: translate3d(calc(100vw + 10%), 0, 0); opacity: 0; }
}

/* pausa tudo que é infinito quando o hero sai da tela (JS: .is-offscreen) */
.hero.is-offscreen .hero__beam,
.hero.is-offscreen .hero__scroll-icon::before {
  animation-play-state: paused;
}

/* ---------- Fades ---------- */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* véu escuro radial suave sobre o E */
  background: radial-gradient(70% 80% at 85% 45%, rgba(11, 11, 11, .25), rgba(11, 11, 11, .6));
}

/* preto sólido à esquerda → transparente à direita (o texto fica no sólido) */
.hero__fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--preto) 0%,
    var(--preto) 40%,
    rgba(11, 11, 11, .85) 52%,
    rgba(11, 11, 11, .4) 62%,
    transparent 72%);
}

/* emenda com a seção seguinte */
.hero__fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(0deg, var(--preto), rgba(11, 11, 11, .7) 40%, transparent);
}

/* ---------- Conteúdo ---------- */
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(1rem, 3svh, 2rem);
  padding-top: clamp(1rem, 4svh, 3rem);
  padding-bottom: clamp(1rem, 3svh, 2rem);
}

.hero__content {
  align-self: center;
  max-width: 780px;
}

/* etiqueta + status "Aberto agora" lado a lado */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(.9rem, 2.4svh, 1.5rem);
}

.hero__status {
  min-height: 0;
  padding: .35rem .9rem .35rem .95rem;
  font-size: .8125rem;
  font-weight: 500;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--cinza);
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vermelho);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, .2);
}

.hero__title {
  /* cresce com a largura, mas limitado pela altura: tudo cabe em 100svh */
  font-size: clamp(2.75rem, min(1rem + 5.4vw, 9svh), 6rem);
  line-height: .98;
  letter-spacing: -0.045em;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--vermelho);
}

.hero__text {
  max-width: 52ch;
  margin-top: clamp(.9rem, 2.2svh, 1.5rem);
  font-size: var(--fs-lead);
  color: var(--cinza);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.1rem, 3svh, 2rem);
}

@media (max-width: 380px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Barra de stats na base ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  text-align: center;
}

.hero__stats .stat__value {
  font-size: clamp(1.75rem, min(1.3rem + 2vw, 5.5svh), 2.75rem);
}

/* ---------- Indicador "role" ---------- */
.hero__scroll {
  display: none;
}

@media (min-width: 640px) {
  .hero__stats {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 0;
  }

  .hero__stats .stat {
    padding-inline: clamp(1.25rem, .5rem + 3vw, 3.5rem);
  }

  .hero__stats .stat + .stat {
    border-left: 1px solid var(--borda);
  }

  .hero__scroll {
    position: absolute;
    z-index: 2;
    right: calc(max(0px, (100% - var(--container) - 2 * var(--gutter)) / 2) + var(--gutter));
    bottom: clamp(1rem, 3svh, 2rem);
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    color: var(--cinza);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--dur-fast) linear;
  }

  .hero__scroll:hover {
    color: var(--branco);
  }
}

/* "mouse" com a bolinha descendo */
.hero__scroll-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
}

.hero__scroll-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--vermelho);
  animation: hero-scroll 1.8s var(--ease-in-out) infinite;
}

@keyframes hero-scroll {
  0%   { transform: translate3d(0, 0, 0);    opacity: 0; }
  25%  { opacity: 1; }
  80%  { transform: translate3d(0, 12px, 0); opacity: 0; }
  100% { transform: translate3d(0, 12px, 0); opacity: 0; }
}

/* ---------- Mobile: E apagado atrás, fade de baixo pra cima ---------- */
@media (max-width: 959px) {
  .hero--full {
    --sym: min(115vw, 64svh);
  }

  .hero__symbol {
    top: calc(var(--header-h) - 40px);
    right: calc(var(--sym) * -0.38);
    opacity: .2;
  }

  .hero__bg::before {
    top: calc(var(--header-h) + var(--sym) / 2 - 40px);
    opacity: .7;
  }

  .hero__fade::before {
    background: linear-gradient(0deg,
      var(--preto) 0%,
      var(--preto) 30%,
      rgba(11, 11, 11, .75) 55%,
      rgba(11, 11, 11, .2) 85%,
      transparent 100%);
  }

  .hero__fade::after {
    display: none;
  }

  /* faixas só na metade de cima (área do E), longe do texto */
  .hero__beam--1 { top: 18%; }
  .hero__beam--2 { top: 31%; }
  .hero__beam--3 { display: none; }

  .hero__content {
    align-self: end;
  }
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
/* logo depois do hero: menos respiro no topo (o hero já termina com folga) */
#servicos {
  padding-top: clamp(2rem, 1rem + 4vw, 5rem);
}

.services .card__media {
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   PREÇOS
   ========================================================================== */
/* tabela completa dentro da janelinha (.prices-dialog, components.css) */
.prices-dialog .tabs__list {
  margin-bottom: 1rem;
}

.pricing__notes {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
}

.pricing__notes li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--cinza);
}

.pricing__notes li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermelho);
}

/* ==========================================================================
   UNIDADES
   ========================================================================== */
.unit {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transition: border-color var(--dur) linear;
}

.unit:hover {
  border-color: var(--line-2);
}

/* ícone do pino num quadradinho, como nos cards de produto */
.unit__pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: .25rem;
  border: 1px solid rgba(237, 28, 36, .3);
  border-radius: 12px;
  background: rgba(237, 28, 36, .1);
  color: #ff5a5f;
}

.unit__body {
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding: 1.75rem 1.75rem 1.25rem;
}

.unit__title {
  font-size: var(--fs-h3);
}

.unit__address {
  color: var(--cinza);
  line-height: 1.6;
}

.unit__body .btn {
  margin-top: .5rem;
}

.unit__map {
  margin: .5rem 1.75rem 1.75rem;
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   TOUR 360°
   ========================================================================== */
.tour .embed--wide {
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  /* abas centralizadas, como nos preços */
  .tour .tabs__list {
    display: flex;
    margin-inline: auto;
  }
}

/* ==========================================================================
   HORÁRIO  (div.hours = bloco interno; a section é #horario)
   ========================================================================== */
/* horário centralizado (cabeçalho + bloco) para não sobrar vazio à direita */
#horario .section__head {
  margin-inline: auto;
  text-align: center;
}

#horario .section__lead {
  margin-inline: auto;
}

div.hours {
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(237, 28, 36, .08), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hours__status {
  justify-self: center;
}

