/* Depth for the landing pages: everything below the heroes. premium.js drives the pointer tilt and the
   scroll entrance; without it the pages keep the shadows and finish and lose nothing else. Nothing here
   may match inside a hero or its search card. */
:root {
  --p-ink: 11, 31, 58;
  --p-gold: #c9a24b;
  --p-gold-deep: #a9791a;
  --p-rest:
    0 1px 2px rgba(var(--p-ink), 0.05),
    0 6px 14px rgba(var(--p-ink), 0.07),
    0 20px 38px -14px rgba(var(--p-ink), 0.16);
  --p-lifted:
    0 2px 4px rgba(var(--p-ink), 0.06),
    0 16px 30px rgba(var(--p-ink), 0.13),
    0 38px 64px -20px rgba(var(--p-ink), 0.34);
}

/* ---------- Section headings ---------- */
.section-heading .section-eyebrow {
  letter-spacing: 0.16em;
}

.section-heading:not(.routes-heading) .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.section-heading:not(.routes-heading) .section-eyebrow::before,
.section-heading:not(.routes-heading) .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-gold));
}

.section-heading:not(.routes-heading) .section-eyebrow::after {
  transform: scaleX(-1);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 0.6rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--p-gold-deep), #e6c565, var(--p-gold-deep));
}

.routes-heading h2::after {
  margin-left: 0;
}

/* ---------- Cards ---------- */
.dest-card,
.dest-card:link,
.dest-card:visited,
.dest-card:active,
.route-card,
.hotel-dest-card,
.dest-guide-card,
.testimonial-card,
.why-us-card,
.visa-step,
.svc-card,
.tour-season-spot {
  box-shadow: var(--p-rest);
}

.testimonial-card,
.why-us-card,
.visa-step {
  border-color: rgba(var(--p-ink), 0.06);
}

.dest-card:hover,
.route-card:hover,
.hotel-dest-card:hover,
.dest-guide-card:hover,
.testimonial-card:hover,
.why-us-card:hover,
.visa-step:hover,
.svc-card:hover,
.tour-season-spot:hover {
  box-shadow: var(--p-lifted), 0 0 0 1px rgba(201, 162, 75, 0.38);
}

/* The horizontal carousels clip whatever leaves their box, which cut the shadows off flat. */
.tour-pop-track,
.routes-track,
.testimonials-track {
  margin: -16px -12px -14px;
  padding: 16px 12px 30px;
  /* overflow-x alone turns overflow-y to auto: a tilting card then gives the rail a little vertical
     scroll of its own, and the mouse wheel moves that instead of the page. */
  overflow-y: hidden;
}

/* ---------- Pointer tilt (premium.js) ---------- */
/* Several cards finish an entrance animation that keeps hold of transform and opacity for good, and
   an animation beats any plain rule. A card is released from it the first time it is hovered. */
.p3d-settled,
.p3d-settled.is-visible {
  animation: none;
  opacity: 1;
  transform: none;
}

.p3d-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, margin-top 0.3s ease;
}

.p3d-card.is-tilting,
.p3d-settled.is-tilting {
  transform: perspective(1100px) rotateX(var(--p-rx, 0deg)) rotateY(var(--p-ry, 0deg)) translate3d(0, -4px, 0);
  transition: transform 0.08s linear, box-shadow 0.3s ease, margin-top 0.3s ease;
  will-change: transform;
}

.p3d-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--p-gx, 50%) var(--p-gy, 50%), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.is-tilting > .p3d-sheen {
  opacity: 1;
}

/* ---------- Scroll entrance (premium.js) ---------- */
.p3d-pending {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 30px, 0) rotateX(9deg);
  transform-origin: 50% 100%;
}

.p3d-rise {
  transition: opacity 0.7s ease var(--p-delay, 0s), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--p-delay, 0s);
}

/* ---------- Raised icons and step numbers ---------- */
.why-us-icon,
.wcu-icon,
.whb-icon {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(var(--p-ink), 0.14),
    0 8px 16px -4px rgba(var(--p-ink), 0.26);
}

.visa-step-num {
  background: radial-gradient(circle at 34% 28%, #2b4a78 0%, var(--brand-navy) 58%, var(--brand-navy-dark) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 3px rgba(201, 162, 75, 0.28),
    0 10px 18px -4px rgba(var(--p-ink), 0.4);
}

.tour-theme-photo {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 4px rgba(201, 162, 75, 0.45),
    0 16px 26px -8px rgba(var(--p-ink), 0.34);
}

/* ---------- Strips and bands ---------- */
.wcu-strip,
.whb-strip {
  border-radius: 1.1rem;
  box-shadow: var(--p-rest);
}

.testimonials-section,
.why-us-section {
  position: relative;
}

.testimonials-section::before,
.why-us-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(201, 162, 75, 0.09), transparent 70%),
    linear-gradient(180deg, #fbf8f1, #fff);
}

/* ---------- Dark panels ---------- */
.visa-consultation-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(201, 162, 75, 0.2), transparent 62%),
    radial-gradient(50% 70% at 100% 100%, rgba(58, 104, 168, 0.28), transparent 65%),
    linear-gradient(150deg, var(--brand-navy-dark), var(--brand-navy) 60%, var(--brand-navy-light));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(201, 162, 75, 0.2),
    0 40px 70px -28px rgba(var(--p-ink), 0.6);
}

.visa-consultation-form {
  box-shadow: 0 26px 50px -18px rgba(4, 12, 26, 0.7);
}

.tour-season-section {
  background:
    radial-gradient(50% 90% at 8% 10%, rgba(201, 162, 75, 0.18), transparent 60%),
    linear-gradient(150deg, var(--brand-navy-dark), var(--brand-navy));
}

.tour-season-card {
  box-shadow: 0 30px 56px -20px rgba(2, 8, 20, 0.75);
}

/* ---------- Buttons that press in ---------- */
.visa-form-submit,
.tour-season-cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 3px 0 rgba(4, 12, 26, 0.5),
    0 12px 20px -8px rgba(var(--p-ink), 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}

.visa-form-submit:active,
.tour-season-cta:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(4, 12, 26, 0.5),
    0 4px 8px -4px rgba(var(--p-ink), 0.5);
}

/* ---------- App promo ---------- */
.app-promo-banner-img {
  border-radius: 1.2rem;
  box-shadow: var(--p-lifted);
}

.app-store-pill {
  box-shadow: var(--p-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-lifted);
}

@media (prefers-reduced-motion: reduce) {
  .p3d-card,
  .p3d-rise,
  .app-store-pill {
    transition: none;
  }

  .app-store-pill:hover {
    transform: none;
  }
}

/* Anything still waiting to rise would otherwise print blank. */
@media print {
  .p3d-pending {
    opacity: 1;
    transform: none;
  }
}
