/* Regenesis International Group — v2 design system (Luqman's brief, 2026-11)
   Private-bank calm: deep navy / near-black grounds, ivory text, champagne-gold
   accents. Cormorant Garamond display, Inter body. Generous white space, short
   lines, thin serif numerals, hairline dividers. Mobile first.
   Logical properties (inline/block) throughout so the Arabic RTL build only
   needs dir="rtl" on <html>. */

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

:root {
  /* grounds */
  --night: #0a0d14;          /* page */
  --navy: #0f1622;           /* alternate band */
  --navy-2: #141d2c;         /* raised surfaces (fields) */

  /* ink */
  --ivory: #f2ece1;          /* headings, primary text */
  --ivory-2: rgba(242, 236, 225, 0.78);  /* body */
  --ivory-3: rgba(242, 236, 225, 0.56);  /* muted */
  --ivory-4: rgba(242, 236, 225, 0.38);  /* faint */

  /* accent */
  --gold: #c8b27c;           /* champagne */
  --gold-2: #ddcb9f;         /* hover */
  --gold-line: rgba(200, 178, 124, 0.42);

  /* lines */
  --line: rgba(242, 236, 225, 0.12);
  --line-2: rgba(242, 236, 225, 0.22);

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-weight: 350;
  color: var(--ivory-2);
  background: var(--night);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-2); }
::selection { background: rgba(200, 178, 124, 0.3); color: var(--ivory); }

.container { width: min(1160px, 88%); margin-inline: auto; }
.narrow { width: min(720px, 88%); margin-inline: auto; }

/* ============ accessibility ============ */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--ivory); color: var(--night); padding: 0.75rem 1.25rem;
}
.skip-link:focus { inset-inline-start: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.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;
}

/* ============ typography ============ */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ivory); letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 400; }

.eyebrow {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
  margin-block-end: 1.6rem;
}
.lede {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4; color: var(--ivory);
}
.prose p { max-width: 58ch; }
.prose p + p { margin-block-start: 1.2rem; }
.note {
  font-family: var(--serif); font-style: italic; font-size: 1.08rem;
  color: var(--ivory-3); margin-block-start: 2rem;
}
.rule {
  width: 56px; height: 1px; background: var(--gold); border: 0;
  margin-block: 2.2rem;
}
/* spacing helpers (replace former inline style attributes; the CSP forbids those) */
.stack-md { margin-block-start: 1.2rem; }
.stack-lg { margin-block-start: 1.6rem; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }
.center .prose p { margin-inline: auto; }

/* ============ buttons ============ */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory); background: transparent;
  border: 1px solid var(--gold-line); padding: 1.05rem 2.1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-solid { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
.link-arrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-block-end: 1px solid var(--gold-line); padding-block-end: 0.35rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { color: var(--gold-2); border-color: var(--gold-2); }
[dir="rtl"] .link-arrow .arrow { display: inline-block; transform: scaleX(-1); }

/* ============ header ============ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: var(--header-h);
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.85), rgba(10, 13, 20, 0));
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.solid, .page .site-header {
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block-end-color: var(--line);
}
.site-header nav {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 1.15rem;
  letter-spacing: 0.42em; color: var(--ivory); text-decoration: none;
  padding-inline-start: 0.42em; /* optically balance trailing tracking */
}
.wordmark:hover { color: var(--ivory); }
.nav-menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-menu a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ivory-2); text-decoration: none; transition: color 0.25s;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--gold); }
.nav-menu .nav-cta { border: 1px solid var(--gold-line); padding: 0.6rem 1.15rem; color: var(--ivory); }
.nav-menu .nav-cta:hover { border-color: var(--gold); }

.lang { display: flex; gap: 0.7rem; align-items: center; font-size: 0.72rem; color: var(--ivory-4); }
.lang [aria-current="true"] { color: var(--ivory); }
.lang .pending { cursor: default; color: var(--ivory-3); }
.lang [lang="ar"] { font-size: 0.86rem; }
.lang .sep { opacity: 0.5; }

