/* =================================================================
   abdulosama.com — site styles (blog, landing, stack)
   Ported from the design-system Arabic blog kit (blog.css + blog-ar.css)
   plus the cover-palette post covers. Loads after tokens.css.
   RTL-first; Arabic labels carry no letter-spacing / uppercase.
   ================================================================= */

* { box-sizing: border-box; }
html { direction: rtl; }
html, body { margin: 0; padding: 0; }
body.ao-body {
  background: var(--abdul-gradient-paper);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--fg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Nav ---- */
.ao-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 40px);
  background: rgba(252, 251, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.ao-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-primary); }
.ao-brand-mark { width: 36px; height: 36px; border-radius: 50%; display: block; }
.ao-brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.ao-nav-links { display: flex; gap: clamp(14px, 2.5vw, 28px); }
.ao-nav-link { text-decoration: none; color: var(--fg-secondary); font-size: 14px; font-weight: 500; transition: color 160ms var(--ease-standard); white-space: nowrap; }
.ao-nav-link:hover { color: var(--fg-accent); }
.ao-nav-link.is-active { color: var(--fg-primary); font-weight: 700; }
.ao-nav-cta {
  background-image: var(--abdul-gradient-ink); color: #fff;
  padding: 10px 18px; border-radius: 12px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 160ms var(--ease-standard);
  white-space: nowrap;
}
.ao-nav-cta:hover { filter: brightness(1.12); }
/* Language toggle — a quiet bordered pill, not a page link. */
.ao-nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  border: 1.5px solid color-mix(in oklab, var(--fg-secondary) 30%, transparent);
  color: var(--fg-primary);
  font-weight: 600; font-size: 13px;
}
.ao-nav-lang svg { opacity: .7; flex: none; }
.ao-nav-lang:hover { border-color: var(--fg-accent); color: var(--fg-accent); }
/* On a dark first fold the nav goes white — the toggle text + border too
   (nav-on-dark is only present at the top; navbar.js drops it in pill state). */
.nav-on-dark .ao-nav-lang { color: #fff; border-color: rgba(255,255,255,.4); }
.nav-on-dark .ao-nav-lang:hover { color: #fff; border-color: #fff; }
@media (max-width: 640px) {
  .ao-nav-links { display: none; } /* nav collapses; brand + CTA remain */
}
/* Liquid glass states (liquid-glass.js). Active = displacement refraction
   (Chrome/Edge): thinner tint + rim highlight so the warp shows. Fallback =
   richer frosted blur (Safari/iOS/Firefox). */
.ao-nav.lg-active {
  background: rgba(252, 251, 248, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 24px rgba(31, 10, 82, 0.05);
}
.ao-nav.lg-fallback {
  background: rgba(252, 251, 248, 0.68);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* When a fold hosts the animated sky, the static rain streaks retire —
   the stars own the atmosphere. */
[data-sky] .ao-streaks { display: none; }
[data-sky] > * { position: relative; z-index: 1; }

/* ---- Section scaffolding ---- */
.ao-section { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 40px); }
.ao-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
/* Stack category heads read from the start edge — flips with dir. */
.ao-stack-cat-head { text-align: start; }
.ao-eyebrow { font-size: 13px; font-weight: 700; color: var(--abdul-cyan-400); margin-bottom: 16px; }
.ao-eyebrow-dark { font-size: 13px; font-weight: 700; color: var(--fg-accent); margin-bottom: 12px; }
.ao-h2 {
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.3; font-weight: 700;
  margin: 0 0 14px; color: var(--fg-primary); text-wrap: balance;
}
.ao-section-lead { font-size: 17px; line-height: 1.75; color: var(--fg-secondary); margin: 0; text-wrap: pretty; }

/* ---- Compact blog hero ---- */
.ao-blog-hero {
  position: relative; overflow: hidden;
  background: var(--abdul-gradient-radial-glow);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) clamp(18px, 4vw, 40px);
  text-align: center;
}
.ao-blog-hero .ao-streaks { position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent 0, rgba(255,255,255,0.14) 30%, transparent 60%),
    linear-gradient(to bottom, transparent 10%, rgba(52,224,232,0.25) 40%, transparent 70%),
    linear-gradient(to bottom, transparent 20%, rgba(255,255,255,0.10) 50%, transparent 80%);
  background-size: 2px 100%, 3px 100%, 3px 100%;
  background-position: 22% 0, 55% 0, 82% 0;
  background-repeat: no-repeat;
}
.ao-blog-hero h1 {
  position: relative;
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-weight: 900;
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}
.ao-blog-hero p { position: relative; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.75; color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto; text-wrap: pretty; }

/* ---- Reels strip (Bunny embeds, lazy tap-to-play) ---- */
.ao-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .ao-reels { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.ao-reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-xl);
  overflow: hidden; background: var(--abdul-ink-950); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.ao-reel img.thumb { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.ao-reel-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--abdul-salmon-600);
  border: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform var(--dur-base) var(--ease-standard);
}
.ao-reel:hover .ao-reel-play { transform: translate(-50%, -50%) scale(1.07); }
.ao-reel-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(7,5,28,0.85), transparent);
  color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.5;
  pointer-events: none;
}
/* Link card (reel not re-hosted) — the whole tile opens Instagram. */
.ao-reel--link { text-decoration: none; display: block; }
/* No cover yet → a branded tile so it still looks intentional. */
.ao-reel--noimg { background-image: var(--abdul-gradient-ink); }
/* Play overlay on a link card is purely decorative (the <a> is the target). */
.ao-reel-play--link { pointer-events: none; cursor: default; }
.ao-reel--link:hover .ao-reel-play--link { transform: translate(-50%, -50%) scale(1.07); }
.ao-reel-ig {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--abdul-salmon-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3); pointer-events: none;
  transition: transform var(--dur-base) var(--ease-standard);
}
.ao-reel--link:hover .ao-reel-ig { transform: scale(1.08); }
/* Sub-label between the featured and latest rows. */
.ao-ig-sub {
  margin: 32px 0 16px; font-weight: 800; font-size: 14px;
  letter-spacing: .02em; color: var(--fg-tertiary); text-align: start;
  text-transform: uppercase;
}

