/* IPH brand base. Tokens, fonts and components follow the IPH contact site (contact.iph-ly.com). */
@font-face {
  font-family: "Montserrat"; src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Kufi Arabic"; src: url("fonts/noto-kufi-arabic.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
:root {
  --burgundy: #561B2F; --gold: #A47047; --ivory: #FFF2DE; --sand: #F1DBC6;
  --burgundy-deep: #2A0F19; --burgundy-ink: #3E1322;
  --gold-light: #EBD2B4; --gold-mid: #C79668;
  --gold-grad: linear-gradient(135deg, #F0D9BD 0%, #C79668 46%, #A47047 100%);
  --ink: var(--burgundy);
  --ink-soft: color-mix(in srgb, var(--burgundy) 72%, var(--ivory));
  --line: color-mix(in srgb, var(--burgundy) 55%, var(--ivory));
  --line-quiet: color-mix(in srgb, var(--burgundy) 16%, var(--ivory));
  --wash: color-mix(in srgb, var(--sand) 55%, var(--ivory));
  --danger: #B3261E; --ok: #2f6b3f;
  --font: "Montserrat", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-pill: 999px; --r-field: 14px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--gold) var(--ivory); }
body {
  margin: 0; min-height: 100dvh; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--burgundy-deep); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-light); color: var(--burgundy); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }

/* lockup (logo mark + wordmark) */
.lockup { --M: 84px; display: inline-flex; align-items: center; gap: calc(var(--M) * .24); color: var(--ivory); text-decoration: none; }
.lockup__mark { height: var(--M); width: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.lockup__word { display: none; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.lockup__word--ar { height: calc(var(--M) * .66); aspect-ratio: 119.6 / 87.6; -webkit-mask-image: url("assets/logo/wordmark-ar.svg"); mask-image: url("assets/logo/wordmark-ar.svg"); }
.lockup__word--en { height: calc(var(--M) * .5); aspect-ratio: 1189 / 636; -webkit-mask-image: url("assets/logo/wordmark-en.png"); mask-image: url("assets/logo/wordmark-en.png"); }
html[lang="ar"] .lockup__word--ar { display: block; }
html:not([lang="ar"]) .lockup__word--en { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
  background: var(--burgundy); color: var(--ivory); font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(86,27,47,.7);
  transition: transform .3s var(--ease-out), background-color .25s, box-shadow .3s var(--ease-out);
}
.btn:hover { background: var(--burgundy-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--wash); }
.btn--gold { background: var(--gold-grad); color: var(--burgundy); box-shadow: 0 10px 24px -12px rgba(164,112,71,.9); }
.btn--gold:hover { background: var(--gold-grad); filter: brightness(1.05); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn--danger { background: transparent; color: var(--danger); border: 1.5px solid color-mix(in srgb, var(--danger) 40%, var(--ivory)); box-shadow: none; }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 9%, var(--ivory)); }

/* language switch */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.lang__btn { min-width: 52px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .35s var(--ease-out), color .35s var(--ease-out); }
.lang__btn:hover { background: var(--wash); }
.lang__btn[aria-pressed="true"] { background: var(--burgundy); color: var(--ivory); }
.lang__btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 1%, 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
