/**
 * Home hero / banner — mobile-first responsive fixes
 * Resolves header overlap, typography scaling, contrast, and search alignment.
 */

/* ------------------------------------------------------------------
   Global hero typography & contrast (all breakpoints)
------------------------------------------------------------------ */
.header-slider .header-area .header-inner-02 .title {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
  word-break: break-word;
  hyphens: auto;
}

.header-slider .header-area .header-inner-02 .subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.45;
  word-break: break-word;
}

.header-slider .header-area .header-inner-02 > p:first-child {
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.55;
  font-style: italic;
}

/* Fluid hero sizing — replaces fixed 295px / 60px desktop-only values */
.header-slider .header-area.style-02 {
  padding: clamp(3.5rem, 12vw, 9rem) 0 clamp(3rem, 10vw, 8rem);
}

.header-slider .header-area .header-inner-02 .title {
  font-size: clamp(1.875rem, 5.5vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.header-slider .header-area .header-inner-02 .subtitle {
  font-size: clamp(1rem, 2.8vw, 1.65rem);
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

/* Hero search — full-width, aligned button */
.header-slider .header-inner-02 .search-form.navbar-search {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: clamp(0.75rem, 2.5vw, 1.25rem);
}

.header-slider .header-inner-02 .search-form .form-group {
  width: 100% !important;
  position: relative;
}

.header-slider .header-inner-02 .search-form .form-group.hide {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

.header-slider .header-inner-02 .search-form .form-group .form-control {
  width: 100%;
  height: 48px;
  padding: 0.65rem 3.25rem 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.header-slider .header-inner-02 .search-form .search-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  min-width: 48px;
  padding: 0 1rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
  background-color: var(--main-color-one, #e74c3c) !important;
}

.header-slider .header-inner-02 .search-form .search-btn.hide {
  display: inline-flex !important;
}

/* ------------------------------------------------------------------
   Header stack — prevent overlap with hero (site-header layout)
------------------------------------------------------------------ */
.header-style-01 {
  position: relative;
  z-index: 30;
  background: #ffffff;
}

.info-bar.site-header .info-bar-bottom {
  position: relative !important;
  width: 100%;
  padding: 0.35rem 0 0.5rem;
}

.info-bar.site-header .infobar-width-lg,
.info-bar.site-header .info-bar-inner {
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

.header-slider {
  position: relative;
  z-index: 1;
  clear: both;
}

/* ------------------------------------------------------------------
   Tablet & mobile
------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .header-style-01 .info-bar-bottom.style-02,
  .header-style-01 .info-bar-bottom.style-03 {
    position: relative !important;
    top: auto !important;
    padding: 0.25rem 0 0.5rem;
  }

  .site-header .site-header__navbar {
    margin-top: 0.25rem;
    padding-top: 0.35rem !important;
    padding-bottom: 0.25rem !important;
  }

  .navbar-area.nav-style-02.has-topbar-03 {
    top: auto !important;
  }

  .navbar-area.nav-style-02 .nav-container {
    background-color: #ffffff !important;
    border-radius: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .header-slider .header-area.style-02 {
    padding: clamp(2rem, 7vw, 3.5rem) 0 clamp(2.25rem, 8vw, 4rem);
  }

  .header-slider .header-area .header-inner-02 {
    padding-top: 0.25rem;
    text-align: left;
  }

  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    padding-top: 0 !important;
  }

  .header-slider .header-area .header-inner-02 .subtitle {
    font-size: clamp(0.9rem, 3.8vw, 1.2rem) !important;
    line-height: 1.4 !important;
  }

  .header-slider .header-inner-02 .search-form.navbar-search {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .header-slider .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
  }

  .header-slider .header-area .header-inner-02 .subtitle {
    font-size: clamp(0.8125rem, 3.5vw, 1rem) !important;
    text-transform: none;
    letter-spacing: 0.01em;
  }

  .header-slider .header-inner-02 .search-form .form-group .form-control {
    height: 44px;
    font-size: 0.875rem;
  }

  .header-slider .header-inner-02 .search-form .search-btn {
    height: 44px;
    min-width: 44px;
  }
}

/* Override legacy responsive.css rules that inflate hero title on small screens */
@media only screen and (max-width: 599px) {
  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  .header-slider .header-area .header-inner-02 .subtitle {
    font-size: clamp(0.875rem, 3.5vw, 1.15rem) !important;
    line-height: 1.4 !important;
  }
}

@media only screen and (max-width: 450px) {
  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.375rem, 7.5vw, 1.875rem) !important;
    line-height: 1.2 !important;
    padding: 0 !important;
  }

  .header-slider .header-area .header-inner-02 .subtitle {
    font-size: clamp(0.8125rem, 3.2vw, 1rem) !important;
    line-height: 1.35 !important;
  }
}

@media only screen and (max-width: 384px) {
  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.25rem, 7vw, 1.65rem) !important;
    line-height: 1.2 !important;
  }
}

@media only screen and (max-width: 360px) {
  .header-slider .header-area .header-inner-02 .title {
    font-size: clamp(1.2rem, 6.5vw, 1.5rem) !important;
    line-height: 1.2 !important;
  }
}
