/* ============================================================
   شركة الدعيج وبودي — Aldogaij & Bodi Law Firm
   Design tokens: Navy / Antique Gold / Ivory
   ============================================================ */

:root{
  --navy-950:#0a1524;
  --navy-900:#0d1c30;
  --navy-800:#122641;
  --navy-700:#1a3459;
  --navy-600:#25476f;
  --gold-300:#e8cf9e;
  --gold-400:#d4b483;
  --gold-500:#b8945f;
  --gold-600:#9c7a45;
  --ivory-50:#faf7f1;
  --ivory-100:#f3ede1;
  --ink-900:#161d29;
  --ink-600:#525c6b;
  --ink-400:#8791a0;
  --line:#e4dcc9;
  --shadow-gold: 0 20px 60px -20px rgba(184,148,95,.35);
  --shadow-navy: 0 20px 50px -25px rgba(10,21,36,.55);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- theme-aware surface tokens (light default) ----
     Only the "light" sections read these; the permanently-dark
     sections (header, hero, navy bands, footer) use the raw
     --navy-* tokens directly and are unaffected by theme toggling. */
  --page-bg:var(--ivory-50);
  --tint-bg:var(--ivory-100);
  --card-bg:#ffffff;
  --input-bg:var(--ivory-50);
  --line-color:var(--line);
  --heading-color:var(--navy-900);
  --body-color:var(--ink-600);
  --body-strong:var(--ink-900);
}

html.theme-dark{
  --page-bg:#0a121e;
  --tint-bg:#0e1a2c;
  --card-bg:#132039;
  --input-bg:#0e1a2c;
  --line-color:#233251;
  --heading-color:#f5f1e6;
  --body-color:#aab3c4;
  --body-strong:#e7e2d6;
}
html.theme-dark .shadow-flip{ box-shadow:none; }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--page-bg);
  color:var(--body-strong);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .4s var(--ease);
}

/* ---------- Language / Direction handling ----------
   NOTE: translation is applied via JS (script.js -> applyTranslations),
   which sets textContent from data-ar / data-en on every element that
   carries both attributes. We deliberately do NOT hide-by-attribute
   here (an element legitimately carries both data-ar and data-en at
   once), only .ar-only / .en-only utility classes toggle visibility. */
body.lang-ar{ font-family:"Tajawal",sans-serif; }
body.lang-en{ font-family:"Inter",sans-serif; }
body.lang-en .en-only{ display:initial; }
body.lang-ar .en-only{ display:none !important; }
body.lang-ar .ar-only{ display:initial; }
body.lang-en .ar-only{ display:none !important; }
body.lang-ar h1,body.lang-ar h2,body.lang-ar h3,body.lang-ar .display{ font-family:"Amiri",serif; }
body.lang-en h1,body.lang-en h2,body.lang-en h3,body.lang-en .display{ font-family:"Cormorant Garamond",serif; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }

.wrap{
  width:min(1200px, 92%);
  margin-inline:auto;
}
section{ position:relative; }

/* Eyebrow label */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55em;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-600);
  font-weight:700;
  margin-bottom:14px;
}
body.lang-ar .eyebrow{ letter-spacing:0; text-transform:none; font-size:.95rem; }
.eyebrow::before{
  content:"";
  width:26px; height:1px;
  background:var(--gold-500);
}

h1,h2,h3{ line-height:1.2; margin:0 0 .5em; color:var(--heading-color); }
h2{ font-size:clamp(1.7rem,3.4vw,2.6rem); font-weight:700; }
h3{ font-size:1.25rem; font-weight:700; }
p{ line-height:1.9; color:var(--body-color); margin:0 0 1em; }
.lead{ font-size:1.08rem; }

.section-head{
  max-width:720px;
  margin-bottom:44px;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head.center .eyebrow::before{ display:none; }

/* ---------- Diamond lattice motif (from brand mark) ---------- */
.lattice{
  position:absolute; inset-block:0;
  width:34px;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--gold-500) 45%, var(--gold-500) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--gold-500) 45%, var(--gold-500) 55%, transparent 55%);
  background-size:17px 17px;
  opacity:.18;
}
.lattice.start{ inset-inline-start:0; }
.lattice.end{ inset-inline-end:0; }

