/* ============================================================
   AGLC — الأحمري وقشلان محامون ومستشارون قانونيون
   Premium bilingual (RTL/LTR) law-firm site
   ============================================================ */

:root {
  /* Palette — tweakable. Default: deep navy + warm gold */
  --primary: #16314F;
  --primary-deep: #0E2238;
  --primary-soft: #23456B;
  --gold: #BF9C5A;
  --gold-light: #D8BE86;
  --gold-tint: rgba(191, 156, 90, 0.12);

  --paper: #FAF8F3;
  --paper-2: #F2EEE5;
  --card: #FFFFFF;
  --ink: #1A211E;
  --muted: #6E756F;
  --line: #E6E1D6;
  --line-strong: #D6CFBF;

  /* Type */
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-en: "IBM Plex Sans", system-ui, sans-serif;
  --font: var(--font-ar);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 40, 35, 0.05), 0 1px 2px rgba(20, 40, 35, 0.04);
  --shadow: 0 14px 40px -18px rgba(20, 40, 35, 0.22), 0 4px 14px -8px rgba(20, 40, 35, 0.12);
  --shadow-lg: 0 30px 70px -30px rgba(20, 40, 35, 0.30);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* gentle overshoot for entrance reveals (tasteful, not bouncy) */
  --ease-overshoot: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ---------- Lenis smooth-scroll (self-hosted; required base CSS) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[dir="ltr"] { --font: var(--font-en); line-height: 1.65; }

img { max-width: 100%; display: block; }
::selection { background: rgba(191,156,90,0.22); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---------- Shared section + heading rhythm ---------- */
section { position: relative; }
.section { padding-block: 104px; }
.section-pad-sm { padding-block: 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: none;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
body[dir="ltr"] .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; }

.h-xl { font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.005em; }
.h-md { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.3; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.85; }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-lg { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn-gold { background: var(--gold); color: #20170A; box-shadow: 0 12px 28px -12px rgba(191, 156, 90, 0.7); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(191, 156, 90, 0.85); }
.btn-gold:hover .ico { transform: translateX(var(--arrow, -4px)); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-3px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--primary-deep); }

/* arrow direction respects RTL/LTR */
body[dir="rtl"] { --arrow: -4px; }
body[dir="ltr"] { --arrow: 4px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 46px; }
.topbar-info { display: flex; align-items: center; gap: 24px; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 8px; color: inherit; transition: color 0.2s; }
.topbar-info a:hover { color: var(--gold-light); }
.topbar-info svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: rgba(255,255,255,0.7); transition: color 0.2s, transform 0.2s; }
.topbar-social a:hover { color: var(--gold-light); transform: translateY(-1px); }
.topbar-social svg { width: 16px; height: 16px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
.lang-toggle svg { width: 15px; height: 15px; color: var(--gold-light); }
.topbar-info .hide-sm { }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(20,40,35,0.25); border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--primary-soft), var(--primary-deep));
  display: grid; place-items: center;
  color: var(--gold-light); font-weight: 700; font-size: 19px; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(191,156,90,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 17px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.brand-text span { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 8px;
  font-weight: 500; font-size: 16px; color: var(--ink);
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; bottom: 4px; inset-inline: 16px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--primary); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 14px; }
/* small platform shortcut buttons in the header (beside "احجز موعد") */
.header-platform { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--primary); transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s; }
.header-platform:hover { background: var(--gold-tint); border-color: var(--gold); color: var(--primary-deep); transform: translateY(-2px); }
.header-platform svg { width: 21px; height: 21px; }
@media (max-width: 940px) { .header-platform { display: none; } }
.drawer-platform { padding: 14px 16px; border-radius: 10px; font-weight: 500; font-size: 1.05rem; color: var(--primary); transition: background 0.2s; display: block; }
.drawer-platform:hover { background: var(--gold-tint); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(155deg, rgba(14,34,56,0.80) 0%, rgba(10,31,27,0.88) 55%, rgba(10,31,27,0.92) 100%),
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(191,156,90,0.16), transparent 60%),
    url("uploads/hero_bg_1_1.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%);
}

