:root {
  --gold: #F7B82B;
  --dark: #17140F;
  --dark-2: #0F0D0A;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--dark-2);
  color: var(--white);
}

a { text-decoration: none; color: inherit; }

/* ---------- Layout geral ---------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* ---------- Coluna esquerda (fixa) ---------- */

.hero__panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
  z-index: 1;
}

/* "stage" mantém sempre a proporção da bg-hero.png (1762x1188).
   O tamanho exato (cover do painel) é calculado em js/main.js,
   assim bg-hero, textura e bg-cuut ficam sempre alinhados entre si. */
.hero__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.06); }
}

.hero__photo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__texture {
  position: absolute;
  top: -8%;
  left: -12%;
  width: 65%;
  aspect-ratio: 1 / 1;
  background-image: url('../img/textura.png');
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  opacity: 1;
  z-index: 2;
}

/* posição/tamanho calculados por registro de pixels com a bg-hero.png:
   deslocamento (0px, 264px) dentro do quadro 1762x1188 */
.hero__photo {
  position: absolute;
  left: 0%;
  top: 22.222%;
  width: 81.612%;
  height: 76.936%;
  z-index: 3;
}

.hero__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 10, .55);
  z-index: 4;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 6%;
  bottom: 8%;
  z-index: 5;
  max-width: 40%;
}

.hero__title {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  color: var(--gold);
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.hero__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hero__subtitle span {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(.9rem, 1.1vw, 1.1rem);
}

/* ---------- Coluna direita (grid que rola) ---------- */

.hero__grid {
  position: relative;
  margin-left: 50%;
  width: 50%;
  min-height: 100vh;
  background: transparent;
  z-index: 2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 56px 48px;
}

/* ---------- Cards ---------- */
/* Estado padrão: foto + selo com o nome do projeto.
   Hover: overlay escuro + bloco com ícone/nome, período, estatística e CTA. */

.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
}

/* Card sem foto ainda: fundo neutro da marca até a imagem do projeto chegar. */
.card--placeholder {
  background: radial-gradient(120% 100% at 15% 10%, rgba(247, 184, 43, .16), transparent 60%), var(--dark);
}

.card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card__bg {
  transform: scale(1.04);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1;
  pointer-events: none;
}

.card__badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: none;
  color: var(--white);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
  border-radius: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity .2s ease;
}

.card:hover .card__badge {
  opacity: 0;
}

.card__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover .card__scrim {
  opacity: 1;
}

.card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.card:hover .card__body {
  opacity: 1;
  transform: translateY(0);
}

.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.card__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card__eyebrow span {
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.card__period {
  font-size: .72rem;
  font-weight: 600;
  text-decoration: underline;
  opacity: .85;
}

.card__stat {
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  margin: 2px 0 8px;
}

.card__cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold);
  color: var(--dark-2);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .hero__panel {
    position: relative;
    width: 100%;
    height: 62vh;
  }

  .hero__stage {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    animation: none;
  }

  .hero__photo-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero__texture,
  .hero__photo {
    display: none;
  }

  .hero__grid {
    margin-left: 0;
    width: 100%;
    min-height: auto;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 24px;
  }

  .hero__content {
    left: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
  }
}

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