.divider-motif{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin:0 auto 30px;
  width:fit-content;
  color:var(--gold-500);
}
.divider-motif .line{ width:56px; height:1px; background:linear-gradient(90deg, transparent, var(--gold-500)); }
.divider-motif .line.rev{ background:linear-gradient(270deg, transparent, var(--gold-500)); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:14px 30px;
  border-radius:3px;
  font-weight:700;
  font-size:.95rem;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color:var(--navy-950);
  box-shadow:var(--shadow-gold);
}
.btn-gold:hover{ transform:translateY(-3px); box-shadow:0 26px 50px -18px rgba(184,148,95,.55); }
.btn-outline{
  border-color:rgba(250,247,241,.4);
  color:var(--ivory-50);
}
.btn-outline:hover{ background:rgba(250,247,241,.1); border-color:var(--ivory-50); transform:translateY(-3px); }
.btn-navy{
  background:var(--navy-900); color:var(--ivory-50);
}
.btn-navy:hover{ background:var(--navy-700); transform:translateY(-3px); }
.btn-ghost-navy{
  border-color:var(--navy-700); color:var(--heading-color);
}
.btn-ghost-navy:hover{ background:var(--navy-900); color:var(--ivory-50); }
.btn-sm{ padding:10px 20px; font-size:.85rem; }

/* ============================================================
   HEADER
   ============================================================ */
header.site-header{
  position:fixed; inset-inline:0; top:0; z-index:100;
  padding:18px 0;
  transition:padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
header.site-header.solid{
  padding:10px 0;
  background:rgba(10,21,36,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 30px -18px rgba(0,0,0,.5);
}
header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:20px; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:58px; height:58px; flex:none; object-fit:contain; border-radius:6px; transition:transform .4s var(--ease); }
.brand:hover .brand-mark{ transform:scale(1.06) rotate(-2deg); }
.brand-text{ line-height:1.15; }
.brand-text .ar{ font-family:"Amiri",serif; font-size:1.2rem; font-weight:700; color:var(--ivory-50); display:block; }
.brand-text .en{ font-family:"Cormorant Garamond",serif; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-400); display:block; margin-top:2px;}

nav.main-nav{ display:flex; align-items:center; gap:34px; }
nav.main-nav a{
  position:relative;
  font-size:.92rem; font-weight:500;
  color:rgba(250,247,241,.82);
  padding:6px 0;
  transition:color .3s;
}
body.lang-ar nav.main-nav a{ font-weight:400; font-size:1rem; }
nav.main-nav a::after{
  content:"";
  position:absolute; inset-inline-start:0; bottom:0;
  width:0; height:1px; background:var(--gold-400);
  transition:width .35s var(--ease);
}
nav.main-nav a:hover, nav.main-nav a.active{ color:var(--ivory-50); }
nav.main-nav a:hover::after, nav.main-nav a.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-switch{
  display:flex; align-items:center; gap:6px;
  border:1px solid rgba(212,180,131,.45);
  border-radius:30px;
  padding:6px 6px;
}
.lang-switch button{
  background:transparent; border:none; color:rgba(250,247,241,.65);
  font-size:.76rem; font-weight:700; letter-spacing:.05em;
  padding:5px 12px; border-radius:20px; transition:.3s;
}
.lang-switch button.active{ background:var(--gold-400); color:var(--navy-950); }

/* Theme toggle (dark mode) */
.theme-toggle{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(212,180,131,.45);
  background:transparent; color:var(--gold-400);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s, transform .3s;
  flex:none;
}
.theme-toggle:hover{ background:rgba(212,180,131,.12); transform:rotate(15deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:block; }
.theme-toggle .icon-sun{ display:none; }
html.theme-dark .theme-toggle .icon-moon{ display:none; }
html.theme-dark .theme-toggle .icon-sun{ display:block; }

.burger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px; }
.burger span{ width:24px; height:2px; background:var(--ivory-50); display:block; transition:.3s; }

