/* =====================================================================
   USMANI & CO. — Design System + Homepage Styles
   Token-driven. Tokens in :root map 1:1 to a Tailwind theme.
   ===================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand "dark" — navy/indigo from live usmaniandco.com (#161B39 / #1d1b4c).
     These tokens drive hero/impact/team/footer/consult backgrounds. */
  --brand-purple-900: #11142B;   /* darkest navy */
  --brand-purple-800: #161B39;   /* primary heading navy */
  --brand-purple-700: #1D1B4C;   /* brand navy (buttons/sections) */
  --brand-purple-600: #2A2A66;   /* lighter navy */
  --brand-purple-500: #3D3D80;
  --brand-purple-100: #E7E7F2;   /* navy tint bg */
  --brand-purple-50:  #F4F4FA;

  /* True purple — used ONLY as a small accent (eyebrows, logo motif), like the real site */
  --accent-purple: #6B2F79;
  --accent-purple-2: #8A4A98;

  /* Muted gold/khaki accent from live site (#cfbe52) */
  --brand-gold-700: #9C8E2F;
  --brand-gold-600: #CFBE52;
  --brand-gold-500: #DBCB6A;
  --brand-gold-400: #E7DA8E;
  --brand-gold-100: #F6F2D8;

  --ink-900: #161B39;   /* headings navy */
  --ink-700: #38385A;   /* body */
  --ink-500: #656363;   /* muted */
  --ink-300: #A7A6B2;
  --line:    #E4E4EC;
  --surface: #FFFFFF;
  --surface-2: #F5F5F8;
  --surface-3: #ECECF2;

  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(22, 27, 57, 0.06);
  --shadow-md: 0 12px 30px rgba(22, 27, 57, 0.12);
  --shadow-lg: 0 24px 60px rgba(22, 27, 57, 0.16);
  --shadow-xl: 0 40px 90px rgba(22, 27, 57, 0.22);
  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 84px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 8.5vw, 4rem); }
.section--tint { background: var(--surface-2); }

.section-head { max-width: 680px; margin: 0 auto clamp(2.75rem, 4.5vw, 4rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--brand-gold-600), var(--brand-gold-400)); border-radius: 2px; flex: none; }
.section-head:not(.left) .eyebrow::after { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--brand-gold-400), var(--brand-gold-600)); border-radius: 2px; flex: none; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; }
.section-sub { margin-top: 1.1rem; color: var(--ink-500); font-size: 1.05rem; line-height: 1.75; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .875rem;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--brand-purple-700); color: #fff; box-shadow: 0 6px 20px rgba(29,27,76,.35); }
.btn--primary:hover { background: var(--brand-purple-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,27,76,.45); }
.btn--gold { background: linear-gradient(135deg, var(--brand-gold-600), var(--brand-gold-500)); color: var(--brand-purple-900); box-shadow: 0 6px 20px rgba(201,162,75,.4); font-weight: 700; }
.btn--gold:hover { background: linear-gradient(135deg, var(--brand-gold-500), var(--brand-gold-400)); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,162,75,.55); }
.btn--outline { border: 2px solid rgba(255,255,255,.45); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.8); transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink-900); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-purple-500); color: var(--brand-purple-700); background: var(--brand-purple-50); transform: translateY(-1px); }
.btn--lg { padding: .9rem 2rem; font-size: .95rem; }
.btn--purple { background: var(--brand-purple-700); color: #fff; }
.btn--purple:hover { background: var(--brand-purple-600); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .875rem; color: var(--brand-purple-700);
  transition: gap .2s, color .2s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover { gap: .7rem; color: var(--brand-purple-600); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 5. Top bar ---------- */
.topbar {
  background: var(--brand-purple-900);
  color: #C2C3D6;
  font-size: .84rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; padding-block: .4rem; }
.topbar__contacts { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__item svg { width: 14px; height: 14px; color: var(--brand-gold-500); flex: none; }
.topbar__item a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 1.2rem; }
.lang { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand-gold-500); transition: color .2s; }
.lang:hover { color: #fff; }
.socials { display: flex; gap: .85rem; }
.socials a { color: #9A9BB5; transition: color .2s; }
.socials a:hover { color: var(--brand-gold-500); }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .topbar__contacts .topbar__item--addr { display: none; } }
@media (max-width: 620px) { .topbar { display: none; } }

/* ---------- 6. Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.is-stuck { box-shadow: 0 4px 24px rgba(22,27,57,.1); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand__logo { height: 54px; width: auto; display: block; }
.brand__logo--footer { height: 48px; }

.nav { display: flex; align-items: center; gap: .05rem; flex-wrap: nowrap; }
.nav a {
  padding: .5rem .65rem; border-radius: var(--r-sm);
  font-weight: 500; font-size: .84rem; color: var(--ink-700);
  white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--brand-purple-700); background: var(--brand-purple-100); }
.header__cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--brand-purple-700); }
.nav-toggle svg { width: 24px; height: 24px; margin-inline: auto; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,10,26,.55); opacity: 0; visibility: hidden; transition: .25s; z-index: 60; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 340px);
  background: #fff; z-index: 70; padding: 1.5rem;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  display: flex; flex-direction: column; gap: .25rem;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer a { padding: .85rem .5rem; border-radius: var(--r-sm); font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--brand-purple-700); }
.drawer .btn { margin-top: 1rem; }
.drawer__close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-700); }
.drawer__close svg { width: 22px; height: 22px; margin-inline: auto; }

@media (max-width: 1100px) {
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- 7. Hero ---------- */
/* Light hero — matches original usmaniandco.com (light bg, navy text, gold accents) */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% -5%, rgba(207,190,82,.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(29,27,76,.06), transparent 55%),
    var(--surface-2);
  color: var(--ink-700);
  padding-bottom: 0;
}

/* Islamic geometric pattern overlay */
.hero__geo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
}
.hero__geo-svg { width: 100%; height: 100%; }

/* Floating orbs */
.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201,162,75,.18), transparent 70%);
  top: -180px; right: -100px; z-index: 0;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(42,42,102,.3), transparent 70%);
  bottom: -100px; left: -80px; z-index: 0;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -24px) scale(1.08); }
}

/* Sparkle accents */
.hero__sparkle {
  position: absolute; pointer-events: none; z-index: 1;
  color: var(--brand-gold-400);
  opacity: .55;
  animation: sparkleTwinkle 3.4s ease-in-out infinite;
}
.hero__sparkle svg { width: 100%; height: 100%; display: block; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: .25; transform: scale(.85) rotate(0deg); }
  50% { opacity: .8; transform: scale(1.1) rotate(8deg); }
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}

/* Copy */
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line);
  padding: .4rem .95rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; color: var(--brand-purple-700);
  margin-bottom: 1.3rem; box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold-600); box-shadow: 0 0 0 3px rgba(207,190,82,.3); flex: none; }
.hero h1 { color: var(--ink-900); font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.hero h1 .accent {
  background: linear-gradient(110deg, var(--brand-gold-700), var(--accent-purple), var(--brand-gold-700));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: goldShine 5s linear infinite;
}
@keyframes goldShine {
  to { background-position: 200% center; }
}
.hero__lead { margin-top: 1rem; font-size: .98rem; color: var(--ink-500); max-width: 42ch; line-height: 1.75; }
.hero__actions { margin-top: 1.6rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* Hero visual */
.hero__visual { position: relative; }

.hero-imgcard {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-imgcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hero-imgcard:hover img { transform: scale(1.04); }
.hero-imgcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,27,57,.75) 0%, rgba(22,27,57,.25) 50%, rgba(22,27,57,.1) 100%);
}
.hero-imgcard__tag {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  padding: .55rem 1rem; border-radius: var(--r-pill);
  color: #fff; font-size: .82rem; font-weight: 600;
}
.hero-imgcard__tag .star-ic { color: var(--brand-gold-500); }

