/* =========================================================
   HERO SPLIT
   Mobile: portrait banner + bottom glass card
   Desktop: unified cinematic banner + dark glass card (tile width)
========================================================= */

.hero.hero--split .hero-banner,
.hero.hero--split .hero-grid {
  display: none !important;
}

.hero.hero--split {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.hero--split .hero-split {
  display: block;
  width: 100%;
}

.hero--split .hero-split__media {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero--split .hero-split__media .hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.hero--split .hero-split__media .hero-slides {
  position: absolute;
  inset: 0;
}

.hero--split .hero-split__media .hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0a0f0d;
}

/* ---- Shared card base (mobile glass) ---- */
.hero--split .hero-split__content {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.hero--split .hero-copy {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 22px 22px 18px 18px;
  background: rgba(8, 14, 11, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero--split .hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(480px 160px at 12% -8%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
  border-radius: inherit;
}

.hero--split .hero-copy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 164, 99, 0), rgba(25, 164, 99, 0.85) 35%, rgba(120, 220, 160, 0.9) 50%, rgba(25, 164, 99, 0.85) 65%, rgba(25, 164, 99, 0));
  box-shadow: 0 0 18px rgba(25, 164, 99, 0.35);
  pointer-events: none;
}

.hero--split .hero-copy .kicker,
.hero--split .hero-copy h1,
.hero--split .hero-copy .lead {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero--split .hero-copy .kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 235, 200, 0.95);
  margin: 0 0 8px;
}

.hero--split .hero-copy h1 {
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.hero--split .hero-copy .lead {
  font-size: clamp(12.5px, 1.1vw, 14.5px);
  line-height: 1.5;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
}

.hero--split .hero-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero--split .hero-cta .btn {
  width: 100%;
  min-width: 0;
  padding: 12px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 12px;
}

.hero--split .hero-cta .btn:not(.btn-ghost) {
  background: linear-gradient(180deg, #1a9f61 0%, #0f6e43 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.hero--split .hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Ambient blur layer (desktop only, image set via JS) */
.hero--split .hero-split__ambient {
  display: none;
}

/* ---- Desktop: banner + card stack on ambient blur ---- */
@media (min-width: 981px) {
  .hero.hero--split {
    padding: 22px 0 36px !important;
    background: linear-gradient(
      180deg,
      #e4e9e7 0%,
      #eef2f0 30%,
      #f8faf9 70%,
      #ffffff 100%
    );
  }

  .hero--split .hero-split {
    display: flex;
    flex-direction: column;
    position: relative;
    width: min(1400px, 96vw);
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.14),
      0 8px 24px rgba(0, 0, 0, 0.06);
  }

  /* Instagram-style blurred fill behind entire hero */
  .hero--split .hero-split__ambient {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .hero--split .hero-split__ambient-image {
    position: absolute;
    inset: -30%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(56px) saturate(1.45) brightness(0.78);
    transform: scale(1.12);
    transition: opacity 0.55s ease;
    opacity: 1;
    will-change: transform, filter;
  }

  .hero--split .hero-split__ambient-scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.42) 100%),
      radial-gradient(ellipse 130% 90% at 50% 20%, rgba(255, 255, 255, 0.07), transparent 65%);
  }

  /* Sharp banner on top — full image visible, blur fills letterbox gaps */
  .hero--split .hero-split__media {
    position: relative;
    z-index: 1;
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    max-height: min(520px, 46vw);
    min-height: 320px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .hero--split .hero-split__media .hero-slider {
    position: absolute;
    inset: 0;
    border-radius: 0;
  }

  .hero--split .hero-split__media .hero-slides {
    position: absolute;
    inset: 0;
  }

  .hero--split .hero-split__media .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: transparent !important;
    filter: saturate(1.06) contrast(1.03);
  }

  .hero--split .hero-split__media .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, 0.1) 90%,
      rgba(0, 0, 0, 0.22) 100%
    );
    pointer-events: none;
  }

  /* Glass card directly under banner */
  .hero--split .hero-split__content {
    position: relative;
    z-index: 2;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: clamp(14px, 2vw, 20px) clamp(22px, 3vw, 36px) clamp(20px, 2.6vw, 28px);
    background: none;
    pointer-events: none;
  }

  .hero--split .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: clamp(20px, 3vw, 36px);
    row-gap: 5px;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.8vw, 28px);
    border-radius: 20px;
    background: rgba(8, 14, 11, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .hero--split .hero-copy::before {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 42%),
      radial-gradient(520px 180px at 8% -10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 68%);
  }

  .hero--split .hero-copy::after {
    left: clamp(20px, 2.8vw, 28px);
    right: clamp(20px, 2.8vw, 28px);
  }

  .hero--split .hero-copy .kicker {
    grid-column: 1;
    grid-row: 1;
    color: rgba(170, 235, 200, 0.95);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  .hero--split .hero-copy h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(24px, 2.4vw, 34px);
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  .hero--split .hero-copy .lead {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    font-size: clamp(13px, 1.05vw, 15px);
    max-width: 52ch;
  }

  .hero--split .hero-cta {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: min(210px, 100%);
  }

  .hero--split .hero-cta .btn:not(.btn-ghost) {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }

  .hero--split .hero-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .hero--split .hero-split__media .hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.22s ease, background 0.22s ease;
  }

  .hero--split .hero-split__media .hero-arrow--prev { left: 16px; }
  .hero--split .hero-split__media .hero-arrow--next { right: 16px; }

  .hero--split .hero-split__media:hover .hero-arrow {
    opacity: 1;
  }

  .hero--split .hero-split__media .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
  }

  .hero--split .hero-split__media .hero-dots {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
  }

  .hero--split .hero-split__media .hero-dot {
    background: rgba(255, 255, 255, 0.38);
    border: 0;
  }

  .hero--split .hero-split__media .hero-dot.is-active {
    background: #fff;
  }

  .hero.hero--split + .section {
    padding-top: 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
  }
}

