/* Section: Homepage Banner (Hero) */

.hero {
  position: relative;
  min-height: 630px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--color-text-on-dark);

  background-color: var(--color-primary);
  background-image: url("../../img/banner-background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-8);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-5);
  max-width: 620px;
  padding-block: var(--space-8);
  z-index: 2;
}

.hero__eyebrow {
  color: var(--color-text-on-dark);
  background-color: rgba(232, 239, 198, 0.3);
  border: var(--border-width) solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: clamp(44px, 6vw, var(--fs-h1));
  line-height: 1.14;
  letter-spacing: var(--ls-heading);
  color: var(--color-text-on-dark);
}

.hero__title-accent {
  font-style: italic;
  color: var(--color-accent-soft);
}

.hero__text {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  max-width: 560px;
}

.hero__media {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52vw, 760px);
  height: 100%;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.hero__seal {
  position: absolute;
  top: var(--space-6);
  right: var(--space-5);
  width: 200px;
  height: auto;
  z-index: 3;
}

@keyframes gcn-hero-rise {
  from { opacity: 0; transform: translateY(var(--reveal-distance)); }
  to   { opacity: 1; transform: none; }
}
@keyframes gcn-hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gcn-hero-media {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes gcn-hero-seal {
  from { opacity: 0; transform: rotate(-8deg) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.js-reveal .hero__eyebrow,
.js-reveal .hero__title,
.js-reveal .hero__text,
.js-reveal .hero__cta {
  animation: gcn-hero-rise var(--transition-reveal) both;
}
.js-reveal .hero__eyebrow { animation-delay: 0.15s; }
.js-reveal .hero__title   { animation-delay: 0.35s; }
.js-reveal .hero__text    { animation-delay: 0.65s; }
.js-reveal .hero__cta     { animation-delay: 0.90s; }

.js-reveal .hero__title-accent {
  animation: gcn-hero-fade var(--transition-reveal) both;
  animation-delay: 0.60s;
}

.js-reveal .hero__media {
  animation: gcn-hero-media 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.25s;
}
.js-reveal .hero__seal {
  animation: gcn-hero-seal 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 1.05s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .hero__eyebrow,
  .js-reveal .hero__title,
  .js-reveal .hero__title-accent,
  .js-reveal .hero__text,
  .js-reveal .hero__cta,
  .js-reveal .hero__media,
  .js-reveal .hero__seal {
    animation: none;
  }
}

@media (max-width: 992px) {
  .hero__seal { width: 150px; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__inner { flex-direction: column; align-items: stretch; }
  .hero__content { padding-top: var(--section-spacing-sm); }
  .hero__media {
    position: static;
    width: 100%;
    height: auto;
    max-width: 460px;
    align-self: center;
    justify-content: center;
    pointer-events: auto;
  }
  .hero__image { height: auto; }
  .hero__seal { top: var(--space-4); right: var(--space-4); width: 120px; }
}

@media (max-width: 767px) {

  .hero__content {
    padding-top: var(--space-6);
    padding-bottom: 0;
    gap: var(--space-5);
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .hero__title {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero__text {
    max-width: none;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  .hero__media {
    max-width: none;
    z-index: 2;
  }

  .hero__seal {
    top: auto;
    bottom: 100px;
    right: var(--space-2);
    width: 120px;
    z-index: 1;
  }
}
