/* =====================================================
   Maqam Travels — Help Page (Qatar-style split cards & tabs)
   ===================================================== */

/* ========== Variables ========== */
:root {
  --primary: #2384c6;
  --primary-600: #1d73ac;
  --ink: #0f1b2d;
  --muted: #56657a;
  --line: #e6edf4;
  --bg: #f3f3f3;
  /* page background */
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);

  --accent: #2384c6;
  /* tab underline */
  --container-max: 1200px;

  --hero-h-mobile: 320px;
  --title-bias: 0.62;
}

/* ========== Base ========== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nexa", "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(var(--container-max), 92%);
  margin-inline: auto;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

/* ===== Header (unchanged) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .8rem 1rem .8rem 0;
}

.logo-badge {
  position: absolute;
  left: 0;
  top: -28px;
  width: 90px;
  height: 165px;
  z-index: 1010;
  text-decoration: none;
}

.logo-badge .badge-rect {
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 27, 45, .15);
}

.logo-badge .badge-logo {
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  height: 78px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2));
}

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  padding: .55rem .95rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  z-index: 1060;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1040;
  display: none;
}

body.nav-open .nav-scrim {
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 35vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  background-color: #0f4c72;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .45));
  z-index: 1;
  backdrop-filter: saturate(110%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  width: min(var(--container-max), 90%);
  margin-top: 20px;
}

.hero-content h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  line-height: 1.05;
  margin: 20px 0 0 0;
}

.hero--mini {
  min-height: 40vh;
  padding: 3rem 0;
}

.hero.hero--qa {
  position: relative;
}

@media (min-width:901px) {
  .hero.hero--qa {
    min-height: 52vh;
    padding: 0;
    display: block;
    background-size: cover;
    background-position: center;
  }

  .hero.hero--qa .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(130% 120% at 0% 50%, rgba(10, 16, 28, .70) 0%, rgba(10, 16, 28, .40) 28%, rgba(10, 16, 28, .18) 48%, rgba(10, 16, 28, 0) 64%),
      radial-gradient(120% 110% at 100% 50%, rgba(10, 16, 28, .40) 0%, rgba(10, 16, 28, .18) 34%, rgba(10, 16, 28, 0) 60%),
      linear-gradient(180deg, rgba(10, 16, 28, .16) 0%, rgba(10, 16, 28, 0) 40%, rgba(10, 16, 28, .24) 100%);
  }

  .hero.hero--qa::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 -120px 160px -120px rgba(0, 0, 0, .55);
  }

  .hero.hero--qa .hero-content {
    position: absolute;
    z-index: 2;
    left: max(calc((100vw - var(--container-max)) / 2 + 56px), 6vw);
    top: 50%;
    transform: translateY(-50%);
    width: min(44vw, 620px);
    margin: 0;
    text-align: left;
  }

  .hero.hero--qa .hero-content h1 {
    margin: 0;
    font-weight: 300;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .70);
  }
}

@media (min-width:901px) {
  .header-inner {
    padding-left: 150px;
  }
}

@media (max-width:900px) {
  .header-inner {
    justify-content: flex-end;
    padding: .7rem 0;
    padding-left: 140px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2010;
    box-shadow: -12px 0 30px rgba(15, 27, 45, .1);
    padding-top: 72px;
  }

  body.nav-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 6%;
  }

  .primary-nav li {
    padding: .8rem 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav li:first-child {
    border-top: none;
  }

  .site-header {
    z-index: 2000;
  }

  .menu-toggle {
    z-index: 2020;
  }

  .nav-scrim {
    z-index: 1500;
  }

  .hero {
    height: var(--hero-h-mobile);
    min-height: 0;
    padding: 0;
    display: block;
  }

  .hero .overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: var(--hero-h-mobile);
    background: linear-gradient(180deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .40) 32%, rgba(0, 0, 0, .22) 66%, rgba(0, 0, 0, 0) 100%);
  }

  .hero-content {
    position: absolute;
    left: 50%;
    top: calc(var(--hero-h-mobile) * var(--title-bias));
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    margin: 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    line-height: 1.08;
    margin: .1rem 0;
  }

  .hero.hero--qa .overlay {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(10, 16, 28, .58) 0%, rgba(10, 16, 28, .42) 36%, rgba(10, 16, 28, .18) 68%, rgba(10, 16, 28, 0) 100%),
      radial-gradient(120% 90% at 8% 50%, rgba(10, 16, 28, .55) 0%, rgba(10, 16, 28, 0) 60%);
  }

  .hero.hero--qa::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -80px 120px -60px rgba(0, 0, 0, .45);
    z-index: 1;
  }

  .hero.hero--qa .hero-content {
    position: absolute;
    left: clamp(45px, 4vw, 24px);
    right: clamp(14px, 6vw, 28px);
    bottom: clamp(45px, 4.5vw, 28px);
    top: auto;
    transform: none;
    width: auto;
    margin: 0;
    z-index: 2;
    text-align: left;
  }
}

/* ===== Footer (unchanged) ===== */
.site-footer {
  background: var(--primary);
  color: #dcebfa;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  opacity: .95;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(30px, 3vw, 28px) 0 clamp(24px, 4vw, 36px);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.footer-logo {
  max-width: 30%;
  width: clamp(160px, 40%, 260px);
  height: auto;
}

