/* ============================================================================
  HOME BANNER STYLES
  Purpose: Home page hero/banner control
  ============================================================================ */

.hero {
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: var(--gradient-background);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.3), transparent 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(24px, 3.8vw, 48px);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(45, 10, 69, 0) 0%, rgba(45, 10, 69, 0.34) 62%, rgba(45, 10, 69, 0.62) 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-right: var(--space-xl);
  box-sizing: border-box;
}

.hero-text {
  text-align: left;
  position: relative;
  z-index: 2;
  transform: translateX(-2.5%);
}

.hero-eyebrow {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  opacity: 0.82;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: 2.95rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(to right, var(--color-primary-light), var(--color-accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-image {
  width: 390px;
  height: 500px;
  overflow: visible;
  position: absolute;
  top: -28px;
  bottom: auto;
  right: 52px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

main > .hero + .section-divider.section-divider--hard {
  height: 1.9px;
  min-height: 1.9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(179, 136, 255, 0.76), rgba(255, 255, 255, 0));
  box-shadow: 0 0 12px rgba(179, 136, 255, 0.24);
}

body .page-wrapper .hero-title {
  display: inline-block;
  max-width: 100%;
  line-height: 1.16;
  word-break: normal;
  overflow: visible;
}

@media (min-width: 992px) {
  .hero {
    padding-bottom: 0;
  }

  .hero-content {
    min-height: 472px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .hero-content {
    min-height: clamp(500px, 50vw, 560px);
    align-items: stretch;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero-image {
    top: auto;
    bottom: clamp(8px, 1.2vw, 16px);
    right: clamp(16px, 2.8vw, 40px);
    height: clamp(430px, 46vw, 500px);
  }

  .hero-image img {
    object-fit: contain;
    object-position: center bottom;
  }
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 3.8vw, 1.4rem);
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .hero-text {
    text-align: center;
    transform: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.5rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .hero-eyebrow {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    position: relative;
    width: min(82vw, 340px);
    height: auto;
    aspect-ratio: 467 / 600;
    margin: 0;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    transform: translateX(0) translateY(6px) scale(0.97);
    order: -1;
    margin-top: 0;
    justify-self: center;
  }

  .hero-image img {
    object-fit: contain;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero .container {
    padding-left: clamp(1rem, 3.2vw, 1.4rem) !important;
    padding-right: clamp(1rem, 3.2vw, 1.4rem) !important;
  }

  .hero-content {
    max-width: 740px;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-text,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero-title,
  .hero-subtitle {
    display: block !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .hero-cta {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: var(--space-sm);
  }

  .hero-cta .btn {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 3.8vw, 1.4rem);
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .hero-title {
    font-size: 2.1rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
  }

  .hero-image {
    position: relative;
    width: min(76vw, 286px);
    max-width: none;
    height: auto;
    aspect-ratio: 467 / 600;
    margin: 0;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    transform: translateX(0) translateY(8px) scale(1);
    justify-self: center;
  }
}

@media (max-width: 479px) {
  .hero-title {
    font-size: 1.9rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-image {
    width: min(74vw, 256px);
  }
}

@media (max-width: 320px) {
  html,
  body.fr-home-page,
  body.fr-home-page .page-wrapper {
    overflow-x: hidden;
  }

  body.fr-home-page .hero,
  body.fr-home-page .hero .container,
  body.fr-home-page .hero-content,
  body.fr-home-page .hero-text,
  body.fr-home-page .hero-cta,
  body.fr-home-page .hero-image {
    max-width: 100%;
  }

  body.fr-home-page .hero .container {
    padding-left: clamp(0.7rem, 3.6vw, 0.9rem) !important;
    padding-right: clamp(0.7rem, 3.6vw, 0.9rem) !important;
  }

  body.fr-home-page .hero-content {
    min-width: 0;
    gap: 0.8rem;
    overflow-x: clip;
  }

  body.fr-home-page .hero-title {
    font-size: 1.72rem;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.fr-home-page .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.fr-home-page .hero-text,
  body.fr-home-page .hero-cta .btn {
    min-width: 0;
  }

  body.fr-home-page .hero-cta .btn {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  body.fr-home-page .hero-image {
    width: min(70vw, 220px);
  }
}

@media (min-width: 992px) {
  body .page-wrapper .hero-title {
    max-width: 760px;
    margin-right: -48px;
    padding-right: 20px;
  }
}
