/* ================================================================
   ABOUT SECTION  —  ab- prefix
   Premium European Islamic aesthetic
   Design language: Midnight Navy × Warm Gold × Parchment
================================================================ */

/* ── Local design tokens ─────────────────────────────────────── */
:root {
  --ab-navy:      #080e1c;
  --ab-navy-2:    #0c1929;
  --ab-forest:    #08321e;
  --ab-indigo:    #0d1840;
  --ab-gold:      #c08c42;
  --ab-gold-lt:   #e4aa60;
  --ab-gold-vv:   #f5d080;
  --ab-cream:     #faf6ef;
  --ab-cream-bd:  #e4daca;
  --ab-text:      #0f1723;
  --ab-body:      #374151;
  --ab-muted:     #6b7280;
  --ab-card-bg:   #ffffff;
}

/* ── Animations ───────────────────────────────────────────────── */
.ab-animate {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.ab-animate--left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.ab-animate--right {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.ab-animate--scale {
  opacity: 0;
  transform: scale(0.93) translateY(18px);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
.ab-animate.is-visible,
.ab-animate--left.is-visible,
.ab-animate--right.is-visible,
.ab-animate--scale.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--ab-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .ab-animate, .ab-animate--left, .ab-animate--right, .ab-animate--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Container ────────────────────────────────────────────────── */
.ab-section   { overflow: hidden; }
.ab-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* ── Shared: eyebrow pill ─────────────────────────────────────── */
.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 18px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid var(--ab-gold);
  color: var(--ab-gold);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ab-eyebrow::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ab-gold);
  flex-shrink: 0;
}
/* Eyebrow on dark background */
.ab-mv .ab-eyebrow,
.ab-cta-card .ab-eyebrow {
  border-color: rgba(228, 170, 96, 0.40);
  color: var(--ab-gold-lt);
}
.ab-mv .ab-eyebrow::before,
.ab-cta-card .ab-eyebrow::before {
  background: var(--ab-gold-lt);
}

/* ── Shared: gradient text ────────────────────────────────────── */
.ab-gradient-text {
  background: linear-gradient(125deg, var(--ab-gold) 0%, var(--ab-gold-vv) 55%, var(--ab-gold-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shared: section heading ─────────────────────────────────── */
.ab-sec-title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: -0.030em;
  color: var(--ab-text);
  margin-bottom: 16px;
}
.ab-sec-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.80;
  color: var(--ab-muted);
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════════════════
   INTRODUCTION  —  parchment background
═══════════════════════════════════════════════════════════════ */
.ab-intro {
  padding: 100px 0 92px;
  background: var(--ab-cream);
  position: relative;
}
/* Giant watermark Bismillah behind the content */
.ab-intro::before {
  content: '﷽';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(9rem, 20vw, 22rem);
  color: rgba(192, 140, 66, 0.035);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
  user-select: none;
}

.ab-intro-hd {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 76px;
  position: relative;
  z-index: 1;
}
.ab-intro-hd .ab-sec-sub { margin: 0 auto; }

.ab-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Body copy */
.ab-body-text {
  font-size: 15.5px;
  line-height: 1.88;
  color: var(--ab-body);
  margin-bottom: 16px;
}
.ab-body-text strong {
  color: var(--ab-text);
  font-weight: 700;
}

/* Checklist */
.ab-check-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ab-body);
  line-height: 1.62;
}
.ab-check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(192, 140, 66, 0.10);
  border: 2px solid var(--ab-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.ab-check-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ab-gold);
}

/* ── Visual panel (right column) ──────────────────────────────── */
.ab-intro-visual { position: relative; }

.ab-visual-panel {
  border-radius: 24px;
  overflow: hidden;
  background: var(--ab-navy);
  min-height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 40px 88px;
  position: relative;
  box-shadow:
    0 48px 96px rgba(8, 14, 28, 0.32),
    0 16px 32px rgba(8, 14, 28, 0.16);
}
/* Thin gold border on panel */
.ab-visual-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(192, 140, 66, 0.22);
  pointer-events: none;
  z-index: 3;
}
/* Radial gold glow center of panel */
.ab-visual-panel::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,140,66,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ab-visual-geo {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
}
.ab-visual-bism {
  font-size: clamp(3rem, 5.5vw, 4.2rem);
  color: var(--ab-gold-lt);
  text-shadow: 0 0 60px rgba(192, 140, 66, 0.50), 0 4px 20px rgba(0,0,0,0.30);
  line-height: 1.4;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.ab-visual-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(192, 140, 66, 0.40);
  position: relative;
  z-index: 2;
}
.ab-visual-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(4, 8, 18, 0.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(192, 140, 66, 0.14);
  padding: 15px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 4;
}
.ab-vstat { text-align: center; }
.ab-vstat-n {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ab-gold-lt);
  line-height: 1;
}
.ab-vstat-l {
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  margin-top: 4px;
}
.ab-vstat-sep {
  width: 1px;
  height: 28px;
  background: rgba(192, 140, 66, 0.14);
}

