/* ── Hero Carousel ── */

.hero-carousel {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, .2);
}

/* Heights */
.hero-carousel--h-viewport { min-height: 100vh; }
.hero-carousel--h-lg       { min-height: 80vh; }
.hero-carousel--h-md       { min-height: 60vh; }
.hero-carousel--h-sm       { min-height: 40vh; }

/* Track & slide — inherit min-height down the chain so slides actually fill */
.hero-carousel__track {
  display: flex;
  min-height: inherit;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}

.hero-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
}

/* Background */
.hero-carousel__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
@media (max-width: 1024px) {
  .hero-carousel__bg { background-image: var(--hero-bg-mobile, var(--hero-bg)); }
}
.hero-carousel__bg--gradient {
  background: linear-gradient(135deg, var(--gs-navy-dark) 0%, var(--gs-navy) 55%, var(--gs-navy-light) 100%);
}
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #0A1F3D 0%, #0088FA85 60%);
}
.hero-carousel--overlay-blue .hero-carousel__overlay {
  background-image: linear-gradient(90deg, var(--gs-blue) 0%, #0088FA85 60%);
}
.hero-carousel--overlay-blue .hero-carousel__statements-wrap {
  background-color: rgba(0, 86, 158, 0.25);
}

/* Content — reserve bottom space for the absolutely-positioned statements
   bar so it never overlaps slide content on short viewports. */
.hero-carousel { --gs-statements-h: 0px; }
.hero-carousel:has(.hero-carousel__statements-wrap) {
  --gs-statements-h: calc(clamp(64px, 6vw, 96px) + 40px);
}
.hero-carousel__content {
  position: relative;
  z-index: 1;
  padding-block: 140px calc(80px + var(--gs-statements-h));
}
.hero-carousel__inner {
  display: grid;
  grid-template-columns: 2.5fr 2fr;
  gap: 0;
  align-items: center;
}
.hero-carousel--align-center .hero-carousel__inner {
  grid-template-columns: 1fr;
  text-align: center;
  margin-inline: auto;
}

/* Content max-width — only meaningful when content is center-aligned */
.hero-carousel--width-content .hero-carousel__inner { max-width: 760px; }
.hero-carousel--width-medium  .hero-carousel__inner { max-width: 900px; }
.hero-carousel--width-wide    .hero-carousel__inner { max-width: 1200px; }
.hero-carousel--width-full    .hero-carousel__inner { max-width: none; }
.hero-carousel--valign-top    .hero-carousel__slide { align-items: flex-start; }
.hero-carousel--valign-middle .hero-carousel__slide { align-items: center; }
.hero-carousel--valign-bottom .hero-carousel__slide { align-items: flex-end; }

/* Statements — full-bleed bar pinned to the bottom of the carousel.
   Three-column row of supporting statements. */
.hero-carousel__statements-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(8px) brightness(0.9);
          backdrop-filter: blur(8px) brightness(0.9);
  padding-block: 0;
}
.hero-carousel__statements {
  min-height: clamp(64px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  padding-block: 20px;
}
.hero-carousel__statement {
  font-family: var(--gs-font);
  color: var(--gs-white);
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.25rem);
  font-weight: 500;
  line-height: 1.3em;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: none;
  text-shadow: var(--gs-text-shadow-hero);
}
.hero-carousel__statement-text {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

/* Number variant — big numeric value above a small uppercase label */
.hero-carousel__statement--has-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-carousel__statement-number {
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gs-white);
}
.hero-carousel__statement--has-number .hero-carousel__statement-text {
  font-size: clamp(0.75rem, 0.3vw + 0.7rem, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2em;
}
.hero-carousel--text-dark .hero-carousel__statement-number { color: var(--gs-text); }

.hero-carousel__statement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  margin-right: 10px;
  width: 1.4em;
  height: 1.4em;
  color: var(--gs-orange);
}
.hero-carousel__statement-icon img,
.hero-carousel__statement-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-carousel--text-dark .hero-carousel__statement { color: var(--gs-text); }

@media (max-width: 960px) {
  .hero-carousel__statements-wrap {
    position: static;
    background-color: #0e1a42;
  }
  .hero-carousel--overlay-blue .hero-carousel__statements-wrap {
    background-color: var(--gs-blue-dark);
  }
  /* Statements now flow below content — no reserved space needed. */
  .hero-carousel:has(.hero-carousel__statements-wrap) { --gs-statements-h: 0px; }
}
@media (max-width: 768px) {
  .hero-carousel__statements {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 24px;
  }
}
@media (max-width: 640px) {
  .hero-carousel__statements { min-height: 0; }
}