@media (max-width:640px){
  .header-actions .btn.btn-gold.btn-sm{ display:none; }
  .header-actions{ gap:8px; }
  .lang-switch{ padding:4px 4px; }
  .lang-switch button{ padding:4px 9px; font-size:.7rem; }
  header.site-header .wrap{ gap:10px; }
  .brand-text .en{ display:none; }
  .brand-text .ar{ font-size:1rem; white-space:nowrap; }
  .brand-mark{ width:46px; height:46px; }
}

@media (max-width:960px){
  nav.main-nav{
    position:fixed; inset-block:0; inset-inline-end:0;
    width:min(320px,80%);
    background:var(--navy-950);
    flex-direction:column; align-items:flex-start;
    padding:110px 34px 40px;
    transform:translateX(110%);
    transition:transform .45s var(--ease);
  }
  body.lang-ar nav.main-nav{ transform:translateX(-110%); }
  body.lang-ar nav.main-nav.open, body.lang-en nav.main-nav.open{ transform:translateX(0); }
  nav.main-nav a{ font-size:1.15rem; padding:12px 0; width:100%; border-bottom:1px solid rgba(255,255,255,.06); }
  .burger{ display:flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height:100vh;
  display:flex; align-items:center;
  background:radial-gradient(circle at 82% 18%, var(--navy-700), var(--navy-900) 55%, var(--navy-950) 100%);
  color:var(--ivory-50);
  padding-top:120px;
  overflow:hidden;
  position:relative;
}

/* Courthouse / justice motif banner art, anchored along the bottom */
.hero-banner-art{
  position:absolute; inset-inline:0; bottom:0; height:46%;
  z-index:0; pointer-events:none;
  opacity:.5;
}
.hero-banner-art svg{ width:100%; height:100%; display:block; }
.hero-banner-art .column{ animation:column-glow 6s ease-in-out infinite; transform-origin:bottom center; }
.hero-banner-art .column:nth-child(2){ animation-delay:.4s; }
.hero-banner-art .column:nth-child(3){ animation-delay:.8s; }
.hero-banner-art .column:nth-child(4){ animation-delay:1.2s; }
.hero-banner-art .column:nth-child(5){ animation-delay:1.6s; }
.hero-banner-art .column:nth-child(6){ animation-delay:2s; }
@keyframes column-glow{
  0%,100%{ opacity:.55; }
  50%{ opacity:.95; }
}
.hero-banner-art .ray{ animation:ray-sweep 8s linear infinite; transform-origin:600px 40px; }
@keyframes ray-sweep{
  0%{ opacity:.06; transform:rotate(0deg); }
  50%{ opacity:.16; }
  100%{ opacity:.06; transform:rotate(360deg); }
}

/* Floating gold particles for ambient depth */
.hero-particles{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.hero-particles span{
  position:absolute; bottom:-10px; width:4px; height:4px; border-radius:50%;
  background:var(--gold-400); opacity:0;
  animation:particle-rise linear infinite;
}
@keyframes particle-rise{
  0%{ transform:translateY(0) scale(.6); opacity:0; }
  10%{ opacity:.7; }
  90%{ opacity:.35; }
  100%{ transform:translateY(-620px) scale(1.1); opacity:0; }
}

.hero .wrap{
  display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:center;
  position:relative; z-index:1;
}
@media (max-width:900px){ .hero .wrap{ grid-template-columns:1fr; text-align:center; } }

.hero-copy .eyebrow{ color:var(--gold-300); justify-content:flex-start; }
@media (max-width:900px){ .hero-copy .eyebrow{ justify-content:center; } .hero-copy .eyebrow::before{ display:none; } }

.hero h1{
  color:var(--ivory-50);
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom:.4em;
}
.hero h1 .accent{ color:var(--gold-400); }
.hero p.lead{ color:rgba(250,247,241,.78); max-width:520px; }
@media (max-width:900px){ .hero p.lead{ margin-inline:auto; } }

.hero-cta{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }
@media (max-width:900px){ .hero-cta{ justify-content:center; } }

.hero-stats{ display:flex; gap:38px; margin-top:56px; flex-wrap:wrap; }
@media (max-width:900px){ .hero-stats{ justify-content:center; } }
.hero-stats .stat b{
  display:block; font-family:"Cormorant Garamond",serif; font-size:2.2rem; color:var(--gold-400); font-weight:600;
}
body.lang-ar .hero-stats .stat b{ font-family:"Amiri",serif; }
.hero-stats .stat span{ font-size:.8rem; color:rgba(250,247,241,.6); }

/* Emblem / signature scale animation */
.hero-emblem{ position:relative; display:flex; align-items:center; justify-content:center; z-index:1; }
.emblem-frame{
  position:relative;
  width:min(400px,82vw); aspect-ratio:1;
  border:1px solid rgba(212,180,131,.4);
  border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  background:
    linear-gradient(45deg, transparent 48%, rgba(212,180,131,.12) 48%, rgba(212,180,131,.12) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(212,180,131,.12) 48%, rgba(212,180,131,.12) 52%, transparent 52%);
  background-size:22px 22px;
  animation:frame-in 1.2s var(--ease) both, frame-float 5.5s ease-in-out 1.2s infinite;
  box-shadow:0 0 0 rgba(212,180,131,0);
}
@keyframes frame-float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}
.emblem-frame::before{
  content:""; position:absolute; inset:14px;
  border:1px solid rgba(212,180,131,.28);
}
@keyframes frame-in{ from{ opacity:0; transform:scale(.85) rotate(-4deg);} to{opacity:1; transform:scale(1) rotate(0);} }

.scale-svg{ width:58%; }
.scale-beam{ transform-origin:150px 78px; animation:balance 4.5s ease-in-out infinite; }
@keyframes balance{
  0%,100%{ transform:rotate(0deg); }
  25%{ transform:rotate(2.2deg); }
  75%{ transform:rotate(-2.2deg); }
}
.scale-pan-l{ transform-origin:70px 78px; animation:pan-l 4.5s ease-in-out infinite; }
.scale-pan-r{ transform-origin:230px 78px; animation:pan-r 4.5s ease-in-out infinite; }
@keyframes pan-l{ 0%,100%{transform:translateY(0);} 25%{transform:translateY(6px);} 75%{transform:translateY(-6px);} }
@keyframes pan-r{ 0%,100%{transform:translateY(0);} 25%{transform:translateY(-6px);} 75%{transform:translateY(6px);} }

.scroll-cue{
  position:absolute; bottom:26px; inset-inline-start:50%;
  transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(250,247,241,.55); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
}
body.lang-ar .scroll-cue{ text-transform:none; letter-spacing:0; }
.scroll-cue i{ width:1px; height:34px; background:linear-gradient(var(--gold-400), transparent); animation:cue 1.8s ease-in-out infinite; }
@keyframes cue{ 0%{ transform:scaleY(0); transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ============================================================
   REVEAL — plays automatically shortly after the page paints.
   Gated behind html.js-anim (set by an inline head script) so content
   is always visible by default; this is a pure CSS keyframe animation
   with no scroll/observer dependency, so nothing can ever get "stuck"
   invisible below the fold.
   ============================================================ */
@keyframes fadeUp{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:translateY(0); } }

html.js-anim .reveal{ animation:fadeUp .8s var(--ease) both; }
html.js-anim .reveal-stagger > *{ animation:fadeUp .7s var(--ease) both; }
html.js-anim .reveal-stagger > *:nth-child(1){animation-delay:.05s;}
html.js-anim .reveal-stagger > *:nth-child(2){animation-delay:.13s;}
html.js-anim .reveal-stagger > *:nth-child(3){animation-delay:.21s;}
html.js-anim .reveal-stagger > *:nth-child(4){animation-delay:.29s;}
html.js-anim .reveal-stagger > *:nth-child(5){animation-delay:.37s;}
html.js-anim .reveal-stagger > *:nth-child(6){animation-delay:.45s;}
html.js-anim .reveal-stagger > *:nth-child(7){animation-delay:.53s;}
html.js-anim .reveal-stagger > *:nth-child(8){animation-delay:.61s;}
html.js-anim .reveal-stagger > *:nth-child(9){animation-delay:.69s;}
.reveal-stagger.in > *:nth-child(1){transition-delay:.05s;}
.reveal-stagger.in > *:nth-child(2){transition-delay:.15s;}
.reveal-stagger.in > *:nth-child(3){transition-delay:.25s;}
.reveal-stagger.in > *:nth-child(4){transition-delay:.35s;}
.reveal-stagger.in > *:nth-child(5){transition-delay:.45s;}
.reveal-stagger.in > *:nth-child(6){transition-delay:.55s;}
.reveal-stagger.in > *:nth-child(7){transition-delay:.65s;}
.reveal-stagger.in > *:nth-child(8){transition-delay:.75s;}
.reveal-stagger.in > *:nth-child(9){transition-delay:.85s;}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ============================================================
   STRIP / BAND SECTIONS
   ============================================================ */
.band{ padding:100px 0; }
.band-navy{ background:var(--navy-900); color:var(--ivory-50); }
.band-navy p{ color:rgba(250,247,241,.72); }
.band-navy h2{ color:var(--ivory-50); }
.band-ivory{ background:var(--page-bg); }
.band-tint{ background:var(--tint-bg); }

/* Practice strip on home */
.practice-strip{
  background:var(--navy-900); color:var(--ivory-50);
  border-radius:var(--radius-lg);
  padding:56px 48px;
  position:relative; overflow:hidden;
  box-shadow:var(--shadow-navy);
}
.practice-strip::before, .practice-strip::after{
  content:""; position:absolute; top:0; bottom:0; width:60px;
  background-image:linear-gradient(45deg, transparent 45%, var(--gold-500) 45%, var(--gold-500) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--gold-500) 45%, var(--gold-500) 55%, transparent 55%);
  background-size:20px 20px; opacity:.10;
}
.practice-strip::before{ inset-inline-start:-10px; }
.practice-strip::after{ inset-inline-end:-10px; }

/* ============================================================
   CARDS — services / practice areas
   ============================================================ */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:960px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr;} }