/* Floating stats card */
.hero__float {
  position: absolute;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.hero__float--stats {
  bottom: -28px; left: -28px;
  display: flex; align-items: center; gap: 0;
  padding: 1rem 1.4rem;
}
.hf-stat { text-align: center; padding: 0 1rem; }
.hf-stat__num { font-family: var(--font-display); font-size: 1.45rem; color: #fff; font-weight: 700; line-height: 1; }
.hf-stat__lbl { font-size: .7rem; color: #B6B7CC; margin-top: .3rem; }
.hf-divider { width: 1px; height: 40px; background: rgba(255,255,255,.18); flex: none; }
.hero__float--service {
  top: -20px; right: -20px;
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1.1rem;
  max-width: 240px;
}
.hero__float--service .hero-pill__ic {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: rgba(201,162,75,.25); color: var(--brand-gold-500);
  display: grid; place-items: center;
}
.hero__float--service .hero-pill__ic svg { width: 18px; height: 18px; }
.hero-pill__t { display: block; color: #fff; font-weight: 600; font-size: .82rem; }
.hero-pill__s { display: block; color: #A9AAC2; font-size: .72rem; }

/* Wave divider */
.hero__wave {
  position: relative; z-index: 2; margin-top: -2px;
  line-height: 0; pointer-events: none;
}
.hero__wave svg { width: 100%; display: block; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* ---------- 8. Sectors ticker strip ---------- */
.sectors-strip {
  background: var(--brand-purple-900);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-block: 0;
  overflow: hidden;
}
.sectors-strip__track {
  overflow: hidden;
  position: relative;
  padding-block: .1rem;
}
.sectors-strip__track::before,
.sectors-strip__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 120px; pointer-events: none;
}
.sectors-strip__track::before { left: 0; background: linear-gradient(to right, var(--brand-purple-900), transparent); }
.sectors-strip__track::after  { right: 0; background: linear-gradient(to left, var(--brand-purple-900), transparent); }

.sectors-strip__inner {
  display: flex; align-items: center; gap: 0;
  animation: sectorScroll 28s linear infinite;
  width: max-content;
}
.sectors-strip__inner:hover { animation-play-state: paused; }

@keyframes sectorScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip-item {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #A9AAC2; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.strip-item:hover { color: var(--brand-gold-500); }
.strip-item svg { color: var(--brand-gold-600); flex: none; }

/* ---------- 9. About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__img {
  border-radius: var(--r-xl); aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-3), var(--brand-purple-50));
  border: 1px solid var(--line);
}

.about__geo-badge {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  opacity: .9;
}

.about__stat {
  position: absolute; bottom: -24px; right: -16px;
  background: #fff; border-radius: var(--r-lg);
  padding: 1rem 1.4rem; box-shadow: var(--shadow-lg);
  text-align: center; min-width: 150px;
  border: 1px solid var(--line);
}
.about__stat .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand-purple-700); font-weight: 700; }
.about__stat .lbl { font-size: .72rem; color: var(--ink-500); margin-top: .2rem; }

.about__badge2 {
  position: absolute; top: 1.5rem; left: -20px;
  background: linear-gradient(135deg, var(--brand-gold-600), var(--brand-gold-500));
  color: var(--brand-purple-900); border-radius: var(--r-lg);
  padding: .7rem 1.1rem; box-shadow: 0 8px 24px rgba(201,162,75,.4);
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700;
}

.about__list { margin-top: 1.4rem; display: grid; gap: .85rem; }
.about__list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--ink-700); }
.about__list .tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
  color: #fff; display: grid; place-items: center; margin-top: 1px;
  box-shadow: 0 4px 10px rgba(29,27,76,.3);
}
.about__list .tick svg { width: 12px; height: 12px; }
.about__cta { margin-top: 1.8rem; display: flex; gap: .85rem; flex-wrap: wrap; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } .about__stat { right: 16px; } .about__badge2 { left: 16px; } }

/* ---------- 10. Impact Banner ---------- */
/* Light impact stats banner */
.impact-banner {
  background:
    radial-gradient(ellipse 60% 70% at 92% 90%, rgba(207,190,82,.08), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.impact-banner__geo {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
}
.impact-banner__geo svg { width: 100%; height: 100%; }

.impact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center;
  gap: 0;
}
.impact-stat { text-align: center; padding: 1rem 2rem; }
.impact-stat__num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--ink-900); line-height: 1;
  background: linear-gradient(110deg, var(--brand-purple-700), var(--brand-gold-600), var(--brand-purple-700));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: goldShine 6s linear infinite;
}
.impact-stat__lbl { font-size: .88rem; font-weight: 700; color: var(--brand-purple-700); margin-top: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.impact-stat__desc { font-size: .78rem; color: var(--ink-500); margin-top: .3rem; }
.impact-sep { width: 1px; height: 70px; background: linear-gradient(to bottom, transparent, var(--line), transparent); }

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .impact-sep { display: none; }
  .impact-stat { border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* ---------- 11. Services ---------- */
.section__accent-line {
  width: 60px; height: 4px; margin: 0 auto 2.5rem;
  background: linear-gradient(90deg, var(--brand-gold-600), var(--brand-gold-400));
  border-radius: 4px;
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 20px rgba(22,27,57,.04);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .4s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 2;
  background: linear-gradient(to bottom, var(--brand-gold-600), var(--brand-purple-700));
  opacity: 0; transition: opacity .3s;
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(201,162,75,.25);
  border-color: var(--brand-purple-100);
}
.service:hover::after { opacity: 1; }

.service__cover {
  /* Matches .service-hero-img's 2/1 ratio (the detail page's hero banner) so the
     card shows the same framing as its own detail page, just smaller — not a
     differently-cropped slice of the same photo. */
  position: relative; width: 100%; aspect-ratio: 2/1; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--brand-purple-100), var(--surface-3));
}
.service__cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.service:hover .service__cover img { transform: scale(1.08); }
.service__cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,20,43,.55) 0%, rgba(17,20,43,0) 45%);
}
.service__num {
  position: absolute; bottom: .7rem; right: .9rem; z-index: 1;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: rgba(255,255,255,.85); line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.service__body { flex: 1; padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.service__body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.service__body p { color: var(--ink-500); font-size: .875rem; line-height: 1.65; margin-bottom: 1.2rem; }

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

/* ---------- 12. Team Section ---------- */
.section--purple {
  background: linear-gradient(135deg, var(--brand-purple-800), var(--brand-purple-700) 55%, var(--brand-purple-900));
  color: #EADFF3;
}
.section--purple h2, .section--purple h3 { color: #fff; }
.section--purple .section-sub { color: #C2C3D6; }
.section--purple .eyebrow { color: var(--brand-gold-500); }

.section--team .container { position: relative; z-index: 1; }
/* Light team section — matches original usmaniandco.com (light grey, subtle diamond pattern) */
.section--team {
  background: var(--surface-2);
  overflow: hidden;
}
.section--team::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 50% at 92% 90%, rgba(207,190,82,.07) 0%, transparent 55%),
    repeating-linear-gradient(45deg, rgba(22,27,57,.025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(22,27,57,.025) 0 1px, transparent 1px 22px);
}
.section--team { position: relative; }
/* override the white-text rule from section--purple combo */
.section--team h2, .section--team .section-title { color: var(--ink-900); }
.section--team .section-sub { color: var(--ink-500); }
.section--team .eyebrow { color: var(--accent-purple); }

/* Team leadership slider (no arrows/dots — 5 cards fit fine at any width,
   the track just scrolls if it overflows on very small screens) */
.team-slider { position: relative; }
.team-slider__clip { overflow: hidden; padding: 20px 4px 28px; margin: -20px -4px -28px; }
.team-slider__track {
  display: flex; gap: 1.4rem;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Modern catchy team cards — photo-led, name/role overlaid, no bio */
.tcard {
  flex: 0 0 calc(25% - 1.05rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .4s ease;
}
.tcard:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 22px 50px -16px rgba(207,190,82,.35);
  border-color: var(--brand-gold-600);
}
.tcard__img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface-3); }
.tcard__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s cubic-bezier(.22,1,.36,1), filter .6s ease;
  display: block;
}
.tcard:hover .tcard__img-wrap img { transform: scale(1.07); }
/* gradient scrim so the overlaid name is readable */
.tcard__img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,20,43,.92) 0%, rgba(17,20,43,.45) 32%, transparent 60%);
  pointer-events: none;
}
.tcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-gold-700), var(--brand-gold-400), var(--brand-gold-700));
  background-size: 200% auto;
  opacity: 0; transition: opacity .3s; z-index: 3;
}
.tcard:hover::before { opacity: 1; animation: goldShine 3s linear infinite; }
.tcard__badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 3;
  background: rgba(29,27,76,.85); border: 1px solid rgba(207,190,82,.5);
  color: var(--brand-gold-500);
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .24rem .7rem; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
/* Name/role overlaid at the bottom of the photo; bio reveals on hover (these are
   the 4 headline leadership cards, so the hover treatment is richer than the
   flip-cards below — an expanding scrim revealing the bio, not a flip — while the
   outer lift + gold-tinted shadow (.tcard:hover above) stays visible outside the
   card since box-shadow always renders outside the element regardless of the
   card's own overflow:hidden, which is needed to clip the photo/gradient/shine). */
