/* ===========================================================
   Triveni Power - Engineered in India. Running the World.
   LHS : heading + body copy
   RHS : numbered cards, overlapping vertical stack (deck-of-cards)
         3 cards visible at a time, arrows + scroll to navigate
   =========================================================== */

.global {
  position: relative;
  background: #0A0809;
  color: #FFFFFF;
  height: 662px;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ── Full-bleed video background ─────────────────────────── */
.global__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* ── Dark scrim ──────────────────────────────────────────── */
.global__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.52);
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   MAIN LAYOUT - single centred column
   ========================================================= */
.global__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) var(--gutter) clamp(40px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.5vw, 40px);
  height: 100%;
}

/* =========================================================
   LHS - headline + body copy (centred)
   ========================================================= */
.global__lhs {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 1.6vw, 18px);
  max-width: 760px;
}

.global__title {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0;
}
.global__title em {
  font-style: normal;
  background: linear-gradient(90deg, #F7A25C 0%, var(--accent) 60%, #C56614 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.global__body {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}
.global__body strong { color: #FFFFFF; font-weight: 600; }

/* =========================================================
   RHS - full-width slider wrapper
   ========================================================= */
.global__rhs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Slider header - arrows pinned to the right ──────────── */
.global__slider-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.global__nav { display: flex; gap: 8px; }

/* .global__nav-btn visual rules moved to css/buttons.css under
   canonical .btn--icon kind. */

/* ── Scrollable track - 3.5 cards visible ────────────────── */
.global__track {
  display: grid;
  grid-auto-flow: column;
  /* 3.5 cards: card_w = (100% − 2.5 × gap) / 3.5 ≈ 100%/3.5 − 9px */
  grid-auto-columns: calc(100% / 3.5 - 9px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.global__track::-webkit-scrollbar { display: none; }

/* ── Dot indicators ──────────────────────────────────────── */
.global__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.global__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 280ms var(--ease-out), width 280ms var(--ease-out);
}
.global__dot:hover { background: rgba(255, 255, 255, 0.55); }
.global__dot[aria-current="true"] {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}
.global__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   CARD - horizontal scroll, snap-to-start
   ========================================================= */
.global__card {
  scroll-snap-align: start;
  flex-shrink: 0;
  height: 200px;

  display: flex;
  flex-direction: column;
  padding: 14px 22px 20px;

  background:
    linear-gradient(0deg, rgba(245, 130, 32, 0.07) 0%, transparent 50%),
    rgba(12, 10, 11, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 6px 20px rgba(0, 0, 0, 0.42),
    0 20px 44px rgba(0, 0, 0, 0.46);

  transition:
    background 280ms var(--ease-out),
    border-color 280ms var(--ease-out);
}

.global__card:hover {
  background:
    linear-gradient(0deg, rgba(245, 130, 32, 0.12) 0%, transparent 55%),
    rgba(18, 14, 12, 0.92);
  border-color: rgba(245, 130, 32, 0.26);
}

/* ── Card number ─────────────────────────────────────────── */
.global__card-num {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.90;
}

/* ── Card name - pushed to bottom via auto margin ─────────── */
.global__card-name {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #FFFFFF;
  margin: auto 0 0;
}

/* ── Card description ────────────────────────────────────── */
.global__card-desc {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.50);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Accent bar ──────────────────────────────────────────── */
.global__card-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(245, 130, 32, 0.20) 100%);
}

/* =========================================================
   MOBILE (≤ 1023 px)
   ========================================================= */
@media (max-width: 767px) {
  .global {
    height: auto;
    min-height: unset;
    align-items: flex-start;
  }
  .global__layout {
    height: auto;
    padding-top: clamp(48px, 8vw, 64px);
    padding-bottom: clamp(40px, 7vw, 56px);
  }
  .global__lhs { max-width: 100%; }
  /* show 1.5 cards on mobile */
  .global__track { grid-auto-columns: calc(100% / 1.5 - 8px); }
  .global__card  { height: 180px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .global__card { transition: none !important; }
}
