/* Hero section specific variables */
.hero-section {
  padding: 1.25rem 1.1rem 0;
  display: flex;
  flex-direction: column;
}

.hero-pass {
  --notch: 28px;
  --pad: clamp(1rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper, #fff);
  box-shadow: 0 10px 40px rgba(17, 17, 16, 0.06);
  width: 100%;
  padding: var(--pad);
}

/* Boarding-pass notch top + bottom */
.hero-pass::before,
.hero-pass::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--notch);
  height: calc(var(--notch) / 2);
  background: var(--surface, #fafaf9);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.hero-pass::before { top: 0; border-radius: 0 0 999px 999px; }
.hero-pass::after  { bottom: 0; border-radius: 999px 999px 0 0; }


.hero-slider {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: height 0.6s ease;
}

.hero-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

/* Dots navigation */
.hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line, #ddd);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.hero-dots button.is-active {
  background: var(--garnet-red);
  transform: scale(1.3);
}

.hero-pass__media {
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: #f0f0f0;
}

.hero-pass__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide:hover .hero-pass__media > img {
  transform: scale(1.03);
}

/* Base styles for the positionable bubble */
.hero-msg {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 260px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  /* default position: mid-right (fallback when data-pos is unrecognised) */
  top: 50%; right: 8%; transform: translateY(-50%);
}

/* ── Bubble positions — anchored from nearest edge so they never overflow ── */
.hero-msg[data-pos="top-left"]      { top: 8%; left: 8%;  right: auto; bottom: auto; transform: none; }
.hero-msg[data-pos="top-center"],
.hero-msg[data-pos="top-mid"]       { top: 8%; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
.hero-msg[data-pos="top-right"]     { top: 8%; right: 8%; left: auto;  bottom: auto; transform: none; }
.hero-msg[data-pos="mid-left"]      { top: 50%; left: 8%;  right: auto; bottom: auto; transform: translateY(-50%); }
.hero-msg[data-pos="mid-center"]    { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.hero-msg[data-pos="mid-right"]     { top: 50%; right: 8%; left: auto;  bottom: auto; transform: translateY(-50%); }
.hero-msg[data-pos="bot-left"]      { bottom: 8%; left: 8%;  top: auto; right: auto; transform: none; }
.hero-msg[data-pos="bot-center"],
.hero-msg[data-pos="bot-mid"]       { bottom: 8%; left: 50%; top: auto; right: auto; transform: translateX(-50%); }
.hero-msg[data-pos="bot-right"]     { bottom: 8%; right: 8%; top: auto; left: auto;  transform: none; }

.hero-msg__mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.hero-msg__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-pass__text {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
}

.hero-pass__eyebrow {
  margin-top: auto;            /* centres text group between top & stops */
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--garnet-red);
  margin: 0 0 0.75rem;
  /* slide-in animation */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.hero-slide.is-active .hero-pass__eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.h1-wrapper {
  position: relative;
  width: 100%;
}
.hero-pass__h1 {
  font-size: clamp(1.5rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  min-height: 3.6em; /* reserve space for typewriter */
}
.hero-pass__h1 em {
  font-style: normal;
  color: var(--garnet-red);
}

/* Static pages (not inside .hero-section slider): no uppercase forced height */
.hero-section--static .hero-pass__h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  min-height: 0;
  text-transform: none;
  font-weight: 600;
}
.hero-section--static .hero-pass__h1 em {
  font-style: italic;
  color: var(--garnet-red);
}
.hero-section--static .hero-pass__eyebrow {
  color: var(--muted);
  opacity: 1;
  transform: none;
  transition: none;
}
.hero-section--static .hero-pass__text {
  justify-content: center;
}
.hero-section--static .hero-pass__text .jhero__cta-row {
  margin-top: 2rem;
}
.hero-section--static .hero-pass__text .jhero__lede {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .hero-section--static .hero-slide {
    align-items: center;
  }
}

/* Home/Journeys slider eyebrow — scoped rule kept for non-animated fallback */
.hero-section .hero-pass__eyebrow {
  color: var(--garnet-red);
  font-weight: 800;
}
.hero-pass__h1--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hero-pass__h1--typewriter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-pass__pill {
  margin-bottom: 1.25rem;
  /* slide-in */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}
.hero-slide.is-active .hero-pass__pill {
  opacity: 1;
  transform: translateY(0);
}

/* Trust strip — sits at the bottom of the text column, dashed line above */
.hero-pass__stops {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;                       /* push to bottom of flex column */
  padding-top: 0.85rem;
  border-top: 1.5px dashed rgba(0,0,0,0.15);
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-pass__stops b { color: var(--ink); font-weight: 600; }

.hero-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--garnet-red, #8B1D21);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--garnet-red, #8B1D21);
  color: white;
}

.jhero__cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
  max-width: 28rem;
}
.jhero__cta {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, background 0.2s, color 0.2s;
}
.jhero__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.jhero__cta--primary { background: var(--garnet-red); color: #fff; }
.jhero__cta--primary:hover { filter: brightness(0.92); }
.jhero__cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.jhero__cta--secondary:hover { background: var(--ink); color: #fff; }

@media(min-width:768px){
  .hero-section { padding: 1.5rem 2rem 0; }
  .hero-pass { --pad: clamp(1.25rem, 3vw, 2.25rem); }
  .hero-pass__media { min-height: 320px; }
}

@media(min-width:1024px){
  .hero-section { padding: 2rem 2.5rem 0; }
  .hero-pass { max-width: var(--max-wide, 1320px); margin: 0 auto; border-radius: 28px; }
  .hero-slide { grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
  .hero-pass__media { min-height: 460px; }
  .hero-pass__text { padding: 0; }
  .hero-pass__stops { font-size: 0.78rem; }
  .hero-dots { justify-content: flex-start; margin-top: 0.8rem; }
}

@media(min-width:1440px){
  .hero-section { padding: 2.5rem 2.5rem 0; }
}

/* Centered text variant — used on static pages (contact, about, etc.) */
.hero-pass__text--centered {
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}
.hero-pass__text--centered .hero-pass__eyebrow {
  margin-top: 0;
}
.hero-pass__text--centered .jhero__lede {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.hero-pass__text--centered .jhero__cta-row {
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .hero-slide:has(.hero-pass__text--centered) {
    align-items: stretch;
  }
}