.nav-toggle { display: none; }
.nav-toggle:focus-visible + .burger { outline: 2px solid var(--gold); outline-offset: 2px; }
.burger { display: none; width: 44px; height: 44px; cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 22px; height: 1px; background: var(--ivory); position: relative;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }

/* ============ hero (home) ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: var(--night);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 20, 0.55) 0%, rgba(10, 13, 20, 0.35) 40%, rgba(10, 13, 20, 0.85) 100%);
}
.hero-content { padding-block: calc(var(--header-h) + 2rem) 4rem; }
.hero .brandline {
  font-family: var(--serif); font-weight: 300; color: var(--ivory);
  font-size: clamp(2.6rem, 9vw, 6.2rem); letter-spacing: 0.32em; line-height: 1;
  padding-inline-start: 0.32em;
}
.hero .slogan {
  font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--ivory);
  font-size: clamp(1.3rem, 3vw, 2rem); margin-block: 1.6rem 3rem;
}
.scroll-cue {
  position: absolute; inset-block-end: 2rem; inset-inline: 0; margin-inline: auto;
  width: 1px; height: 54px; background: linear-gradient(180deg, transparent, var(--gold));
}

/* ============ sections ============ */
.band { padding-block: clamp(6rem, 14vw, 10rem); }
.band-alt { background: var(--navy); }
.band + .band { border-block-start: 1px solid var(--line); }
.band-alt + .band, .band + .band-alt { border-block-start: 0; }

.split { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.media-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-wide { aspect-ratio: 16 / 9; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-block-start: 2rem; }
.chips li {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3);
}
.chips li + li::before { content: "·"; color: var(--gold); margin-inline-end: 1.6rem; }

/* ============ numbered steps ============ */
.steps { list-style: none; display: grid; gap: 0; margin-block-start: clamp(3rem, 6vw, 4.5rem); }
.step {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1.6rem;
  padding-block: 2.2rem; border-block-start: 1px solid var(--line);
}
.step:last-child { border-block-end: 1px solid var(--line); }
.step-num {
  font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1;
  color: var(--gold); grid-row: span 3;
}
.step h3 { margin-block-end: 0.6rem; }
.step p { max-width: 54ch; }
.step .you-get { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ivory-3); margin-block-start: 0.5rem; }

/* ============ plain list (why partner) ============ */
.fine-list { list-style: none; margin-block-start: 2.6rem; max-width: 640px; }
.fine-list li {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 300; color: var(--ivory);
  padding-block: 1.15rem; border-block-start: 1px solid var(--line);
}
.fine-list li:last-child { border-block-end: 1px solid var(--line); }
.center .fine-list { margin-inline: auto; }

/* ============ leadership ============ */
.leaders { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1.4rem; margin-block-start: 3.5rem; }
.leader-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-block-end: 1.2rem;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.leader-photo .initial { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; color: var(--gold); }
.leader h3 { font-size: 1.3rem; }
.leader .title {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-3); margin-block-start: 0.4rem;
}

/* ============ page hero (sub pages) ============ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(5rem, 14vw, 9rem)) clamp(5rem, 12vw, 8rem);
  text-align: center;
}
.page-hero .hero-media::after { background: linear-gradient(180deg, rgba(10, 13, 20, 0.7), rgba(10, 13, 20, 0.92)); }
.page-hero h1 { max-width: 20ch; margin-inline: auto; }
.page-hero .lede { max-width: 42ch; margin-inline: auto; margin-block-start: 1.6rem; text-wrap: balance; }

/* ============ forms ============ */
.form { display: grid; gap: 1.6rem; margin-block-start: 3rem; text-align: start; }
.field label {
  display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ivory-3); margin-block-end: 0.5rem;
}
.field .opt { text-transform: none; letter-spacing: 0.02em; color: var(--ivory-3); } /* ivory-4 measured 3.2:1 */
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ivory);
  background: transparent; border: 0; border-block-end: 1px solid var(--line-2);
  padding: 0.7rem 0; border-radius: 0; transition: border-color 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