.footer-divider {
  border: 0;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, .85);
  border-radius: 3px;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}

.partner-logos img {
  height: 50px;
  width: auto;
  opacity: .95;
}

.partner-logos img:hover {
  opacity: 1;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.5vw, 28px);
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 .6rem 0;
  color: #fff;
  font-size: clamp(1rem, .9vw + .8rem, 1.2rem);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.footer-links li a {
  font-weight: 500;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .6rem 0;
  display: grid;
  gap: .4rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.contact-list .ico img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.socials-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: .95;
}

.btn-icon:hover {
  opacity: 1;
}

.btn-icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.copyright {
  text-align: center;
  padding: .9rem 0;
  background: rgba(0, 0, 0, .12);
  color: #e5f1fb;
  margin: 0;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-right {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    width: clamp(120px, 35vw, 180px);
  }
}

@media (max-width:600px) {
  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: clamp(110px, 50vw, 160px);
  }

  .partner-logos img {
    height: clamp(22px, 6vw, 32px);
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }

  .btn-icon img {
    width: 18px;
    height: 18px;
  }
}

/* Lightbox: do not affect page flow */
.mt-lb__frame{
  position: fixed;          /* take it out of the normal flow */
  inset: 0;                 /* full viewport */
  display: none;            /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  z-index: 99999;
  margin: 0; padding: 0;
}

.mt-lb__frame.is-open{      /* class you toggle when opening */
  display: flex;
}

/* Stage & image sizing */
.mt-lb__stage{
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}
.mt-lb__img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Close button */
.mt-lb__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}


/* ≤900px (header, hero crop, Qatar mobile hero, z-index) */
@media (max-width:900px) {

  /* header/nav */
  .header-inner {
    justify-content: flex-end;
    padding: .7rem 0;
    padding-left: 140px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2010;
    box-shadow: -12px 0 30px rgba(15, 27, 45, .1);
    padding-top: 72px;
  }

  body.nav-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 6%;
  }

  .primary-nav li {
    padding: .8rem 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav li:first-child {
    border-top: none;
  }

  .site-header {
    z-index: 2000;
  }

  .menu-toggle {
    z-index: 2020;
  }

  .nav-scrim {
    z-index: 1500;
  }

  /* hero crop */
  .hero {
    height: var(--hero-h-mobile);
    min-height: 0;
    padding: 0;
    display: block;
  }

  .hero .overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: var(--hero-h-mobile);
    background: linear-gradient(180deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .40) 32%, rgba(0, 0, 0, .22) 66%, rgba(0, 0, 0, 0) 100%);
  }

  .hero-content {
    position: absolute;
    left: 50%;
    top: calc(var(--hero-h-mobile) * var(--title-bias));
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    margin: 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    line-height: 1.08;
    margin: .1rem 0;
  }

  /* Qatar mobile look */
  .hero.hero--qa {
    background-position: center;
    background-size: cover;
  }

  .hero.hero--qa .overlay {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(10, 16, 28, .58) 0%, rgba(10, 16, 28, .42) 36%, rgba(10, 16, 28, .18) 68%, rgba(10, 16, 28, 0) 100%),
      radial-gradient(120% 90% at 8% 50%, rgba(10, 16, 28, .55) 0%, rgba(10, 16, 28, 0) 60%);
    backdrop-filter: none;
  }

  .hero.hero--qa::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -80px 120px -60px rgba(0, 0, 0, .45);
    z-index: 1;
  }

  .hero.hero--qa .hero-content {
    position: absolute;
    left: clamp(45px, 4vw, 24px);
    right: clamp(14px, 6vw, 28px);
    bottom: clamp(45px, 4.5vw, 28px);
    top: auto;
    transform: none;
    width: auto;
    margin: 0;
    z-index: 2;
    text-align: left;
  }

  .hero.hero--qa .hero-content h1 {
    margin: 0;
    font-weight: 300;
    font-size: clamp(2rem, 5.3vw, 2.2rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .50), 0 0 1px rgba(0, 0, 0, .60);
  }
}

