/**
 * Hero Banner - SAHO Site Style
 * Matching the exact design from the screenshot
 */

.hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

/* Dark overlay matching the site example */
.hero-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Content container */
.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Inner wrapper */
.hero-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Title styling - bright eye-catching white */
.hero-banner__title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff !important;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Title color variations - SAHO brand colors */
.hero-banner__title--white,
.hero-banner h1.hero-banner__title--white,
.hero-banner .hero-banner__title--white {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}

.hero-banner__title--red,
.hero-banner h1.hero-banner__title--red,
.hero-banner .hero-banner__title--red {
  color: #990000 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5) !important;
}

.hero-banner__title--gold,
.hero-banner h1.hero-banner__title--gold,
.hero-banner .hero-banner__title--gold {
  color: #b88a2e !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.hero-banner__title--green,
.hero-banner h1.hero-banner__title--green,
.hero-banner .hero-banner__title--green {
  color: #2e7d32 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4) !important;
}

/* Subtitle styling */
.hero-banner__subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1.125rem;
  color: #ffffff !important;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: none;
  opacity: 0.95;
}

/* Body text */
.hero-banner__body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
  text-shadow: none;
  max-width: 500px;
}

.hero-banner__body,
.hero-banner__body * {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-banner__body p {
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-banner__body p:last-child {
  margin-bottom: 0;
}

/* CTA Button - SAHO standard button style */
.hero-banner__cta {
  margin-top: 1rem;
}

.hero-banner__button,
.hero-banner__button.btn,
.hero-banner__button.btn-primary {
  display: inline-block;
  padding: 0.625rem 1.875rem;
  background: #990000;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #990000;
  border-radius: 25px;
  transition: all 0.3s ease;
  letter-spacing: 0.025em;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.hero-banner__button:hover,
.hero-banner__button.btn:hover,
.hero-banner__button.btn-primary:hover,
a.hero-banner__button:hover,
.hero-banner__cta a:hover {
  background: #ffffff !important;
  color: #990000 !important;
  border-color: #990000 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.hero-banner__button:active,
.hero-banner__button.btn:active,
.hero-banner__button.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-banner__button:focus,
.hero-banner__button.btn:focus,
.hero-banner__button.btn-primary:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-banner {
    height: 280px;
  }

  .hero-banner__content {
    padding: 1.5rem;
  }

  .hero-banner__title {
    font-size: 1.875rem;
    margin-bottom: 0.375rem;
  }

  .hero-banner__subtitle {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }

  .hero-banner__body {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .hero-banner__button,
  .hero-banner__button.btn,
  .hero-banner__button.btn-primary {
    padding: 0.4375rem 1.25rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 240px;
  }

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

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

  .hero-banner__body {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .hero-banner__button,
  .hero-banner__button.btn,
  .hero-banner__button.btn-primary {
    padding: 0.375rem 1rem;
    font-size: 0.6875rem;
  }
}

/* Style all links in CTA area as buttons */
.hero-banner__cta a,
.hero-banner__cta .field--name-field-call-to-action-button a {
  display: inline-block;
  padding: 0.625rem 1.875rem !important;
  background: #990000 !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid #990000 !important;
  border-radius: 25px !important;
  transition: all 0.3s ease;
  letter-spacing: 0.025em;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.hero-banner__cta a:hover,
.hero-banner__cta .field--name-field-call-to-action-button a:hover {
  background: #ffffff !important;
  color: #990000 !important;
  border-color: #990000 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.hero-banner__cta a:active,
.hero-banner__cta .field--name-field-call-to-action-button a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ghost button style */
.hero-banner__button--ghost,
.hero-banner__cta .hero-banner__button--ghost {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.hero-banner__button--ghost:hover,
.hero-banner__cta .hero-banner__button--ghost:hover,
a.hero-banner__button--ghost:hover {
  background: #ffffff !important;
  color: #990000 !important;
  border-color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-banner__button--ghost:active,
.hero-banner__cta .hero-banner__button--ghost:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Ensure button text stays correct color */
a.hero-banner__button,
a.hero-banner__button:visited,
a.hero-banner__button:link {
  color: #ffffff !important;
}