/* focus: a 2px gold underline (padding drops 1px so nothing shifts); the checkbox keeps the global 2px ring */
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); border-block-end-width: 2px; padding-block-end: calc(0.7rem - 1px);
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; font-size: 0.88rem; color: var(--ivory-3); }
.consent input { width: 18px; height: 18px; margin-block-start: 0.2rem; accent-color: var(--gold); }
.form-hint { font-size: 0.85rem; color: var(--ivory-3); }
/* live message count (site.js); quiet until the limit is passed */
.form-count { margin-block-start: 0.45rem; font-size: 0.8rem; color: var(--ivory-3); text-align: end; font-variant-numeric: tabular-nums; }
.form-count.is-over { color: var(--gold-2); }
.form .btn { justify-self: start; }
.form-status { font-size: 0.92rem; color: var(--gold-2); min-height: 1.4em; }
.center .form .btn { justify-self: center; }
/* spam trap: out of sight, out of the tab order and hidden from assistive tech */
.hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none;
}
.hp input { width: 1px; height: 1px; }

/* ============ footer ============ */
.site-footer { background: var(--night); border-block-start: 1px solid var(--line); padding-block: 4.5rem 3rem; text-align: center; }
.site-footer .wordmark { font-size: 1rem; }
.footer-line {
  margin-block-start: 1.4rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3);
}
.footer-line a { color: var(--ivory-2); text-decoration: none; }
.footer-line a:hover { color: var(--gold); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; margin-block: 2.4rem; }
.footer-nav a { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { max-width: 720px; margin-inline: auto; border-block-start: 1px solid var(--line); padding-block-start: 2rem; }
.footer-legal p { font-size: 0.8rem; color: var(--ivory-3); line-height: 1.7; } /* ivory-4 measured 3.2:1 */
.footer-legal p + p { margin-block-start: 0.6rem; }
.footer-legal .treatment { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ivory-3); }
.footer-legal a { color: var(--ivory-3); }

/* ============ legal pages ============ */
.legal { padding-block: clamp(4rem, 9vw, 6rem); }
.legal-section { padding-block: 2.2rem; border-block-start: 1px solid var(--line); }
.legal-section:first-child { border-block-start: 0; padding-block-start: 0; }
.legal-section h2 { font-size: 1.7rem; margin-block-end: 0.9rem; }
.legal-section p, .legal-section li { font-size: 0.97rem; }
.legal-section p + p { margin-block-start: 0.8rem; }
.legal-section ul { padding-inline-start: 1.2rem; margin-block-start: 0.6rem; }
.legal-section strong { color: var(--ivory); font-weight: 500; }
.interim {
  border: 1px solid var(--gold-line); padding: 1.2rem 1.4rem; margin-block-end: 3rem;
  font-size: 0.9rem; color: var(--ivory-2);
}

/* ============ thanks / error / 404 ============ */
.status-page { min-height: 72svh; display: grid; align-content: center; }
.status-alt { margin-block-start: 1.8rem; font-size: 0.9rem; }

/* ============ redirect stubs ============ */
.moved { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }

/* ============ breakpoints (mobile first) ============ */
@media (min-width: 720px) {
  .leaders { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .media-frame { order: 2; }
  .step { grid-template-columns: 6rem 1fr; }
  .step-num { font-size: 3.2rem; }
}
@media (min-width: 1100px) {
  .leaders { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: grid; }
  /* keep the menu checkbox in the tab order (visually hidden) so the burger works from the keyboard */
  .nav-toggle {
    display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .nav-menu {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-block-end: 1px solid var(--line); /* opaque: page text showed through 0.98 under the header backdrop-filter */
    padding: 0.8rem 6% 1.6rem; display: none;
  }
  .nav-menu li a { display: block; padding-block: 0.95rem; border-block-end: 1px solid var(--line); }
  .nav-menu .nav-cta { border: 0; border-block-end: 1px solid var(--line); padding-inline: 0; }
  .nav-menu .lang { padding-block-start: 1.1rem; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .site-header:has(.nav-toggle:checked) { background: rgba(10, 13, 20, 0.98); }
}
