/* Entrepreneurs' Ghabgah 2027 · sponsor site
   Brand: Mushtari Blue #074F8F, Deep Blue #05406F, Community Purple #E464FF (accent only), Readex Pro */
:root {
  --blue: #074F8F;
  --deep: #05406F;
  --purple: #E464FF;
  --ink: #0B2A4A;
  --muted: #5A6F86;
  --on-blue: #C5DAEE;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --line: #DCE5EF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(7, 79, 143, .06), 0 8px 24px rgba(7, 79, 143, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
[dir="rtl"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--blue); }
[dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.5; }
h2 { font-size: clamp(24px, 6vw, 38px); max-width: 24ch; }
h3 { font-size: 20px; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-alt); }
.sub { margin-top: 56px; color: var(--ink); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--purple); flex: none; }
.eyebrow.on-dark { color: var(--on-blue); }
.eyebrow.center { justify-content: center; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: var(--blue); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--deep); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }

/* Top bar: logo only shows once the big hero logo has scrolled away */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background .25s ease; }
.bar.solid { background: var(--blue); box-shadow: 0 2px 12px rgba(5, 32, 58, .2); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.bar-logo img { height: 28px; width: auto; opacity: 0; transition: opacity .25s ease; }
.bar.solid .bar-logo img { opacity: 1; }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.bar-link, .bar-lang {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 400;
  padding: 8px 14px; border-radius: 999px; background: none; border: 1px solid transparent;
}
.bar-lang { border-color: rgba(255,255,255,.45); }
.bar-link:hover, .bar-lang:hover { background: rgba(255,255,255,.12); }

/* Hero: 2025 guests photo under a brand-blue overlay, everything centred */
.hero {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(7,79,143,.93) 0%, rgba(7,79,143,.86) 55%, rgba(7,79,143,.95) 100%), url(/assets/photos-2025/hero-night.jpg) center 60% / cover no-repeat;
  padding: 104px 0 64px; min-height: 92svh; display: flex; align-items: center;
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(68vw, 300px); margin-bottom: 36px; }
.hero .eyebrow { justify-content: center; }
.hero-ar { font-size: clamp(38px, 11vw, 88px); font-weight: 700; line-height: 1.3; color: #fff; white-space: nowrap; }
.hero-en { font-size: clamp(19px, 5vw, 30px); font-weight: 300; margin-top: 4px; }
.hero-en span { font-weight: 600; }
.hero-meta { margin-top: 18px; color: var(--on-blue); font-size: 15px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }

/* Who you'll meet */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.aud-item { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ico { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aud-item b { font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--ink); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.chips li b { font-weight: 500; color: var(--blue); }

/* Model: Cash + Ownership = Result */
.eq { display: grid; gap: 10px; margin-top: 32px; align-items: stretch; }
.eq-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.eq-box span { display: block; font-size: 13px; color: var(--muted); }
.eq-box b { display: block; font-size: 19px; font-weight: 600; color: var(--blue); margin-top: 2px; line-height: 1.35; }
.eq-box.result { background: var(--blue); }
.eq-box.result span { color: var(--on-blue); }
.eq-box.result b { color: #fff; }
.eq-op { text-align: center; font-size: 24px; font-weight: 300; color: var(--purple); line-height: 1; }

/* Journey */
/* history as a timeline: one line down the side, a dot at each year */
#editions { margin-top: 32px; margin-inline-start: 6px; padding-inline-start: 22px; border-inline-start: 2px solid var(--line); }
.edition { position: relative; margin-top: 44px; }
.edition:first-child { margin-top: 0; }
.edition::before { content: ""; position: absolute; top: 20px; inset-inline-start: -30px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px #fff; }
#editions .strip { margin-inline-start: 0; padding-inline-start: 0; scroll-padding-inline-start: 0; }
.ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ed-year { flex-basis: 100%; font-size: clamp(44px, 12vw, 64px); font-weight: 700; line-height: 1; color: var(--blue); letter-spacing: -0.03em; }
.ed-head h3 { color: var(--ink); font-size: 22px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--blue); }
.tag.muted { color: var(--muted); }
.ed-sum { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stat b { display: block; font-size: clamp(26px, 7vw, 40px); font-weight: 600; line-height: 1.15; color: var(--blue); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }
.strip-media { grid-auto-columns: 62%; margin-top: 22px; }
.strip-media button, .strip-media a { position: relative; display: block; scroll-snap-align: start; }
.strip.strip-media img { aspect-ratio: 843 / 655; object-fit: cover; object-position: center top; }
.strip-media .play { margin: 0; position: absolute; top: 10px; inset-inline-end: 10px; display: block; }
.strip-media .play i { display: block; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.strip-media .play i::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-left: 13px solid var(--blue); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.quote { margin-top: 18px; padding-inline-start: 14px; border-inline-start: 3px solid var(--purple); font-weight: 400; font-size: 17px; max-width: 56ch; }
.facts-list { margin-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.facts-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-size: 14px; color: var(--muted); }
.facts-list dd { font-weight: 600; color: var(--blue); font-size: 17px; text-align: end; }
.renders-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 12px -20px 0; padding: 0 20px 8px;
  scrollbar-width: thin;
}
.strip button { scroll-snap-align: start; padding: 0; border: 0; background: none; text-align: start; color: var(--ink); }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.strip span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.credit { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.credit span { font-size: 13px; color: var(--muted); }
.credit img { height: 48px; width: auto; border-radius: 8px; }
.swipe-hint { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.swipe-hint::after { content: "→"; font-size: 14px; }
[dir="rtl"] .swipe-hint::after { content: "←"; }

/* Partner logo wall: main sponsors big, community partners small */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.partner { min-width: 0; min-height: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8px; text-align: center; }
.partner.dark { background: var(--blue); border-color: var(--blue); }
.partner img { width: 60%; height: auto; max-height: 80%; object-fit: contain; }
.partner .word { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3; }
.partners-sm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.partners-sm:empty { display: none; }
.partner-sm { border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 8px; }
.partner-sm img { max-height: 30px; width: auto; object-fit: contain; }

/* Packages: 4 main tiers side by side, then specialist partners */
.sub.first { margin-top: 28px; }
.tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; margin: 16px -20px 0; padding: 4px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
.tiers::-webkit-scrollbar { display: none; }
.tier { scroll-snap-align: start; }
.tier { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 130px; }
.tier .badge { align-self: flex-start; margin-bottom: 6px; }
.tier-name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tier-price { font-size: 26px; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; line-height: 1.2; margin-top: auto; padding-top: 10px; }
.tier-price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tier.featured { background: var(--blue); }
.tier.featured .tier-name, .tier.featured .tier-price { color: #fff; }
.tier.featured .tier-price small { color: var(--on-blue); }
.tier.is-sold { opacity: .55; }
.badge { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--blue); }
.badge.excl { background: var(--blue); color: #fff; }
.tier.featured .badge.excl { background: #fff; color: var(--blue); }
.lead-sm { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 300; max-width: 56ch; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.service { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.service .ico { width: 40px; height: 40px; margin-bottom: 6px; }
.service .ico svg { width: 20px; height: 20px; }
.service b { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.service span:not(.ico) { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.45; }

/* Compare */
.table-wrap { margin-top: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
th, td { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); white-space: normal; min-width: 88px; line-height: 1.45; }
thead th { font-weight: 600; color: var(--blue); font-size: 13px; border-top: 0; vertical-align: bottom; white-space: normal; min-width: 88px; line-height: 1.35; }
th:first-child, td:first-child { position: sticky; inset-inline-start: 0; background: #fff; text-align: start; font-weight: 400; color: var(--muted); z-index: 1; min-width: 132px; white-space: normal; }
tr.price td { font-weight: 600; color: var(--blue); font-size: 15px; }
tr.price td:first-child { font-weight: 500; }
td.yes { color: var(--blue); font-weight: 500; }
td.no { color: #A7B4C2; }
.col-featured { background: #EEF4FB; }
td:first-child.col-featured { background: #fff; }

/* Who's behind it */
.org { background: var(--blue); color: #fff; text-align: center; }
.org h2 { color: #fff; margin: 0 auto; }
.org-logo { width: min(56vw, 240px); margin: 28px auto 0; }
.org-sub { margin: 18px auto 0; color: var(--on-blue); max-width: 34ch; font-size: 17px; }
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
.eco-item { background: #fff; border-radius: 14px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eco-item img { width: 48px; }
.eco-item b { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.eco-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.stats.on-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin-top: 56px; text-align: start; }
.stats.on-dark .stat { border-inline-start: 2px solid var(--purple); padding-inline-start: 14px; }
.stats.on-dark .stat b { font-size: clamp(30px, 8vw, 48px); }
.stats.on-dark .stat span { font-size: 14px; margin-top: 6px; }
.stats.on-dark .stat b { color: #fff; }
.stats.on-dark .stat span { color: var(--on-blue); }

/* Contact */
.contact { background: var(--bg-alt); text-align: center; }
.contact-in { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin: 0 auto; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; width: 100%; max-width: 760px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.avatar { width: min(104px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 600; margin-bottom: 6px; }
.member b { font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.3; }
.member span:not(.avatar) { font-size: 13px; color: var(--muted); line-height: 1.4; }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

.foot { background: var(--blue); border-top: 1px solid rgba(255,255,255,.08); color: var(--on-blue); font-size: 13px; padding: 36px 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px 56px; }
.foot-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot-logo { height: 44px; width: auto; }
.foot-mail { color: #fff; font-size: 14px; text-decoration: none; margin-top: 6px; border-bottom: 1px solid rgba(255,255,255,.35); }
.foot-mail:hover { border-color: #fff; }
.foot-cap { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 14px 6px 8px; height: 44px; }
.foot-cap img { height: 32px; width: auto; }
.foot-cap b { color: var(--blue); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(5, 32, 58, .88); }
.lightbox img { width: 100%; border-radius: 12px; }
.lb-cap { color: #fff; text-align: center; margin-top: 10px; font-size: 14px; }
.lb-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; line-height: 1; }

/* Gentle reveal */
/* Content is visible by default; it only fades in once app.js has rendered without errors */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 640px) {
  .aud { grid-template-columns: repeat(4, 1fr); }
  .eq { grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; }
  .eq-box { height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partners-sm { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .strip { grid-auto-columns: 42%; }
  .strip-media { grid-auto-columns: 30%; }
  .eco { grid-template-columns: repeat(4, 1fr); }
  .stats.on-dark { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
}
@media (min-width: 900px) {
  .sec { padding: 96px 0; }
  .avatar { width: 160px; }
  .member b { font-size: 18px; }
  .strip { grid-auto-columns: 31%; margin: 12px 0 0; padding: 0 0 8px; }
  .strip-media { grid-auto-columns: 23%; margin-top: 22px; }
  .tiers { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; overflow: visible; }
  .mobile-only { display: none; }
  .tier { padding: 24px 20px; min-height: 160px; }
  .tier-price { font-size: 32px; }
  .services { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
}

/* Print / PDF */
@media print {
  @page { size: A4; margin: 14mm; }
  body { font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .hero-ctas, .contact-btns, .lightbox { display: none !important; }
  .hero { min-height: 0; padding: 32px 0; }
  .sec { padding: 22px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 12px 0 0; padding: 0; }
  .tiers { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 12px 0 0; padding: 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .swipe-hint { display: none !important; }
  .tier, .service, .aud-item, .eq-box, .partner, .edition, .eco-item, .table-wrap { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 8.5pt; }
  th, td { padding: 6px 4px; white-space: normal; }
  #packages { break-before: page; }
}