.tcard__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.2rem 1.25rem 1.25rem; display: flex; flex-direction: column;
  transition: padding-bottom .4s cubic-bezier(.22,1,.36,1);
}
.tcard:hover .tcard__body { padding-bottom: .3rem; }
.tcard__name { color: #fff; font-size: 1.05rem; line-height: 1.25; margin-bottom: .25rem; font-family: var(--font-display); font-weight: 600; }
.tcard__role { color: var(--brand-gold-400); font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.tcard__bio {
  color: rgba(255,255,255,.88); font-size: .82rem; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  margin-top: 0;
  transition: max-height .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, margin-top .45s ease;
}
.tcard:hover .tcard__bio { max-height: 160px; opacity: 1; margin-top: .6rem; }
/* stronger scrim on hover so the longer bio text stays readable over the photo */
.tcard__img-wrap::after { transition: background .4s ease; }
.tcard:hover .tcard__img-wrap::after {
  background: linear-gradient(to top, rgba(17,20,43,.96) 0%, rgba(17,20,43,.75) 45%, rgba(17,20,43,.2) 75%, transparent 100%);
}

.team-slider__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }
.tslider-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--brand-purple-700); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s, color .22s;
}
.tslider-btn:hover { background: var(--brand-gold-600); border-color: var(--brand-gold-600); color: var(--brand-purple-900); transform: scale(1.1); box-shadow: 0 6px 20px rgba(207,190,82,.4); }
.tslider-btn svg { width: 20px; height: 20px; }
.tslider-dots { display: flex; gap: .45rem; align-items: center; }
.tslider-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(22,27,57,.18); transition: .3s; border: none; cursor: pointer; padding: 0; }
.tslider-dots .dot.active { background: var(--brand-gold-500); width: 24px; border-radius: 4px; }

@media (max-width: 1100px) { .tcard { flex: 0 0 calc(33.33% - .94rem); } }
@media (max-width: 780px)  { .tcard { flex: 0 0 calc(50% - .7rem); } }
@media (max-width: 500px)  { .tcard { flex: 0 0 100%; } }

/* ---------- 13. Trusted By / Logo Marquee ---------- */
.trusted { padding-bottom: clamp(4rem, 8.5vw, 8rem); }
.logo-marquee {
  overflow: hidden; position: relative;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: .15rem;
  background: #fff;
}
.logo-marquee::before,
.logo-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 140px; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.logo-marquee::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.logo-marquee__inner {
  display: flex; align-items: center;
  animation: logoScroll 30s linear infinite;
  width: max-content;
}
.logo-marquee__inner:hover { animation-play-state: paused; }

@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink-300); padding: 1.25rem 2.2rem;
  white-space: nowrap; transition: color .2s;
  border-right: 1px solid var(--line);
}
.logo-chip:hover { color: var(--brand-purple-600); }
.logo-chip svg { color: var(--brand-purple-300, #9B79C5); opacity: .6; flex: none; }

/* ---------- 13b. Our Experience — categorized logo marquees ---------- */
.xp-rows { display: flex; flex-direction: column; gap: 1.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.xp-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  padding: 1rem 0 1rem 0;
  display: grid; grid-template-columns: 220px 1fr; align-items: center;
}
.xp-row__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-purple-700); padding-inline: 1.5rem;
  border-right: 1px solid var(--line);
}
.xp-marquee {
  overflow: hidden; position: relative;
  padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.xp-track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  padding-inline: 1.5rem;
  animation: xpScroll 38s linear infinite;
}
/* keep a hovered (popped) logo on top of its neighbours */
.xp-logo:hover { position: relative; z-index: 3; }
.xp-row--rtl .xp-track { animation-direction: reverse; }
.xp-marquee:hover .xp-track { animation-play-state: paused; }
@keyframes xpScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.xp-logo {
  flex: none; display: grid; place-items: center;
  height: 56px; width: 130px;
}
.xp-logo img {
  max-height: 46px; max-width: 120px; width: auto; height: auto; object-fit: contain;
  /* original colors retained while sliding */
  opacity: .92;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease, filter .35s ease;
}
.xp-logo:hover img {
  opacity: 1;
  transform: scale(1.28) translateY(-4px);
  filter: drop-shadow(0 10px 18px rgba(30,8,54,.22));
}

