/* Basalt Thermal Club: topo da home (o relógio do circuito, topos/c), parte do texto: título, ficha das três
   etapas, apoio, botões e prova. O mostrador está em relogio.css e o desenho dele em js/relogio/.
   Texto à esquerda, mostrador à direita; no celular, título, mostrador e botão na primeira tela.
   O topo não reage à rolagem. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  align-content: start;
  min-height: 100svh;
  padding: 5.75rem var(--edge) 2.5rem;
  row-gap: var(--space-md);
  --dcol: min(100%, 30rem);
}

.hero__copy {
  display: contents;
}

.hero h1 {
  order: 1;
  font-size: clamp(2.25rem, 9.4vw, 3.4rem);
  line-height: 1.04;
}

.h1l--b {
  display: block;
}

.dial-col {
  order: 2;
  display: grid;
  justify-items: center;
}

.hero__side {
  order: 3;
  display: grid;
  gap: var(--space-md);
}

.hero__lede {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-md);
}

.hero__actions .link-arrow {
  white-space: nowrap;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs) var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  color: var(--stone-mid);
  font-size: var(--text-xs);
}

.hero__proof strong {
  color: var(--stone);
  font-weight: 650;
}

/* Botão do topo: varredura de luz no hover (só nos botões do topo) */
.hero .btn {
  isolation: isolate;
  overflow: hidden;
  transition: background-color var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out);
}

.hero .btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgb(223 226 223 / 0.42) 50%, transparent 68%);
  transform: translateX(-125%);
  transition: transform 0.8s var(--ease-out);
}

.hero .btn--primary:hover {
  box-shadow: 0 10px 28px -10px rgb(192 122 70 / 0.65);
}

.hero .btn--primary:hover::before {
  transform: translateX(125%);
}

/* A ficha: as três etapas ao lado do mostrador, a ativa acesa */
.ficha {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ficha li {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 5.5rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-xs);
  padding: 0.7rem 0 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--stone-mid);
  transition: color var(--dur-layout) var(--ease-out);
}

.ficha li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  bottom: 0.72rem;
  width: 3px;
  border-radius: 2px;
  background: var(--rc);
  transform: scaleY(0);
  transition: transform var(--dur-layout) var(--ease-out);
}

.ficha li:nth-child(1) { --rc: var(--copper); }
.ficha li:nth-child(2) { --rc: var(--ice); }
.ficha li:nth-child(3) { --rc: var(--stone); }

.ficha__n {
  font-size: clamp(0.875rem, 0.55rem + 0.5vw, 1.125rem);
  transition: color var(--dur-layout) var(--ease-out);
}

.ficha__name {
  font-family: var(--font-sans);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: clamp(1.125rem, 0.8rem + 0.6vw, 1.5rem);
  line-height: 1.2;
}

.ficha__data {
  font-size: clamp(0.875rem, 0.55rem + 0.5vw, 1.125rem);
}

.ficha[data-on="0"] li:nth-child(1),
.ficha[data-on="1"] li:nth-child(2),
.ficha[data-on="2"] li:nth-child(3),
.ficha[data-on="4"] li {
  color: var(--stone);
}

.ficha[data-on="0"] li:nth-child(1)::before,
.ficha[data-on="1"] li:nth-child(2)::before,
.ficha[data-on="2"] li:nth-child(3)::before,
.ficha[data-on="4"] li::before {
  transform: scaleY(1);
}

.ficha[data-on="0"] li:nth-child(1) .ficha__n,
.ficha[data-on="1"] li:nth-child(2) .ficha__n,
.ficha[data-on="2"] li:nth-child(3) .ficha__n,
.ficha[data-on="4"] li .ficha__n {
  color: var(--rc);
}

@media (min-width: 60rem) {
  .hero {
    --dcol: max(20rem, min(calc(100svh - 11rem), 52vw, 64rem));
    grid-template-columns: minmax(0, 1fr) var(--dcol);
    column-gap: var(--space-xl);
    padding-top: 6rem;
    align-content: stretch;
  }

  /* Um bloco só, com espaço regular entre as partes, centrado na altura do mostrador */
  .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 2.4vw, 2.75rem);
    min-height: var(--dcol);
    align-self: center;
    container-type: inline-size;
  }

  .hero h1,
  .hero__side {
    order: 0;
  }

  /* O tamanho final sai da largura real da coluna (js/relogio/titulo.js): a primeira linha preenche a coluna */
  .hero h1 {
    font-size: clamp(2.5rem, 7cqw, 6.5rem);
  }

  .h1l--a {
    display: inline-block;
    white-space: nowrap;
  }

  .dial-col {
    justify-items: end;
  }
}

@media (min-width: 60rem) and (min-height: 46rem) {
  .ficha {
    display: grid;
    border-top: 1px solid var(--line);
  }
}

/* Telas baixas (1366x768): o bloco da esquerda cabe na altura do mostrador */
@media (min-width: 60rem) and (max-height: 50rem) {
  .hero__copy { gap: 1.5rem; }
  .ficha li { padding-block: 0.5rem; }
  .hero__side { gap: var(--space-sm); }
}
