/* ==========================================================================
   Aliah · Página Sobre
   ========================================================================== */

/* --------------------------------------------------------------------------
   Abertura
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

.page-hero__glow {
  top: -25%;
  right: -22%;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px);
}

.page-hero .title {
  margin: 24px 0 32px;
}

.page-hero__lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 500;
  line-height: 1.28;
}

.page-hero__text {
  max-width: 600px;
  margin: 0;
  color: var(--mist);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.page-hero__visual {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

/* --------------------------------------------------------------------------
   Propósito
   -------------------------------------------------------------------------- */
.purpose__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 112px);
}

.purpose__head {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 20px;
}

.purpose__mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-top: 28px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, var(--white), var(--gold-100));
  box-shadow: 0 0 0 10px rgba(201, 164, 92, 0.07),
    0 0 0 22px rgba(201, 164, 92, 0.04);
  color: var(--gold-700);
}

.purpose__mark .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
}

.purpose__copy p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.85;
}

.purpose__copy p:last-child {
  margin-bottom: 0;
}

.purpose__copy strong {
  display: block;
  margin-top: 32px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   História (linha do tempo)
   -------------------------------------------------------------------------- */
.history__glow {
  top: 15%;
  right: -38%;
}

.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
}

.history__head {
  position: sticky;
  top: calc(var(--header-h) + 48px);
  display: grid;
  gap: 20px;
}

.history__head p {
  max-width: 440px;
  margin: 0;
  color: var(--mist);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 7px;
  width: 1px;
  background: var(--line-dark-strong);
}

.timeline__item {
  position: relative;
  padding: 0 0 52px 56px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Segmento dourado que se desenha ao entrar na tela */
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -6px;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 164, 92, 0.2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease-out) 0.3s;
}

.timeline__marker {
  position: absolute;
  top: 6px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 6px var(--navy);
}

.timeline__marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 164, 92, 0.8);
  transform: scale(0);
  transition: transform 0.8s var(--ease-out) 0.2s;
}

.timeline__item.is-visible::before,
html:not(.js) .timeline__item::before {
  transform: scaleY(1);
}

.timeline__item.is-visible .timeline__marker::after,
html:not(.js) .timeline__marker::after {
  transform: scale(1);
}

.timeline h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.timeline p {
  max-width: 520px;
  margin: 0;
  color: var(--mist);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Valores
   -------------------------------------------------------------------------- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  grid-column: span 2;
  min-height: 260px;
}

.value-card:nth-child(n + 4) {
  grid-column: span 3;
}

.value-card .icon-badge {
  margin-bottom: auto;
}

.value-card h3 {
  margin-top: 40px;
}

.value-card:hover {
  border-color: rgba(201, 164, 92, 0.5);
}

.value-card:hover .icon-badge {
  transform: rotate(-6deg);
}

/* --------------------------------------------------------------------------
   Metodologia
   -------------------------------------------------------------------------- */
.method .bg-grid {
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 75%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step__number {
  font-variant-numeric: lining-nums;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #143656, var(--navy));
  box-shadow: 0 0 0 6px rgba(201, 164, 92, 0.04);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

/* Conector entre etapas, desenhado em sequência */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 76px;
  right: -20px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 92, 0.15));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.step:nth-child(2)::after {
  transition-delay: 0.2s;
}

.step:nth-child(3)::after {
  transition-delay: 0.4s;
}

.steps.is-visible .step::after,
html:not(.js) .step::after {
  transform: scaleX(1);
}

.step h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.method__note {
  max-width: 920px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
}

.method__note em {
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Produtos
   -------------------------------------------------------------------------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  grid-column: span 3;
  min-height: 220px;
}

.product-card:nth-child(n + 5) {
  grid-column: span 4;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: auto;
  padding-bottom: 40px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.1875rem;
}

.product-card p {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta__back {
  margin-top: 4px;
}

.cta__back:hover .icon {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .product-card,
  .product-card:nth-child(n + 5) {
    grid-column: span 4;
  }

  .product-card:nth-child(n + 7) {
    grid-column: span 12;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__visual {
    display: none;
  }

  .purpose__grid,
  .history__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .purpose__mark {
    display: none;
  }

  .history__head {
    position: static;
  }

  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-card,
  .value-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .value-card:last-child {
    grid-column: 1 / -1;
  }

  .product-card,
  .product-card:nth-child(n + 5) {
    grid-column: span 6;
  }

  .product-card:nth-child(n + 7) {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .step {
    min-height: 96px;
    padding: 0 0 36px 88px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step__number {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .step h3 {
    padding-top: 14px;
  }

  .step:not(:last-child)::after,
  .step:nth-child(2)::after {
    display: block;
    top: 60px;
    bottom: 0;
    left: 30px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(var(--gold), rgba(201, 164, 92, 0.15));
    transform: scaleY(0);
    transform-origin: top;
  }

  .steps.is-visible .step::after,
  html:not(.js) .step::after {
    transform: scaleY(1);
  }

  .timeline__item {
    padding-left: 44px;
  }
}

@media (max-width: 560px) {
  .values__grid {
    grid-template-columns: 1fr;
  }

  .value-card:last-child {
    grid-column: auto;
  }

  .value-card {
    min-height: 0;
  }

  .value-card h3 {
    margin-top: 28px;
  }

  .product-card,
  .product-card:nth-child(n + 5),
  .product-card:nth-child(n + 7) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .product-card__top {
    padding-bottom: 28px;
  }
}