@media (max-width: 720px) {
  .xp-row { grid-template-columns: 1fr; gap: .5rem; }
  .xp-row__label { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
}

/* ---------- 14. Awards ---------- */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.award {
  text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.award::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-purple-700), var(--brand-gold-600));
  opacity: 0; transition: opacity .3s;
}
.award:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-purple-100); }
.award:hover::before { opacity: 1; }
.award__ic { width: 52px; height: 52px; margin: 0 auto 1rem; color: var(--brand-gold-600); }
.award h3 { font-family: var(--font-body); font-size: 1rem; color: var(--ink-900); font-weight: 700; }
.award p { font-size: .85rem; color: var(--ink-500); margin-top: .3rem; }
@media (max-width: 880px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 15. Testimonials ---------- */
/* Auto-sliding testimonials marquee */
.tst-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding: 16px 0;
}
.tst-marquee__track {
  display: flex; width: max-content;
  animation: tstScroll 40s linear infinite;
}
.tst-marquee:hover .tst-marquee__track { animation-play-state: paused; }
@keyframes tstScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tst {
  flex: 0 0 380px;
  /* Spacing via right-margin (not flex gap) so the duplicated track's total width
     is an exact multiple of one card+margin — makes translateX(-50%) loop seamlessly.
     A flex `gap` leaves a half-gap discrepancy at the -50% point, which shows as the
     cards visibly jumping/vanishing before restarting. */
  margin-right: 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tst:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-gold-600); }
