/* Hero da campanha IEEJ 15 anos. Este arquivo sobrescreve somente header e hero. */
:root {
  --hero-gold: #f2c56c;
  --hero-red: #f51e2b;
  --hero-red-dark: #d91320;
}

.header {
  position: absolute;
  height: 96px;
  background: rgba(65, 4, 12, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header.header--scrolled {
  position: fixed;
  height: 80px;
  background: rgba(45, 3, 9, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header__inner {
  max-width: 1440px;
  padding-inline: 64px;
}

.header__logo-img {
  width: 140px;
  height: auto;
}

.header__link,
.header:not(.header--scrolled) .header__link {
  color: rgba(255, 255, 255, 0.88);
}

.header__link:hover {
  color: #fff;
}

.header__link::after {
  background: var(--hero-gold);
}

.header__cta .btn {
  min-height: 52px;
  padding-inline: 28px;
  border-radius: 12px;
  background: var(--hero-red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(80, 0, 9, 0.28);
}

.header__cta .btn:hover {
  background: var(--hero-red-dark);
  color: #fff;
}

.hero.section {
  position: relative;
  display: block;
  width: 100%;
  height: min(920px, 100vh);
  min-height: 760px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #3a050c;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -4;
  display: block;
  overflow: hidden;
  background: #3a050c;
  animation: heroPhotoIn 900ms ease both;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(30, 2, 7, 0.82) 0%, rgba(30, 2, 7, 0) 38%),
    linear-gradient(90deg, rgba(48, 3, 10, 0.98) 0%, rgba(69, 5, 14, 0.93) 25%, rgba(69, 5, 14, 0.65) 47%, rgba(25, 2, 6, 0.2) 70%, rgba(10, 0, 2, 0.3) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 120px 120px;
}

.hero__container {
  max-width: 1440px;
  height: 100%;
  padding-inline: 64px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  height: 100%;
  padding-top: 110px;
}

.hero__content {
  max-width: 700px;
  animation: heroContentIn 650ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--hero-gold);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: none;
}

.hero__badge > span {
  width: 38px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--hero-gold);
}

.hero__title {
  margin: 28px 0 0;
  max-width: 700px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(54px, 5vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(24, 0, 5, 0.28);
}

.hero__title span {
  color: var(--hero-gold);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  background-clip: initial;
  filter: none;
  text-shadow: inherit;
}

.hero__subtitle {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: auto;
  margin: 34px 0 0;
}

.hero__actions .btn {
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hero__actions .btn svg {
  width: 20px;
  height: 20px;
}

.hero__actions .btn--primary {
  background: var(--hero-red);
  box-shadow: 0 12px 30px rgba(67, 0, 8, 0.28);
}

.hero__actions .btn--primary:hover {
  transform: translateY(-2px);
  background: var(--hero-red-dark);
  color: #fff;
}

.hero__actions .btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(55, 3, 10, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__actions .btn--outline:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 197, 108, 0.8);
  background: rgba(75, 5, 15, 0.68);
  color: #fff;
}

.hero__stats {
  display: flex;
  justify-content: flex-start;
  gap: 36px;
  margin-top: 50px;
  animation: heroContentIn 650ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.hero__stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 36px;
  text-align: left;
}

.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 0;
  width: 1px;
  height: 48px;
  background: rgba(242, 197, 108, 0.35);
}

.hero__stat:last-child {
  padding-right: 0;
}

.hero__stat > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--hero-gold);
}

.hero__stat-number {
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hero__stat-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero__anniversary-seal {
  position: absolute;
  top: 122px;
  right: 5vw;
  z-index: 2;
  width: clamp(132px, 11vw, 158px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(25, 0, 4, 0.42));
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPhotoIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .header__inner,
  .hero__container {
    padding-inline: 32px;
  }

  .hero__image {
    object-fit: contain;
  }

  .hero__overlay {
    background:
      linear-gradient(0deg, rgba(30, 2, 7, 0.82) 0%, rgba(30, 2, 7, 0) 38%),
      linear-gradient(90deg, rgba(48, 3, 10, 0.98) 0%, rgba(69, 5, 14, 0.92) 36%, rgba(49, 4, 12, 0.62) 62%, rgba(10, 0, 2, 0.35) 100%);
  }

  .hero__content {
    max-width: 620px;
  }

  .hero__inner {
    text-align: left;
  }

  .hero__actions,
  .hero__stats {
    justify-content: flex-start;
  }

  .hero__title {
    font-size: clamp(52px, 7vw, 68px);
  }
}

@media (max-width: 768px) {
  :root { --header-height: 72px; }

  .header,
  .header.header--scrolled {
    height: 72px;
  }

  .header__inner { padding-inline: 22px; }
  .header__logo-img { width: 105px; }
  .header__links { padding-top: calc(72px + var(--space-xl)); }

  .hero.section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #560713;
  }

  .hero__container,
  .hero__inner {
    display: contents;
  }

  .hero__content {
    order: 1;
    max-width: none;
    padding: 120px 22px 42px;
    background: #560713;
    text-align: left;
  }

  .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background: #260308;
  }

  .hero__media::before,
  .hero__media::after {
    content: '';
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }

  .hero__media::before {
    inset: 0;
    box-shadow: inset 0 0 42px rgba(38, 3, 8, 0.42);
  }

  .hero__media::after {
    inset: 0;
    background: linear-gradient(90deg, rgba(38, 3, 8, 0.22), transparent 12%, transparent 88%, rgba(38, 3, 8, 0.22));
  }

  .hero__image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .hero__overlay,
  .hero__grid,
  .hero__anniversary-seal {
    display: none;
  }

  .hero__badge {
    gap: 10px;
    justify-content: flex-start;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-align: left;
  }

  .hero__badge > span { width: 26px; }

  .hero__title {
    max-width: 100%;
    margin-top: 22px;
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__subtitle {
    max-width: 620px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero__actions {
    gap: 12px;
    justify-content: flex-start;
    margin-top: 28px;
  }

  .hero__actions .btn {
    min-height: 54px;
    padding-inline: 20px;
    font-size: 14px;
  }

  .hero__stats {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 24px 22px 30px;
    background: #3d050e;
  }

  .hero__stat {
    justify-content: center;
    gap: 7px;
    padding: 0 8px 0 0;
  }

  .hero__stat:not(:last-child)::after {
    top: 0;
    height: 40px;
  }

  .hero__stat > svg { width: 18px; height: 18px; }
  .hero__stat-number { font-size: 21px; }

  .hero__stat-label {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 0.03em;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn { width: 100%; }

  .hero__stat {
    flex-direction: column;
    gap: 4px;
    padding-right: 6px;
    text-align: center;
  }

  .hero__stat:not(:last-child)::after { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero__content,
  .hero__stats {
    animation: none;
  }
}
