/* =============================================
   Hero Banner — ACE Design System
   SDC component for Drupal Canvas
   ============================================= */

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 2rem 1.25rem;
  overflow: hidden;
  text-align: center;
  border-radius: 1.5rem;
  /* Default: blue gradient background */
  background: linear-gradient(135deg, #003087 0%, #0056A6 50%, #29abe2 100%);
}

/* --- Background image + overlay variant --- */
.hero-banner--image_overlay {
  background: none;
}

.hero-banner__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 48, 135, 0.92) 0%,
    rgba(0, 86, 166, 0.88) 50%,
    rgba(41, 171, 226, 0.82) 100%
  );
  border-radius: inherit;
}

/* --- Content wrapper --- */
.hero-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  width: 100%;
}

/* --- Title --- */
.hero-banner__title {
  margin: 0 0 0.75rem;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.hero-banner__title-part,
.hero-banner__title-highlight {
  display: inline;
}

.hero-banner__title-highlight {
  color: #E87722;
}

/* --- Subtitle --- */
.hero-banner__subtitle {
  margin: 0 0 1.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 620px;
}

/* --- Search bar --- */
.hero-banner__search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.hero-banner__search-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  padding-left: 0.75rem;
  color: #6b7280;
}

.hero-banner__search-input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 0.75rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #333333;
  background: transparent;
  border: none;
  outline: none;
}

.hero-banner__search-input::placeholder {
  color: #9ca3af;
}

.hero-banner__search-input:focus {
  outline: none;
}

.hero-banner__search-button {
  flex-shrink: 0;
  padding: 0.875rem 1.75rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #E87722;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-banner__search-button:hover {
  background-color: #d66a1a;
  transform: translateY(-1px);
}

.hero-banner__search-button:active {
  transform: translateY(0);
}

.hero-banner__search-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* =============================================
   Responsive — Tablet
   ============================================= */

@media (min-width: 768px) {
  .hero-banner {
    min-height: 480px;
    padding: 3rem 2rem;
    border-radius: 2rem;
  }

  .hero-banner__title {
    font-size: 2.75rem;
  }

  .hero-banner__subtitle {
    font-size: 1.125rem;
  }

  .hero-banner__search-button {
    padding: 0.9375rem 2rem;
  }
}

/* =============================================
   Responsive — Desktop
   ============================================= */

@media (min-width: 1024px) {
  .hero-banner {
    min-height: 520px;
    padding: 4rem 2rem;
  }

  .hero-banner__title {
    font-size: 3.25rem;
  }

  .hero-banner__subtitle {
    font-size: 1.25rem;
  }
}