.hero .container { position: relative; padding-block: clamp(96px, 16vh, 168px); }
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: 0; gap: 14px; }
.hero .eyebrow::before { display: none; }
body[dir="ltr"] .hero .eyebrow { letter-spacing: 0; text-transform: none; }
.hero h1 { margin: 22px 0 26px; color: #fff; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { color: rgba(255,255,255,0.78); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-trust {
  margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 44px;
}
.hero-trust .ht { display: flex; flex-direction: column; gap: 2px; }
.hero-trust .ht b { font-size: 1.9rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.hero-trust .ht span { font-size: 0.92rem; color: rgba(255,255,255,0.62); }

.hero-scroll {
  position: absolute; inset-inline-start: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 0.1em;
}
.hero-scroll .mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px; position: relative; }
.hero-scroll .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--gold-light); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 8px); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; z-index: 0; bottom: 0; inset-inline-start: 0;
  width: clamp(170px, 18vw, 290px); aspect-ratio: 271 / 539;
  background: url("uploads/about1-left-shape.png") no-repeat bottom / contain;
  opacity: 0.55; pointer-events: none;
}
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; z-index: 1; }
.about-media { position: relative; }
/* Floating gavel (مطرقة) as the About section's right-side visual */
.about-gavel {
  display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.30));
  animation: gavelFloat 6s var(--ease) infinite;
}
@keyframes gavelFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}
.about-figure {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; inset-inline-start: -28px; bottom: 40px;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-lg); max-width: 230px;
  border: 1px solid rgba(191,156,90,0.3);
}
.about-badge b { display: block; font-size: 2.4rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.about-badge span { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.about-list { display: grid; gap: 14px; margin: 30px 0 36px; }
.about-list li { display: flex; align-items: flex-start; gap: 13px; font-weight: 500; }
.about-list .chk {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--gold-tint); color: var(--gold); display: grid; place-items: center;
}
.about-list .chk svg { width: 14px; height: 14px; }
.about .lead { margin-top: 20px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: radial-gradient(circle at 20% 120%, rgba(191,156,90,0.18), transparent 45%), radial-gradient(circle at 90% -20%, rgba(191,156,90,0.14), transparent 40%);
}
.stats .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 14px 10px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-end: -15px; top: 18%; height: 64%; width: 1px;
  background: rgba(255,255,255,0.14);
}
.stat .stat-ico { width: 50px; height: 50px; margin: 0 auto 16px; color: var(--gold-light); }
.stat .stat-ico svg { width: 100%; height: 100%; }
.stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; color: #fff; white-space: nowrap; }
.stat b .plus { color: var(--gold-light); }
.stat span { font-size: 1rem; color: rgba(255,255,255,0.72); margin-top: 10px; display: block; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.services-head .section-head { margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Home page: compact icon + title tiles (titles only; full cards live on Services.html) */
.service-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 42px 22px; color: var(--ink); min-height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.service-tile .service-ico { margin-bottom: 0; }
.service-tile h3 { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.45; transition: color 0.3s; }
.service-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-tile:hover .service-ico { background: var(--primary); color: var(--gold-light); }
.service-tile:hover h3 { color: var(--primary); }
.services-tiles { align-items: stretch; }

/* Digital platforms cross-promo (dark band) */
.platforms { background: var(--primary-deep); color: #fff; }
.platforms .eyebrow { color: var(--gold-light); }
.platforms .eyebrow::before { background: var(--gold-light); }
.platforms h2 { color: #fff; }
.platforms .lead { color: rgba(255,255,255,0.78); max-width: 640px; margin-inline: auto; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.platform-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 34px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(191,156,90,0.28);
  border-radius: var(--radius); color: #fff; min-height: 100%;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.3s;
}
.platform-card:hover { transform: translateY(-7px); background: rgba(255,255,255,0.07); border-color: var(--gold); }
.platform-ico { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-light); transition: background 0.4s, color 0.4s; }
.platform-ico svg { width: 30px; height: 30px; }
.platform-card:hover .platform-ico { background: var(--gold); color: var(--primary-deep); }
.platform-card h3 { font-size: 1.35rem; font-weight: 700; color: #fff; }
.platform-card p { color: rgba(255,255,255,0.72); line-height: 1.8; flex: 1; }
.platform-cta { color: var(--gold-light); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.platform-cta svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.platform-card:hover .platform-cta svg { transform: translateX(-5px); }
@media (max-width: 760px) { .platform-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold); margin-bottom: 24px;
  transition: background 0.4s, color 0.4s;
}
.service-card:hover .service-ico { background: var(--primary); color: var(--gold-light); }
.service-ico svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.service-card p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 22px; }
.service-link { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-weight: 600; font-size: 0.96rem; }
.service-link svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.service-card:hover .service-link { color: var(--gold); }
.service-card:hover .service-link svg { transform: translateX(var(--arrow, -4px)); }

/* ============================================================
   ACCREDITATIONS
   ============================================================ */
.accred { background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; }
.accred .container { display: block; }
.accred-label { font-weight: 700; color: var(--ink); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.2; letter-spacing: -0.005em; display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.accred-label::before, .accred-label::after { display: none; }

/* Auto-scrolling logo marquee (JS-driven, transparent logos, no tiles) */
.accred-marquee {
  position: relative; margin-top: 36px; overflow: hidden; width: 100%;
  direction: ltr;   /* keep marquee in LTR coordinate space so RTL pages still lay the strip out left→right */
}
.accred-track {
  display: flex; gap: 0; width: max-content; will-change: transform; direction: ltr;
}
.accred-group { display: flex; align-items: center; gap: 0; flex: none; }
.accred-logo {
  flex: none; padding-inline: 44px; display: grid; place-items: center;
  background: none; border: none; box-shadow: none; min-width: 0;
  opacity: 0.85; transition: opacity 0.3s, transform 0.3s;
}
.accred-logo:hover { opacity: 1; transform: translateY(-3px); }
body.no-motion .accred-track { transform: none !important; flex-wrap: wrap; justify-content: center; width: 100%; }
body.no-motion .accred-group:nth-child(2) { display: none; }
body.no-motion .accred-group { flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .accred-track { transform: none !important; flex-wrap: wrap; justify-content: center; width: 100%; }
  .accred-group:nth-child(2) { display: none; }
  .accred-group { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Home page: compact title-only article tiles (no photo). Full cards live on Articles.html */
.articles-compact { align-items: stretch; }
.article-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; color: var(--ink); min-height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.article-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.article-tile h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.55; color: var(--ink); margin: 0; transition: color 0.3s; }
.article-tile:hover h3 { color: var(--primary); }
.article-tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 0.92rem; }
.article-tile-more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.article-tile:hover .article-tile-more svg { transform: translateX(-5px); }
/* Single article page (migrated content) */
.article-page { max-width: 820px; margin-inline: auto; }
.article-page-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.article-page-date { color: var(--muted); font-size: 0.9rem; }
.article-page-figure { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.article-page-figure img { width: 100%; height: auto; display: block; }
.article-page-body { font-size: 1.08rem; line-height: 2.1; color: var(--ink); }
.article-page-body p { margin-bottom: 20px; }
.article-page-back { margin-top: 38px; }
/* top "back to articles" link inside the dark article hero */
.article-back-top { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; transition: color 0.25s, gap 0.25s; }
.article-back-top svg { width: 18px; height: 18px; }
.article-back-top:hover { color: #fff; gap: 12px; }
.article-page-top-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 0.95rem; margin-bottom: 22px; transition: gap 0.25s, color 0.25s; }
.article-page-top-back:hover { gap: 13px; color: var(--primary); }
.article-page-top-back svg { width: 18px; height: 18px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.article-thumb .ph { width: 100%; height: 100%; }
.article-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: 1; margin-bottom: 18px; }
.article-tag {
  flex-shrink: 0; align-self: flex-start;
  background: rgba(14,42,37,0.9); color: var(--gold-light); font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: 100px; white-space: nowrap;
}
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; color: var(--gold); }
.article-card h3 { font-size: 1.16rem; font-weight: 600; line-height: 1.45; flex: 1; }
.article-card h3 a:hover { color: var(--primary); }
.article-more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 0.94rem; }
.article-more svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.article-card:hover .article-more svg { transform: translateX(var(--arrow, -4px)); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--primary-deep); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(ellipse 60% 80% at 12% 90%, rgba(191,156,90,0.16), transparent 55%);
}
.contact .container { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: stretch; }
.contact .eyebrow { color: var(--gold-light); }
.contact .eyebrow::before { background: var(--gold-light); }
.contact h2 { color: #fff; margin: 18px 0 18px; }
.contact .lead { color: rgba(255,255,255,0.74); }
.contact-info { display: grid; gap: 18px; margin-top: 40px; }
.contact-item { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); background: rgba(255,255,255,0.03); transition: border-color 0.3s, background 0.3s; }
.contact-item:hover { border-color: rgba(191,156,90,0.5); background: rgba(255,255,255,0.05); }
.contact-item .ci-ico { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--gold-tint); color: var(--gold-light); display: grid; place-items: center; }
.contact-item .ci-ico svg { width: 22px; height: 22px; }
.contact-item .ci-txt small { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.contact-item .ci-txt b { font-size: 1.04rem; font-weight: 600; color: #fff; }
.contact-social { display: flex; gap: 12px; margin-top: 26px; }
.contact-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; color: rgba(255,255,255,0.8); transition: all 0.3s; }
.contact-social a:hover { background: var(--gold); color: #20170A; border-color: var(--gold); transform: translateY(-3px); }
.contact-social svg { width: 18px; height: 18px; }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.contact-form h3 { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0A1F1B; color: rgba(255,255,255,0.7); padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 56px; }
.footer .brand-text b { color: #fff; }
.footer .brand-text span { color: rgba(255,255,255,0.55); }
.footer-about { margin-top: 22px; font-size: 0.96rem; line-height: 1.8; color: rgba(255,255,255,0.6); max-width: 340px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: grid; place-items: center; color: rgba(255,255,255,0.75); transition: all 0.3s; }
.footer-social a:hover { background: var(--gold); color: #20170A; border-color: var(--gold); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.96rem; transition: color 0.2s, padding-inline-start 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); padding-inline-start: 6px; }
.footer-accred { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.footer-accred .seal { width: 48px; height: 48px; flex: none; color: var(--gold); }
.footer-accred .seal svg { width: 100%; height: 100%; }
.footer-accred p { font-size: 0.86rem; line-height: 1.7; color: rgba(255,255,255,0.62); }
.footer-accred b { color: #fff; display: block; margin-bottom: 5px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-bottom .fb-links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   IMAGE PLACEHOLDERS (striped)
   ============================================================ */
.ph {
  background-color: var(--primary-soft);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 11px);
  display: grid; place-items: center; color: rgba(255,255,255,0.7);
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.ph-light { background-color: var(--paper-2); background-image: repeating-linear-gradient(135deg, rgba(20,58,51,0.05) 0 2px, transparent 2px 11px); color: var(--muted); }

/* ============================================================
   REVEAL ANIMATIONS — v2 (blur + rise, directional variants)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(5px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); will-change: opacity, transform, filter; }
.reveal.rv-left { transform: translateX(-44px); }
.reveal.rv-right { transform: translateX(44px); }
.reveal.rv-scale { transform: scale(0.92) translateY(16px); }
/* tzamun-style entrances (extend the same .reveal/.in observer system) */
.reveal.rv-3d {
  transform: perspective(1000px) rotateX(12deg) translateY(40px);
  transform-origin: center bottom;
  transition: opacity 0.9s var(--ease), transform 0.95s var(--ease-overshoot), filter 0.9s var(--ease);
}
.reveal.rv-clip {
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.7s var(--ease), transform 1.05s var(--ease), filter 0.7s var(--ease), clip-path 1.05s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.rv-clip.in { clip-path: inset(0 0 0 0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .reveal.rv-clip { clip-path: none; }
  html { scroll-behavior: auto; }
  .hero-scroll .mouse::before { animation: none; }
  .hero-enter, .accred-logo, .brand-logo, .about-gavel { animation: none !important; }
}
body.no-motion .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
body.no-motion .reveal.rv-clip { clip-path: none !important; }
body.no-motion .hero-scroll .mouse::before { animation: none; }
body.no-motion .hero-enter { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
body.no-motion .about-gavel { animation: none !important; transform: none !important; }
body.no-motion .page-hero .container > * { animation: none !important; opacity: 1 !important; }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,31,27,0.5); backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: min(340px, 86vw); z-index: 100;
  background: var(--paper); box-shadow: var(--shadow-lg); padding: 26px 24px;
  transform: translateX(var(--drawer-hidden, 105%)); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
body[dir="rtl"] { --drawer-hidden: -105%; }
body[dir="ltr"] { --drawer-hidden: 105%; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); }
.drawer-close svg { width: 22px; height: 22px; margin: auto; color: var(--primary); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a { padding: 14px 16px; border-radius: 10px; font-weight: 500; font-size: 1.05rem; transition: background 0.2s; }
.drawer nav a:hover { background: var(--gold-tint); color: var(--primary); }
.drawer .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .about .container { grid-template-columns: 1fr; gap: 80px; }
  .about-media { max-width: 460px; }
  .contact .container { grid-template-columns: 1fr; gap: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .topbar-info .hide-sm { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stat:nth-child(2)::after { display: none; }
  .services-grid, .articles-grid { grid-template-columns: 1fr; }
  .services-head { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-badge { inset-inline-start: 12px; }
  .hero-trust { gap: 28px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .topbar-info { gap: 14px; }
  .stats .container { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   VIDEO SECTION (Crown Prince speech)
   ============================================================ */
.video-section { background: var(--paper-2); border-block: 1px solid var(--line); }
.video-wrap {
  max-width: 920px; margin-inline: auto; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   INNER PAGE HERO (breadcrumb banner)
   ============================================================ */
.page-hero {
  background:
    radial-gradient(ellipse 60% 100% at 85% 0%, rgba(191,156,90,0.16), transparent 60%),
    linear-gradient(155deg, var(--primary) 0%, var(--primary-deep) 70%);
  color: #fff; padding-block: 84px 72px; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; margin-top: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: var(--gold-light); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; flex: none; }
.team-photo .ph { width: 100%; height: 100%; }
.team-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.team-body h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-role { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
/* card shows title only; full bio lives in the click popup (kept in DOM, hidden on card) */
.team-bio { display: none; }
.team-role { margin-bottom: 0; }

@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HERO ENTRANCE (load animation, no observer needed)
   ============================================================ */
@keyframes heroRise { from { opacity: 0; transform: translateY(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-enter { animation: heroRise 1s var(--ease) both; }
.hero-enter.he1 { animation-delay: 0.1s; }
.hero-enter.he2 { animation-delay: 0.22s; }
.hero-enter.he3 { animation-delay: 0.34s; }
.hero-enter.he4 { animation-delay: 0.5s; }
@keyframes pageHeroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.page-hero .container > * { animation: pageHeroRise 0.9s var(--ease) both; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.12s; }

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: 0; height: 100%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); inset-inline-start: -60%; transform: skewX(-18deg); transition: inset-inline-start 0.7s var(--ease); }
.btn-gold:hover::after { inset-inline-start: 120%; }
.service-card:hover .service-ico svg { transform: scale(1.12) rotate(-6deg); }
.service-ico svg { transition: transform 0.45s var(--ease); }
.stat .stat-ico { transition: transform 0.5s var(--ease); }
.stat:hover .stat-ico { transform: translateY(-6px); }
.article-thumb .ph, .team-photo .ph { transition: transform 0.8s var(--ease); }
.article-card:hover .article-thumb .ph, .team-card:hover .team-photo .ph { transform: scale(1.05); }

/* ============================================================
   BRAND LOGO (real logo from aglc.sa, monogram fallback)
   ============================================================ */
.brand-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer .brand-logo { height: 62px; }
.drawer .brand-logo { height: 46px; }
.brand.has-logo .brand-text { display: none; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 40px 36px; position: relative; overflow: hidden; }
.vm-card.alt { background: var(--primary-deep); }
.vm-card::before { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(191,156,90,0.25); }
.vm-card .vm-ico { width: 54px; height: 54px; border-radius: 13px; background: var(--gold-tint); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 22px; }
.vm-card .vm-ico svg { width: 26px; height: 26px; }
.vm-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.vm-card p { color: rgba(255,255,255,0.78); line-height: 1.85; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .v-num { font-family: var(--font-en); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); display: block; margin-bottom: 14px; }
.value-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.value-card p { color: var(--muted); line-height: 1.8; font-size: 0.99rem; }
@media (max-width: 940px) { .about-intro .container, .vm-grid, .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 64px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card .cc-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; margin: 0 auto 20px; }
.contact-card .cc-ico svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 1.02rem; }
.contact-card a:hover { color: var(--gold); }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px; background: var(--paper-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(0.85); }
.contact-page-form { background: var(--card); border: 1px solid var(--line); }
@media (max-width: 940px) { .contact-cards { grid-template-columns: 1fr; } .contact-split { grid-template-columns: 1fr; } }


/* ============================================================
   REAL IMAGES FROM ORIGINAL SITE (hot-linked)
   ============================================================ */
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.article-thumb img.thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.accred-logo img { height: 72px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.about-logo-panel {
  aspect-ratio: 5 / 3.4;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(191,156,90,0.18), transparent 70%),
    linear-gradient(155deg, var(--primary-soft), var(--primary-deep));
  display: grid; place-items: center; padding: 40px;
  border: 1px solid rgba(191,156,90,0.22);
  position: relative; overflow: hidden;
}
.about-logo-panel::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(191,156,90,0.22), transparent 62%);
  filter: blur(8px); animation: logoGlow 5s ease-in-out infinite;
}
.about-logo-panel img.about-logo-img {
  position: relative; z-index: 1;
  width: 76%; max-width: 320px; height: auto;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.4));
  animation: logoFloat 5s var(--ease) infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes logoGlow { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
body.no-motion .about-logo-panel img.about-logo-img,
body.no-motion .about-logo-panel::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .about-logo-panel img.about-logo-img, .about-logo-panel::before { animation: none; }
}
.footer-accred .seal-img { width: 64px; height: auto; flex: none; background: #fff; border-radius: 10px; padding: 6px; }
.video-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 26px; align-items: stretch; max-width: 1060px; margin-inline: auto; }
.video-grid .video-wrap { max-width: none; }
.video-side { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.video-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } .video-side { max-height: 300px; } }

/* ---- Click-to-play video facade (poster = thumbnail) ---- */
.video-facade {
  position: relative; max-width: 940px; margin-inline: auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong);
}
.video-facade .video-poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.video-facade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,34,56,0.55), rgba(14,34,56,0.05) 45%, rgba(14,34,56,0.25));
  transition: opacity 0.4s; opacity: 1;
}
.video-facade:hover .video-poster { transform: scale(1.04); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; z-index: 2;
  background: var(--gold); color: #1A1206; display: grid; place-items: center;
  box-shadow: 0 14px 40px -8px rgba(191,156,90,0.7); transition: transform 0.35s var(--ease), background 0.3s;
}
body[dir="rtl"] .video-play svg { transform: none; }
.video-play svg { width: 36px; height: 36px; margin-inline-start: 0; margin-left: 5px; }
.video-play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(191,156,90,0.5); animation: videoPulse 2.2s ease-out infinite;
}
@keyframes videoPulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-light); }
.video-label {
  position: absolute; inset-inline-start: 0; bottom: 22px; inset-inline-end: 0; z-index: 2;
  text-align: center; color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5); pointer-events: none;
}
.video-facade.playing { cursor: default; }
.video-facade.playing .video-poster, .video-facade.playing::after,
.video-facade.playing .video-play, .video-facade.playing .video-label { display: none; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.no-motion .video-play::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .video-play::before { animation: none; } }


/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.svc-main h2 { font-size: 1.6rem; font-weight: 700; margin: 38px 0 16px; color: var(--primary); }
.svc-main h2:first-child { margin-top: 0; }
.svc-main p { color: var(--muted); line-height: 1.9; margin-bottom: 16px; font-size: 1.05rem; }
.svc-offers { display: grid; gap: 16px; margin: 20px 0 10px; }
.svc-offers li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.3s, box-shadow 0.3s; }
.svc-offers li:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.svc-offers .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); margin-top: 9px; transform: rotate(45deg); }
.svc-offers b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.svc-offers span { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.svc-why { display: grid; gap: 12px; margin-top: 18px; }
.svc-why li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.svc-why .chk { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; margin-top: 2px; }
.svc-why .chk svg { width: 13px; height: 13px; }
.svc-cta { margin-top: 40px; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 32px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.svc-cta b { font-size: 1.25rem; font-weight: 700; }
.svc-cta p { color: rgba(255,255,255,0.75); margin: 4px 0 0; font-size: 0.98rem; }
.svc-sidebar { display: grid; gap: 26px; position: sticky; top: 110px; }
.svc-side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.svc-side-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); display: inline-block; }
.svc-side-card ul { display: grid; gap: 4px; }
.svc-side-card ul a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 0.96rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.svc-side-card ul a:hover { background: var(--gold-tint); color: var(--primary); }
.svc-side-card ul a.current { background: var(--primary); color: #fff; }
.svc-side-card ul a svg { width: 14px; height: 14px; opacity: 0.5; }
.svc-side-contact { background: var(--primary-deep); color: #fff; border: none; }
.svc-side-contact h3 { color: #fff; }
.svc-side-contact .sc-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.svc-side-contact .sc-row:last-child { border-bottom: none; }
.svc-side-contact .sc-row svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.svc-side-contact .sc-row a, .svc-side-contact .sc-row span { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.svc-side-contact .sc-row a:hover { color: var(--gold-light); }
@media (max-width: 940px) { .svc-layout { grid-template-columns: 1fr; } .svc-sidebar { position: static; } }


/* ============================================================
   MOTION v3 — scroll progress, card tilt, magnetic CTA,
   media wipe, eyebrow + accent draw   (AGLC brand)
   ============================================================ */

/* Scroll progress bar (top of viewport) */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(191,156,90,0.55);
  z-index: 200; pointer-events: none;
}

/* Card tilt — needs preserve-3d + crisp backface while interacting */
.service-card, .article-card, .team-card, .value-card { transform-style: preserve-3d; }

/* Media wipe reveal (combines with .reveal — clip uncovers upward) */
.media-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.media-reveal.in { clip-path: inset(0 0 0 0); }

/* Eyebrow accent line draws in when its label reveals */
.eyebrow.reveal::before { transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease) 0.15s; }
body[dir="ltr"] .eyebrow.reveal::before { transform-origin: left; }
.eyebrow.reveal.in::before { transform: scaleX(1); }

/* Hero accent word — gold underline draws on load */
.hero h1 .accent { position: relative; }
.hero h1 .accent::after { display: none; }
body[dir="ltr"] .hero h1 .accent::after { transform-origin: left; }
@keyframes accentDraw { to { transform: scaleX(1); } }

/* Motion guards */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .media-reveal { clip-path: none !important; }
  .eyebrow.reveal::before { transform: scaleX(1); }
  .hero h1 .accent::after { animation: none; transform: scaleX(1); }
}
body.no-motion .scroll-progress { display: none; }
body.no-motion .media-reveal { clip-path: none !important; }
body.no-motion .eyebrow.reveal::before { transform: scaleX(1) !important; }
body.no-motion .hero h1 .accent::after { animation: none !important; transform: scaleX(1) !important; }

/* ============================================================
   TEAM MEMBER POPUP
   ============================================================ */
.team-card { cursor: pointer; }
.team-modal-backdrop {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  background: rgba(10,31,27,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  perspective: 1600px;   /* 3D space so the modal can flip in */
}
.team-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.team-modal {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 880px; max-height: 90vh; overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 0.85fr 1.05fr; align-items: stretch;
  transform-origin: center center; transform: rotateY(-90deg); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease);
}
.team-modal-backdrop.open .team-modal { transform: rotateY(0deg); opacity: 1; }
.tm-close {
  position: absolute; inset-inline-end: 14px; top: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line); color: var(--primary);
  transition: background 0.2s, transform 0.2s;
}
.tm-close:hover { background: #fff; transform: rotate(90deg); }
.tm-close svg { width: 20px; height: 20px; }
/* full photo (never cropped) in its own column */
.tm-photo { height: 100%; min-height: 340px; overflow: hidden; background: var(--paper-2); }
.tm-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
/* full bio in the other column; only the text scrolls if a bio is very long */
.tm-body { padding: 38px 34px; overflow-y: auto; align-self: stretch; scrollbar-width: none; -ms-overflow-style: none; }
.tm-body::-webkit-scrollbar { width: 0; display: none; }
.tm-name { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tm-role { display: inline-block; font-size: 0.98rem; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.tm-bio { font-size: 1.02rem; line-height: 2; color: var(--muted); }
@media (max-width: 720px) {
  .team-modal { grid-template-columns: 1fr; max-width: 460px; max-height: 90vh; overflow-y: auto; scrollbar-width: none; }
  .team-modal::-webkit-scrollbar { display: none; }
  .tm-photo { height: auto; max-height: 56vh; min-height: 0; }
  .tm-body { padding: 24px 24px 28px; overflow: visible; }
  .tm-name { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-modal, .team-modal-backdrop { transition: none; }
  .team-modal { transform: none; }
}
body.no-motion .team-modal, body.no-motion .team-modal-backdrop { transition: none !important; }
body.no-motion .team-modal { transform: none !important; }
