/* Zawajj – landing page styles. Logical properties throughout so Arabic (RTL) mirrors for free. */

:root {
  --ivory: #faf7f2;
  --sand: #f3ece1;
  --paper: #ffffff;
  --navy: #2a2745;
  --navy-deep: #1f1d36;
  --ink: #2a2745;
  --ink-soft: #57536e;
  --gold: #c89e68;
  --gold-soft: #e8d6bc;
  --gold-text: #8a6232;
  --line: #e7ded0;
  --on-navy: #f6f1e9;
  --on-navy-soft: #c9c4d9;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[lang='ar'] {
  --font-display: 'Tajawal', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[lang='ar'] body { font-size: 1.125rem; line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.download :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}
[lang='ar'] h1, [lang='ar'] h2, [lang='ar'] h3 { letter-spacing: 0; line-height: 1.3; }
[lang='ar'] h1 { font-weight: 700; }

p { text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.45rem 1.05rem; font-size: 0.875rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 56px; padding: 0.55rem 1.25rem 0.55rem 1rem;
  background: var(--navy); color: #fff; border-radius: 14px;
  text-decoration: none; line-height: 1.15;
  box-shadow: 0 1px 2px rgb(31 29 54 / 0.12), 0 8px 20px -10px rgb(31 29 54 / 0.45);
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[dir='rtl'] .store { padding: 0.55rem 1rem 0.55rem 1.25rem; }
.store:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(31 29 54 / 0.14), 0 14px 28px -12px rgb(31 29 54 / 0.5); }
.store .icon { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.82; letter-spacing: 0.01em; }
.store b { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; direction: ltr; text-align: start; }
.stores-light .store { background: var(--ivory); color: var(--navy); box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.6); }
.stores-light .store:hover { background: #fff; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 247 242 / 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgb(250 247 242 / 0.82); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(31 29 54 / 0.35); }

.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}

.main-nav ul { display: flex; gap: 0.25rem; }
.main-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: var(--navy); background: var(--sand); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line);
}
.lang-pill {
  min-width: 40px; padding: 0.3rem 0.6rem; border-radius: 999px; text-align: center;
  font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  transition: color 0.2s, background-color 0.2s;
}
.lang-pill:hover { color: var(--navy); }
.lang-pill[aria-current] { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgb(31 29 54 / 0.12); }
.lang-pill[lang='ar'] { font-family: 'Tajawal', sans-serif; font-size: 0.88rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer;
}
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded='true'] .when-open { display: block; }
.menu-toggle[aria-expanded='true'] .when-closed { display: none; }

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--ivory);
}
.mobile-menu ul { display: grid; margin-bottom: 1rem; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a:not(.btn) { display: block; padding: 0.9rem 0.25rem; font-weight: 500; text-decoration: none; font-size: 1.05rem; }
.mobile-menu .btn { width: 100%; }

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-name { font-size: 1.05rem; }
  .header-actions { gap: 0.5rem; }
  .lang-pill { min-width: 34px; padding-inline: 0.45rem; }
}
@media (min-width: 1041px) { .mobile-menu { display: none !important; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(232 214 188 / 0.45), transparent 60%),
    var(--ivory);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 30em; margin-bottom: 2rem; }

.paths { border: 0; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.paths legend {
  padding: 0; margin-bottom: 0.75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy);
}
.path {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.path:hover { border-color: var(--gold); box-shadow: 0 2px 4px rgb(31 29 54 / 0.05), 0 14px 28px -18px rgb(31 29 54 / 0.4); transform: translateY(-2px); }
.path-icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--sand); color: var(--gold-text);
}
.path-body { display: grid; gap: 0.2rem; }
.path-body b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy); }
.path-body > span { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.path-body em {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem;
  font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--gold-text);
}
.path-body em .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.path:hover em .icon { transform: translateX(3px); }
[dir='rtl'] .arrow { transform: scaleX(-1); }
[dir='rtl'] .path:hover em .icon { transform: scaleX(-1) translateX(3px); }
@media (min-width: 560px) { .paths { grid-template-columns: 1fr 1fr; } .paths legend { grid-column: 1 / -1; } }

.fine { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }
.fine li { display: inline-flex; align-items: center; gap: 1.1rem; }
.fine li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-inline-start: -0.65rem; }

