/* ===========================================================
   Dachō Sushi — hero.css
   Abertura editorial: a foto ocupa a tela, o texto assenta no
   terço inferior sobre um gradiente que nasce da base.
   Sem enso nem katakana de enfeite — a foto é o assunto.
   =========================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;         /* texto embaixo, como capa de revista */
  overflow: hidden;
  padding: calc(var(--nav-height) + 2rem) var(--gutter) clamp(3rem, 9vh, 5.5rem);
  background: var(--surface-0);
  isolation: isolate;
}

/* Camada da foto, separada para poder animar sozinha */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/hero-sushi.jpg?v=20261005");
  background-size: cover;
  background-position: center 42%;
  /* leve aproximação na entrada: dá vida sem custar layout */
  animation: heroZoom 1.6s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Gradiente: escuro embaixo (onde vai o texto), limpo em cima
   (onde a comida aparece). Dois stops extras evitam a faixa
   dura que um gradiente linear simples costuma deixar. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* 1. coluna esquerda: protege o texto, que é alinhado à esquerda */
    linear-gradient(to right,
      rgba(11, 8, 7, 0.94) 0%,
      rgba(11, 8, 7, 0.82) 28%,
      rgba(11, 8, 7, 0.38) 55%,
      rgba(11, 8, 7, 0.10) 78%,
      rgba(11, 8, 7, 0.00) 100%),
    /* 2. base: assenta o bloco de texto e amarra com a seção seguinte */
    linear-gradient(to top,
      rgba(11, 8, 7, 0.96) 0%,
      rgba(11, 8, 7, 0.72) 28%,
      rgba(11, 8, 7, 0.20) 58%,
      rgba(11, 8, 7, 0.34) 100%),
    /* 3. brilho vinho bem discreto vindo da base */
    radial-gradient(80% 55% at 25% 100%, rgba(76, 0, 0, 0.42), transparent 72%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.hero__title {
  max-width: 17ch;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-hero);
  line-height: 0.98;
  letter-spacing: var(--track-tight);
  color: var(--color-branco);
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 42ch;
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-2);
}

.hero__actions {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Indicador de rolagem: fio que pulsa de cima para baixo */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 1px;
  height: 46px;
  margin-left: -0.5px;
  overflow: hidden;
  background: var(--hairline-strong);
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vinho-bright);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%        { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

@media (max-width: 640px) {
  .hero__scroll { display: none; }
  .hero__title  { max-width: 14ch; }

  /* No celular o texto ocupa a largura toda, então o gradiente
     lateral não protege nada — quem segura a legibilidade é a base. */
  .hero::before {
    background:
      linear-gradient(to top,
        rgba(11, 8, 7, 0.97) 0%,
        rgba(11, 8, 7, 0.93) 30%,
        rgba(11, 8, 7, 0.62) 52%,
        rgba(11, 8, 7, 0.22) 74%,
        rgba(11, 8, 7, 0.40) 100%),
      radial-gradient(120% 45% at 50% 100%, rgba(76, 0, 0, 0.40), transparent 70%);
  }
}
