/* ==========================================================================
   Super Travels - homepage sections (index.html)
   Standalone: needs only base.css + header.css (tokens) + zoom.css (flyer viewer).
   Relies on the tokens defined in header.css (:root --st-*).
   ========================================================================== */

/* ---------- Hero slider (js/home.js) ---------- */
.home-hero { background: var(--st-navy, #0b2240); }

.hs {
  --hs-int: 7s;
  position: relative;
  overflow: hidden;
  height: clamp(540px, calc(100vh - var(--st-header-h, 108px)), 800px);
  height: clamp(540px, calc(100svh - var(--st-header-h, 108px)), 800px);
  background: var(--st-navy, #0b2240);
  color: #fff;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.hs.is-drag { cursor: grabbing; }

/* ----- slides: cross-fade, the photo drifts (Ken Burns) and follows the pointer ----- */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease, visibility 0s; }

.hs-media {
  position: absolute;
  inset: -3%;
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px), 0);
  transition: transform .5s ease-out;
}
.hs-media picture, .hs-media img { display: block; width: 100%; height: 100%; }
.hs-media img { object-fit: cover; -webkit-user-drag: none; }
.hs-slide.is-active .hs-media img { animation: hs-zoom calc(var(--hs-int) + 2s) linear forwards; }
@keyframes hs-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }

/* darkening so the text always reads, whatever photo is used */
.hs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 22, 42, .86) 0%, rgba(7, 22, 42, .55) 46%, rgba(7, 22, 42, .08) 100%),
    linear-gradient(0deg, rgba(7, 22, 42, .8) 0%, rgba(7, 22, 42, 0) 38%);
}

