/**
 * Homepage hero — full banner image + dynamic text overlay (homepage only).
 * Banner art: blue panel on physical LEFT, photo on RIGHT — pin text to left.
 * Aspect ratio matches hero-home.jpg (1014×500) so bottom waves stay visible.
 */

.home-hero {
  --hero-blue-dark: #073a75;
  --hero-gold: #d5af64;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: #fff;
}

.home-hero__stage {
  position: relative;
  width: 100%;
  /* Full image height — waves at bottom must not be cropped */
  aspect-ratio: 1014 / 500;
  min-height: 0;
  background: url("/img/hero-home.jpg") center top / 100% 100% no-repeat;
  direction: ltr;
}

.home-hero__content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 12%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(44%, 540px);
  padding: 3.5rem 2rem 2.5rem 2.5rem;
  color: #fff;
  box-sizing: border-box;
}

/* Arabic text still RTL, but box stays on the left blue area */
html[dir="rtl"] .home-hero__content {
  direction: rtl;
  text-align: right;
  padding: 3.5rem 2.5rem 2.5rem 2rem;
}

html[dir="ltr"] .home-hero__content {
  direction: ltr;
  text-align: left;
}

.home-hero__title {
  color: var(--hero-gold) !important;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  max-width: 28rem;
}

.home-hero__text {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  line-height: 1.85;
  margin-bottom: 1.6rem;
  max-width: 30rem;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  background: var(--hero-gold);
  color: var(--hero-blue-dark) !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(213, 175, 100, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.home-hero__cta:hover {
  transform: translateY(-2px);
  background: #e0c078;
  box-shadow: 0 12px 28px rgba(213, 175, 100, 0.48);
  color: var(--hero-blue-dark) !important;
}

@media (max-width: 991.98px) {
  .home-hero__stage {
    aspect-ratio: 1014 / 500;
    background-size: 100% 100%;
    background-position: center top;
  }

  .home-hero__content {
    width: min(48%, 420px);
    bottom: 14%;
    padding: 1.5rem 1rem 1.25rem 1.25rem;
  }

  html[dir="rtl"] .home-hero__content {
    padding: 1.5rem 1.25rem 1.25rem 1rem;
  }

  .home-hero__title {
    font-size: clamp(1.15rem, 3.2vw, 1.55rem);
    margin-bottom: 0.65rem;
  }

  .home-hero__text {
    font-size: clamp(0.75rem, 1.8vw, 0.88rem);
    line-height: 1.65;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-hero__cta {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .home-hero__stage {
    /* Slightly taller on small screens so text + waves both fit */
    aspect-ratio: 1014 / 560;
    background-size: cover;
    background-position: center top;
  }

  .home-hero__content {
    width: 100%;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    padding: 1.25rem 1rem calc(12% + 0.75rem);
    text-align: center;
    align-items: center;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 58, 117, 0.88) 35%, rgba(7, 58, 117, 0.96) 100%);
  }

  html[dir="rtl"] .home-hero__content,
  html[dir="ltr"] .home-hero__content {
    text-align: center;
    padding: 1.25rem 1rem calc(12% + 0.75rem);
  }

  .home-hero__title,
  .home-hero__text {
    max-width: none;
  }

  .home-hero__text {
    -webkit-line-clamp: 2;
  }

  .home-hero__cta {
    align-self: center;
  }
}