.card{
  background:var(--card-bg);
  border:1px solid var(--line-color);
  border-radius:var(--radius-md);
  padding:36px 30px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; inset-block-start:0; inset-inline-start:-100%;
  width:100%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(212,180,131,.10), transparent);
  transition:inset-inline-start .7s var(--ease);
  pointer-events:none;
}
.card:hover::before{ inset-inline-start:100%; }
.card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-navy); border-color:transparent; }
.card .icon{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color:var(--navy-950);
  margin-bottom:20px;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover .icon{ transform:rotate(-8deg) scale(1.12); box-shadow:0 10px 24px -8px rgba(184,148,95,.55); }
.card .icon svg{ width:24px; height:24px; }
.card h3{ margin-bottom:.5em; }
.card p{ margin-bottom:0; font-size:.95rem; }

/* Practice-area card on dark strip */
.pa-card{
  background:rgba(250,247,241,.04);
  border:1px solid rgba(212,180,131,.22);
  border-radius:var(--radius-md);
  padding:30px 26px;
  transition:transform .4s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.pa-card:hover{ transform:translateY(-6px); background:rgba(212,180,131,.08); border-color:var(--gold-400); box-shadow:0 20px 40px -20px rgba(212,180,131,.35); }
.pa-card .num{ font-family:"Cormorant Garamond",serif; font-size:.85rem; color:var(--gold-400); letter-spacing:.1em; transition:transform .4s var(--ease); display:inline-block; }
.pa-card:hover .num{ transform:scale(1.15) translateY(-2px); }
body.lang-ar .pa-card .num{ font-family:"Amiri",serif; }
.pa-card h3{ color:var(--ivory-50); margin-top:8px; }
.pa-card ul{ margin-top:14px; }
.pa-card ul li{
  font-size:.88rem; color:rgba(250,247,241,.68);
  padding:7px 0; border-top:1px solid rgba(255,255,255,.07);
  display:flex; gap:8px; align-items:flex-start;
  transition:padding-inline-start .3s var(--ease), color .3s;
}
.pa-card ul li::before{ content:"◆"; font-size:.5rem; color:var(--gold-400); margin-top:6px; flex:none; transition:transform .3s var(--ease); }
.pa-card ul li:hover{ padding-inline-start:6px; color:rgba(250,247,241,.92); }
.pa-card ul li:hover::before{ transform:scale(1.4) rotate(90deg); }

/* Full practice-areas page detailed sections */
.pa-detail{
  display:grid; grid-template-columns:.9fr 1.4fr; gap:50px; align-items:start;
  padding:70px 0; border-bottom:1px solid var(--line-color);
}
.pa-detail:last-child{ border-bottom:none; }
@media (max-width:820px){ .pa-detail{ grid-template-columns:1fr; gap:24px; } }
.pa-detail .tag{
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.08em;
  color:var(--gold-600); background:var(--tint-bg); padding:6px 14px; border-radius:20px; margin-bottom:14px;
}
.pa-detail-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; }
@media (max-width:560px){ .pa-detail-list{ grid-template-columns:1fr; } }
.pa-detail-list li{
  display:flex; gap:10px; align-items:flex-start;
  font-size:.95rem; color:var(--body-color); padding:10px 0; border-top:1px solid var(--line-color);
}
.pa-detail-list li svg{ width:16px; height:16px; flex:none; margin-top:4px; color:var(--gold-500); }

/* ============================================================
   ABOUT PAGE bits
   ============================================================ */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }

