/* ==========================================================================
   Home Hero — Old styles
   ========================================================================== */

.olympus-home-hero {
  min-height: 100px;
  background-position: center;
  background-size: cover;
  padding: 80px 10px;
  padding-bottom: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 40px;
  overflow: hidden;
}

.olympus-home-hero.accelerator {
  padding-top: 100px;
}

.olympus-home-hero .acf-innerblocks-container {
  width: 100%;
}

.olympus-home-hero.has-overflow {
  margin-bottom: 60px;
  overflow: visible;
}

.olympus-home-hero.ace {
  min-height: 40vh;
  padding-bottom: 80px;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  align-items: center;
}

.olympus-home-hero.triumph {
  align-items: center;
  justify-content: space-between;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 90px;
  gap: 40px;
  padding-top: 20px;
}

.olympus-home-hero.accelerator {
  border-bottom-left-radius: 30%;
  border-bottom-right-radius: 30%;
}

.olympus-home-hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.olympus-home-hero.ace .olympus-home-hero-overlay,
.olympus-home-hero.accelerator .olympus-home-hero-overlay {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.3309698879551821) 100%
  );
}

.olympus-home-hero.triumph .olympus-home-hero-overlay {
  display: none;
}

.olympus-home-hero.has-overflow > .acf-innerblocks-container {
  margin-bottom: -80px;
}

