/* ================================================================== */
/* Homepage final CTA — slim boarding-pass strip on a navy banner      */
/* Dark glass ticket with gold trim and a slight 3D tilt. The banner    */
/* flows into the footer through the site-wide gold-lined wave edge     */
/* (.footer-edge in footer.css), same as the other pages.               */
/* Colors mirror tailwind.config.js (ink / gold / sun / lagoon).        */
/* ================================================================== */

.bp-cta {
  position: relative;
  overflow: hidden;
  /* bottom padding leaves room for the footer's wave, which rises into this banner */
  padding: 3.5rem 0 calc(3.5rem + clamp(36px, 5vw, 80px));
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 124, 11, 0.16), transparent 50%),
    linear-gradient(160deg, #0b1f33 0%, #0d2338 100%);
}

/* Decorative layer */
.bp-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bp-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.bp-glow-a { width: 22rem; height: 22rem; left: -6rem; top: -8rem; background: #0f766e; opacity: 0.45; }
.bp-glow-b { width: 20rem; height: 20rem; right: -6rem; top: -6rem; background: #f47c0b; opacity: 0.28; }

/* Same width & gutters as .footer-container, so the edges line up with the footer columns */
.bp-wrap {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  perspective: 1400px;
}
@media (min-width: 640px) { .bp-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .bp-wrap { padding: 0 2rem; } }

/* ---------- The strip (3D stand) ---------- */
.bp-card-shadow {
  position: relative;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 40px rgba(244, 124, 11, 0.16));
}
.bp-tilt {
  position: relative;
  transform: rotateX(9deg);
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bp-card-shadow:hover .bp-tilt { transform: rotateX(0deg) translateY(-3px); }

/* thickness edge under the ticket, narrowing slightly toward the ground */
.bp-tilt::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: calc(100% - 1px);
  height: 0.7rem;
  background: linear-gradient(180deg, #0e2a45, #050f1a);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.6rem) 100%, 0.6rem 100%);
  border-radius: 0 0 0.6rem 0.6rem;
}

.bp-card {
  --notch: 0.8rem;
  --stub-w: 20rem;   /* kept in sync with the real stub size by cta-pass.js */
  --stub-h: 4.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.07), transparent 45%) padding-box,
    linear-gradient(135deg, #14334f 0%, #0d2338 50%, #0a1b2d 100%) padding-box,
    linear-gradient(115deg, rgba(255, 183, 3, 0.85), rgba(244, 124, 11, 0.35) 35%, rgba(15, 118, 110, 0.55) 70%, rgba(255, 183, 3, 0.6)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  /* notch cut-outs at both ends of the perforation */
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub-w)) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub-w)) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at calc(100% - var(--stub-w)) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub-w)) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
}

/* Route side */
.bp-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
}
.bp-city strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
}
.bp-city span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.bp-city-to { text-align: right; min-width: 4.75rem; }
.bp-city-to strong {
  background: linear-gradient(180deg, #ffd166, #ffb703 45%, #f47c0b);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.bp-city strong, .bp-city span { transition: opacity 0.35s ease, transform 0.35s ease; }
.bp-city.is-flipping strong,
.bp-city.is-flipping span { opacity: 0; transform: translateY(-8px); }

.bp-path { position: relative; height: 1.75rem; min-width: 3rem; }
.bp-path-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255, 183, 3, 0.35); }
.bp-path-line::before,
.bp-path-line::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.bp-path-line::before { left: 0; }
.bp-path-line::after { right: 0; background: #ffb703; box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2), 0 0 12px rgba(255, 183, 3, 0.7); }
.bp-path-plane {
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  color: #ffb703;
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.8));
  transform: translate(-50%, -50%) rotate(90deg);
  animation: bp-fly 3.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes bp-fly {
  0%   { left: 8%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

/* Stub side — the two actions */
.bp-stub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem 1rem 2rem;
  border-radius: 0 1.2rem 1.2rem 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 124, 11, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(244, 124, 11, 0.04));
}
.bp-stub::before {
  /* perforation */
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  border-left: 2px dashed rgba(255, 183, 3, 0.45);
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bp-btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.bp-btn-primary { border: 0; background: linear-gradient(135deg, #ff9433, #f47c0b 55%, #d95f02); color: #fff; box-shadow: 0 10px 22px -10px rgba(244, 124, 11, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.bp-btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(244, 124, 11, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.bp-btn-wa { background: rgba(255, 255, 255, 0.04); color: #fff; border: 1px solid rgba(37, 211, 102, 0.55); }
.bp-btn-wa svg { color: #25d366; transition: color 0.2s; }
.bp-btn-wa:hover { background: #25d366; border-color: #25d366; }
.bp-btn-wa:hover svg { color: #fff; }

/* ---------- Tablet / phone: route on top, actions below ---------- */
@media (max-width: 767px) {
  .bp-cta { padding-top: 2.5rem; padding-bottom: calc(2.5rem + clamp(36px, 5vw, 80px)); }
  .bp-tilt { transform: rotateX(6deg); }
  .bp-card {
    grid-template-columns: 1fr;
    -webkit-mask:
      radial-gradient(circle at 0 calc(100% - var(--stub-h)), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% calc(100% - var(--stub-h)), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
            mask:
      radial-gradient(circle at 0 calc(100% - var(--stub-h)), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% calc(100% - var(--stub-h)), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  }
  .bp-main { padding: 1rem 1.25rem; gap: 0.9rem; }
  .bp-city strong { font-size: 1.75rem; }
  .bp-stub { padding: 0.85rem 1rem; border-radius: 0 0 1.2rem 1.2rem; }
  .bp-stub::before { left: 1rem; right: 1rem; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255, 183, 3, 0.45); }
  .bp-btn { flex: 1 1 0; padding: 0.7rem 0.6rem; font-size: 0.8rem; }
}
@media (max-width: 359px) {
  .bp-stub { flex-wrap: wrap; }
  .bp-btn { flex-basis: 100%; }
}

/* ---------- Footer joins underneath (wave edge stays visible) ---------- */
main:has(> section.bp-cta:last-of-type) + .site-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .bp-path-plane { animation: none; left: 50%; }
  .bp-tilt, .bp-card-shadow:hover .bp-tilt { transition: none; }
}