/* ---- Books: cover wall ---- */
.ao-books-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 3vw, 34px); align-items: start;
}
@media (max-width: 980px) { .ao-books-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .ao-books-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 460px)  { .ao-books-grid { grid-template-columns: repeat(2, 1fr); } }
/* Home strip: the featured books, centred and wrapping for any count. */
.ao-books-grid--featured {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 44px);
}
.ao-books-grid--featured .ao-book { width: clamp(120px, 20vw, 150px); }
@media (max-width: 460px) {
  .ao-books-grid--featured { gap: 18px; }
  .ao-books-grid--featured .ao-book { width: 40%; }
}

.ao-book { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ao-book-cover {
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: var(--abdul-ink-100, #ece9f5);
  box-shadow: 0 10px 26px rgba(20, 8, 50, 0.20), 0 2px 6px rgba(20, 8, 50, 0.12);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.ao-book:hover .ao-book-cover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 18px 40px rgba(20, 8, 50, 0.28), 0 3px 8px rgba(20, 8, 50, 0.14);
}
.ao-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ao-book-meta { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.ao-book-title { font-weight: 700; font-size: 13.5px; line-height: 1.35; color: var(--fg-primary); }
.ao-book-author { font-size: 12px; color: var(--fg-tertiary); }

/* ---- Post grid with cover-palette covers ---- */
.ao-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .ao-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ao-post-grid { grid-template-columns: 1fr; } }
.ao-post-card {
  background: var(--abdul-gradient-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 0; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 200ms var(--ease-standard);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.ao-post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ao-post-cover {
  aspect-ratio: 16 / 10; padding: 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  position: relative; overflow: hidden;
}
.ao-cover-streaks {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 40%, transparent 80%),
    linear-gradient(to bottom, transparent 10%, rgba(52,224,232,0.20) 50%, transparent 85%);
  background-size: 2px 100%, 3px 100%;
  background-position: 24% 0, 72% 0;
  background-repeat: no-repeat;
}
.ao-post-cover-t { margin: 0; font-size: 18px; line-height: 1.85; font-weight: 900; max-width: 95%; position: relative; font-family: var(--font-arabic); }
.ao-post-cover .cover-tag { position: relative; font-size: 11px; padding: 5px 13px; }
.ao-post-cover .cover-rail-v { height: 34px; position: relative; }
.ao-post-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ao-post-excerpt { font-size: 14.5px; line-height: 1.7; color: var(--fg-secondary); margin: 0; flex: 1; }
.ao-post-meta { font-size: 12.5px; color: var(--fg-tertiary); }

/* ---- Article ---- */
.ao-article { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 40px); }
.ao-back { display: inline-block; color: var(--fg-brand); font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 26px; }
.ao-back:hover { color: var(--fg-accent); }
.ao-article-cover {
  border-radius: 20px;
  padding: clamp(24px, 4vw, 38px) clamp(20px, 3.5vw, 32px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  position: relative; overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.ao-article-cover-h {
  margin: 0;
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.35; font-weight: 900;
  position: relative;
}
.ao-article-cover .cover-tag { position: relative; }
.ao-article-cover .cover-rail-h { max-width: 120px; position: relative; }
.ao-article-lead { font-size: 19px; line-height: 1.8; color: var(--fg-secondary); margin: 0 0 26px; text-wrap: pretty; }
.ao-article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--fg-tertiary);
  padding-bottom: 26px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 30px;
}
.ao-article-meta img { width: 38px; height: 38px; border-radius: 50%; }
.ao-article-video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 28px; background: var(--abdul-ink-950); }
.ao-article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Article body typography (rendered from stored HTML) */
.ao-article-body { font-size: 17px; line-height: 1.9; color: var(--fg-secondary); }
.ao-article-body p { margin: 0 0 18px; }
.ao-article-body h2 {
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: 26px; font-weight: 700; margin: 34px 0 14px; color: var(--fg-primary); line-height: 1.4;
}
.ao-article-body h3 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; color: var(--fg-primary); }
.ao-article-body a { color: var(--link); text-underline-offset: 3px; }
.ao-article-body a:hover { color: var(--link-hover); }
.ao-article-body ul, .ao-article-body ol { margin: 0 0 18px; padding-inline-start: 24px; }
.ao-article-body li { margin: 6px 0; }
.ao-article-body blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-inline-start: 3px solid var(--abdul-salmon-500);
  background: var(--bg-sunken); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--fg-primary);
}
.ao-article-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.ao-article-body strong { color: var(--fg-primary); }
.ao-article-body [dir="ltr"], .ao-article-body code { direction: ltr; unicode-bidi: isolate; }
.ao-article-body code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-sunken); padding: 2px 6px; border-radius: 4px; }

