/* Storm-sky direction: navy and turquoise alone form the large surfaces.
   Pale blue is reserved for typography and fine edges; amber is a small
   sunlight accent. Dark mode remains the default in base.html. */
:root {
  --brand-background: #0d1726;
  --brand-navy: #2c4569;
  --brand-turquoise: #33b5b6;
  --brand-mist: #c7e1e4;
  --brand-amber: #faa831;
  --brand-ink: #152d43;
  --brand-teal-shadow: #33b5b6;
  --brand-text: #167879;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #c7e1e4;
  --fg: #2c4569;
  --muted: #526e7a;
  --muted-2: #385566;
  --border: rgb(44 69 105 / 12%);
  --border-2: rgb(44 69 105 / 22%);
  --blue: #167879;
  --brand-dark: #105e65;
  --brand-shadow: rgb(51 181 182 / 20%);
  --grad: linear-gradient(140deg, #33b5b6 0%, #2c4569 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--brand-background);
  --surface: #2c4569;
  --surface-2: #20334e;
  --fg: #eef7f7;
  --muted: #b1cfd5;
  --muted-2: #c7e1e4;
  --border: rgb(199 225 228 / 18%);
  --border-2: rgb(199 225 228 / 32%);
  --brand-text: #33b5b6;
}
.nav {
  --nav-pill-bg: #20334E;
  --nav-fg: #fff;
  --nav-fg-muted: #fff;
}
.nav__brand,
.nav__links,
.nav__login,
.nav__cta,
.nav__burger { border: 0; }
.nav__brand {
  min-height: var(--nav-pill-h);
  padding-inline: 24px;
  justify-content: center;
  font-family: 'Lalezar', 'Vazirmatn', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: normal;
}
/* No optical nudge needed: with the space served from the Arabic subset
   (fonts.css), Lalezar's ink centres in the pill on its own. */
.nav__brand > span { display: block; }
.nav__cta,
:root[data-theme="dark"] .nav__cta {
  background: var(--brand-turquoise);
  color: #fff;
  box-shadow: 0 8px 24px rgb(51 181 182 / 12%);
}
.nav__cta:hover { background: #70cece; }
.btn--primary, :root[data-theme="dark"] .btn--primary,
.home-curtain .btn--primary {
  background: var(--brand-turquoise);
  color: var(--brand-ink);
}
.btn--primary:hover { background: #70cece; }

/* Editorial hero: one clear headline and two distinct actions. */
.home-hero__inner {
  display: flex;
  align-items: flex-start;
  padding-top: clamp(64px, 10vh, 112px);
}
.home-hero__content {
  width: min(100%, 560px);
  padding-top: 0;
  text-shadow: 0 2px 14px rgb(32 51 78 / 65%);
}
.home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.home-hero__eyebrow > span { width: 32px; height: 2px; background: #FAA831; }
.home-hero__title {
  margin: 0;
  font-size: clamp(4rem, 7.5vw, 7rem);
  line-height: 1.15;
}
.home-hero__promise {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
}
.home-hero__lede {
  margin: 18px 0 32px;
  max-width: 44ch;
  color: #fff;
  font-size: 15px;
  line-height: 2;
}
.home-hero__cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; }
.home-hero__cta-row .home-hero__cta {
  min-height: 54px;
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease;
}
.home-hero__cta-row .home-hero__cta--explore {
  justify-content: space-between;
  gap: 32px;
  padding: 14px 22px;
  color: #fff;
  background: #20334E;
  border: 1px solid #20334E;
}
.home-hero__cta-row .home-hero__cta--explore:hover { background: #2c4569; border-color: #33b5b6; }
.home-hero__cta-row .home-hero__cta--events {
  gap: 14px;
  padding: 12px 0;
  color: #fff;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #fff;
  text-shadow: 0 2px 8px #20334E;
}
.home-hero__cta-row .home-hero__cta--events:hover { border-color: #FAA831; }
@media (max-width: 767px) {
  .home-hero__inner { padding-top: 48px; }
  .home-hero__title { font-size: clamp(3.4rem, 15vw, 4.5rem); margin: 0; }
  .home-hero__eyebrow { margin-bottom: 14px; font-size: 12px; }
  .home-hero__promise { margin-top: 12px; font-size: 20px; }
  .home-hero__lede { font-size: 13px; margin: 14px 0 24px; }
  .home-hero__cta-row { gap: 16px; }
  .home-hero__cta-row .home-hero__cta { font-size: 13px; }
  .home-hero__cta-row .home-hero__cta--explore { gap: 20px; padding-inline: 16px; }
}

/* Light theme: a continuous white canvas, navy typography, and small
   turquoise/amber accents. Mist is used for fine borders and icon details. */
:root[data-theme="light"] {
  --bg: #fff;
  --surface: #fff;
  --surface-2: #c7e1e4;
  --fg: #2c4569;
  --muted: #526e7a;
  --muted-2: #385566;
  --border: rgb(44 69 105 / 13%);
  --border-2: rgb(44 69 105 / 24%);
  --blue: #167879;
  --brand-dark: #105e65;
  --grad: linear-gradient(#2c4569, #2c4569);
  color-scheme: light;
}
:root[data-theme="light"] body { background: #fff; color: #2c4569; }
:root[data-theme="light"] .nav {
  --nav-pill-bg: #2c4569;
  --nav-pill-border: transparent;
  --nav-fg: #fff;
  --nav-fg-muted: #fff;
}
:root[data-theme="light"] .nav__cta { background: #33b5b6; color: #fff; }
:root[data-theme="light"] .home-curtain { background: #fff; }
:root[data-theme="light"] .home-process {
  color: #2c4569;
  --fg: #2c4569;
  --muted-2: #385566;
  background: #fff;
}
:root[data-theme="light"] .home-step {
  background: #fff;
  --fg: #2c4569;
  --muted: #385566;
  --muted-2: #385566;
  border-color: rgb(44 69 105 / 12%);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgb(44 69 105 / 6%);
}
:root[data-theme="light"] .home-step__icon { background: #c7e1e4; color: #2c4569; }
:root[data-theme="light"] .home-step__index { color: #2c4569; }
:root[data-theme="light"] .home-step:hover { border-color: #33b5b6; box-shadow: 0 14px 36px rgb(44 69 105 / 10%); }
:root[data-theme="light"] .home-gallery { background: #fff; color: #2c4569; --fg: #2c4569; --muted-2: #385566; }
:root[data-theme="light"] .home-gallery .home-process__eyebrow { color: #167879; }
:root[data-theme="light"] .home-curtain .event-section {
  --fg: #2c4569;
  --muted: #526e7a;
  --muted-2: #385566;
  background: #fff;
}
:root[data-theme="light"] .home-curtain .event-section__header {
  --fg: #2c4569;
  --muted-2: #385566;
  background: transparent;
}
:root[data-theme="light"] .home-curtain .event-empty {
  color: #2c4569;
  background: #fff;
  border-color: rgb(44 69 105 / 16%);
}
:root[data-theme="light"] .home-allies {
  --fg: #2c4569;
  --muted: #526e7a;
  /* Amber deepened toward brown so thin lines stay visible on white. */
  --allies-hover: #e08e12;
  background: #fff;
}
:root[data-theme="light"] .home-ally { background: #2c4569; color: #c7e1e4; }
:root[data-theme="light"] .brand-invitation { background: #fff; color: #2c4569; border-block: 1px solid #c7e1e4; }
:root[data-theme="light"] .brand-invitation a { background: #2c4569; color: #fff; }
:root[data-theme="light"] .brand-invitation a:hover { background: #20334e; }
:root[data-theme="light"] .footer {
  background: #fff;
  --fg: #2c4569;
  --muted: #526e7a;
  --muted-2: #385566;
  --brand-text: #167879;
}
:root[data-theme="light"] .footer__heading,
:root[data-theme="light"] .footer__brand { color: #2c4569; }
:root[data-theme="light"] .footer__legal { background: #fff; border-color: #c7e1e4; }
:root[data-theme="light"] .home-hero__cta-row .home-hero__cta--explore { background: #2c4569; border-color: #2c4569; color: #fff; }
:root[data-theme="light"] .home-hero__cta-row .home-hero__cta--events { color: #fff; }

:root[data-theme="light"] .home-curtain .home-marquee {
  background: #fff;
  border-block: 1px solid #c7e1e4;
}
:root[data-theme="light"] .home-marquee__item { color: #2c4569; }
:root[data-theme="light"] .home-marquee__item svg { color: #167879; }
:root[data-theme="light"] .home-process__eyebrow,
:root[data-theme="light"] .home-curtain .event-section__label { color: #167879; }
:root[data-theme="light"] .home-allies__eyebrow {
  background: #fff;
  color: #2c4569;
  border-color: #c7e1e4;
}
:root[data-theme="light"] .home-allies__title h2 span { color: #167879; }
:root[data-theme="light"] .home-allies__dots { opacity: .22; }
:root[data-theme="light"] .home-ally { box-shadow: 0 12px 32px rgb(44 69 105 / 12%); }
:root[data-theme="light"] .home-process__aura,
:root[data-theme="light"] .home-allies__auras { opacity: .35; }
.home-hero__ledger {
  padding: 24px;
  border-radius: 24px;
  background: rgb(44 69 105 / 88%);
  border-top: 4px solid var(--brand-turquoise);
}

/* Deep navy canvas; the original navy is reserved for cards and controls. */
.home-curtain, :root[data-theme="dark"] .home-curtain {
  --home-accent: var(--brand-turquoise);
  --home-accent-deep: #167879;
  background: var(--brand-background);
}
.home-curtain::before { display: none; }
.home-curtain .home-marquee {
  background: var(--brand-navy);
  mask-image: none;
  -webkit-mask-image: none;
  border: 0;
  padding-block: 24px;
}
.home-marquee__item { color: var(--brand-mist); }
.home-marquee__item svg { color: var(--brand-turquoise); }
.home-process {
  color: var(--brand-mist);
  --fg: #eef7f7;
  --muted-2: var(--brand-mist);
  background: transparent;
}
.home-process__eyebrow { color: var(--brand-turquoise); }
.home-step {
  background: #2c4569;
  border: 1px solid rgb(199 225 228 / 16%);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgb(44 69 105 / 14%);
  --fg: #eef7f7;
  --muted-2: var(--brand-mist);
  --muted: var(--brand-mist);
}
.home-step__icon { background: var(--brand-ink); color: var(--brand-mist); box-shadow: none; }
.home-step__index { opacity: 1; }
.home-gallery {
  --fg: #eef7f7;
  --muted-2: var(--brand-mist);
  background: transparent;
}
.home-gallery .home-process__eyebrow { color: var(--brand-turquoise); }
.home-curtain .event-section {
  --fg: #eef7f7;
  --muted: #b1cfd5;
  --muted-2: var(--brand-mist);
  --home-accent: var(--brand-turquoise);
  max-width: none;
  margin: 0;
  padding: 80px max(24px, calc((100% - 1156px) / 2));
  background: transparent;
}
.home-curtain .event-section__header {
  --fg: #eef7f7;
  --muted-2: var(--brand-mist);
  --home-accent: var(--brand-turquoise);
  max-width: none;
  margin: 0 auto 48px;
  padding: 0;
  background: transparent;
}
.home-curtain .event-section__header > * { max-width: 64ch; margin-inline: auto; }
.home-curtain .event-empty { background: rgb(44 69 105 / 28%); border-color: rgb(199 225 228 / 18%); }
.home-allies {
  --fg: #eef7f7;
  --muted: var(--brand-mist);
  --home-accent: var(--brand-turquoise);
  /* Hovering a partner lights its links in the amber "sunlight" accent. */
  --allies-hover: var(--brand-amber);
  background: transparent;
}
.home-ally { background: #2c4569; color: var(--brand-mist); }
.home-allies__title h2 span { color: var(--brand-turquoise); }

/* A small sun at the horizon, surrounded by navy/turquoise cloud shadows. */
.brand-invitation {
  position: relative;
  isolation: isolate;
  background: var(--brand-background);
  color: var(--brand-mist);
  border-block: 1px solid rgb(51 181 182 / 18%);
}
.brand-invitation::before {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-amber);
  box-shadow: 0 0 18px 5px rgb(250 168 49 / 18%), 0 0 54px 18px rgb(250 168 49 / 6%);
}
.brand-invitation__inner {
  max-width: 1220px;
  margin-inline: auto;
  padding: 64px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.brand-invitation h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.5; }
.brand-invitation p { margin-top: 12px; font-size: 1rem; }
.brand-invitation a {
  flex-shrink: 0;
  padding: 16px 28px;
  border-radius: 99px;
  background: var(--brand-turquoise);
  color: var(--brand-ink);
  font-weight: 700;
}
.brand-invitation a:hover { background: #70cece; }
.footer {
  background: var(--brand-background);
  --fg: #eef7f7;
  --muted: var(--brand-mist);
  --muted-2: var(--brand-mist);
  --brand-text: var(--brand-amber);
}
.footer__heading { color: var(--brand-mist); }
.footer__brand { color: var(--brand-mist); }
.footer__legal { background: var(--brand-background); }
@media (max-width: 767px) {
  .brand-invitation__inner { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .home-hero__ledger { padding: 16px; }
  .home-curtain .event-section { padding: 56px 20px; }
  .home-curtain .event-section__header { margin: 0 auto 32px; padding: 0; }
}