/* ---- Mobile: portrait banner + bottom glass card ---- */
@media (max-width: 980px) {
  .hero.hero--split {
    padding: 0 !important;
    margin: 0 !important;
    background: #050807 !important;
  }

  .hero--split .hero-split {
    display: grid;
    grid-template-areas: "stack";
    position: relative;
    max-width: none;
    width: 100%;
  }

  .hero--split .hero-split__media {
    grid-area: stack;
    width: 100%;
    aspect-ratio: 682 / 1024;
    max-height: min(94vh, 820px);
    min-height: 420px;
    background: #050807;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .hero--split .hero-split__media .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Single mobile image only — all slides */
  .hero--split .hero-split__media .hero-slide,
  .hero--split .hero-split__media .hero-slides .hero-slide {
    background-image: url("../img/banner-mobile-hero.png") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #050807 !important;
  }

  .hero--split .hero-split__media .hero-slider.is-mobile-static .hero-dots,
  .hero--split .hero-split__media .hero-slider.is-mobile-static .hero-arrow,
  .hero--split .hero-split__media .hero-arrow,
  .hero--split .hero-split__media .hero-dots {
    display: none !important;
  }

  /* Image already has dark field — light vignette only */
  .hero--split .hero-split__media .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0) 36%,
      rgba(0, 0, 0, 0) 56%,
      rgba(0, 0, 0, 0.08) 80%,
      rgba(0, 0, 0, 0.18) 100%
    ) !important;
  }

  /* Card sits over the dark lower field */
  .hero--split .hero-split__content {
    grid-area: stack;
    align-self: end;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 0 14px max(14px, env(safe-area-inset-bottom));
    background: none;
    z-index: 5;
    pointer-events: none;
  }

  .hero--split .hero-copy {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 18px 16px;
    border-radius: 22px 22px 18px 18px;
    background: rgba(8, 14, 11, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .hero--split .hero-copy::before {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
      radial-gradient(480px 160px at 12% -8%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 68%);
  }

  .hero--split .hero-copy::after {
    left: 18px;
    right: 18px;
    background: linear-gradient(90deg, rgba(25, 164, 99, 0), rgba(25, 164, 99, 0.85) 35%, rgba(120, 220, 160, 0.9) 50%, rgba(25, 164, 99, 0.85) 65%, rgba(25, 164, 99, 0));
    box-shadow: 0 0 18px rgba(25, 164, 99, 0.35);
  }

  .hero--split .hero-copy .kicker,
  .hero--split .hero-copy h1,
  .hero--split .hero-copy .lead {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45) !important;
  }

  .hero--split .hero-copy .kicker {
    color: rgba(170, 235, 200, 0.95) !important;
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero--split .hero-copy h1 {
    font-size: clamp(21px, 5.4vw, 26px);
    margin-bottom: 10px;
  }

  .hero--split .hero-copy .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(12.5px, 3.4vw, 14px);
    margin-bottom: 14px;
  }

  .hero--split .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    min-width: 0;
  }

  .hero--split .hero-cta .btn:not(.btn-ghost) {
    background: linear-gradient(180deg, #1a9f61 0%, #0f6e43 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
  }

  .hero--split .hero-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  }
}

/* Shield against legacy style.css !important hero rules */
.hero.hero--split .hero-split__media .hero-slider {
  width: 100% !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}

@media (min-width: 981px) {
  .hero.hero--split .hero-split__media .hero-slider {
    max-width: 100% !important;
  }

  .hero.hero--split .hero-split__media .hero-slide {
    background-size: contain !important;
    background-position: center center !important;
  }
}

@media (max-width: 980px) {
  .hero.hero--split .hero-split__media .hero-slider {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .hero.hero--split .hero-split__media .hero-slide {
    background-size: cover !important;
    background-position: center top !important;
  }

  .hero.hero--split .hero-arrow,
  .hero.hero--split .hero-dots {
    display: none !important;
  }
}