.olympus-home-hero > .acf-innerblocks-container {
  position: relative;
  max-width: var(--wp--style--global--wide-size);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.olympus-home-hero.ace > .acf-innerblocks-container,
.olympus-home-hero.triumph > .acf-innerblocks-container {
  margin-bottom: unset;
}

.olympus-home-hero-points {
  background: var(--wp--preset--color--primary);
  margin-top: 0 !important;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.olympus-home-hero-points.is-invert {
  background: var(--wp--preset--color--secondary);
}

.olympus-home-hero.triumph .olympus-home-hero-img {
  width: 48%;
  transform: translateY(60px);
}

.olympus-home-hero-img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 800px;
  min-height: 600px;
  border-radius: 4px;
  -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.olympus-home-hero.triumph > .acf-innerblocks-container {
  width: 48%;
}

@media (min-width: 1300px) {
  .olympus-home-hero.triumph > .acf-innerblocks-container {
    width: 48%;
  }
}

@media (max-width: 1150px) {
  .olympus-home-hero.triumph > .acf-innerblocks-container,
  .olympus-home-hero-img {
    width: 100%;
  }

  .olympus-home-hero.triumph {
    display: block;
  }

  .olympus-home-hero-img > img {
    max-height: 600px;
    min-height: 400px;
  }
  .olympus-home-hero.triumph .olympus-home-hero-img {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .olympus-home-hero.accelerator {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .olympus-home-hero.accelerator {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Home Hero — shared
   ========================================================================== */

.olympus-home-hero {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100px;
  padding: clamp(64px, 8vw, 120px) clamp(16px, 4vw, 40px) 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.olympus-home-hero .acf-innerblocks-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

.olympus-home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   ace-new — editorial full-bleed, light scrim, pill selling points
   ========================================================================== */

.olympus-home-hero.ace-new {
  width: auto;
  align-items: center;
  min-height: clamp(520px, 72vh, 860px);
  margin-bottom: 0;
  padding-bottom: clamp(96px, 12vw, 140px);
}

.olympus-home-hero.ace-new .olympus-home-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.82) 38%,
    rgba(255, 255, 255, 0.35) 72%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.olympus-home-hero.ace-new > .acf-innerblocks-container {
  margin-bottom: 0;
}

.olympus-home-hero.ace-new .olympus-home-hero-points {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: 50%;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: var(--wp--style--global--wide-size);
  margin: 0 !important;
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
}

.olympus-home-hero.ace-new .olympus-home-hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.olympus-home-hero.ace-new .olympus-home-hero-point svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.olympus-home-hero.ace-new
  .olympus-home-hero-points.is-invert
  .olympus-home-hero-point {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   triumph-new — light split, accent wash, photo-first
   ========================================================================== */

.olympus-home-hero.triumph-new {
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 72px);
  min-height: clamp(520px, 74vh, 880px);
  margin-bottom: clamp(40px, 5vw, 72px);
  padding: clamp(20px, 4vw, 40px) clamp(10px, 3vw, 34px);
  background-color: #f8fafc;
}

.olympus-home-hero.triumph-new::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 90% at 8% 50%,
      var(--olympus-triumph-new-accent, var(--wp--preset--color--secondary)) 0%,
      transparent 72%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(248, 250, 252, 0.4) 42%,
      rgba(248, 250, 252, 0) 68%
    );
  opacity: 0.14;
}

.olympus-home-hero.triumph-new .olympus-home-hero-overlay {
  display: none;
}

.olympus-home-hero.triumph-new > .acf-innerblocks-container {
  position: relative;
  flex: 0 1 42%;
  width: 42%;
  max-width: 540px;
  margin-bottom: 0;
  padding-left: clamp(12px, 2vw, 20px);
}

.olympus-home-hero.triumph-new > .acf-innerblocks-container::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 3px;
  height: clamp(48px, 8vw, 105px);
  border-radius: 999px;
  background: var(
    --olympus-triumph-new-accent,
    var(--wp--preset--color--primary)
  );
  opacity: 0.9;
}

.olympus-home-hero.triumph-new
  .acf-innerblocks-container
  :is(h1, h2, h3, p, .wp-block-heading) {
  color: var(--wp--preset--color--contrast, #0f172a) !important;
}

.olympus-home-hero.triumph-new .acf-innerblocks-container .has-base-color,
.olympus-home-hero.triumph-new
  .acf-innerblocks-container
  .has-primary-contrast-color {
  color: var(--wp--preset--color--contrast, #0f172a) !important;
}

.olympus-home-hero.triumph-new .olympus-home-hero-img {
  position: relative;
  flex: 0 1 54%;
  width: 54%;
  max-width: 680px;
  padding: 0;
}

.olympus-home-hero.triumph-new .olympus-home-hero-img::before {
  content: "";
  position: absolute;
  inset: 10% -5% -5% 6%;
  z-index: 0;
  border-radius: 28px;
  background: var(
    --olympus-triumph-new-accent,
    var(--wp--preset--color--secondary)
  );
  opacity: 0.1;
}

.olympus-home-hero.triumph-new .olympus-home-hero-img > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  min-height: 400px;
  max-height: 780px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 56px rgba(15, 23, 42, 0.14);
}

/* ==========================================================================
   accelerator-new — inset hero + centred glass card wrapping all inner content
   ========================================================================== */

.olympus-home-hero.accelerator-new {
  align-items: center;
  justify-content: center;
  min-height: clamp(560px, 84vh, 940px);
  margin: auto !important;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 40px);
  border-radius: clamp(20px, 2.5vw, 32px);
}

.olympus-home-hero-glass {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.olympus-home-hero-glass > .acf-innerblocks-container {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.olympus-home-hero-glass .wp-block-spacer {
  height: clamp(12px, 2vw, 24px) !important;
}

.olympus-home-hero.has-overflow {
  margin-bottom: clamp(72px, 10vw, 128px);
}

.olympus-home-hero.accelerator-new.has-overflow .olympus-home-hero-glass {
  margin-bottom: clamp(-72px, -8vw, -40px);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1150px) {
  .olympus-home-hero.triumph-new::before {
    background:
      radial-gradient(
        ellipse 90% 45% at 50% 0%,
        var(--olympus-triumph-new-accent, var(--wp--preset--color--secondary))
          0%,
        transparent 70%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(248, 250, 252, 0) 55%
      );
    opacity: 0.16;
  }

  .olympus-home-hero.triumph-new > .acf-innerblocks-container {
    padding-left: 16px;
  }

  .olympus-home-hero-img::before {
    inset: 6% 4% -4% 4%;
  }

  .olympus-home-hero-img > img {
    min-height: 300px;
    max-height: 520px;
    aspect-ratio: 16 / 10;
  }

  .olympus-home-hero.triumph-new .olympus-home-hero-img {
    max-width: 400px;
  }
}

@media (max-width: 782px) {
  .olympus-home-hero.triumph-new > .acf-innerblocks-container::before {
    display: none;
  }

  .olympus-home-hero.triumph-new > .acf-innerblocks-container,
  .olympus-home-hero-img {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .olympus-home-hero.triumph-new > .acf-innerblocks-container {
    zoom: 0.8;
  }

  .olympus-home-hero.triumph-new {
    flex-direction: column;
    min-height: auto;
    margin-bottom: clamp(32px, 6vw, 64px);
    padding-bottom: clamp(32px, 6vw, 64px);
  }

  .olympus-home-hero-img {
    order: -1;
  }

  .olympus-home-hero.ace-new {
    min-height: clamp(460px, 68vh, 720px);
    padding-bottom: clamp(112px, 18vw, 160px);
  }

  .olympus-home-hero-points {
    /* justify-content: flex-start; */
    overflow-x: auto;
    /* flex-wrap: nowrap; */
    padding-bottom: 4px;
    scrollbar-width: none;
    zoom: 0.8;
  }

  .olympus-home-hero-points::-webkit-scrollbar {
    display: none;
  }

  .olympus-home-hero-point {
    white-space: normal;
  }

  .olympus-home-hero.ace-new > .acf-innerblocks-container,
  .olympus-home-hero.accelerator > .acf-innerblocks-container,
  .olympus-home-hero.triumph > .acf-innerblocks-container,
  .olympus-home-hero.ace > .acf-innerblocks-container {
    zoom: 0.8;
  }

  .olympus-home-hero.accelerator-new {
    margin-inline: 12px;
    min-height: clamp(480px, 78vh, 760px);
    border-radius: 20px;
    padding: clamp(32px, 5vw, 48px) 12px;
  }

  .olympus-home-hero-glass {
    width: 100%;
    padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 28px);
    border-radius: 18px;
    zoom: 0.8;
  }

  .olympus-home-hero.triumph-new .olympus-home-hero-img {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .olympus-home-hero {
    padding-inline: 12px;
  }

  .olympus-home-hero-point {
    padding: 8px 14px;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .olympus-home-hero-point {
    backdrop-filter: none;
  }

  .olympus-home-hero-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }
}