.portrait-frame{
  position:relative; border-radius:var(--radius-lg);
  overflow:hidden; background:var(--navy-900);
  aspect-ratio:4/5;
  display:flex; align-items:flex-end;
  box-shadow:var(--shadow-navy);
}
.portrait-frame .silhouette{
  width:100%; height:100%; object-fit:cover; object-position:top center; opacity:.98;
}
.portrait-frame .cap{
  position:absolute; inset-inline:0; bottom:0;
  padding:26px 28px 24px;
  background:linear-gradient(0deg, rgba(10,21,36,.92), transparent);
  color:var(--ivory-50);
}
.portrait-frame .cap .ar-name{ font-family:"Amiri",serif; font-size:1.3rem; font-weight:700; }
.portrait-frame .cap .role{ color:var(--gold-400); font-size:.85rem; margin-top:2px; }

.value-row{ display:flex; gap:18px; padding:22px 0; border-top:1px solid var(--line-color); }
.value-row:last-child{ border-bottom:1px solid var(--line-color); }
.value-row .n{ font-family:"Cormorant Garamond",serif; font-size:1.6rem; color:var(--gold-500); flex:none; width:44px; }
body.lang-ar .value-row .n{ font-family:"Amiri",serif; }

.credential-list{ display:grid; gap:14px; }
.credential-list li{
  display:flex; gap:12px; align-items:flex-start; font-size:.95rem; color:var(--body-color);
}
.credential-list li svg{ width:18px; height:18px; flex:none; color:var(--gold-500); margin-top:3px; }