/* Floating credential badge */
.ab-float-badge {
  position: absolute;
  top: 30px;
  right: -18px;
  background: var(--white);
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow:
    0 20px 50px rgba(8, 14, 28, 0.18),
    0 4px 14px rgba(8, 14, 28, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 175px;
  z-index: 5;
  border: 1px solid rgba(228, 218, 200, 0.70);
}
.ab-fbadge-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ab-gold), var(--ab-gold-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(192, 140, 66, 0.35);
}
.ab-fbadge-title {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ab-text);
  line-height: 1.3;
}
.ab-fbadge-sub {
  font-size: 10.5px;
  color: var(--ab-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   MISSION & VISION  —  midnight navy background
═══════════════════════════════════════════════════════════════ */
.ab-mv {
  padding: 92px 0;
  background: var(--ab-navy);
  position: relative;
}
/* Decorative gold hairlines */
.ab-mv::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(192,140,66,0.35) 40%, rgba(192,140,66,0.35) 60%, transparent 100%);
}
.ab-mv::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(192,140,66,0.35) 40%, rgba(192,140,66,0.35) 60%, transparent 100%);
}

.ab-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.ab-mv-card {
  position: relative;
  border-radius: 24px;
  padding: 50px 44px;
  overflow: hidden;
  border: 1px solid transparent;
  border-top: 2px solid var(--ab-gold);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s, border-color 0.32s;
}
.ab-mv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192,140,66,0.35);
  border-top-color: var(--ab-gold-lt);
}

.ab-mv-mission {
  background: linear-gradient(150deg, var(--ab-forest) 0%, #0b3d24 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.40);
}
.ab-mv-vision {
  background: linear-gradient(150deg, var(--ab-indigo) 0%, #0f1e52 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.40);
}
.ab-mv-mission:hover { box-shadow: 0 40px 80px rgba(0,0,0,0.50); }
.ab-mv-vision:hover  { box-shadow: 0 40px 80px rgba(0,0,0,0.50); }

.ab-mv-geo {
  position: absolute;
  inset: 0;
  opacity: 0.065;
  pointer-events: none;
}
.ab-mv-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(192, 140, 66, 0.12);
  border: 1px solid rgba(192, 140, 66, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.26s var(--ease-spring), background 0.26s;
}
.ab-mv-card:hover .ab-mv-icon {
  transform: scale(1.10) rotate(-5deg);
  background: rgba(192, 140, 66, 0.20);
}
.ab-mv-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ab-gold);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.ab-mv-h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.022em;
  line-height: 1.22;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.ab-mv-p {
  font-size: 15px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE US  —  clean white
═══════════════════════════════════════════════════════════════ */
.ab-why {
  padding: 92px 0;
  background: var(--white);
}
.ab-why-hd {
  text-align: center;
  margin-bottom: 54px;
}
.ab-why-heading {
  font-family: var(--font-head);
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 800;
  color: var(--ab-text);
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.ab-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ab-feature-card {
  padding: 32px 26px;
  border-radius: 20px;
  background: var(--white);
  border: 1.5px solid var(--ab-cream-bd);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, background 0.28s, border-color 0.28s;
}
.ab-feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ab-gold), var(--ab-gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 0 0 3px 3px;
  transition: transform 0.36s var(--ease-out);
}
.ab-feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
  background: var(--ab-cream);
  border-color: rgba(192, 140, 66, 0.22);
}
.ab-feature-card:hover::after { transform: scaleX(1); }

.ab-feature-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(192, 140, 66, 0.10);
  border: 1px solid rgba(192, 140, 66, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  transition: transform 0.24s var(--ease-spring), background 0.24s;
}
.ab-feature-card:hover .ab-feature-ico {
  transform: scale(1.12);
  background: rgba(192, 140, 66, 0.18);
}
.ab-feature-h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ab-text);
  margin-bottom: 9px;
  letter-spacing: -0.012em;
}
.ab-feature-p {
  font-size: 13.5px;
  line-height: 1.74;
  color: var(--ab-muted);
}

