/* ==========================================================================
   MARCA — ESTÉTICA AVANÇADA
   --------------------------------------------------------------------------
   Detalhes que são só desta marca. Carrega POR ÚLTIMO, depois do style.css.
   Mantenha curto: se um bloco daqui reaparecer em outro cliente, ele virou
   padrão e o lugar dele passa a ser o contrato + style.
   ========================================================================== */

/* Fonte de destaque do hero e da faixa: serif itálica de traço forte,
   mesma família da referência (Playfair Display Black Italic). */
.hero__title {
  font-family: "Playfair Display", var(--fonte-display);
  font-style: italic;
  font-weight: 900;
}
/* cada metade da frase (ver <span> no index.html) nunca quebra sozinha —
   assim a exibição é sempre em 2 linhas fixas, em qualquer largura de tela */
.hero__title span { white-space: nowrap; }

/* ---- Hero: duas colunas — foto em cartão à esquerda, texto à direita ---- */
.hero {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 88px);
  text-align: left;
  padding: 56px clamp(24px, 6vw, 80px) 96px;
  min-height: 600px;
  background: url("../assets/background-hero.png") center / cover no-repeat;
}

.hero__foto {
  position: relative;
  flex: 1 1 380px;
  max-width: 420px;
  /* topo em arco, base normal — igual à referência */
  border-radius: 200px 200px 28px 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(var(--sombra-rgb), .22);
}
.hero__foto img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* ---- Etiquetas flutuantes sobre a foto ----------------------------------- */
.hero__etiqueta {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--contraste);
  color: var(--texto);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(var(--sombra-rgb), .18);
}
.hero__etiqueta strong {
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.2;
}
.hero__etiqueta small {
  font-size: .72rem;
  color: var(--texto-suave);
}
.hero__etiqueta--esq { left: 20px; }
.hero__etiqueta--dir {
  right: 20px;
  align-items: center;
  text-align: center;
}
.hero__etiqueta--dir strong { color: var(--acao); }

.hero__inner {
  flex: 1 1 360px;
  max-width: 440px;
}

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
}

/* ---- Botão "Conferir links": leva até os cards -------------------------- */
.hero__btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--acao);
  color: var(--contraste);
  text-decoration: none;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(var(--acao-rgb), .35);
  animation: heroBtnPulse 2.6s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s cubic-bezier(.22,1,.36,1),
              filter .35s ease;
}
.hero__btn svg {
  width: 16px;
  height: 16px;
  animation: heroBtnArrow 1.6s ease-in-out infinite;
}
.hero__btn:hover {
  transform: translateY(3px);
  box-shadow: 0 4px 14px rgba(var(--acao-rgb), .3);
  animation-play-state: paused;
}
/* :active tem sua própria transição, mais rápida — o clique responde na
   hora, sem esperar os .35s do hover, mas ainda suaviza (nada de "salto") */
.hero__btn:active {
  transform: translateY(1px) scale(.97);
  box-shadow: 0 2px 8px rgba(var(--acao-rgb), .3);
  filter: brightness(.96);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(var(--acao-rgb), .35); }
  50%      { box-shadow: 0 8px 22px rgba(var(--acao-rgb), .35), 0 0 0 8px rgba(var(--acao-rgb), .18); }
}
@keyframes heroBtnArrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__btn, .hero__btn svg { animation: none; }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;   /* "center" (herdado do desktop) abria
                                       vão vazio entre o botão e a foto */
    gap: 0;   /* o "gap" do desktop é o respiro lateral; empilhado, quem
                 abre o respiro vertical é a margin-top da própria foto */
    padding: 40px 24px 56px;
    text-align: center;
    min-height: 0;   /* no desktop reserva altura pra foto ao lado do texto;
                        empilhado, cada bloco já traz sua própria altura */
  }
  .hero__foto { max-width: 300px; margin: 28px auto 0; }
  .hero__inner {
    flex: 0 0 auto;   /* "flex-basis: 360px" (do desktop) sobrava como
                          vão vazio abaixo do botão quando empilhado */
    max-width: 100%;
    text-align: center;
  }
  .hero__title {
    font-size: clamp(2.1rem, 11vw, 2.9rem);
    max-width: none;
    margin-inline: auto;
  }
  .hero__btn { margin-top: 20px; }

  /* etiquetas: no desktop ficam lado a lado sobre uma foto larga (420px);
     no celular (foto com até 300px) elas colidiriam, então empilham
     verticalmente e ocupam a largura toda, com texto sempre à esquerda. */
  .hero__etiqueta {
    left: 12px;
    right: 12px;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
  }
  .hero__etiqueta--esq { bottom: 54px; }
  .hero__etiqueta--dir { bottom: 12px; text-align: left; }
  .hero__etiqueta strong { font-size: .78rem; }
  .hero__etiqueta small { font-size: .68rem; }

  .cards { margin-top: 0; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
}

/* ---- Faixa: letreiro rolando, mesma linguagem do rodapé gradiente -------
   position: relative + z-index acima do .cards (que tem z-index: 2), para
   nenhum card conseguir subir por cima dela. */
.faixa {
  position: relative;
  z-index: 3;
  flex-shrink: 0;   /* filho direto do body (flex column): não deixar encolher a 0 */
  background: var(--grad-rodape);
  overflow: hidden;
  /* padding só no trilho (abaixo), não aqui: evita duas fontes de espaço
     vertical brigando e desalinhando o texto */
  /* fade nas bordas: o texto não corta seco ao entrar/sair da faixa */
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.faixa__trilho {
  display: flex;
  width: max-content;
  padding: 15px 0;
  animation: faixaRolar 55s linear infinite;
}
.faixa__item {
  flex: none;
  padding: 0 28px;
  color: var(--contraste);
  font-family: "Inter", var(--fonte-corpo);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: normal;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}
.faixa__item::after {
  content: "·";
  position: absolute;
  top: 0;
  right: -3px;
  line-height: 1;
  opacity: .6;
}
@keyframes faixaRolar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .faixa__trilho { animation: none; }
}

/* ---- Cards: 2 artes prontas, empilhadas, largas, sem subir por cima da
   faixa (o padrão do núcleo é margin-top: -40px, pensado pra subir na hero;
   aqui os cards ficam normais, com espaçamento próprio abaixo da faixa). */
.cards {
  grid-template-columns: 1fr;
  margin-top: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---- CTA final: mesma fonte do título do hero, mais respiro antes do rodapé */
.cta { padding: 32px 24px 72px; }
.cta__title {
  font-family: "Playfair Display", var(--fonte-display);
  font-style: italic;
  font-weight: 900;
  color: var(--texto);
}