/* Timeline (mission/vision/values) */
.mv-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:820px){ .mv-grid{ grid-template-columns:1fr; } }
.mv-card{
  padding:36px 28px; border-radius:var(--radius-md);
  background:var(--tint-bg); border:1px solid var(--line-color);
}
.mv-card h3{ color:var(--gold-600); font-size:.95rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:14px; }
body.lang-ar .mv-card h3{ letter-spacing:0; text-transform:none; font-size:1.15rem; }
.mv-card p{ color:var(--heading-color); font-size:1.02rem; margin:0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-navy); }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info{ background:var(--navy-900); color:var(--ivory-50); padding:56px 46px; }
.contact-info h2{ color:var(--ivory-50); }
.contact-info .row{ display:flex; gap:16px; align-items:flex-start; margin-top:26px; }
.contact-info .row .ic{
  width:42px; height:42px; border-radius:50%; flex:none;
  background:rgba(212,180,131,.14); display:flex; align-items:center; justify-content:center; color:var(--gold-400);
}
.contact-info .row .ic svg{ width:18px; height:18px; }
.contact-info .row b{ display:block; font-size:.95rem; color:var(--ivory-50); }
.contact-info .row span{ font-size:.85rem; color:rgba(250,247,241,.6); }
.social-row{ display:flex; gap:12px; margin-top:36px; }
.social-row a{
  width:42px; height:42px; border-radius:50%; border:1px solid rgba(212,180,131,.35);
  display:flex; align-items:center; justify-content:center; color:var(--gold-400);
  transition:.3s;
}
.social-row a:hover{ background:var(--gold-400); color:var(--navy-950); transform:translateY(-4px); }
.social-row a svg{ width:18px; height:18px; }