.cta-label { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.fine { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }
.fine li { display: inline-flex; align-items: center; gap: 0.4rem; }
.fine .icon { width: 18px; height: 18px; color: var(--gold-text); stroke-width: 2.2; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.halo {
  position: absolute; width: min(92%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f0dfc4, #e3c79d 60%, #d6b283);
  box-shadow: 0 0 0 28px rgb(200 158 104 / 0.12), 0 0 0 56px rgb(200 158 104 / 0.06);
}
.halo-dark { background: radial-gradient(circle at 40% 35%, #3a3660, var(--navy) 70%); box-shadow: 0 0 0 28px rgb(42 39 69 / 0.08), 0 0 0 56px rgb(42 39 69 / 0.04); }


@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 959px) {
  .hero-visual { min-height: 460px; }
}

/* full lead on larger screens, a short one on phones */
.lead-short { display: none; }

/* hero on phones: less text, compact choices, smaller illustration */
@media (max-width: 559px) {
  .hero { padding-block: 1.5rem 2rem; }
  .hero-grid { gap: 1.75rem; }
  .hero h1 { font-size: clamp(1.85rem, 1.2rem + 3.6vw, 2.3rem); margin-bottom: 0.6rem; }
  .lead { font-size: 1.02rem; margin-bottom: 1.35rem; }
  .lead-full { display: none; }
  .lead-short { display: inline; }

  .paths { grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.25rem; }
  .paths legend { grid-column: 1 / -1; margin-bottom: 0.5rem; font-size: 0.95rem; }
  .path { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.85rem 0.9rem; }
  .path-icon { width: 36px; height: 36px; border-radius: 10px; }
  .path-icon .icon { width: 20px; height: 20px; }
  .path-body b { font-size: 0.98rem; }
  .path-body > span { display: none; }

  .cta-label { display: none; }
  .hero .stores { flex-wrap: nowrap; gap: 0.5rem; }
  .hero .store { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0.55rem 0.6rem; gap: 0.5rem; }
  .hero .store .icon { width: 22px; height: 22px; }
  .hero .store small { font-size: 0.64rem; }
  .hero .store b { font-size: 0.98rem; white-space: nowrap; }
  .fine { margin-top: 0.9rem; gap: 0.35rem 0.9rem; font-size: 0.85rem; }
  .fine li + li::before { display: none; }

  .hero-visual { min-height: 0; padding-block: 1.5rem; }
  .hero-visual .halo { width: min(80%, 300px); box-shadow: 0 0 0 18px rgb(200 158 104 / 0.12), 0 0 0 36px rgb(200 158 104 / 0.06); }
  .hero-visual .phone { zoom: 0.74; }
}

/* ---------- phone illustrations ---------- */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 18.5; padding: 9px;
  border-radius: 40px; background: #1d1b2f;
  box-shadow: 0 2px 4px rgb(31 29 54 / 0.15), 0 40px 70px -30px rgb(31 29 54 / 0.6);
}
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 999px; background: #1d1b2f; z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #fbf6ee; display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.ph-bar {
  display: flex; align-items: center; gap: 8px; padding: 44px 16px 14px;
  background: linear-gradient(160deg, #d2ad7c, var(--gold)); color: #fff;
}
.ph-bar b { font-family: var(--font-display); font-size: 15px; }
.ph-bar img { width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; }
/* match moment */
.mt-stage { flex: 1; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px 12px; text-align: center; }
.mt-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; margin-bottom: 14px; }
.mt-person { display: grid; justify-items: center; gap: 3px; }
.mt-avatar {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; color: var(--gold-text); border: 2px solid var(--gold);
  box-shadow: 0 6px 14px -8px rgb(31 29 54 / 0.45);
}
.mt-avatar .icon { width: 28px; height: 28px; }
.mt-person b { font-size: 12.5px; color: var(--navy); }
.mt-person small { font-size: 10.5px; color: #8a8599; }
.mt-link { position: relative; width: 44px; height: 58px; display: grid; place-items: center; align-self: start; }
.mt-line { position: absolute; inset-inline: -8px; top: 50%; height: 2px; background: var(--gold); transform-origin: center; }
.mt-rings {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft);
}
.mt-rings .icon { width: 20px; height: 20px; }
.mt-heading { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.mt-sub { font-size: 11.5px; color: #8a8599; }
.phone-match { width: 272px; }
.mt-booking {
  position: relative; display: flex; align-items: center; gap: 9px; margin: 0 12px 12px; padding: 10px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 22px -14px rgb(31 29 54 / 0.45);
}
.mt-cal {
  display: grid; place-items: center; flex: none; width: 40px; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--sand); line-height: 1;
}
.mt-cal small { display: block; width: 100%; padding: 3px 0; background: var(--navy); color: #fff; font-size: 8.5px; font-weight: 700; text-align: center; letter-spacing: 0.04em; }
.mt-cal b { font-family: 'Montserrat', sans-serif; font-size: 16px; color: var(--navy); padding-bottom: 4px; }
.mt-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mt-info b { font-size: 12px; color: var(--navy); }
.mt-info small { font-size: 10px; color: #8a8599; }
.mt-kind { display: inline-flex; align-items: center; gap: 3px; }
.mt-kind .icon { width: 11px; height: 11px; }
.mt-status {
  position: absolute; top: -9px; inset-inline-end: 10px;
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px;
  background: #e7f3ec; color: #1f7a4d; font-size: 10px; font-weight: 700;
}
.mt-status .icon { width: 11px; height: 11px; stroke-width: 3; }

.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 14px 24px 18px; background: #fff; border-top: 1px solid var(--line); }
.ph-tabs span { width: 22px; height: 6px; border-radius: 999px; background: var(--line); }
.ph-tabs span.on { background: var(--gold); }

.phone-video .phone-screen { background: linear-gradient(180deg, #2a2745, #1d1b2f); color: #fff; padding: 44px 12px 14px; gap: 10px; }
.pv-title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; opacity: 0.85; }
.pv-title { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pv-rec { width: 7px; height: 7px; border-radius: 50%; background: #e05a4f; }
.pv-imam {
  position: relative; flex: 1; display: grid; align-content: end; justify-items: center; overflow: hidden;
  border-radius: 18px; padding-bottom: 8px;
  background: radial-gradient(circle at 50% 30%, #5a5285, #2f2b52);
  border: 2px solid var(--gold);
}
.pv-imam .pv-figure { position: absolute; inset: 14px 10% 0; display: grid; align-items: end; }
.pv-imam b {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: rgb(20 18 36 / 0.65); font-size: 11.5px; color: var(--gold-soft);
}
.pv-figure .fig { width: 100%; height: auto; display: block; }
.pv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-tile {
  position: relative; height: 104px; overflow: hidden; border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, #4c4670, #2b2748);
}
.pv-tile:first-child { background: radial-gradient(circle at 50% 30%, #6b5a6f, #3a2f45); }
.pv-tile .pv-figure { position: absolute; inset: 10px 8% 0; display: grid; align-items: end; }
.pv-caption { align-self: center; padding: 5px 10px; border-radius: 999px; background: rgb(200 158 104 / 0.2); color: var(--gold-soft); font-size: 11px; }
.pv-controls { display: flex; justify-content: center; gap: 14px; }
.pv-controls span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 0.12); }
.pv-controls .icon { width: 18px; height: 18px; }
.pv-controls .end { background: #c0392b; }

.phone-profile { width: 272px; }
.phone-profile .phone-screen { padding: 44px 0 0; }
.pp-scroll {
  flex: 1; overflow: hidden; padding: 4px 14px 0; display: grid; align-content: start; gap: 7px;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
}
.pp-head { display: flex; align-items: flex-start; justify-content: space-between; }
.pp-age { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 24px; color: var(--navy); line-height: 1.1; }
[lang='ar'] .pp-age { font-family: var(--font-display); }
.pp-county { font-size: 11px; color: #8a8599; }
.pp-verified { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #e7f3ec; color: #1f7a4d; font-size: 10.5px; font-weight: 600; }
.pp-verified .icon { width: 13px; height: 13px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-chips li { padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 10px; color: var(--ink); }
.pp-faith { display: grid; gap: 3px; padding: 8px 10px; border-radius: 12px; background: var(--sand); }
.pp-faith li { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--navy); font-weight: 500; }
.pp-faith .icon { width: 12px; height: 12px; color: var(--gold-text); stroke-width: 2.6; }
.pp-label { font-weight: 700; color: var(--navy); font-size: 11.5px; margin-top: 3px; }
.pp-text { font-size: 10.5px; line-height: 1.5; color: #4f4b63; }
.pp-btn {
  margin: 8px 14px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 14px; background: var(--gold); color: #fff; font-weight: 600; font-size: 13px;
}
.pp-btn .icon { width: 16px; height: 16px; fill: currentColor; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--sand); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

h2.center { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* benefits: four short facts */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.benefit {
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem; text-align: center;
  padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--paper);
}
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.benefit .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--sand); color: var(--gold-text); }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } .benefit { padding: 2rem 1.25rem; } }
@media (max-width: 420px) { .benefit { padding: 1.25rem 0.75rem; } .benefit h3 { font-size: 0.98rem; } .benefit p { font-size: 0.88rem; } }

/* steps: four in a row on wide screens, a list on phones */
.steps { display: grid; gap: 1.25rem; max-width: 36rem; margin-inline: auto; }
.step { display: flex; align-items: center; gap: 1rem; }
.step-n {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.step:last-child .step-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.step p { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--navy); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 2rem; position: relative; }
  .steps::before {
    content: ''; position: absolute; top: 24px; inset-inline: 12%; height: 1px;
    background: linear-gradient(90deg, var(--gold), rgb(200 158 104 / 0.3));
  }
  [dir='rtl'] .steps::before { background: linear-gradient(-90deg, var(--gold), rgb(200 158 104 / 0.3)); }
  .step { flex-direction: column; text-align: center; gap: 1rem; position: relative; }
  .step p { max-width: 14rem; }
}

/* shared */
.section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 32rem; margin-bottom: 1.75rem; }
.center.section-lead { margin-inline: auto; text-align: center; }
h2.center.tight { margin-bottom: 0.75rem; }
.ticks { display: grid; gap: 0.85rem; margin-bottom: 2rem; }
.ticks li { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; font-size: 1.05rem; line-height: 1.45; }
.ticks .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); stroke-width: 2.2; }
.ticks.small { gap: 0.7rem; margin-bottom: 0; }
.ticks.small li { font-size: 0.98rem; }
.ticks.small .icon { width: 22px; height: 22px; }

/* film */
.film { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: var(--section); }
.film::before {
  content: ''; position: absolute; inset-inline-start: -14rem; bottom: -16rem; width: 36rem; height: 36rem; border-radius: 50%;
  border: 1px solid rgb(200 158 104 / 0.25); box-shadow: 0 0 0 3.5rem rgb(200 158 104 / 0.05); pointer-events: none;
}
.film-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.film h2 { color: #fff; margin-bottom: 1rem; }
.film-copy p { color: var(--on-navy-soft); font-size: 1.15rem; max-width: 28rem; margin-bottom: 1.75rem; }
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn .icon { width: 18px; height: 18px; }
.film-frame {
  position: relative; justify-self: center; width: min(100%, 320px); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; background: #1d1b2f;
  box-shadow: 0 0 0 8px #1d1b2f, 0 40px 80px -30px rgb(0 0 0 / 0.7);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgb(250 247 242 / 0.95); color: var(--navy);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.film-play:hover { transform: scale(1.06); background: #fff; }
.film-play .icon { width: 30px; height: 30px; margin-inline-start: 4px; }
[dir='rtl'] .film-play .icon { margin-inline-start: 0; margin-inline-end: -4px; }
.film.is-playing .film-play { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .film-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* imam */
.imam-grid, .ombud-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.imam-copy h2, .ombud-copy h2 { margin-bottom: 1rem; }
.imam-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
@media (min-width: 960px) {
  .imam-grid { grid-template-columns: 0.9fr 1.1fr; }
  .ombud-grid { grid-template-columns: 1.15fr 0.85fr; }
}
@media (max-width: 959px) { .imam-visual { order: 2; min-height: 460px; } }

/* ombud card */
.ombud-visual { display: grid; place-items: center; padding-block: 1rem; }
.profile-mock {
  position: relative; width: min(100%, 22rem); padding: 1.5rem;
  background: var(--paper); border-radius: 24px;
  box-shadow: 0 2px 6px rgb(31 29 54 / 0.06), 0 30px 60px -30px rgb(31 29 54 / 0.4);
  rotate: -2deg;
}
[dir='rtl'] .profile-mock { rotate: 2deg; }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pm-age { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--navy); }
[lang='ar'] .pm-age { font-family: var(--font-display); letter-spacing: 0; }
.pm-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 600;
}
.pm-badge .icon { width: 16px; height: 16px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.pm-chips li { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--sand); font-size: 0.85rem; color: var(--ink); }
.pm-managed {
  display: flex; align-items: center; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; color: var(--gold-text);
}
.pm-managed .icon { width: 18px; height: 18px; }
.pm-example {
  position: absolute; top: -0.7rem; inset-inline-end: 1.25rem;
  padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ivory); font-size: 0.75rem; color: var(--ink-soft);
}

/* pricing: free start + membership */
.plans { display: grid; gap: 1.25rem; max-width: 52rem; margin: 2.5rem auto 0; }
.plan {
  padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line);
}
.plan-main { border: 2px solid var(--navy); box-shadow: 0 18px 36px -24px rgb(31 29 54 / 0.35); }
.plan h3 { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1.25rem; color: var(--navy); }
.plan-price b { font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
[lang='ar'] .plan-price b { font-family: var(--font-display); letter-spacing: 0; }
.plan-price span { font-weight: 600; color: var(--ink-soft); }
.price-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: 0.9rem; }
p.center { text-align: center; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

/* about (inside the FAQ section) */
.about { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--gold); max-width: 24rem; }
.about h3 { margin-bottom: 0.5rem; }
.about p { color: var(--ink-soft); }

/* FAQ */
.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.35rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-text); }
.faq-icon { color: var(--gold-text); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.5rem; max-width: 46rem; color: var(--ink-soft); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.75fr 1.25fr; gap: 4rem; } }

/* download band */
.download {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-navy);
  padding-block: var(--section) 0;
}
.download::before {
  content: ''; position: absolute; inset-inline-end: -12rem; top: -12rem; width: 34rem; height: 34rem;
  border-radius: 50%; border: 1px solid rgb(200 158 104 / 0.28);
  box-shadow: 0 0 0 3.5rem rgb(200 158 104 / 0.05), 0 0 0 7rem rgb(200 158 104 / 0.035);
  pointer-events: none;
}
.download-grid { position: relative; display: grid; gap: 1rem; align-items: center; }
.download-copy { padding-bottom: var(--section); }
.download h2 { color: #fff; margin-bottom: 1rem; }
.download-copy > p { color: var(--on-navy-soft); font-size: 1.15rem; margin-bottom: 2rem; max-width: 30rem; }
.download-visual { display: grid; place-items: center; padding-bottom: var(--section); }
.download-visual .phone { box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
@media (min-width: 960px) {
  .download-grid { grid-template-columns: 1fr 1.1fr; }
}

/* footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 48px; height: 48px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }
.footer-h {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
[lang='ar'] .footer-h { letter-spacing: 0; font-size: 1rem; }
.contact { display: grid; gap: 0.35rem; }
.contact a, .footer-lang, .footer-bottom a {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 40px;
  color: var(--on-navy); text-decoration: none;
}
.contact a:hover, .footer-lang:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.contact .icon { width: 20px; height: 20px; color: var(--gold); }
.social { display: flex; gap: 0.5rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.18); color: var(--on-navy);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.social a:hover { border-color: var(--gold); color: #fff; background: rgb(255 255 255 / 0.05); }
.social .icon { width: 19px; height: 19px; }
.footer-langs { display: grid; }
.footer-lang[aria-current] { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.9rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* sticky call to action on phones */
.sticky-cta {
  position: fixed; z-index: 45; inset-inline: 0; bottom: 0; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgb(250 247 242 / 0.96); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgb(31 29 54 / 0.4);
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none !important; } }
body.sticky-open .wa-float { bottom: 5.5rem; }

/* WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #1f7a4d; color: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 10px 22px -10px rgb(0 0 0 / 0.35);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float .icon { width: 26px; height: 26px; }
body.consent-open .wa-float { display: none; }

/* consent */
.consent {
  position: fixed; z-index: 60; inset-inline: 1rem; bottom: 1rem;
  max-width: 26rem; margin-inline-start: auto;
  padding: 1.15rem 1.25rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgb(31 29 54 / 0.08), 0 14px 24px -14px rgb(31 29 54 / 0.35);
  font-size: 0.93rem; color: var(--ink);
  animation: consent-in 0.5s var(--ease) both;
}
.consent a { color: var(--navy); font-weight: 500; }
.consent-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.9rem; }
@keyframes consent-in { from { transform: translateY(16px); } }
@media (max-width: 560px) {
  .consent { inset-inline: 0.75rem; bottom: 0.75rem; padding: 0.9rem 1rem; font-size: 0.86rem; line-height: 1.5; }
  .consent-actions { margin-top: 0.7rem; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- motion that explains ----------
   Elements are visible by default. site.js adds .play when a part scrolls into view
   (and only when the visitor has not asked for reduced motion), which replays the story. */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Two profiles meet, the rings join, the meeting with the imam gets booked */
  .play .phone { animation: settle 0.9s var(--ease) both; }
  .play .mt-person.a { animation: from-start 0.8s 0.35s var(--ease) both; }
  .play .mt-person.b { animation: from-end 0.8s 0.35s var(--ease) both; }
  .play .mt-line { animation: draw 0.6s 0.95s var(--ease) both; }
  .play .mt-rings { animation: pop 0.6s 1.25s var(--ease) both; }
  .play .mt-rings::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
    animation: ripple 2.4s 1.8s ease-out infinite;
  }
  .play .mt-heading, .play .mt-sub { animation: rise 0.7s 1.5s var(--ease) both; }
  .play .mt-booking { animation: rise 0.8s 2s var(--ease) both; }
  .play .mt-status { animation: pop 0.5s 2.6s var(--ease) both; }

  /* 2. The steps light up one after another along the line */
  .steps.play::before { animation: draw-x 1.6s 0.2s var(--ease) both; }
  .steps.play .step-n { animation: pop 0.5s calc(0.25s + var(--i) * 0.35s) var(--ease) both; }
  .steps.play .step p { animation: rise 0.6s calc(0.35s + var(--i) * 0.35s) var(--ease) both; }

  /* 3. The imam is the one speaking */
  .play .pv-imam.speaking { animation: speak 2.2s ease-in-out infinite; }
  .play .pv-imam .fig { animation: breathe 4s ease-in-out infinite; transform-origin: 50% 100%; }
  .play .pv-tile .fig { animation: breathe 4.6s 0.8s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes speak { 0%, 100% { box-shadow: 0 0 0 0 rgb(200 158 104 / 0.55); } 50% { box-shadow: 0 0 0 5px rgb(200 158 104 / 0); } }
  @keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px) scale(1.01); } }
  .play .pv-bars i { animation: talk 0.9s ease-in-out infinite; }
  .play .pv-bars i:nth-child(2) { animation-delay: 0.15s; }
  .play .pv-bars i:nth-child(3) { animation-delay: 0.3s; }

  @keyframes from-start { from { opacity: 0; transform: translateX(calc(-28px * var(--dir, 1))); } }
  @keyframes from-end { from { opacity: 0; transform: translateX(calc(28px * var(--dir, 1))); } }
  @keyframes draw { from { transform: scaleX(0); } }
  @keyframes draw-x { from { transform: scaleX(0); } }
  @keyframes pop { from { opacity: 0; transform: scale(0.4); } }
  @keyframes ripple { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
  @keyframes talk { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
}
[dir='rtl'] { --dir: -1; }
.pv-bars { display: inline-flex; align-items: center; gap: 2px; height: 12px; margin-inline-start: 4px; vertical-align: middle; }
.pv-bars i { display: block; width: 3px; height: 12px; border-radius: 2px; background: var(--gold); transform-origin: center; }
.steps::before { transform-origin: left center; }
[dir='rtl'] .steps::before { transform-origin: right center; }

/* the page itself settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0.35; transform: translateY(14px); } }
  @keyframes settle { from { opacity: 0.5; transform: scale(0.975); filter: blur(4px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