/* After-content disclaimer */
.hero-carousel-after {
  padding-block: 20px;
}
.hero-carousel-after p {
  font-size: 14px;
  color: var(--gs-muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.hero-carousel-after p:last-child { margin: 0; }

/* Breadcrumb back-link — sits above the headline */
.hero-carousel__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gs-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gs-white);
  text-decoration: none;
  margin-bottom: 18px;
  text-shadow: var(--gs-text-shadow-hero);
  transition: color .2s ease;
}
.hero-carousel__breadcrumb-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 5 8 12 15 19'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 5 8 12 15 19'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}
.hero-carousel__breadcrumb:hover { color: var(--gs-orange); }
.hero-carousel__breadcrumb:hover .hero-carousel__breadcrumb-arrow { transform: translateX(-4px); }
.hero-carousel--text-dark .hero-carousel__breadcrumb { color: var(--gs-navy); }

/* Text – light theme (default) */
.hero-carousel__headline {
  font-family: var(--gs-font-display);
  font-size: var(--gs-h1);
  font-weight: 700;
  color: var(--gs-white);
  line-height: 1.1;
  text-shadow: var(--gs-text-shadow-hero);
  margin-bottom: 12px;
}
.hero-carousel__tagline {
  font-family: var(--gs-font);
  color: var(--gs-orange);
  font-size: clamp(1.5rem, 1.5vw + 1.125rem, 2rem); /* 24px → 32px */
  font-weight: 700;
  line-height: 1em;
  text-shadow: var(--gs-text-shadow-hero);
  margin: 30px 0;
}
.hero-carousel__body {
  font-family: var(--gs-font);
  color: var(--gs-white);
  font-size: var(--gs-body-size);
  line-height: 1.4em;
  text-shadow: var(--gs-text-shadow-hero);
  margin-bottom: 32px;
  border-left: 3px solid var(--gs-orange);
  padding-left: 16px;
}
.hero-carousel__body p { margin: 0 0 8px; }
.hero-carousel__body p:last-child { margin: 0; }
.hero-carousel--align-center .hero-carousel__body {
  border-left: none;
  padding-left: 0;
}

/* Secondary column — translucent, blurred panel styled like a ghost button */
.hero-carousel__secondary {
  width: 100%;
  font-family: var(--gs-font);
  font-size: var(--gs-body-size);
  line-height: 1.5em;
  color: var(--gs-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--gs-radius-lg);
  padding: 28px 32px;
  -webkit-backdrop-filter: blur(4px) brightness(0.95);
          backdrop-filter: blur(4px) brightness(0.95);
}
.hero-carousel__secondary--w-50  { width: 50%; }
.hero-carousel__secondary--w-60  { width: 60%; }
.hero-carousel__secondary--w-70  { width: 70%; }
.hero-carousel__secondary--w-80  { width: 80%; }
.hero-carousel__secondary--w-90  { width: 90%; }
.hero-carousel__secondary--w-100 { width: 100%; }
.hero-carousel__secondary--align-left   { margin-right: auto; }
.hero-carousel__secondary--align-center { margin-inline: auto; }
.hero-carousel__secondary--align-right  { margin-left: auto; }
.hero-carousel__col--valign-top    { align-self: start; }
.hero-carousel__col--valign-middle { align-self: center; }
.hero-carousel__col--valign-bottom { align-self: end; }

/* Image/Logo variant — fills the secondary panel respecting the chosen Layout */
.hero-carousel__secondary-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 350px;
  margin: auto;
  border-radius: 0;
}
/* Bordered layout: image hugs the orange left border with no inner padding */
.hero-carousel__secondary--layout-bordered.hero-carousel__secondary--image {
  padding: 0 0 0 16px;
}
.hero-carousel__secondary--layout-bordered .hero-carousel__secondary-img {
  border-radius: 0;
}
.hero-carousel__secondary p {
  margin: 0 0 8px;
  font-size: var(--gs-body-size);
  line-height: 1.4em;
}
.hero-carousel__secondary p:last-child { margin: 0; }
.hero-carousel__secondary a { color: var(--gs-white); text-decoration: underline; }
.hero-carousel--text-dark .hero-carousel__secondary {
  color: var(--gs-text);
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.4);
}
.hero-carousel--text-dark .hero-carousel__secondary a { color: var(--gs-navy); }