.contact-form{ background:var(--card-bg); padding:56px 46px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.85rem; font-weight:700; color:var(--heading-color); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; padding:13px 16px; border:1px solid var(--line-color); border-radius:var(--radius-sm);
  font:inherit; background:var(--input-bg); color:var(--body-strong);
  transition:border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(184,148,95,.18);
}
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .two-col{ grid-template-columns:1fr; } }

.map-embed{ border-radius:var(--radius-md); overflow:hidden; margin-top:26px; border:1px solid var(--line-color); filter:grayscale(.2); }

/* ============================================================
   TESTIMONIAL / CTA STRIP
   ============================================================ */
.cta-strip{
  background:linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color:var(--ivory-50);
  border-radius:var(--radius-lg);
  padding:60px 50px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-strip h2{ color:var(--ivory-50); margin:0; }
.cta-strip p{ margin:.4em 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer{ background:var(--navy-950); color:rgba(250,247,241,.7); padding:80px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:60px; border-bottom:1px solid rgba(255,255,255,.08); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--ivory-50); font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:20px; }
body.lang-ar .footer-grid h4{ letter-spacing:0; text-transform:none; font-size:1.05rem; }
.footer-grid ul li{ margin-bottom:12px; font-size:.9rem; }
.footer-grid ul li a{ transition:color .3s; }
.footer-grid ul li a:hover{ color:var(--gold-400); }
.footer-brand p{ color:rgba(250,247,241,.55); font-size:.9rem; max-width:320px; }
.footer-bottom{ padding:26px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:.8rem; color:rgba(250,247,241,.45); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.float-stack{
  position:fixed; bottom:26px; inset-inline-end:26px; z-index:90;
  display:flex; flex-direction:column; gap:14px; align-items:center;
}
.wa-float, .call-float{
  width:58px; height:58px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.wa-float{
  background:#25D366;
  box-shadow:0 14px 30px -10px rgba(37,211,102,.6);
  animation:wa-pulse 2.6s infinite;
}
.wa-float svg{ width:28px; height:28px; fill:#fff; }
.call-float{
  background:linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow:0 14px 30px -10px rgba(184,148,95,.65);
  animation:call-ring 3.4s ease-in-out infinite;
}
.call-float svg{ width:24px; height:24px; stroke:var(--navy-950); }
@keyframes wa-pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.55), 0 14px 30px -10px rgba(37,211,102,.6); }
  70%{ box-shadow:0 0 0 14px rgba(37,211,102,0), 0 14px 30px -10px rgba(37,211,102,.6); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0), 0 14px 30px -10px rgba(37,211,102,.6); }
}
@keyframes call-ring{
  0%, 82%, 100%{ transform:rotate(0deg); }
  84%{ transform:rotate(-14deg); }
  86%{ transform:rotate(12deg); }
  88%{ transform:rotate(-10deg); }
  90%{ transform:rotate(6deg); }
  92%{ transform:rotate(0deg); }
}

