/* Rihla company site — brand: Qatar maroon, cream, gold. */
:root {
  --maroon: #8b1f3e;
  --maroon-deep: #6d1029;
  --cream: #f6f1e7;
  --cream-2: #efe7d8;
  --gold: #c9a24b;
  --ink: #23161b;
  --muted: #7a6a70;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
.serif { font-family: 'Playfair Display', Georgia, serif; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font-weight: 800; font-size: 20px; }
.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--maroon); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff !important; box-shadow: 0 6px 18px rgba(139, 31, 62, 0.28); }
.btn-ghost { border: 1.5px solid var(--maroon); color: var(--maroon); }
.btn-gold { background: var(--gold); color: var(--maroon-deep) !important; }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.hero-logo { width: 108px; height: 108px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 18px 50px rgba(139, 31, 62, 0.35); }
.hero h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: 0.04em; color: var(--maroon); }
.hero .ar { color: var(--gold); font-size: clamp(22px, 3vw, 30px); margin-top: 4px; }
.hero .tagline { font-size: clamp(18px, 2.6vw, 24px); font-style: italic; margin: 14px auto 10px; }
.hero .sub { max-width: 620px; margin: 0 auto 30px; color: var(--muted); font-size: 17px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* width:100% is what actually makes these shrink. max-width alone only caps the
   upper bound — below it the image renders at its intrinsic size, so on a phone
   these overflowed and made the whole page scroll sideways. */
.hero-shot { display: block; width: 100%; height: auto; margin: 56px auto 0; max-width: 960px; border-radius: 14px; box-shadow: 0 30px 80px rgba(35, 22, 27, 0.22); }

/* Stats strip */
.stats { background: var(--maroon); color: #fff; padding: 34px 0; margin-top: -6px; }
.stats .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 26px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat span { font-size: 13.5px; opacity: 0.85; }

/* Sections */
section { padding: 76px 0; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
h2.title { font-size: clamp(28px, 4vw, 40px); color: var(--maroon); margin: 8px 0 14px; }
.lede { max-width: 640px; color: var(--muted); font-size: 17px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  background: var(--card); border-radius: 16px; padding: 26px;
  border: 1px solid var(--cream-2); box-shadow: 0 8px 26px rgba(35, 22, 27, 0.05);
}
.card .em { font-size: 26px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }

/* Split rows */
.split { display: flex; gap: 48px; align-items: center; margin-top: 46px; flex-wrap: wrap; }
.split > div { flex: 1 1 380px; }
.split img { border-radius: 14px; box-shadow: 0 20px 50px rgba(35, 22, 27, 0.16); }
.split h3 { font-size: 24px; color: var(--maroon); margin-bottom: 10px; }
.split p { color: var(--muted); }
.split ul { color: var(--muted); padding-left: 20px; margin-top: 8px; }
.split li { margin: 6px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { background: var(--card); border-radius: 16px; padding: 26px; border: 1px solid var(--cream-2); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--maroon); color: var(--gold); border-radius: 50%;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; margin-bottom: 12px;
}

/* Demo */
.demo { background: var(--maroon-deep); color: #fff; }
.demo .kicker { color: var(--gold); }
.demo h2.title { color: #fff; }
.demo .lede { color: rgba(255, 255, 255, 0.75); }
.demo-frame { display: block; width: 100%; height: auto; margin: 40px auto 26px; max-width: 880px; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
.demo-note { text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.demo-note a { color: var(--gold); }

/* Footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 46px 0; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer a { color: var(--gold); text-decoration: none; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.foot-brand img { width: 28px; height: 28px; border-radius: 6px; }

/* Deck (investors) */
.deck-section { border-bottom: 1px solid var(--cream-2); }
.deck-cover { text-align: center; padding: 100px 0 70px; }
.deck-cover .hero-logo { width: 92px; height: 92px; }
.num-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.num {
  flex: 1 1 200px; background: var(--card); border: 1px solid var(--cream-2);
  border-radius: 14px; padding: 22px; text-align: center;
}
.num b { display: block; font-size: 30px; color: var(--maroon); font-family: 'Playfair Display', serif; }
.num span { color: var(--muted); font-size: 13.5px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
table.cmp { width: 100%; border-collapse: collapse; margin-top: 30px; background: var(--card); border-radius: 14px; overflow: hidden; }
table.cmp th, table.cmp td { padding: 13px 16px; border-bottom: 1px solid var(--cream-2); text-align: left; font-size: 15px; }
table.cmp th { background: var(--maroon); color: #fff; }
table.cmp td:first-child { font-weight: 600; }
.check { color: #1f7a3d; font-weight: 700; }
.cross { color: #b3453e; }

/* The competition table carries five columns. On a phone it must scroll inside
   its own box — never widen the page, which would let every section scroll
   sideways. min-width keeps the columns readable rather than crushed. */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 30px; }
.cmp-scroll table.cmp { margin-top: 0; min-width: 720px; }
/* Keep the row label readable while the comparison columns scroll under it. */
.cmp-scroll table.cmp td:first-child,
.cmp-scroll table.cmp th:first-child { position: sticky; left: 0; background: var(--card); }
.cmp-scroll table.cmp th:first-child { background: var(--maroon); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  section { padding: 56px 0; }
}

/* ---------------------------------------------------------------------------
   Multi-page site: shared nav, hero, thematic cards, page heads.
   --------------------------------------------------------------------------- */

.nav-links a.current { color: var(--maroon); font-weight: 700; }
.nav-burger {
  display: none; margin-inline-start: auto; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--maroon); cursor: pointer; padding: 4px 6px;
}

/* Full-bleed hero. No licensed photography yet, so this leans on the brand
   palette rather than a stock image that would look like every other site. */
.hero-full {
  background:
    radial-gradient(90rem 40rem at 50% -20%, rgba(201, 162, 75, 0.28), transparent 60%),
    linear-gradient(160deg, #6d1029 0%, #8a1538 45%, #a53c56 100%);
  color: #fff;
  padding: 72px 0 78px;
  text-align: center;
}
.hero-inner .hero-logo { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 18px; display: block; }
.hero-full h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 6px; color: #fff; }
.hero-full .ar { font-size: 26px; opacity: 0.72; margin-bottom: 14px; }
.hero-full .sub { max-width: 620px; margin: 0 auto; font-size: 17px; line-height: 1.65; opacity: 0.94; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-full .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-full .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-fine { margin-top: 16px; font-size: 13px; opacity: 0.75; }

.section { padding: 64px 0; }
.section.alt { background: var(--cream-2, #f2ece6); }
.page-head { padding: 54px 0 8px; }
.center { text-align: center; margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Thematic cards: people pick a trip by mood, not by feature. */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 30px; }
.theme-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px 18px; border-radius: 16px; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .16s ease, box-shadow .16s ease;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(35,22,27,.13); }
.theme-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.theme-card.culture::before { background: #8a1538; }
.theme-card.desert::before  { background: #c9a24b; }
.theme-card.food::before    { background: #b45309; }
.theme-card.family::before  { background: #2e7d32; }
.theme-em { font-size: 30px; line-height: 1; }
.theme-card h3 { margin: 0; font-size: 17px; color: var(--maroon); }
.theme-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.theme-go { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--maroon); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }

.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Two-column text + screenshot */
.two-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 50px rgba(35,22,27,.16); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 9px; font-size: 15px; }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }

.card.person img { width: 62px; height: 62px; border-radius: 14px; margin-bottom: 10px; }
.card.person .role { color: var(--maroon); font-weight: 700; font-size: 13px; margin: 0 0 6px; }

.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .two-col.reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .nav-burger { display: block; }
  .nav .wrap { flex-wrap: wrap; }
  /* Overrides the earlier rule that hid every non-button link on mobile. */
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 0 4px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .section { padding: 46px 0; }
  .hero-full { padding: 54px 0 58px; }
}

/* The hero background is maroon, so the maroon primary button all but vanished
   against it. Gold on maroon is the brand's own high-contrast pairing. */
.hero-full .btn-primary {
  background: var(--gold); color: var(--maroon-deep) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.hero-full .btn-primary:hover { background: #d8b263; }
