/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap;
  src: url(/fonts/amiri-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap;
  src: url(/fonts/amiri-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap;
  src: url(/fonts/amiri-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap;
  src: url(/fonts/amiri-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

/* ---------- tokens ---------- */
:root {
  --ink: #0b1426;
  --navy: #14213d;
  --navy-2: #1e3158;
  --gold: #c9a55c;
  --gold-soft: #e3cb94;
  --gold-ink: #75581a;
  --paper: #f3f5fa;
  --white: #ffffff;
  --text: #18223a;
  --muted: #55607a;
  --on-dark: #e9edf5;
  --on-dark-muted: #a9b4cc;
  --line: #d8deea;
  --line-gold: rgba(201, 165, 92, 0.32);
  --danger: #a3262a;
  --ok: #1c6b4a;

  --font-display: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 1160px;
  --radius: 6px;
  --header-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .hero :focus-visible, .facts :focus-visible, .cta :focus-visible,
.site-footer :focus-visible, .bar :focus-visible { outline-color: var(--gold); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .6rem 1.6rem;
  border: 1.5px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold-soft);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: rgba(201, 165, 92, 0.14); }
.btn--solid { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn--solid:hover { background: var(--gold-soft); }
.btn--ink { border-color: var(--navy); color: var(--navy); }
.btn--ink:hover { background: rgba(20, 33, 61, 0.07); }
.btn--ink.btn--solid { background: var(--navy); color: var(--white); }
.btn--ink.btn--solid:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; color: var(--on-dark);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-solid { background: rgba(11, 20, 38, 0.94); box-shadow: 0 1px 0 var(--line-gold); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--on-dark); }
.brand svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .98rem; color: var(--on-dark-muted); padding-block: .4rem; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav a:not(.btn):hover { color: var(--on-dark); border-color: var(--gold); }
.nav .btn { min-height: 42px; padding-inline: 1.25rem; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1.5px solid var(--line-gold); border-radius: var(--radius); color: var(--on-dark); cursor: pointer; }
.menu-btn svg { margin: auto; width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.menu-btn { transition: background-color .2s, border-color .2s, transform .15s; }
.menu-btn:hover { background: rgba(201, 165, 92, .12); border-color: var(--gold); }
.menu-btn:active { transform: scale(.94); }
/* the three bars: top and bottom cross into an X, the middle one slides out */
.menu-btn path { transform-box: fill-box; transform-origin: center; transition: transform .32s cubic-bezier(.65, 0, .35, 1), opacity .2s; }
.menu-btn[aria-expanded="true"] .bar-1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar-2 { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] .bar-3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem var(--gutter) 1.25rem; border-bottom: 1px solid var(--line-gold);
    display: flex; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; }
  /* links come in one after another once the panel is open */
  .nav a:not(.btn), .nav .btn { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, color .2s, border-color .2s, background-color .2s; }
  .nav.is-open a:not(.btn), .nav.is-open .btn { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(1) { transition-delay: .06s; }
  .nav.is-open a:nth-child(2) { transition-delay: .11s; }
  .nav.is-open a:nth-child(3) { transition-delay: .16s; }
  .nav.is-open a:nth-child(4) { transition-delay: .21s; }
  .nav.is-open a:nth-child(5) { transition-delay: .26s; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  min-height: 100vh; min-height: 100svh; display: grid;
  background:
    radial-gradient(50% 55% at 25% 82%, rgba(201, 165, 92, 0.2) 0%, rgba(201, 165, 92, 0) 70%),
    radial-gradient(90% 70% at 85% 20%, rgba(30, 49, 88, 0.95) 0%, rgba(20, 33, 61, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
}
/* the facade stands on the bottom edge of the hero; the text is centred against it */
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: end; padding-top: calc(var(--header-h) + 2rem);
}
.hero__text { align-self: center; padding-bottom: 4rem; }
.hero__eyebrow { color: var(--gold); font-weight: 500; font-size: 1.05rem; margin-bottom: 2rem; }
.hero__name {
  font-weight: 400; color: var(--gold); line-height: 1.5;
  font-size: clamp(4.25rem, 11vw, 9rem);
  margin-bottom: .75rem; padding-top: .1em;
}
.hero__tag {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.6; color: var(--on-dark);
  border-inline-start: 3px solid var(--gold); padding-inline-start: 1.1rem; margin-bottom: 1.25rem; max-width: 18em;
}
.hero__sub { color: var(--on-dark-muted); max-width: 29em; margin-bottom: 2.25rem; font-size: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.facade { display: block; width: 118%; max-width: 700px; margin-inline-end: -8%; justify-self: end; align-self: end; }
.facade .f-stroke { stroke: var(--gold); stroke-opacity: .75; stroke-width: 1.5; stroke-linejoin: round; }
.facade .f-body { fill: url(#colfill); }
.facade .f-flute { stroke: var(--gold-soft); stroke-opacity: .22; stroke-width: 1; }
.facade .f-fill { fill: rgba(30, 49, 88, 0.55); }

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 1.5rem); gap: 0; }
  .hero__text { padding-bottom: 2.5rem; }
  .facade { width: 100%; max-width: 380px; margin-inline: 0; justify-self: center; }
}

/* ---------- band: facts ---------- */
.facts { background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--line-gold); }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 2.25rem 1.5rem; text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--line-gold); }
.fact__big { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--gold); }
.fact__label { color: var(--on-dark-muted); font-size: 1rem; margin-top: .15rem; }
@media (max-width: 700px) {
  .facts__row { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line-gold); }
  .fact { padding: 1.5rem 1rem; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--white { background: var(--white); }
.section__head { max-width: 40rem; margin-bottom: 3rem; }
.section__title { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--navy); }
.section__lead { color: var(--muted); margin-top: .75rem; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 960px; margin-inline: auto; }
.seal {
  aspect-ratio: 3 / 4; width: 100%; max-width: 300px; justify-self: center; position: relative;
  display: grid; place-items: center; border-radius: 999px 999px 10px 10px;
  background: radial-gradient(circle at 35% 25%, var(--navy-2), var(--ink));
  box-shadow: 0 24px 60px -24px rgba(11, 20, 38, .6);
}
.seal::before { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 4px 4px; border: 1px solid var(--line-gold); }
.seal__logo { width: 52%; height: auto; }
.seal__letter { font-family: var(--font-display); font-size: clamp(6.5rem, 14vw, 9rem); line-height: 1; color: var(--gold); transform: translateY(-.04em); }
.about__title { margin-bottom: 1.25rem; }
.about__body { font-size: 1.15rem; }
.about__body p + p { margin-top: 1.1rem; }
.about__body p { max-width: 34em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .seal { max-width: 220px; } }

/* practice list: every row opens the case form with that type selected */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.area { border-top: 1px solid var(--line); }
.area:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.area a { display: grid; grid-template-columns: 44px 1fr 24px; gap: 1.1rem; align-items: center; padding: 1.5rem .6rem; text-decoration: none; color: inherit; transition: background-color .2s; }
.area svg { width: 40px; height: 40px; stroke: var(--gold-ink); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-size: 1.55rem; color: var(--navy); line-height: 1.4; }
.area p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: .1rem; }
.area .area__go { width: 22px; height: 22px; stroke: var(--navy); stroke-width: 2; opacity: .35; transition: transform .2s, opacity .2s; }
.area a:hover { background: rgba(201, 165, 92, 0.1); }
.area a:hover .area__go, .area a:focus-visible .area__go { opacity: 1; transform: translateX(-4px); }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } .area:nth-last-child(2) { border-bottom: 0; } }

