/* ============================================
   HERO BANNER — styles
   Add this file to Assets as hero-banner.css
   ============================================ */

.hero-banner {
  position: relative;
  /* Was a fixed height:90vh with a hard max-height:820px cap — if the
     content (badge + heading + subheading + extra rows + button) needed
     more room than that, overflow:hidden simply sliced off whatever didn't
     fit (usually the button at the bottom, sometimes the top too). Using
     min-height instead means the section is still a big, roomy 90vh (or at
     least 640px) by default, but grows to fit everything if the content
     ever needs more — nothing gets clipped. */
  min-height: 640px;
  min-height: max(640px, 90vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color, #ffffff);

  /* Full-bleed fix: breaks the section out of the theme's/Elementor's
     centered, max-width content wrapper so it spans the entire browser
     width instead of leaving white bars on the left/right. */
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* ---- Slideshow ---- */
.hero-banner__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--slide-speed, 1.5s) ease-in-out;
}

.hero-banner__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner__image--placeholder {
  background:
    radial-gradient(circle at 20% 25%, rgba(212, 160, 23, 0.16) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 200, 0.14) 0, transparent 50%),
    radial-gradient(1px 1px at 15% 30%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.4) 50%, transparent 51%),
    linear-gradient(160deg, #0b0d16 0%, #14131f 45%, #1c1420 100%);
  background-size: cover;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.35));
  pointer-events: none;
}

/* ---- Layout: centered content over the slideshow ---- */
.hero-banner__layout {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
}

/* ---- Content ---- */
.hero-banner__content {
  position: relative;
  z-index: 5;
  max-width: 760px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: hero-fade-up 1s ease both;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-banner__badge-dot {
  color: var(--accent-color, #D4A017);
  font-weight: 700;
}

.hero-banner__heading {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.hero-banner__heading-highlight {
  color: var(--accent-color, #D4A017);
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  display: block;
}

.hero-banner__subheading {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  opacity: 0.85;
  max-width: 520px;
  margin: 0;
}

/* ---- Search bar ---- */
.hero-banner__search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-banner__search-icon {
  width: 18px;
  height: 18px;
  color: #666;
  flex-shrink: 0;
}

.hero-banner__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #222;
  padding: 10px 0;
}

.hero-banner__search-button,
.hero-banner__cta {
  background: var(--accent-color, #D4A017);
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.hero-banner__search-button:hover,
.hero-banner__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ---- Transparent header while hero is in view ----
   The plugin JS finds your header automatically (works with Elementor
   Pro theme-builder headers, and most themes' <header>/#masthead/.site-header)
   and toggles this class on it while the hero section is visible:

   .header--transparent {
     position: absolute !important;
     top: 0;
     left: 0;
     width: 100%;
     background: transparent !important;
     box-shadow: none !important;
     border-bottom: none !important;
     z-index: 20;
   }
   .header--transparent a,
   .header--transparent svg,
   .header--transparent .elementor-heading-title {
     filter: brightness(0) invert(1); (optional — makes logo/menu text white)
   }

   If your header still doesn't turn transparent, open the page, right-click
   the header bar → Inspect, and send me the exact class/ID on the outer
   header wrapper — I'll add that selector to the JS.
*/

/* ---- Mobile slideshow (plain, intrinsically-sized images — no cropping,
   no viewport-unit math, so it can't misbehave inside builder/editor
   previews). Hidden on desktop; shown only at the phone breakpoint below. ---- */
.hero-banner__mobile-slides {
  display: none;
  width: 100%;
}

.hero-banner__m-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity var(--slide-speed, 1.5s) ease-in-out;
}

.hero-banner__m-slide.is-active {
  opacity: 1;
}

@media (max-width: 749px) {
  /* On phones we swap the whole "background photo + dark overlay + text"
     desktop layout for a plain slideshow of the phone-specific images —
     simplest possible markup, so the picture is always shown at its own
     natural size and can never be cropped or squashed by height math. */
  .hero-banner {
    display: block;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .hero-banner__slides,
  .hero-banner__overlay,
  .hero-banner__layout {
    display: none;
  }

  .hero-banner__mobile-slides {
    display: grid;
  }
}

/* ---- Admin: slide list styling (Settings → Hero Banner) ---- */
.hb-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 10px 0;
}

.hb-slide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
}

.hb-slide-color-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}

.hb-slide-color-field.hb-color-field {
  width: 90px;
  padding: 2px 6px;
}