/* Bordered layout — strips the panel chrome and mirrors the left-column body */
.hero-carousel__secondary--layout-bordered {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--gs-orange);
  border-radius: 0;
  padding: 0 0 0 16px;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  line-height: 1.4em;
  text-shadow: var(--gs-text-shadow-hero);
}
.hero-carousel--text-dark .hero-carousel__secondary--layout-bordered {
  background: transparent;
  border-color: var(--gs-orange);
  color: var(--gs-muted);
}

/* Text – dark theme */
.hero-carousel--text-dark .hero-carousel__headline { color: var(--gs-navy); }
.hero-carousel--text-dark .hero-carousel__body     { color: var(--gs-muted); border-color: var(--gs-orange); }

/* CTA group */
.hero-carousel__ctas { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero-carousel--align-center .hero-carousel__ctas { justify-content: center; }

.hero-carousel__ctas .gs-btn {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 18px 28px;
  gap: 14px;
}
.hero-carousel__ctas .gs-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 5 16 12 9 19'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 5 16 12 9 19'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}
/* New-tab variant: swap the chevron for an external-link icon. */
.hero-carousel__ctas .gs-btn[target="_blank"]::after {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>");
}
.hero-carousel__ctas .gs-btn:hover::after {
  transform: translateX(4px);
}

.hero-carousel__ctas .gs-btn--primary {
  background: linear-gradient(135deg, var(--gs-orange) 0%, var(--gs-orange-dark) 100%);
  border-color: transparent;
}
.hero-carousel__ctas .gs-btn--primary:hover {
  background: linear-gradient(135deg, var(--gs-orange-dark) 0%, var(--gs-orange) 100%);
  border-color: transparent;
}

/* Nav arrows */
.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gs-white);
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.hero-carousel__nav:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.hero-carousel__nav--prev { left: 24px; }
.hero-carousel__nav--next { right: 24px; }

/* Dots */
.hero-carousel__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.hero-carousel__dot.is-active {
  background: var(--gs-white);
  transform: scale(1.3);
}

/* Text column progressively widens, then goes full width at 768px */
@media (max-width: 1200px) {
  .hero-carousel__inner { grid-template-columns: 2fr 1fr; }
}
@media (max-width: 960px) {
  .hero-carousel__inner { grid-template-columns: 3fr 1fr; }
}
@media (max-width: 768px) {
  .hero-carousel__content { padding-block: 110px 64px; }
  .hero-carousel__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-carousel__nav { display: none; }
  .hero-carousel__secondary-img { max-width: 250px; }
}

/* Slides with secondary content stack one column earlier so the
   right-hand panel has room to breathe before going single-column.
   Below 1024px, force the panel to left-align regardless of editor setting. */
@media (max-width: 1024px) {
  .hero-carousel__inner.hero-carousel__inner--has-secondary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-carousel__secondary {
    margin-left: 0;
    margin-right: auto;
    /* Force the bordered layout regardless of editor choice */
    background: transparent;
    border: 0;
    border-left: 3px solid var(--gs-orange);
    border-radius: 0;
    padding: 0 0 0 16px;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    line-height: 1.4em;
    text-shadow: var(--gs-text-shadow-hero);
  }
  .hero-carousel--text-dark .hero-carousel__secondary {
    background: transparent;
    border-color: var(--gs-orange);
    color: var(--gs-muted);
  }
  /* When the secondary content is an image, drop the orange left border
     and flush the image to the left edge of the column. */
  .hero-carousel__secondary.hero-carousel__secondary--image {
    border-left: 0;
    padding-left: 0;
  }
  .hero-carousel__secondary-img { margin: 0; }
}

/* Width overrides for the secondary panel:
   - 1024–1380px (still 2-col): force panel to fill its column
   - <768px (stacked): force panel to full width
   - 768–1024px (stacked): editor-set width applies (no override) */
@media (min-width: 1024px) and (max-width: 1380px) {
  .hero-carousel__secondary { width: 100%; }
}
@media (max-width: 767.98px) {
  .hero-carousel__secondary { width: 100%; }
}