/* steps */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; margin: 0; padding: 0; }
/* runs from the centre of the first circle to the centre of the third (columns are 1/3 wide with a 2rem gap) */
.steps__line { position: absolute; top: 30px; inset-inline-start: 30px; width: calc((200% + 4rem) / 3); height: 2px; background: var(--gold); transform-origin: 100% 50%; opacity: .6; }
.step { position: relative; }
.step__n {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 1.25rem;
  position: relative; box-shadow: 0 0 0 6px var(--white);
}
.step h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: .35rem; }
.step p { color: var(--muted); max-width: 22em; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps__line { display: none; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 1.1rem; }
  .step__n { grid-row: span 2; margin-bottom: 0; }
}

/* call to action + contact */
.cta { background: var(--navy); color: var(--on-dark); background-image: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--gold); }
.cta p { color: var(--on-dark-muted); margin-block: .85rem 1.75rem; max-width: 30em; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact:empty { display: none; }
.contact li { display: grid; grid-template-columns: 24px 1fr; gap: .9rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-gold); }
.contact svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: .3rem; }
.contact small { display: block; color: var(--on-dark-muted); font-size: .88rem; line-height: 1.5; }
.contact a { text-decoration: none; font-weight: 500; }
.contact a:hover { color: var(--gold-soft); }
@media (max-width: 760px) { .cta__inner { grid-template-columns: 1fr; } }
/* no contact details filled in: the call to action stands alone, centred */
.cta--solo .cta__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cta--solo p { margin-inline: auto; }
.cta--solo h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 1.75rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a:hover { color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