.tst__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.tst__quote { font-family: var(--font-display); font-size: 3.5rem; line-height: .8; color: var(--brand-purple-100); }
.tst__stars { color: var(--brand-gold-600); display: flex; gap: .15rem; }
.tst__stars svg { width: 17px; height: 17px; }
.tst p { color: var(--ink-700); font-size: .9rem; line-height: 1.7; }
.tst__by { margin-top: 1.4rem; display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tst__av {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem;
  background: linear-gradient(135deg, var(--brand-purple-600), var(--brand-purple-900));
  flex: none; box-shadow: 0 4px 12px rgba(29,27,76,.3);
}
.tst__name { font-weight: 700; color: var(--ink-900); font-size: .9rem; }
.tst__title { font-size: .8rem; color: var(--ink-500); }
@media (max-width: 980px) { .tst-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- 16. Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .28s, box-shadow .28s;
}
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.post__img {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post__img--1 { background: linear-gradient(145deg, #103E5E 0%, #11142B 60%, #6B4A00 100%); }
.post__img--2 { background: linear-gradient(145deg, #0E3A5E 0%, #11142B 60%, var(--brand-purple-700) 100%); }
.post__img--3 { background: linear-gradient(145deg, var(--brand-purple-800) 0%, #03101D 60%, #185A7D 100%); }

.post__img-geo {
  position: absolute; inset: 0; pointer-events: none;
}
.post__img-geo svg { width: 100%; height: 100%; }

.post__img-icon {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.25);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.post__cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--brand-purple-700);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: .35rem .75rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.post__body { padding: 1.3rem; }
.post__meta { font-size: .8rem; color: var(--ink-500); display: flex; gap: 1.2rem; margin-bottom: .85rem; }
.post__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post__meta svg { width: 13px; height: 13px; flex: none; }
.post h3 { font-size: 1.02rem; margin-bottom: .85rem; line-height: 1.4; }
.post h3 a:hover { color: var(--brand-purple-700); }
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- 17. Consultation CTA ---------- */
/* Light consultation CTA */
.section--consult {
  background:
    radial-gradient(ellipse 60% 70% at 0% 50%, rgba(29,27,76,.05), transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(207,190,82,.08), transparent 55%),
    var(--surface-2);
  color: var(--ink-700); position: relative; overflow: hidden;
}
.consult__geo { position: absolute; inset: 0; pointer-events: none; opacity: .4; }
.consult__geo svg { width: 100%; height: 100%; }
.consult { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; z-index: 1; }
.consult h2 { color: var(--ink-900); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.consult > .consult__copy > p { color: var(--ink-500); margin-top: .85rem; font-size: 1rem; line-height: 1.75; }
.consult__points { margin-top: 1.8rem; display: grid; gap: .9rem; }
.consult__points li { display: flex; gap: .8rem; align-items: center; color: var(--ink-700); font-size: .95rem; font-weight: 500; }
.consult__points .tick { color: var(--brand-gold-700); flex: none; }
.consult__points svg { width: 20px; height: 20px; }
.section--consult .eyebrow { color: var(--accent-purple); }
.section--consult .eyebrow::before { background: linear-gradient(90deg, var(--brand-gold-600), var(--brand-gold-400)); }

.calendly {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 2.2rem; box-shadow: var(--shadow-lg);
  text-align: center;
}
.calendly__ic { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 15px; background: linear-gradient(135deg, var(--brand-purple-100), var(--surface-3)); color: var(--brand-purple-700); display: grid; place-items: center; }
.calendly__ic svg { width: 28px; height: 28px; }
.calendly h3 { color: var(--ink-900); font-size: 1.25rem; }
.calendly p { color: var(--ink-500); margin: .65rem 0 1.6rem; font-size: .9rem; }
.calendly__note { margin-top: 1.1rem; font-size: .82rem; color: var(--ink-300); }
.calendly--demo { padding: 2.2rem 1.6rem 2.4rem; }
.calendly--demo .bfd-stage { margin-bottom: .5rem; }
@media (max-width: 880px) { .consult { grid-template-columns: 1fr; } }

/* ---------- 18. Footer ---------- */
/* Light footer — slightly darker grey for separation */
.footer {
  background: linear-gradient(180deg, var(--surface-3), #E2E2EA);
  color: var(--ink-700); padding-top: clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer__geo { position: absolute; inset: 0; pointer-events: none; opacity: .35; }
.footer__geo svg { width: 100%; height: 100%; }
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__about { margin-top: 1.3rem; font-size: .92rem; max-width: 34ch; line-height: 1.7; color: var(--ink-500); }
.footer__socials { margin-top: 1.6rem; display: flex; gap: .75rem; }
.footer__socials a {
  width: 42px; height: 42px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand-purple-700); transition: .2s;
}
.footer__socials a:hover { background: var(--brand-gold-600); color: var(--brand-purple-900); border-color: var(--brand-gold-600); }
.footer__socials svg { width: 18px; height: 18px; }
.footer h4 { color: var(--ink-900); font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.3rem; font-weight: 700; }
.footer__links { display: grid; gap: .75rem; }
.footer__links a { font-size: .92rem; color: var(--ink-500); transition: color .2s; display: flex; align-items: center; gap: .4rem; }
.footer__links a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-gold-600); flex: none; }
.footer__links a:hover { color: var(--brand-purple-700); }
.newsletter p { font-size: .9rem; margin-bottom: 1.1rem; line-height: 1.65; color: var(--ink-500); }
.newsletter__form {
  display: flex; gap: .45rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem;
}
.newsletter__form input { flex: 1; background: transparent; border: none; color: var(--ink-900); padding: .55rem 1rem; outline: none; font-size: .88rem; }
.newsletter__form input::placeholder { color: var(--ink-300); }
.newsletter__form button { background: linear-gradient(135deg, var(--brand-gold-600), var(--brand-gold-500)); color: var(--brand-purple-900); border-radius: var(--r-pill); padding: .65rem 1rem; display: grid; place-items: center; }
.newsletter__form button svg { width: 18px; height: 18px; }
.newsletter__form button:hover { background: linear-gradient(135deg, var(--brand-gold-500), var(--brand-gold-400)); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding-block: 1.7rem; font-size: .85rem;
  border-top: 1px solid var(--line);
}
.footer__bottom a:hover { color: var(--brand-purple-700); }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- 19. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Staggered entrance for team cards */
.reveal.in .tcard { opacity: 0; transform: translateY(24px) scale(.97); animation: tcardIn .6s cubic-bezier(.22,1,.36,1) forwards; }
.reveal.in .tcard:nth-child(1) { animation-delay: .05s; }
.reveal.in .tcard:nth-child(2) { animation-delay: .15s; }
.reveal.in .tcard:nth-child(3) { animation-delay: .25s; }
.reveal.in .tcard:nth-child(4) { animation-delay: .35s; }
.reveal.in .tcard:nth-child(5) { animation-delay: .45s; }
.reveal.in .tcard:nth-child(6) { animation-delay: .55s; }
.reveal.in .tcard:nth-child(7) { animation-delay: .65s; }
@keyframes tcardIn {
  to { opacity: 1; transform: none; }
}

/* =====================================================================
   20. Motion concept integrations (adapted from concept mockups)
   ===================================================================== */

/* ---- Gold sheen sweep (consultation button) ---- */
@keyframes goldSheen {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  60%  { transform: translateX(320%)  skewX(-18deg); }
  100% { transform: translateX(320%)  skewX(-18deg); }
}
.btn--sheen { position: relative; overflow: hidden; }
.btn--sheen .sheen {
  position: absolute; top: 0; left: 0; width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: goldSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Abhi-style board feature section ---- */
.board-feature {
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(201,162,75,.16), transparent 55%),
    linear-gradient(135deg, var(--brand-purple-900) 0%, var(--brand-purple-700) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; overflow: hidden; position: relative;
}
.board-feature__copy { color: #fff; max-width: 460px; }
.board-feature__eyebrow {
  font-size: .74rem; letter-spacing: .2em; color: var(--brand-gold-500);
  text-transform: uppercase; font-weight: 700; margin-bottom: .9rem; display: block;
}
.board-feature__copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.board-feature__copy p { color: #CFD0E0; font-size: 1rem; line-height: 1.7; margin-bottom: 1.8rem; }

.board-visual { position: relative; width: 300px; height: 320px; flex: none; }
@keyframes ucoTilt {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes ucoFloatCard {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(5px, -7px); }
}
.board-cert {
  width: 220px; height: 290px; background: var(--brand-purple-50);
  border-radius: var(--r-md); border: 1px solid var(--brand-gold-600);
  box-shadow: 0 0 0 1px rgba(201,162,75,.3), var(--shadow-xl);
  animation: ucoTilt 5.5s ease-in-out infinite;
  position: absolute; left: 20px; top: 0; padding: 24px;
}
.board-cert__check {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brand-purple-700);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--brand-purple-700);
}
.board-cert__bar { height: 8px; background: var(--brand-purple-700); border-radius: 4px; margin-bottom: 9px; width: 80%; }
.board-cert__line { height: 6px; background: var(--brand-purple-100); border-radius: 3px; margin-bottom: 7px; }
.board-cert__cap { font-size: .56rem; color: var(--brand-gold-700); letter-spacing: .05em; text-transform: uppercase; margin-top: 14px; }
.board-cert__title { font-size: .72rem; color: var(--brand-purple-700); font-weight: 600; margin-top: 4px; }
.board-badge {
  position: absolute; bottom: 8px; right: 0; width: 168px;
  background: #fff; border-radius: var(--r-sm); padding: 13px 15px;
  border: 1px solid var(--brand-gold-500); box-shadow: var(--shadow-md);
  animation: ucoFloatCard 4.2s ease-in-out infinite;
}
.board-badge__lbl { font-size: .62rem; color: var(--brand-gold-700); margin-bottom: 4px; }
.board-badge__val { font-size: .8rem; color: var(--brand-purple-900); font-weight: 600; }

@media (max-width: 820px) {
  .board-feature { grid-template-columns: 1fr; }
  .board-visual { margin: 0 auto; }
}

/* ---- Associates pods — 4 per row, 8 total (2 rows) ---- */
.assoc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.assoc {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .65rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
  isolation: isolate;
}
.assoc:hover {
  transform: translateY(-8px);
  border-color: var(--brand-gold-600);
  box-shadow: var(--shadow-lg), 0 18px 40px -12px rgba(207,190,82,.3);
}
/* cursor-follow radial glow (driven by JS --mx/--my) */
.assoc__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(207,190,82,.16), transparent 60%);
}
.assoc:hover .assoc__glow { opacity: 1; }
.assoc__avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-purple-100), var(--surface-3));
  display: grid; place-items: center; font-weight: 700; color: var(--brand-purple-700);
  font-size: .95rem; font-family: var(--font-display);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .35s ease, color .35s ease;
}
.assoc:hover .assoc__avatar {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
  color: var(--brand-gold-500);
}
.assoc__name { font-size: 1.02rem; font-weight: 600; color: var(--ink-900); font-family: var(--font-display); }
.assoc__desc { font-size: .85rem; color: var(--ink-500); line-height: 1.6; flex: 1; }
.assoc__visit {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid var(--brand-purple-700); color: var(--brand-purple-700);
  padding: .42rem 1.05rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600;
  transition: background .25s, color .25s, gap .25s;
}
.assoc:hover .assoc__visit { background: var(--brand-purple-700); color: #fff; gap: .55rem; }
@media (max-width: 980px) { .assoc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .assoc-grid { grid-template-columns: 1fr; } }

/* ---- Associates — reveal-on-hover variant (Our Associates, homepage) ---- */
.assoc-r {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  min-height: 210px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .85rem;
  padding: 1.8rem 1.4rem; text-align: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
}
.assoc-r:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold-600);
  box-shadow: var(--shadow-lg), 0 18px 40px -12px rgba(207,190,82,.3);
}
.assoc-r__logo {
  width: 72px; height: 72px; border-radius: 16px;
  background: var(--surface-2); padding: .6rem;
  display: grid; place-items: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.assoc-r__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.assoc-r__name {
  font-size: 1.05rem; font-weight: 600; color: var(--ink-900); font-family: var(--font-display);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.assoc-r:hover .assoc-r__logo { transform: translateY(-4px) scale(.92); opacity: .18; }
.assoc-r:hover .assoc-r__name { transform: translateY(-34px); }

.assoc-r__panel {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: .6rem; padding: 1.6rem 1.3rem 1.5rem;
  background: linear-gradient(165deg, var(--brand-purple-700), var(--brand-purple-900));
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.assoc-r:hover .assoc-r__panel { transform: translateY(0); }
.assoc-r__panel-name {
  font-size: 1rem; font-weight: 600; color: var(--brand-gold-400); font-family: var(--font-display);
}
.assoc-r__desc { font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.assoc-r__visit {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .15rem;
  background: var(--brand-gold-600); color: var(--brand-purple-900);
  padding: .42rem 1.05rem; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700;
  transition: gap .25s;
}
.assoc-r__visit:hover { gap: .55rem; }
@media (prefers-reduced-motion: reduce) {
  .assoc-r, .assoc-r__logo, .assoc-r__name, .assoc-r__panel, .assoc-r__visit { transition: none; }
}

/* ---- Service motion (halal stamp + takaful shield) ---- */
@keyframes ucoStamp {
  0%   { transform: scale(1.6) rotate(-15deg); opacity: 0; }
  45%  { transform: scale(1) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
@keyframes ucoShield {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
/* Floating shield motif — gentle bob (used on service, logo chips, award badges) */
svg.is-shield { animation: ucoShield 3s ease-in-out infinite; }
.logo-chip svg.is-shield { animation-duration: 3.4s; }

/* Halal stamp slam-down (one-shot on view) then gentle continuous breathing pulse */
.is-stamp { transform-origin: center; }
.is-stamp.is-playing,
.award:hover .is-stamp { animation: ucoStamp 1.6s ease-out; }
/* subtle perpetual pulse for stamps/shields/badges */
@keyframes stampPulse {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50%      { transform: scale(1.06) rotate(-8deg); }
}
@keyframes stampPulseUpright {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes goldShimmer {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(207,190,82,0)); opacity: .85; }
  50%      { filter: drop-shadow(0 0 8px rgba(207,190,82,.6)); opacity: 1; }
}
/* award badges: gentle continuous shimmer */
.award__ic { animation: goldShimmer 5s ease-in-out infinite; }
.award:nth-child(2) .award__ic { animation-delay: -1.2s; }
.award:nth-child(3) .award__ic { animation-delay: -2.4s; }
.award:nth-child(4) .award__ic { animation-delay: -3.6s; }

/* Footer halal-certified stamp — slams on view, then breathes continuously */
.footer__stamp {
  color: var(--brand-purple-700);
  margin: 1.4rem 0 .4rem;
  transform: rotate(-8deg);
  transform-origin: center;
  opacity: 1;
  animation: stampPulse 5s ease-in-out infinite;
}
.footer__stamp.is-playing { animation: ucoStamp 1.6s ease-out, stampPulse 5s ease-in-out infinite 1.6s; }

/* ---- Heritage timeline draw-in (About) ---- */
@keyframes ucoLine { to { stroke-dashoffset: 0; } }
/* gentle perpetual re-draw: draws in, holds, fades the draw, repeats slowly */
@keyframes ucoLineLoop {
  0%   { stroke-dashoffset: 560; }
  35%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 560; }
}
.heritage-timeline { margin-top: 1.6rem; }
.heritage-timeline svg { width: 100%; height: auto; display: block; }
.heritage-timeline .ht-progress { stroke-dasharray: 560; stroke-dashoffset: 560; }
/* first draw on view, then keep looping slowly */
.heritage-timeline .ht-progress.is-playing { animation: ucoLine 2.6s cubic-bezier(.22,1,.36,1) forwards, ucoLineLoop 9s ease-in-out infinite 2.6s; }

/* ---- Cursor-tilt cards ---- */
.tilt-3d { transition: transform .2s ease; transform-style: preserve-3d; will-change: transform; }

/* Cursor-follow glow for service + team pods */
.service { position: relative; }
.service::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,0%), rgba(207,190,82,.14), transparent 60%);
}
.service:hover::before { opacity: 1; }
.service > * { position: relative; z-index: 1; }
/* Whole-card click target: the "Learn more" link stretches to cover the entire
   card (standard "stretched link" pattern), so clicking anywhere on a service
   card navigates — without nesting an <a> around the whole card (invalid HTML)
   or duplicating the href. Cards with no link (e.g. "Other Services" placeholders
   with no detail page yet) are simply not clickable, which is correct. */
.service:has(.link-arrow) { cursor: pointer; }
.service .link-arrow::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
}
.tcard::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,0%), rgba(207,190,82,.18), transparent 60%);
}
.tcard:hover::after { opacity: 1; }