/* ═══════════════════════════════════════════════════════════════
   STATISTICS  —  midnight navy, gold numbers
═══════════════════════════════════════════════════════════════ */
.ab-stats {
  padding: 84px 0;
  background: var(--ab-navy);
  position: relative;
  overflow: hidden;
}
.ab-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(192,140,66,0.35) 40%, rgba(192,140,66,0.35) 60%, transparent 100%);
}
.ab-stats-geo {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.ab-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ab-stat-box {
  text-align: center;
  padding: 30px 16px;
  position: relative;
}
.ab-stat-box + .ab-stat-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(192, 140, 66, 0.14);
}
.ab-stat-ico {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.ab-stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--ab-gold-lt);
  line-height: 1;
  letter-spacing: -0.028em;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(192, 140, 66, 0.25);
}
.ab-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   CTA  —  parchment bg, dark navy card
═══════════════════════════════════════════════════════════════ */
.ab-cta {
  padding: 92px 0;
  background: var(--ab-cream);
}
.ab-cta-card {
  background: var(--ab-navy);
  border: 1px solid rgba(192, 140, 66, 0.18);
  border-radius: 28px;
  box-shadow:
    0 48px 96px rgba(8, 14, 28, 0.28),
    0 0 0 1px rgba(192,140,66,0.06);
  padding: 68px 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
/* Gold top bar on CTA card */
.ab-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ab-gold), transparent);
}
.ab-cta-h3 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.026em;
  line-height: 1.16;
  margin: 10px 0 16px;
}
.ab-cta-p {
  font-size: 15.5px;
  line-height: 1.80;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 36px;
}
.ab-cta-p strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}
.ab-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
  border: none;
}
.ab-btn-primary {
  background: linear-gradient(135deg, var(--ab-gold) 0%, var(--ab-gold-lt) 100%);
  color: var(--ab-navy);
  box-shadow: 0 6px 26px rgba(192, 140, 66, 0.38);
}
.ab-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(192, 140, 66, 0.48);
}
.ab-btn-outline {
  background: transparent;
  color: var(--ab-gold-lt);
  border: 2px solid rgba(192, 140, 66, 0.40);
}
.ab-btn-outline:hover {
  border-color: var(--ab-gold-lt);
  background: rgba(192, 140, 66, 0.08);
  transform: translateY(-3px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ab-intro-grid  { grid-template-columns: 1fr; gap: 60px; }
  .ab-float-badge { right: 0; }
  .ab-mv-grid     { grid-template-columns: 1fr; }
  .ab-why-grid    { grid-template-columns: repeat(2, 1fr); }
  .ab-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .ab-stats-grid .ab-stat-box:nth-child(2)::before { display: none; }
}
@media (max-width: 767px) {
  .ab-intro        { padding: 72px 0 60px; }
  .ab-mv           { padding: 68px 0; }
  .ab-why          { padding: 68px 0; }
  .ab-cta          { padding: 68px 0; }
  .ab-cta-card     { padding: 44px 28px; }
  .ab-mv-card      { padding: 38px 28px; }
  .ab-intro::before { opacity: 0.02; }
}
@media (max-width: 640px) {
  .ab-why-grid     { grid-template-columns: 1fr; }
  .ab-stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .ab-cta-btns     { flex-direction: column; align-items: stretch; }
  .ab-cta-btns .ab-btn { justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────────
   HIGH-SPECIFICITY SCOPE GUARD  (#about.ab-section)
   ID + class = specificity 1,1,0 — beats any class-only rule.
   Reinforces the section's sub-background colours so they are
   never overridden by later stylesheets.

   JS-FALLBACK ANIMATION
   Every visible element in this section starts at opacity:0 via
   ab-animate* classes. Normally JS adds .is-visible on scroll.
   The @keyframes below provides a timed CSS-only reveal (1.5s
   base delay + each element's own --ab-delay stagger) so content
   appears even when the IntersectionObserver never fires.
   ───────────────────────────────────────────────────────────────── */
#about.ab-section .ab-intro  { background: var(--ab-cream); }
#about.ab-section .ab-mv     { background: var(--ab-navy);  }
#about.ab-section .ab-why    { background: var(--white);    }
#about.ab-section .ab-stats  { background: var(--ab-navy);  }
#about.ab-section .ab-cta    { background: var(--ab-cream); }

@keyframes ab-reveal-fallback {
  from { opacity: 0; }
  to   { opacity: 1; transform: none; }
}

#about.ab-section .ab-animate:not(.is-visible),
#about.ab-section .ab-animate--left:not(.is-visible),
#about.ab-section .ab-animate--right:not(.is-visible),
#about.ab-section .ab-animate--scale:not(.is-visible) {
  animation: ab-reveal-fallback 0.55s calc(1.5s + var(--ab-delay, 0ms)) ease-out forwards;
}

#about.ab-section .ab-animate.is-visible,
#about.ab-section .ab-animate--left.is-visible,
#about.ab-section .ab-animate--right.is-visible,
#about.ab-section .ab-animate--scale.is-visible {
  opacity: 1;
  transform: none;
  animation: none;
  transition-delay: var(--ab-delay, 0ms);
}