/* ≥901px (header spacing tweak) */
@media (min-width:901px) {
  .header-inner {
    padding-left: 150px;
  }
}

/* ≤900px footer tweaks */
@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-right {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    width: clamp(120px, 35vw, 180px);
  }
}

@media (max-width:600px) {
  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: clamp(110px, 50vw, 160px);
  }

  .partner-logos img {
    height: clamp(22px, 6vw, 32px);
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }

  .btn-icon img {
    width: 18px;
    height: 18px;
  }

  .contact-list .ico img {
    width: 18px;
    height: 18px;
  }
}

/* ========== Coming Soon ========== */

/* ===========================
   Hajj Journey – Number Beside Image (No Center Line)
   =========================== */

:root {
  --brand: #2384c6;
  /* Maqam blue */
  --accent: #b9925a;
  /* soft gold */
  --ink: #0e0e0e;
  --muted: #6b7280;
  --card: #fff;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

body,
.hajj-journey {
  font-family: "Nexa", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
}

/* container */
.hj-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px);
}

/* header */
.hajj-journey .journey-head {
  text-align: center;
  margin-bottom: 26px;
}

.hajj-journey .journey-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 6px;
  font-weight: 800;
}

.hajj-journey .journey-head p {
  color: var(--muted);
  margin: 0;
}

/* list */
.hajj-journey .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* step card */
.hajj-journey .step {
  max-width: 560px;
  /* card width on desktop */
  margin: 0 0 28px 0;
}

.hajj-journey .step.left {
  margin-right: auto;
}

.hajj-journey .step.right {
  margin-left: auto;
}

.hajj-journey .content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}

/* number + image row */
.hajj-journey .media-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hajj-journey .step.right .media-row {
  flex-direction: row-reverse;
}

.hajj-journey .num-badge {
  flex: 0 0 44px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--accent);
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
}

.hajj-journey .media {
  flex: 1 1 auto;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

.hajj-journey .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* titles & body */
.hajj-journey h3 {
  margin: 0 0 6px 0;
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(18px, 2.2vw, 22px);
}

.hajj-journey .rule {
  width: 52px;
  height: 2px;
  background: var(--accent);
  opacity: .9;
  margin: 6px 0 12px;
}

.hajj-journey p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #262626;
}

/* CTA */
.hajj-journey .cta {
  text-align: center;
  margin-top: 36px;
}

.hajj-journey .cta h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
}

.hajj-journey .btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(35, 132, 198, .25);
  transition: transform .12s ease, box-shadow .12s ease;
}

.hajj-journey .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 132, 198, .33);
}

/* ===========================
   Responsive
   =========================== */

/* tablets & down – let cards breathe a bit wider */
@media (max-width: 992px) {
  .hajj-journey .step {
    max-width: 640px;
  }
}

/* phones – full-width card, compact media, readable badge */
@media (max-width: 560px) {
  .hj-container {
    padding: 18px;
  }

  .hajj-journey .step {
    max-width: 100%;
  }

  .hajj-journey .num-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hajj-journey .media {
    height: 140px;
    border-radius: 12px;
  }

  .hajj-journey .content {
    padding: 14px 14px 16px;
    border-radius: 14px;
  }

  .hajj-journey p {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .hajj-journey .btn {
    width: 100%;
    max-width: 460px;
  }
}

/* very small phones */
@media (max-width: 360px) {
  .hajj-journey .media {
    height: 120px;
  }

  .hajj-journey .num-badge {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}


/* --- Fix mobile overflow caused by the button --- */
.hajj-journey .btn {
  box-sizing: border-box;
  /* include padding in width */
  max-width: 100%;
  position: static;
  /* ignore any global left/right offsets */
  float: none;
  transform: none;
  /* avoid sub-pixel shifts creating overflow */
}

/* Phones */
@media (max-width: 560px) {
  .hajj-journey .cta {
    padding-inline: 0;
  }

  .hajj-journey .btn {
    display: block;
    width: min(100%, 460px);
    /* full width but capped */
    margin: 0 auto;
    /* center it */
    padding: 12px 16px;
    /* slightly tighter padding */
    white-space: normal;
    /* allow wrap if copy gets long */
  }
}

/* Make the Hajj Journey header left-aligned */
.hajj-journey .journey-head {
  text-align: left;
}

/* Optional: on wide screens, keep the header the same width as a step card
   so the left edge lines up nicely with the content column */
@media (min-width: 992px) {
  .hajj-journey .journey-head {
    margin-left: 0;
    margin-right: auto;
    /* pin to the left side of the container */
  }
}