/* ---- Interactive logo marquee ---- */
.logo-chip { transition: color .25s ease, transform .25s ease, opacity .25s ease; }
.logo-marquee.is-hovered .logo-marquee__inner { animation-play-state: paused; }
.logo-marquee.is-hovered .logo-chip { opacity: .45; }
.logo-chip.is-active { opacity: 1; color: var(--brand-purple-700); transform: translateY(-3px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sectors-strip__inner,
  .logo-marquee__inner,
  .tst-marquee__track,
  .btn--sheen .sheen,
  .board-cert, .board-badge { animation: none; }
}

/* ---------- 21. Blog pages (listing + detail) ---------- */
.blog-pagehead { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Featured image fills the card art area when a post has one */
.post__img > img.post__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: #fff; color: var(--ink-700); font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pagination a:hover { border-color: var(--brand-gold-600); color: var(--brand-purple-700); transform: translateY(-2px); }
.pagination .active { background: var(--brand-purple-700); border-color: var(--brand-purple-700); color: #fff; }

/* Article (blog detail) */
.article { max-width: 780px; margin-inline: auto; }
.article__cat {
  display: inline-block; background: var(--brand-purple-100); color: var(--brand-purple-700);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.1rem;
}
.article h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em; }
.article__meta { display: flex; gap: 1.4rem; color: var(--ink-500); font-size: .88rem; margin-top: 1rem; }
.article__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article__meta svg { width: 15px; height: 15px; }
.article__hero {
  margin-block: 2rem; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.article__hero img { width: 100%; display: block; }
.article__body { color: var(--ink-700); font-size: 1.02rem; line-height: 1.85; }
.article__body h2, .article__body h3 { margin: 2rem 0 .8rem; }
.article__body p { margin-bottom: 1.2rem; }
.article__body img { border-radius: var(--r-lg); margin-block: 1.4rem; }
.article__body a { color: var(--brand-purple-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-gold-600); text-underline-offset: 3px; }
.article__body blockquote {
  margin: 1.6rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--brand-gold-600);
  background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-700); font-style: italic;
}
.article__back { margin-top: 2.5rem; }

/* ---------- 22. Contact page + form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 1.1rem; }
.cinfo {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cinfo:hover { transform: translateY(-3px); border-color: var(--brand-gold-600); box-shadow: var(--shadow-md); }
.cinfo__ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-purple-100), var(--surface-3));
  color: var(--brand-purple-700); display: grid; place-items: center;
}
.cinfo__ic svg { width: 19px; height: 19px; }
.cinfo__t { font-weight: 700; color: var(--ink-900); font-size: .92rem; }
.cinfo__v { color: var(--ink-500); font-size: .88rem; margin-top: .15rem; line-height: 1.6; }
.cinfo__v a:hover { color: var(--brand-purple-700); }

/* Form card */
.cform {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.cform__field { margin-bottom: 1.1rem; }
.cform label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-900); margin-bottom: .4rem; }
.cform input, .cform select, .cform textarea {
  width: 100%; box-sizing: border-box;
  padding: .75rem 1rem; font: inherit; font-size: .92rem; color: var(--ink-900);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-md);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.cform input:focus, .cform select:focus, .cform textarea:focus {
  border-color: var(--brand-gold-600); background: #fff;
  box-shadow: 0 0 0 3px rgba(207,190,82,.18);
}
.cform textarea { min-height: 140px; resize: vertical; }
.cform select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338385A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }

.cform__success {
  display: flex; align-items: center; gap: .6rem;
  background: #F0F7F0; border: 1px solid #BFE3BF; color: #1E6B2E;
  padding: .85rem 1.1rem; border-radius: var(--r-md);
  font-weight: 600; font-size: .9rem; margin-top: 1rem;
}
.cform__success svg { flex: none; }

/* Map */
.contact-map {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  line-height: 0;
}
.contact-map iframe { width: 100%; height: 420px; border: 0; }

