/* ============================================================
   Booking Steps Section  —  bks-* namespace
   Depends on: base/variables.css
   ============================================================ */

/* ── Section wrapper ───────────────────────────────────────── */
.bks-section {
  padding: 72px 0 80px;
  background: var(--clr-navy-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.bks-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial glow */
.bks-section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 56, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Section header ────────────────────────────────────────── */
.bks-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.bks-header h2,
.bks-header .global-heading {
  font-size: 38px;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.bks-header p,
.bks-header .sub-heading {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Steps row ─────────────────────────────────────────────── */
.bks-steps-row {
  position: relative;
  z-index: 1;
}

/* ── Individual step — glass card ──────────────────────────── */
.bks-step {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  height: 100%;
  /* animated gradient border via outline + pseudo */
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transition: background var(--trans-normal), box-shadow var(--trans-normal),
    transform var(--trans-normal);
}

/* gradient border layer */
.bks-step::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(
    135deg,
    rgba(255, 108, 44, 0) 0%,
    rgba(255, 108, 44, 0.15) 50%,
    rgba(238, 56, 36, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.bks-step:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 108, 44, 0.35),
    0 0 24px rgba(255, 108, 44, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.3);
}

.bks-step:hover::before {
  opacity: 1;
}

/* ensure content sits above ::before gradient border */
.bks-step-num,
.bks-step-top,
.bks-step-text,
.bks-step-desc {
  position: relative;
  z-index: 1;
}

/* ── Step number — top corner badge ───────────────────────── */
.bks-step-num {
  position: absolute;
  top: -14px;
  inset-inline-end: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-orange-dark), var(--clr-orange));
  color: var(--clr-white);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(238, 56, 36, 0.4);
  flex-shrink: 0;
}

/* ── Small icon row (icon + title on same line) ────────────── */
.bks-step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  width: 100%;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

/* ── Image frame ────────────────────────────────────────────── */
.bks-img-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* dark navy base */
  background: rgba(12, 18, 42, 0.85);
  /* gradient border: orange top edge fades to transparent */
  border: 1px solid rgba(255, 108, 44, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 6px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 108, 44, 0.08);
  transition: border-color 0.35s ease, box-shadow 0.35s ease,
    transform 0.35s ease;
}

.bks-step:hover .bks-img-frame {
  border-color: rgba(255, 108, 44, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 108, 44, 0.2);
  transform: translateY(-3px);
}

/* ambient orange glow orb behind the image */
.bks-img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 110%,
    rgba(255, 108, 44, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
  opacity: 0.6;
}

.bks-step:hover .bks-img-glow {
  opacity: 1;
}

/* image itself */
.bks-step-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  will-change: transform;
  transition: transform 0.4s ease;
  z-index: 2;
}

.bks-step:hover .bks-step-img {
  transform: translateZ(0) scale(1.07);
}

/* gradient scrim at the bottom of the frame */
.bks-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(12, 18, 42, 0.55) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* ── Step text ─────────────────────────────────────────────── */
.bks-step-text {
  flex: 1;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.bks-step-text h3,
.bks-step-text .custom-card-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-white);
  margin: 0;
  line-height: 1.4;
}

.bks-step-desc {
  margin-top: 10px;
}

.bks-step-desc p,
.bks-step-desc .custom-para {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* orange accent line at card bottom on hover */
.bks-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-orange-dark), var(--clr-orange));
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.bks-step:hover::after {
  opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .bks-section {
    padding: 70px 0 80px;
  }

  .bks-header h2,
  .bks-header .global-heading {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .bks-step {
    margin-bottom: 16px;
  }

  .bks-step:last-child {
    margin-bottom: 0;
  }
}