/* Scroll-to-top, mirrored to the opposite (right-hand) side */
.to-top{
  position:fixed; bottom:26px; inset-inline-start:26px; z-index:90;
  width:50px; height:50px; border-radius:50%;
  background:var(--navy-900); color:var(--gold-400);
  border:1px solid rgba(212,180,131,.4);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(14px) scale(.85);
  pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease), background .3s;
  box-shadow:0 14px 30px -12px rgba(10,21,36,.55);
}
.to-top.show{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.to-top:hover{ background:var(--navy-700); }
.to-top svg{ width:20px; height:20px; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero{
  padding:170px 0 90px;
  background:radial-gradient(circle at 15% 20%, var(--navy-700), var(--navy-950) 60%);
  color:var(--ivory-50);
  position:relative; overflow:hidden;
}
.page-hero h1{ color:var(--ivory-50); font-size:clamp(2rem,4vw,3rem); }
.crumb{ font-size:.85rem; color:rgba(250,247,241,.55); display:flex; gap:8px; align-items:center; margin-bottom:18px;}
.crumb a{ color:var(--gold-400); }

/* ============================================================
   ACCREDITATIONS — trust / licensing badge strip
   ============================================================ */
.accred-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:900px){ .accred-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .accred-grid{ grid-template-columns:1fr; } }
.accred-card{
  background:var(--card-bg); border:1px solid var(--line-color);
  border-radius:var(--radius-md);
  padding:30px 22px;
  text-align:center;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.accred-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-gold); border-color:var(--gold-400); }
.accred-card .seal{
  width:68px; height:68px; margin:0 auto 16px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gold-300), var(--gold-600));
  display:flex; align-items:center; justify-content:center;
  color:var(--navy-950);
  position:relative;
  transition:transform .5s var(--ease);
}
.accred-card:hover .seal{ transform:rotate(10deg) scale(1.08); }
.accred-card .seal::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  border:1px dashed rgba(184,148,95,.5);
  animation:seal-spin 18s linear infinite;
}
@keyframes seal-spin{ to{ transform:rotate(360deg); } }
.accred-card .seal svg{ width:30px; height:30px; }
.accred-card h4{ font-size:.98rem; font-weight:700; color:var(--heading-color); margin:0 0 4px; }
.accred-card span{ font-size:.78rem; color:var(--body-color); }
.mt-0{margin-top:0;} .center-text{text-align:center;}
.flex-center{display:flex; align-items:center; justify-content:center;}
.gap-10{gap:10px;}

/* ============================================================
   PARTNERS CAROUSEL — auto-scrolling logo strip with prev/next arrows
   ============================================================ */
.partners-carousel{ display:flex; align-items:center; gap:18px; }
.partners-viewport{
  overflow:hidden; flex:1;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track{ display:flex; gap:60px; width:max-content; will-change:transform; }
.partner-logo{
  flex:none; width:250px; height:200px;
  display:flex; align-items:center; justify-content:center;
  padding:14px 18px;
  background:var(--card-bg); border:1px solid var(--line-color); border-radius:var(--radius-sm);
  transition:filter .4s, opacity .4s, transform .4s var(--ease), box-shadow .4s;
}
.partner-logo:hover{ filter:grayscale(0); opacity:1; transform:translateY(-5px); box-shadow:var(--shadow-navy); }
.partner-logo img{ max-width:100%; max-height:100%; object-fit:contain; }

.partners-nav{
  width:44px; height:44px; border-radius:50%; flex:none;
  border:1px solid var(--line-color); background:var(--card-bg); color:var(--heading-color);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .3s, color .3s, transform .3s, border-color .3s;
}
.partners-nav:hover{ background:var(--gold-400); color:var(--navy-950); border-color:var(--gold-400); transform:scale(1.08); }
.partners-nav:active{ transform:scale(.94); }
.partners-nav svg{ width:19px; height:19px; }

/* ===================== PARTNERS STATIC GRID ===================== */

.partners-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 20px;
width: 100%;
align-items: stretch;
}

.partners-grid .partner-logo {
width: 100%;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
background: #fff;
border-radius: 16px;
overflow: hidden;
}

.partners-grid .partner-logo img {
display: block;
width: 100%;
max-width: 150px;
height: 105px;
object-fit: contain;
margin: auto;
}

/* ===================== MOBILE ===================== */

@media (max-width: 767px) {

.partners-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}

.partners-grid .partner-logo {
min-height: 120px;
padding: 12px;
border-radius: 12px;
}

.partners-grid .partner-logo img {
max-width: 130px;
height: 85px;
}

}