/* ---------- 23. Partners page ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 780px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; will-change: transform;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.partner-card:hover {
  border-color: var(--brand-gold-600);
  box-shadow: var(--shadow-lg), 0 18px 40px -14px rgba(207,190,82,.35);
}
/* animated gold top-border sweep on hover */
.partner-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--brand-gold-600), var(--brand-gold-400), var(--brand-gold-600), transparent);
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.partner-card:hover::before { transform: scaleX(1); animation: partnerShine 2.5s linear infinite; }
@keyframes partnerShine { to { background-position: -200% 0; } }
/* cursor-follow radial gold glow (driven by JS --mx/--my) */
.partner-card__glow {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(207,190,82,.14), transparent 60%);
  pointer-events: none;
}
.partner-card:hover .partner-card__glow { opacity: 1; }
/* real landscape logo in a soft framed area */
.partner-card__logo {
  width: 100%; height: 96px; flex: none; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 1rem 1.4rem;
  position: relative; z-index: 1;
  transition: background .3s ease, border-color .3s ease;
}
.partner-card:hover .partner-card__logo { background: #fff; border-color: var(--brand-gold-400); }
.partner-card__logo img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
}
.partner-card__body { position: relative; z-index: 1; }
.partner-card__body h3 { font-size: 1.08rem; margin-bottom: .5rem; font-family: var(--font-display); color: var(--ink-900); }
.partner-card__body p { color: var(--ink-500); font-size: .88rem; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .partner-card, .partner-card::before, .partner-card__glow, .partner-card__logo { transition: none; animation: none; }
  .partner-card:hover::before { animation: none; }
}

/* ---------- 24. Resources page ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .resources-grid { grid-template-columns: 1fr; } }
.resource-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-gold-600); }
.resource-card__cover {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-purple-100), var(--surface-3));
  position: relative;
}
.resource-card__cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.resource-card:hover .resource-card__cover img { transform: scale(1.05); }
.resource-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.resource-card__meta { font-size: .74rem; color: var(--ink-300); font-weight: 600; letter-spacing: .02em; }
.resource-card h3 { font-size: .98rem; line-height: 1.4; }
.resource-card p { color: var(--ink-500); font-size: .85rem; line-height: 1.55; }
.resource-card__dl {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--brand-purple-700);
  padding-top: .3rem; transition: gap .2s ease, color .2s ease;
}
.resource-card:hover .resource-card__dl { gap: .6rem; color: var(--brand-gold-700); }
.resource-card__dl svg { width: 15px; height: 15px; }

/* ---------- 25. About page (real content: Who We Are, Vision/Mission, History) ---------- */
.about-hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% -5%, rgba(207,190,82,.12), transparent 55%),
    var(--surface-2);
  position: relative; overflow: hidden;
}
.about-hero__inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.about-hero p.lead { margin-top: 1.2rem; font-size: 1.1rem; color: var(--ink-500); line-height: 1.8; }

/* Who We Are — two-column intro */
.whoweare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .whoweare { grid-template-columns: 1fr; } }
.whoweare p { color: var(--ink-700); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.2rem; }
.whoweare p:last-child { margin-bottom: 0; }

/* Vision & Mission cards */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 780px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(201,162,75,.2); border-color: var(--brand-gold-600); }
.vm-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--brand-gold-600), var(--brand-purple-700));
}
.vm-card__ic {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 1.3rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
  color: var(--brand-gold-500); box-shadow: 0 8px 24px rgba(29,27,76,.3);
}
.vm-card__ic svg { width: 26px; height: 26px; }
.vm-card h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.vm-card p { color: var(--ink-500); font-size: .98rem; line-height: 1.75; }

/* History — narrative timeline with scholar highlight cards */
.history-intro {
  max-width: 740px; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center; color: var(--ink-500); font-size: 1.05rem; line-height: 1.85;
  font-style: italic;
}
.history-feed { display: grid; gap: 1.75rem; max-width: 880px; margin: 0 auto; }
.hcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-gold-600); }
.hcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-gold-700), var(--brand-gold-400), var(--brand-gold-700));
  background-size: 200% auto; opacity: 0; transition: opacity .3s;
}
.hcard:hover::after { opacity: 1; animation: goldShine 3s linear infinite; }
.hcard__name {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--brand-purple-700); margin-bottom: .9rem;
}
.hcard__name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold-600); flex: none; }
.hcard p { color: var(--ink-700); font-size: .95rem; line-height: 1.8; }
.hcard p + p { margin-top: 1rem; }

/* Pull quote (Bismillah / closing prayer) */
.pull-quote {
  text-align: center; max-width: 680px; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-purple-900), var(--brand-purple-700));
  color: #fff; position: relative;
}
.pull-quote::before {
  content: '\201C'; position: absolute; top: -6px; left: 24px;
  font-family: var(--font-display); font-size: 5rem; color: rgba(207,190,82,.35); line-height: 1;
}
.pull-quote p { position: relative; z-index: 1; font-size: 1.08rem; line-height: 1.8; font-style: italic; color: #EADFF3; }
.pull-quote .amin { display: block; margin-top: 1rem; color: var(--brand-gold-500); font-weight: 700; font-style: normal; }

/* ---------- 26. Service detail pages ---------- */
.service-hero {
  background:
    radial-gradient(ellipse 70% 60% at 90% -5%, rgba(207,190,82,.14), transparent 55%),
    var(--surface-2);
  position: relative; overflow: hidden;
}
.service-hero__inner { max-width: 820px; position: relative; z-index: 1; }
.service-hero .breadcrumb {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem;
  color: var(--ink-500); margin-bottom: 1.3rem;
}
.service-hero .breadcrumb a { color: var(--brand-purple-700); font-weight: 600; }
.service-hero .breadcrumb a:hover { color: var(--brand-purple-600); }
.service-hero .breadcrumb svg { width: 14px; height: 14px; flex: none; }
.service-hero__ic {
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
  color: var(--brand-gold-500); box-shadow: 0 10px 28px rgba(29,27,76,.32);
}
.service-hero__ic svg { width: 30px; height: 30px; }
.service-hero .lead {
  font-family: var(--font-display); font-weight: 600; color: var(--ink-900);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.45; margin-top: .3rem;
}

/* Optional full-width photo banner under a service hero (used when a real
   photo is available for that service) */
.service-hero-img {
  position: relative; margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 2/1;
}
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,20,43,.82) 0%, rgba(17,20,43,.25) 55%, rgba(17,20,43,.05) 100%);
}
.service-hero-img__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em;
  text-transform: uppercase;
}

.service-body { max-width: 820px; }
.service-body > p { color: var(--ink-700); font-size: 1.03rem; line-height: 1.85; }

/* Why choose us checklist */
.why-us {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm);
  max-width: 820px;
}
.why-us h3 { font-size: 1.15rem; margin-bottom: 1.4rem; }
.why-us ul { display: grid; gap: 1rem; }
.why-us li { display: flex; gap: .85rem; align-items: flex-start; font-size: .96rem; color: var(--ink-700); line-height: 1.6; }
.why-us .tick {
  width: 24px; height: 24px; flex: none; border-radius: 50%; margin-top: 1px;
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(29,27,76,.3);
}
.why-us .tick svg { width: 13px; height: 13px; }