/* big outlined slide number */
.hs-num {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 96px;
  font-size: clamp(110px, 20vw, 280px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  pointer-events: none;
}
.hs-slide.is-active .hs-num { animation: hs-num 1.1s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hs-num { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }

/* ----- copy ----- */
.hs-copy {
  position: absolute;
  z-index: 2;
  inset: 0 0 110px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px), 0);
  transition: transform .5s ease-out;
}
.hs-copy > * { pointer-events: auto; }
.hs-slide.is-active .hs-copy > * { animation: hs-rise .85s var(--d, .3s) cubic-bezier(.2, .7, .2, 1) both; }
.hs-copy > :nth-child(1) { --d: .3s; }
.hs-copy > :nth-child(2) { --d: .45s; }
.hs-copy > :nth-child(3) { --d: .6s; }
.hs-copy > :nth-child(4) { --d: .75s; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.hs-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--st-gold, #d4af37);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hs-eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--st-gold, #d4af37);
  transform-origin: left;
}
.hs-slide.is-active .hs-eyebrow::before { animation: hs-line .8s .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hs-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hs-title {
  max-width: 14em;
  margin: 0 0 18px;
  font-size: clamp(32px, 5.4vw, 70px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hs-title em { color: var(--st-gold, #d4af37); font-style: normal; }

.hs-text {
  max-width: 34em;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid var(--st-gold, #d4af37);
  border-radius: 999px;
  background: var(--st-gold, #d4af37);
  color: var(--st-navy, #0b2240);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hs-btn .fa-solid { font-size: 13px; transition: transform .2s ease; }
.hs-btn:hover { background: var(--st-gold-dark, #b8962e); border-color: var(--st-gold-dark, #b8962e); color: var(--st-navy, #0b2240); text-decoration: none; transform: translateY(-2px); }
.hs-btn:hover .fa-solid { transform: translateX(4px); }
.hs-btn.is-ghost { border-color: rgba(255, 255, 255, .65); background: transparent; color: #fff; }
.hs-btn.is-ghost:hover { border-color: #fff; background: #fff; color: var(--st-navy, #0b2240); }
.hs-btn:focus-visible, .hs-tab:focus-visible, .hs-ctrl button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ----- bottom bar: progress tabs + controls ----- */
.hs-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px 26px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}
.hs-tabs { flex: 1; display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hs-tabs li { flex: 1; min-width: 0; }
.hs-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 0 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .65);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .25s ease;
}
.hs-tab b { margin-right: 8px; color: var(--st-gold, #d4af37); font-weight: 700; }
.hs-tab:hover, .hs-tab[aria-current="true"] { color: #fff; }
.hs-tab::before, .hs-tab-fill { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; border-radius: 3px; }
.hs-tab::before { background: rgba(255, 255, 255, .28); }
.hs-tab-fill { background: var(--st-gold, #d4af37); transform: scaleX(0); transform-origin: left; }
.hs-tab.is-done .hs-tab-fill { transform: scaleX(1); }
.hs-tab[aria-current="true"] .hs-tab-fill { animation: hs-fill var(--hs-int) linear forwards; }
@keyframes hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* autoplay state (hover on the text, user pause, off-screen, hidden tab) */
.hs.is-paused .hs-tab-fill, .hs.is-paused .hs-media img { animation-play-state: paused; }

.hs-ctrl { display: flex; align-items: center; gap: 10px; }
.hs-count { min-width: 64px; margin-right: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-align: right; font-variant-numeric: tabular-nums; }
.hs-count span { color: rgba(255, 255, 255, .6); }
.hs-ctrl button {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hs-ctrl button:hover { border-color: var(--st-gold, #d4af37); background: var(--st-gold, #d4af37); color: var(--st-navy, #0b2240); }

/* ----- phones and tablets ----- */
@media (max-width: 991px) {
  .hs-tab { font-size: 0; }
  .hs-tab b { font-size: 13px; margin: 0; }
}
@media (max-width: 767px) {
  .hs { height: clamp(520px, calc(100vh - var(--st-header-h, 64px)), 720px); height: clamp(520px, calc(100svh - var(--st-header-h, 64px)), 720px); }
  .hs-slide::after {
    background:
      linear-gradient(0deg, rgba(7, 22, 42, .94) 0%, rgba(7, 22, 42, .7) 52%, rgba(7, 22, 42, .35) 100%);
  }
  .hs-num { display: none; }
  .hs-copy { inset: 0 0 98px; padding: 0 20px; justify-content: flex-end; }
  .hs-eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hs-title { font-size: clamp(30px, 9vw, 44px); margin-bottom: 14px; }
  .hs-text { margin-bottom: 22px; }
  .hs-btn { padding: 12px 20px; font-size: 14px; }
  .hs-bar { padding: 0 20px 20px; gap: 14px; }
  .hs-tabs { gap: 8px; }
  .hs-tab b { display: none; }
  .hs-count, .hs-prev, .hs-next { display: none; }
  .hs-ctrl button { width: 38px; height: 38px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hs-text, .hs-num { display: none; }
}

/* no motion: static photo, instant switch, the active tab simply shows as filled */
@media (prefers-reduced-motion: reduce) {
  .hs *, .hs *::before, .hs *::after { animation: none !important; transition: none !important; }
  .hs-tab[aria-current="true"] .hs-tab-fill { transform: scaleX(1); }
}

/* ---------- Welcome / video band ---------- */
.home-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 72px 24px;
  background: #0b2240 url("../video/welcome-poster.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

/* the poster frame is the section background; the video is only attached by
   js/home.js on capable connections/screens and fades in over it */
.home-intro .home-intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.home-intro.is-ready .home-intro-video { opacity: 1; }

.home-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 34, 64, .55), rgba(11, 34, 64, .7));
}

.home-intro-inner { position: relative; z-index: 2; max-width: 720px; }

.home-eyebrow {
  margin: 0 0 12px;
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-intro h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.home-intro-lead {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}
.home-intro .btn-pill { background: var(--st-gold); color: var(--st-navy) !important; }
.home-intro .btn-pill:hover { background: var(--st-gold-dark); }

@media (max-width: 767px) {
  .home-intro { min-height: 340px; padding: 56px 20px; }
  .home-intro-lead { font-size: 16px; }
}

/* ==========================================================================
   Sections: services, packages, why us, associations, final CTA, WhatsApp FAB
   ========================================================================== */
:root { --st-bg-soft: #f3f8fc; }

.home-section,
.home-intro { scroll-margin-top: var(--st-header-h, 108px); }
.home-section { padding: 80px 0; background: #fff; }
.home-section.is-soft { background: var(--st-bg-soft); }
.home-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.home-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.home-head .home-eyebrow { color: var(--st-blue-dark, #2f6fa8); }
.home-head h2 {
  margin: 0 0 12px;
  color: var(--st-navy, #0b2240);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}
.home-head p { margin: 0; color: var(--st-muted, #666666); font-size: 17px; line-height: 1.65; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: linear-gradient(160deg, #0b2240 0%, #0b2240 100%);
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(69, 140, 203, .28);
  transition: transform .35s ease;
}
.svc-card:hover,
.svc-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11, 34, 64, .28); color: #fff; text-decoration: none; }
.svc-card:hover::before { transform: scale(1.6); }
.svc-card img { position: relative; width: 64px; height: 64px; margin-bottom: 20px; }
.svc-card h3 { position: relative; margin: 0 0 10px; color: #fff; font-size: 19px; font-weight: 700; }
.svc-card p { position: relative; flex: 1; margin: 0 0 20px; font-size: 14.5px; line-height: 1.65; font-weight: 400; }
.svc-more { position: relative; color: var(--st-gold); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.svc-more .fa-solid { margin-left: 6px; transition: transform .2s ease; }
.svc-card:hover .svc-more .fa-solid { transform: translateX(4px); }

/* ---------- Recent packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.pkg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--st-line, #e5eaf1);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(11, 34, 64, .14); }
.pkg-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--st-bg-soft); }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pkg-card:hover .pkg-media img { transform: scale(1.04); }
.pkg-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 34, 64, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.pkg-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; }
.pkg-body h3 { margin: 0; color: var(--st-navy, #0b2240); font-size: 16px; font-weight: 700; line-height: 1.3; }
.pkg-enquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--st-blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.pkg-enquire:hover { color: var(--st-navy); text-decoration: none; }
/* Hajj brochure pages are portrait A4: show them whole. Four across from 900px up (home Hajj and Umrah rows) */
.pkg-grid.is-hajj .pkg-media { aspect-ratio: 793 / 1122; }
@media (min-width: 900px) { .pkg-grid.is-4 { grid-template-columns: repeat(4, 1fr); } }
.home-more { margin-top: 40px; text-align: center; }
.home-more p { margin: 14px 0 0; color: var(--st-muted, #666666); font-size: 14px; }

.btn-pill {
  display: inline-block;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--st-navy, #0b2240);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.btn-pill:hover { background: var(--st-blue-dark, #2f6fa8); transform: translateY(-1px); text-decoration: none; }
.btn-pill.is-gold { background: var(--st-gold); color: var(--st-navy) !important; }
.btn-pill.is-gold:hover { background: var(--st-gold-dark); }
.btn-pill.is-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-pill.is-ghost:hover { background: #fff; color: var(--st-navy, #0b2240) !important; }
.btn-pill .fab, .btn-pill .fa-solid { margin-right: 8px; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.why-since {
  display: block;
  margin-bottom: 6px;
  color: var(--st-blue, #458ccb);
  font-size: clamp(64px, 9vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.why-text h2 { margin: 0 0 16px; color: var(--st-navy, #0b2240); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.2; }
.why-text p { margin: 0 0 26px; color: var(--st-muted, #666666); font-size: 17px; line-height: 1.7; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; list-style: none; margin: 0; padding: 0; }
.why-item { padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(11, 34, 64, .08); }
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #e3eef7;
  color: var(--st-blue-dark, #2f6fa8);
  font-size: 18px;
}
.why-item h3 { margin: 0 0 6px; color: var(--st-navy, #0b2240); font-size: 17px; font-weight: 700; }
.why-item p { margin: 0; color: var(--st-muted, #666666); font-size: 14px; line-height: 1.6; }

/* ---------- Associations ---------- */
.assoc { padding: 56px 0 64px; background: #fff; text-align: center; }
.assoc h2 { margin: 0 0 28px; color: var(--st-muted, #666666); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.assoc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; list-style: none; margin: 0; padding: 0; }
.assoc-row img { display: block; height: 56px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease; }
.assoc-row li:hover img { filter: none; opacity: 1; }

/* ---------- Final CTA ---------- */
.cta-band { position: relative; padding: 64px 24px; background: linear-gradient(135deg, #0b2240 0%, #0b2240 55%, #458ccb 100%); color: #fff; text-align: center; }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-band-logo { position: absolute; right: max(24px, 6%); top: 50%; transform: translateY(-50%); width: clamp(140px, 15vw, 210px); height: auto; }
@media (max-width: 991px) {
  .cta-band-logo { position: static; transform: none; display: block; width: 92px; margin: 0 auto 18px; }
}


/* ---------- Scroll reveal (only active when js/home.js adds .js-reveal) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 991px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .home-section { padding: 56px 0; }
  .home-wrap { padding: 0 16px; }
  .home-head { margin-bottom: 30px; }
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .pkg-grid { gap: 14px; }
  .why-list { grid-template-columns: 1fr; }
  .assoc-row { gap: 20px 28px; }
  .assoc-row img { height: 44px; max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .svc-card, .pkg-card, .pkg-media img, .btn-pill { transition: none; }
}