/* "More posts" strip under the article */
.ao-more { border-top: 1px solid var(--border-subtle); margin-top: 44px; padding-top: 34px; }
.ao-more h3 { font-family: var(--font-arabic-display); font-feature-settings: var(--ff-swash); font-size: 22px; margin: 0 0 20px; }

/* ---- Stack cards ---- */
.ao-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .ao-stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ao-stack-grid { grid-template-columns: 1fr; } }
.ao-stack-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--abdul-gradient-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 18px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 200ms var(--ease-standard);
}
.ao-stack-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--abdul-salmon-500); }
.ao-stack-ic {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; box-shadow: var(--shadow-xs);
}
.ic-violet { background: var(--abdul-gradient-violet); }
.ic-salmon { background: var(--abdul-gradient-salmon); }
.ic-mint   { background: var(--abdul-gradient-mint); color: #06241a; }
.ic-cyan   { background: var(--abdul-gradient-cyan); color: #0a2540; }
.ic-ink    { background: var(--abdul-gradient-ink); }
.ic-sunset { background: linear-gradient(150deg, #ff9466 0%, #f5536a 55%, #5a16e6 100%); }
.ao-stack-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ao-stack-name { font-weight: 800; font-size: 16px; color: var(--fg-primary); unicode-bidi: isolate; }
.ao-stack-desc { font-size: 13.5px; line-height: 1.65; color: var(--fg-secondary); }
.ao-stack-deal {
  font-size: 12.5px; font-weight: 700; color: var(--abdul-mint-700);
  background: rgba(31, 216, 150, 0.14);
  padding: 3px 10px; border-radius: var(--r-pill);
  align-self: flex-start; margin-top: 2px;
}
.ao-stack-sponsored {
  position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 800;
  background: var(--abdul-gradient-salmon); color: #fff;
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* ---- Business pages (partners / speaking) ---- */
.ao-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 860px) { .ao-stats-row { grid-template-columns: repeat(2, 1fr); } }
.ao-stat {
  background: var(--abdul-gradient-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.ao-stat b {
  display: block;
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  background: var(--grad-heading);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  unicode-bidi: plaintext;
}
.ao-stat span { font-size: 13px; color: var(--fg-tertiary); line-height: 1.5; display: block; }

.ao-honesty {
  max-width: 780px; margin: 0 auto;
  background: rgba(31, 216, 150, 0.08);
  border: 1px solid rgba(31, 216, 150, 0.25);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  font-size: 15.5px; line-height: 1.85; color: var(--fg-secondary);
}
.ao-honesty b { display: block; color: var(--abdul-mint-700); margin-bottom: 6px; }

.ao-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 36px; }
@media (max-width: 760px) { .ao-steps { grid-template-columns: 1fr; } }
.ao-step {
  background: var(--abdul-gradient-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.ao-step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--abdul-gradient-violet); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.ao-step b { display: block; font-size: 16.5px; margin-bottom: 6px; color: var(--fg-primary); }
.ao-step span { font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }

.ao-topic-chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.ao-topic-chips span {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  font-size: 14.5px; font-weight: 700; color: var(--fg-primary);
  box-shadow: var(--shadow-xs);
}

.ao-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur-base), filter var(--dur-base);
}
.btn-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-mail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  color: var(--fg-primary); font-weight: 700; font-size: 15px;
  text-decoration: none; unicode-bidi: isolate;
  transition: background var(--dur-base), transform var(--dur-base);
}
.btn-mail:hover { background: var(--bg-sunken); transform: translateY(-2px); }

/* ---- Footer v2 — CTA strip + brand/social + 3 columns + legal bar ---- */
.ao-footer {
  position: relative;
  background: var(--abdul-ink-950);
  color: rgba(255,255,255,0.82);
  padding: 0 clamp(18px, 4vw, 40px) 24px;
  margin-top: 120px; /* room for the floating CTA strip */
}
/* Faint brand glow rising from the footer's horizon */
.ao-footer::before {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0; height: 65%;
  background: radial-gradient(ellipse 90% 80% at 50% 115%,
    rgba(61, 24, 191, 0.35) 0%, rgba(52, 224, 232, 0.06) 45%, transparent 75%);
  pointer-events: none;
}
.ao-footer > * { position: relative; }

/* CTA strip — floats half-out of the ink block */
.ao-foot-cta {
  max-width: 1040px;
  margin: 0 auto;
  transform: translateY(-56px);
  background: var(--abdul-gradient-violet);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ao-foot-cta-text h3 {
  margin: 0 0 6px;
  font-family: var(--font-arabic-display);
  font-feature-settings: var(--ff-swash);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900; color: #fff;
}
.ao-foot-cta-text p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.6; }
.ao-foot-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ao-foot-btn-primary {
  background: var(--abdul-gradient-salmon); color: #fff;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  box-shadow: var(--glow-salmon);
  transition: transform var(--dur-base), filter var(--dur-base);
}
.ao-foot-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ao-foot-btn-ghost {
  background: rgba(255,255,255,0.10); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background var(--dur-base), transform var(--dur-base);
}
.ao-foot-btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.ao-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) { .ao-footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.ao-footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.ao-footer-mark { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.ao-footer-name { font-family: var(--font-arabic-display); font-feature-settings: var(--ff-swash); font-size: 21px; font-weight: 700; color: #fff; }
.ao-footer-tag { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.ao-foot-social { display: flex; gap: 8px; margin-top: 14px; }
.ao-foot-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  transition: all var(--dur-base) var(--ease-standard);
}
.ao-foot-social a:hover {
  background: var(--abdul-gradient-salmon);
  border-color: transparent; color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-salmon);
}
.ao-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 560px) { .ao-footer-cols { grid-template-columns: 1fr 1fr; } }
.ao-footer-cols h5 { font-size: 13px; font-weight: 800; color: var(--abdul-cyan-400); margin: 0 0 14px; }
.ao-footer-cols a { display: block; color: rgba(255,255,255,0.72); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color 160ms, transform 160ms var(--ease-standard); }
.ao-footer-cols a:hover { color: #fff; transform: translateX(-3px); }

.ao-foot-legal {
  max-width: 1200px; margin: 20px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
}
.ao-foot-legal-links { display: flex; gap: 18px; }
.ao-foot-legal a { color: rgba(255,255,255,0.45); text-decoration: none; }
.ao-foot-legal a:hover { color: var(--abdul-cyan-400); }


/* =====================================================================
   Motion system (motion.js) — reveal vocabulary. Gated behind .js-motion
   so content is always visible without JS / with reduced motion.
   Tokens only: --dur-slow / --ease-entrance (tokens.css).
   ===================================================================== */
.js-motion [data-rv] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow, 380ms) var(--ease-entrance, cubic-bezier(0, 0.7, 0.2, 1)),
    transform var(--dur-slow, 380ms) var(--ease-entrance, cubic-bezier(0, 0.7, 0.2, 1));
  transition-delay: calc(var(--rv-i, 0) * 60ms);
}
.js-motion [data-rv].in { opacity: 1; transform: none; }
/* Stat pop variant — language-neutral (works for «+مليون» and “MENA”). */
.js-motion [data-rv].rv-pop { transform: scale(0.92) translateY(8px); }
.js-motion [data-rv].rv-pop.in { transform: none; }
.js-motion .rv-stats > [data-rv] { transform: scale(0.92) translateY(8px); }
.js-motion .rv-stats > [data-rv].in { transform: none; }

/* Touch feedback — the mobile-majority audience gets a press response on
   every card/CTA (hover lifts are desktop-only). Transform = compositor. */
.ao-post-card:active, .ao-stack-card:active, .ao-book:active,
.btn-wa:active, .btn-mail:active, .ao-foot-btn-primary:active,
.ao-foot-btn-ghost:active, .btn-primary:active, .btn-ghost:active,
.cw-opt:active, .cw-act:active, .hub-card:active {
  transform: scale(0.98);
  transition-duration: var(--dur-fast, 120ms);
}

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-rv] { opacity: 1; transform: none; transition: none; }
}

/* Souq nav link — deep green so the store stands out in the menu. */