/* Related services chips */
.related-services { margin-top: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.related-services h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 1rem;
}
.related-chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.related-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--r-pill);
  background: var(--brand-purple-100); color: var(--brand-purple-700);
  font-size: .85rem; font-weight: 600;
  transition: background .2s, color .2s, transform .2s;
}
.related-chip:hover { background: var(--brand-purple-700); color: #fff; transform: translateY(-2px); }
.related-chip svg { width: 14px; height: 14px; }

/* Overview page: category label above the services grid */
.services-overview-lead {
  max-width: 780px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center;
  color: var(--ink-700); font-size: 1.05rem; line-height: 1.8;
}

/* ---------- 27. Team page — full roster, 3D flip cards ---------- */
/* Deliberately different from the homepage's .tcard (photo + overlaid text, static):
   here the front is a clean photo/name/role card; hovering (or tapping on touch)
   flips the whole card 180° to reveal the bio on the back. */
.team-page-head { padding-top: clamp(2.5rem, 5vw, 4rem); }
.team-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.team-group__head { margin-bottom: 1.8rem; }
.team-group__head h2 { font-size: 1.5rem; font-family: var(--font-display); color: var(--ink-900); }
.team-group__head p { color: var(--ink-500); font-size: .92rem; margin-top: .35rem; max-width: 640px; }

.flip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
@media (max-width: 980px) { .flip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flip-grid { grid-template-columns: 1fr; } }

.flip-card {
  perspective: 1400px; aspect-ratio: 3/4;
}
.flip-card__inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card__inner,
.flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }
.flip-card__face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.flip-card__front { background: var(--surface-2); }
.flip-card__photo { position: relative; flex: 1; overflow: hidden; background: var(--surface-3); }
.flip-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
/* No real photo available: initials avatar instead of a fake/generic stock image */
.flip-card__photo.no-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-purple-700), var(--brand-purple-900));
}
.flip-card__initials {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: var(--brand-gold-500);
}
.flip-card__front-body {
  padding: 1rem 1.1rem 1.15rem; background: #fff; text-align: center;
}
.flip-card__front-body h3 { font-size: .98rem; color: var(--ink-900); font-family: var(--font-display); line-height: 1.3; }
.flip-card__front-body .role {
  font-size: .72rem; color: var(--brand-purple-700); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-top: .3rem;
}
.flip-card__hint {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(17,20,43,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; color: #fff;
}
.flip-card__hint svg { width: 13px; height: 13px; }

.flip-card__back {
  background: linear-gradient(165deg, var(--brand-purple-800), var(--brand-purple-900));
  transform: rotateY(180deg);
  padding: 1.4rem 1.3rem; justify-content: center; text-align: center; gap: .6rem;
  color: #fff;
}
.flip-card__back h3 { font-size: 1rem; font-family: var(--font-display); color: #fff; }
.flip-card__back .role { font-size: .7rem; color: var(--brand-gold-400); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.flip-card__back p { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.82); margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .flip-card__inner { transition: none; }
}
/* Touch devices: no hover, so tapping toggles .is-flipped via JS instead */
@media (hover: none) {
  .flip-card:hover .flip-card__inner { transform: none; }
}

/* =====================================================================
   CHAT WIDGET
   ===================================================================== */
.cwidget { position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 999; }

.cwidget__launcher {
  width: 60px; height: 60px; border-radius: var(--r-pill); border: none;
  background: var(--brand-purple-700); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s, background .2s;
}
.cwidget__launcher:hover { background: var(--brand-purple-600); transform: translateY(-2px); }
.cwidget__launcher svg { width: 26px; height: 26px; }
.cwidget__launcher-icon-close { display: none; }
.cwidget.is-open .cwidget__launcher-icon-open { display: none; }
.cwidget.is-open .cwidget__launcher-icon-close { display: block; }

.cwidget__panel {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: calc(clamp(1rem, 4vw, 2rem) + 60px + .75rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - clamp(1rem, 4vw, 2rem) - 60px - 2.5rem));
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  display: none; flex-direction: column; overflow: hidden;
  z-index: 1000;
}
/* Visibility is driven by .is-open, not the [hidden] attribute: a class
   selector with display:flex would otherwise override [hidden]'s display:none. */
.cwidget.is-open .cwidget__panel { display: flex; }
.cwidget__panel[hidden] { display: none; }

.cwidget__header {
  background: var(--brand-purple-700); color: #fff; padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  position: relative; z-index: 2;
}
.cwidget__header-text { display: flex; flex-direction: column; gap: .15rem; }
.cwidget__name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.cwidget__status { font-size: .72rem; color: var(--brand-gold-400); }
.cwidget__close {
  background: none; border: none; color: #fff; opacity: .85; cursor: pointer;
  width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3; transition: background .2s, opacity .2s;
}
.cwidget__close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.cwidget__close svg { width: 18px; height: 18px; pointer-events: none; }

.cwidget__messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem;
  background: var(--surface-2);
}
.cwidget__msg {
  max-width: 85%; padding: .6rem .85rem; border-radius: var(--r-md); font-size: .85rem; line-height: 1.55;
}
.cwidget__msg--bot { align-self: flex-start; background: var(--surface); color: var(--ink-700); box-shadow: var(--shadow-sm); }
.cwidget__msg--user { align-self: flex-end; background: var(--brand-purple-700); color: #fff; }

.cwidget__msg--typing { display: flex; gap: .3rem; padding: .75rem .85rem; }
.cwidget__msg--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300);
  animation: cwidget-bounce 1.2s infinite ease-in-out;
}
.cwidget__msg--typing span:nth-child(2) { animation-delay: .15s; }
.cwidget__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cwidget-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.cwidget__footer { border-top: 1px solid var(--line); padding: .75rem; flex-shrink: 0; }

.cwidget__options {
  display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem;
  max-height: 180px; overflow-y: auto;
}
.cwidget__option {
  width: 100%; text-align: left; padding: .6rem .85rem; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-900);
  font-size: .82rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s;
}
.cwidget__option:hover { border-color: var(--brand-purple-500); background: var(--brand-purple-50); }

.cwidget__book-btn {
  width: 100%; margin-bottom: .5rem; padding: .55rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--brand-purple-700); background: #fff; color: var(--brand-purple-700);
  font-weight: 600; font-size: .8rem; cursor: pointer; transition: background .2s, color .2s;
}
.cwidget__book-btn:hover { background: var(--brand-purple-50); }

.cwidget__menu-btn {
  width: 100%; padding: .5rem; border: none; background: none; color: var(--ink-500);
  font-size: .78rem; font-weight: 600; cursor: pointer;
}
.cwidget__menu-btn:hover { color: var(--brand-purple-700); }

.cwidget__lead { border-top: 1px solid var(--line); padding: .85rem; background: var(--surface-2); }
.cwidget__lead-form { display: flex; flex-direction: column; gap: .5rem; }
.cwidget__lead-form input,
.cwidget__lead-form textarea {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .5rem .7rem;
  font-size: .8rem; font-family: var(--font-body); color: var(--ink-900); width: 100%;
}
.cwidget__lead-form textarea { resize: vertical; min-height: 50px; }
.cwidget__lead-form input:focus,
.cwidget__lead-form textarea:focus { outline: none; border-color: var(--brand-purple-500); }
.cwidget__lead-actions { display: flex; flex-direction: column; gap: .4rem; }
.cwidget__lead-cancel { background: none; border: none; color: var(--ink-500); font-size: .78rem; cursor: pointer; }
.cwidget__lead-success {
  padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--brand-gold-100);
  color: var(--brand-purple-900); font-size: .8rem; margin-bottom: .4rem;
}

@media (max-width: 480px) {
  .cwidget__panel { width: calc(100vw - 2rem); }
}
