/* ════════════════════════════════════════════════════════════════
   Royal Max 4500 — Design System
   Brand: honey gold + warm white + deep dark (taken from the product box)
   ════════════════════════════════════════════════════════════════ */

:root {
    /* Colors — honey/gold palette from the product box */
    --honey-50:  #FFFBF0;
    --honey-100: #FFF4D6;
    --honey-200: #FCE7A8;
    --honey-300: #F8D572;
    --honey-400: #F5C03F;
    --honey-500: #F5A623;   /* primary */
    --honey-600: #E89110;
    --honey-700: #C97308;
    --honey-800: #9B5907;
    --honey-900: #6F4006;

    --warm-50:   #FAFAF7;
    --warm-100:  #F5F3EC;
    --warm-200:  #E8E4D5;
    --warm-300:  #C8C2AE;

    --ink-50:    #F7F6F4;
    --ink-200:   #C9C6C0;
    --ink-500:   #6B655B;
    --ink-700:   #3C3833;
    --ink-900:   #1A1612;

    /* Semantic */
    --color-bg:        #FFFFFF;
    --color-bg-soft:   var(--honey-50);
    --color-bg-warm:   var(--warm-50);
    --color-text:      var(--ink-900);
    --color-text-soft: var(--ink-500);
    --color-border:    #ECE7DA;
    --color-primary:   var(--honey-500);
    --color-primary-d: var(--honey-700);
    --color-accent:    #2B1810;

    /* Type */
    --font-body: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Tajawal', 'Cairo', system-ui, sans-serif;
    --fs-xs:   .8125rem;     /* 13 */
    --fs-sm:   .9375rem;     /* 15 */
    --fs-base: 1.0625rem;    /* 17 */
    --fs-md:   1.1875rem;    /* 19 */
    --fs-lg:   1.5rem;       /* 24 */
    --fs-xl:   2rem;         /* 32 */
    --fs-2xl:  2.75rem;      /* 44 */
    --fs-3xl:  3.5rem;       /* 56 */
    --lh-tight: 1.2;
    --lh-snug:  1.4;
    --lh-base:  1.75;
    --lh-loose: 1.9;

    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --space-10: 8rem;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 22, 18, .06), 0 1px 1px rgba(26, 22, 18, .04);
    --shadow-md: 0 6px 18px rgba(201, 115, 8, .08), 0 2px 6px rgba(26, 22, 18, .06);
    --shadow-lg: 0 22px 50px rgba(201, 115, 8, .14), 0 6px 18px rgba(26, 22, 18, .06);
    --shadow-honey: 0 12px 32px rgba(245, 166, 35, .25);

    /* Breakpoints (for ref in JS) */
    --bp-md: 768px;
    --bp-lg: 1024px;

    /* Container */
    --container: 1200px;
    --container-px: clamp(1rem, 4vw, 2rem);

    /* Easing */
    --easing-out: cubic-bezier(.22, .61, .36, 1);
}

/* ─── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { text-align: right; }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-d); text-decoration: none; transition: color .2s var(--easing-out); }
a:hover { color: var(--honey-800); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); color: var(--ink-900); margin: 0 0 var(--space-4); font-weight: 800; }
h1 { font-size: clamp(var(--fs-xl), 5vw, var(--fs-3xl)); letter-spacing: -.02em; }
h2 { font-size: clamp(var(--fs-lg), 3.5vw, var(--fs-2xl)); letter-spacing: -.015em; }
h3 { font-size: clamp(var(--fs-md), 2.5vw, var(--fs-lg)); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--space-4); }

::selection { background: var(--honey-300); color: var(--ink-900); }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--container-px); }
.section   { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--soft  { background: var(--color-bg-soft); }
.section--warm  { background: var(--color-bg-warm); }
.section--dark  { background: var(--ink-900); color: var(--honey-50); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: var(--space-5); }

/* ─── Eyebrow / section header ─────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--honey-100);
    color: var(--honey-800);
    padding: .35rem 1rem;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: var(--space-4);
    border: 1px solid var(--honey-200);
}
.eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--honey-500);
    border-radius: 50%;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-7); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p  { color: var(--color-text-soft); font-size: var(--fs-md); }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: .85rem 1.75rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-sm);
    border: 2px solid transparent;
    transition: transform .25s var(--easing-out), box-shadow .25s var(--easing-out), background .25s var(--easing-out), color .25s var(--easing-out);
    text-decoration: none;
    line-height: 1;
}
.btn--primary { background: var(--honey-500); color: var(--ink-900); box-shadow: var(--shadow-honey); }
.btn--primary:hover { background: var(--honey-600); color: var(--ink-900); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245, 166, 35, .35); }
.btn--ghost   { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--ghost:hover { background: var(--ink-900); color: var(--honey-300); }
.btn--outline { background: #fff; color: var(--honey-800); border-color: var(--honey-300); }
.btn--outline:hover { border-color: var(--honey-500); background: var(--honey-50); }
.btn--dark    { background: var(--ink-900); color: var(--honey-300); }
.btn--dark:hover { background: var(--ink-700); color: var(--honey-200); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.25rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ─── Cards ────────────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    padding: var(--space-5);
    transition: transform .3s var(--easing-out), box-shadow .3s var(--easing-out), border-color .3s var(--easing-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--honey-300); }

.card--feature {
    padding: var(--space-6);
    background: linear-gradient(135deg, #fff 0%, var(--honey-50) 100%);
}

/* ─── Post card (blog grid) ──────────────────────────── */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--color-border); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--easing-out), box-shadow .3s var(--easing-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/10; background: var(--honey-100); overflow: hidden; position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--easing-out); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.post-card__title { font-size: var(--fs-md); font-weight: 800; line-height: 1.4; margin-bottom: var(--space-3); color: var(--ink-900); }
.post-card__excerpt { color: var(--color-text-soft); font-size: var(--fs-sm); flex: 1; margin-bottom: var(--space-3); }
.post-card__meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--color-text-soft); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.post-card__meta span { display: flex; align-items: center; gap: 4px; }

/* ─── Header / nav ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding-block: var(--space-3);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink-900);
    font-weight: 800;
    font-size: var(--fs-md);
}
.site-logo img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.site-logo__tag { font-size: var(--fs-xs); color: var(--color-text-soft); font-weight: 500; }

.site-nav { display: flex; gap: var(--space-5); }
.site-nav a {
    color: var(--ink-700);
    font-weight: 600;
    font-size: var(--fs-sm);
    padding: .5rem 0;
    position: relative;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--honey-700); }
.site-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -4px; right: 0; left: 0;
    height: 2px;
    background: var(--honey-500);
    border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
    display: none;
    background: var(--honey-500);
    border: 1px solid var(--honey-600);
    width: 46px; height: 46px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--ink-900);
    box-shadow: var(--shadow-honey);
    transition: transform .2s var(--easing-out), background .2s;
    flex-shrink: 0;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--honey-600); transform: translateY(-1px); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    /* Tighten header layout */
    .site-header__inner { gap: var(--space-3); padding-block: var(--space-2); }
    .site-logo img { width: 38px; height: 38px; }
    .site-logo strong { font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; }
    .site-logo__tag { display: none; }
    .nav-cta { gap: var(--space-2); }
    /* Smaller buy button on tablet */
    .nav-cta__primary { padding: .55rem 1rem; font-size: var(--fs-xs); }
    .nav-cta__primary svg { display: none; }
}
@media (max-width: 560px) {
    /* On phones: only logo + hamburger. Buy CTA lives in the drawer. */
    .nav-cta__primary { display: none; }
    .site-logo strong { font-size: var(--fs-base); }
}

/* ─── Off-canvas drawer ─────────────────────────────────── */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(26, 22, 18, .55);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--easing-out);
    z-index: 90;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0; left: auto;
    width: min(340px, 86vw);
    height: 100vh;
    background: #fff;
    z-index: 100;
    padding: var(--space-5);
    box-shadow: -20px 0 50px rgba(26, 22, 18, .25);
    transform: translateX(110%); /* off-screen to the right */
    transition: transform .4s var(--easing-out), visibility 0s linear .4s;
    display: flex; flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
}
.mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .4s var(--easing-out), visibility 0s linear 0s;
}

.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.drawer__close {
    background: var(--honey-50);
    border: 1px solid var(--honey-200);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-900);
}
.drawer__nav { display: flex; flex-direction: column; gap: var(--space-2); }
.drawer__nav a {
    color: var(--ink-900);
    font-weight: 600;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    transition: background .25s, color .25s;
    opacity: 0;
    transform: translateX(20px);
}
.mobile-drawer.is-open .drawer__nav a {
    opacity: 1;
    transform: none;
    transition: opacity .4s var(--easing-out), transform .4s var(--easing-out), background .25s, color .25s;
}
.mobile-drawer.is-open .drawer__nav a:nth-child(1) { transition-delay: .08s; }
.mobile-drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: .14s; }
.mobile-drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: .2s; }
.mobile-drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: .26s; }
.mobile-drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: .32s; }
.mobile-drawer.is-open .drawer__nav a:nth-child(6) { transition-delay: .38s; }

.drawer__nav a:hover { background: var(--honey-50); color: var(--honey-800); }

.drawer__cta { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.drawer__foot { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-text-soft); font-size: var(--fs-xs); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: var(--space-9) 0 var(--space-8);
    background: linear-gradient(135deg, var(--honey-50) 0%, #fff 60%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -180px; inset-inline-end: -120px;
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--honey-200) 0%, transparent 70%);
    opacity: .6;
    z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--space-8);
    align-items: center;
}
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); }
}
.hero__title { font-size: clamp(2rem, 5.5vw, 3.75rem); margin-bottom: var(--space-5); }
.hero__title strong { color: var(--honey-700); }
.hero__sub { font-size: var(--fs-md); color: var(--ink-700); margin-bottom: var(--space-6); max-width: 540px; }
.hero__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__product {
    position: relative;
    aspect-ratio: 1;
    max-width: 580px;
    margin-inline: auto;
}
.hero__product::before {
    /* Animated honey-glow halo behind the box */
    content: '';
    position: absolute;
    inset: 4%;
    background:
        radial-gradient(circle, rgba(245, 166, 35, .35) 0%, rgba(245, 166, 35, .12) 38%, transparent 68%);
    animation: rmGlow 4.5s ease-in-out infinite;
    z-index: 0;
    border-radius: 50%;
    filter: blur(8px);
}
.hero__product::after {
    /* Inner brighter pulse */
    content: '';
    position: absolute;
    inset: 22%;
    background: radial-gradient(circle, rgba(252, 231, 168, .55) 0%, transparent 65%);
    animation: rmGlow 3.5s ease-in-out infinite .8s;
    z-index: 0;
    border-radius: 50%;
    filter: blur(12px);
}
.hero__product img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    animation: rmFloat 5.5s ease-in-out infinite;
    filter: drop-shadow(0 22px 32px rgba(201, 115, 8, .28));
    will-change: transform;
}

/* ─── Energy / activity particles around the product ──── */
.hero__product .spark {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--honey-500);
    box-shadow: 0 0 14px var(--honey-400);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: rmSpark 4s ease-in-out infinite;
}
.hero__product .spark:nth-child(1) { top: 10%;  inset-inline-start: 8%;  animation-delay: 0s;   }
.hero__product .spark:nth-child(2) { top: 24%;  inset-inline-end: 6%;    animation-delay: .8s;  width:6px;height:6px; }
.hero__product .spark:nth-child(3) { top: 70%;  inset-inline-start: 4%;  animation-delay: 1.4s; width:10px;height:10px; }
.hero__product .spark:nth-child(4) { top: 84%;  inset-inline-end: 12%;   animation-delay: 2.1s; }
.hero__product .spark:nth-child(5) { top: 45%;  inset-inline-end: 2%;    animation-delay: 2.8s; width:5px;height:5px;}
.hero__product .spark:nth-child(6) { top: 55%;  inset-inline-start: 1%;  animation-delay: 3.4s; width:7px;height:7px; }

@keyframes rmFloat {
    0%, 100% { transform: translateY(0)    rotate(-.8deg); }
    50%      { transform: translateY(-14px) rotate(.8deg); }
}
@keyframes rmGlow {
    0%, 100% { opacity: .65; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.07); }
}
@keyframes rmSpark {
    0%, 100% { opacity: 0; transform: scale(.4) translate(0,0); }
    20%      { opacity: 1; transform: scale(1)  translate(-6px,-6px); }
    50%      { opacity: .8;transform: scale(1.2) translate(8px,-12px); }
    80%      { opacity: .2;transform: scale(.7) translate(4px, 6px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__product img,
    .hero__product::before,
    .hero__product::after,
    .hero__product .spark { animation: none; }
}

.trust-row { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-700); font-size: var(--fs-sm); font-weight: 600; }
.trust-item svg { color: var(--honey-600); width: 20px; height: 20px; }

/* ─── Stats / numbers ──────────────────────────────────── */
.stat { text-align: center; padding: var(--space-5); }
.stat__num { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; color: var(--honey-700); line-height: 1; margin-bottom: var(--space-2); }
.stat__label { color: var(--color-text-soft); font-size: var(--fs-sm); }

/* ─── Benefits / features grid ─────────────────────────── */
.feature {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    padding: var(--space-6);
    text-align: start;
    transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--honey-200), var(--honey-400));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--ink-900);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: var(--space-2); font-size: var(--fs-md); }
.feature p { color: var(--color-text-soft); font-size: var(--fs-sm); margin: 0; }

/* ─── Ingredients table ──────────────────────────────── */
.ingredient {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-5);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    margin-bottom: var(--space-3);
}
.ingredient__icon { font-size: 2.5rem; }
.ingredient__name { font-weight: 800; font-size: var(--fs-md); margin: 0; }
.ingredient__desc { color: var(--color-text-soft); font-size: var(--fs-sm); margin: var(--space-1) 0 0; }
.ingredient__qty { font-weight: 800; color: var(--honey-700); font-size: var(--fs-md); padding: .35rem .85rem; background: var(--honey-50); border-radius: var(--r-pill); white-space: nowrap; }

/* ─── Article body ─────────────────────────────────────── */
.article-shell { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .article-shell { grid-template-columns: 1fr; } .toc { position: static; }}

.article__hero {
    padding: var(--space-7) 0 var(--space-5);
    background: linear-gradient(180deg, var(--honey-50), #fff);
    border-bottom: 1px solid var(--color-border);
}
.article__meta { display: flex; gap: var(--space-3); flex-wrap: wrap; color: var(--color-text-soft); font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.article__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article__title { font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); margin-bottom: var(--space-4); }
.article__hook  { font-size: var(--fs-md); color: var(--ink-700); font-style: italic; padding: var(--space-4); border-inline-start: 4px solid var(--honey-500); background: var(--honey-50); border-radius: var(--r-md); margin-bottom: var(--space-5); }

.article__cover {
    aspect-ratio: 16/9;
    max-width: 720px;
    margin: 0 auto var(--space-6);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--honey-50);
    box-shadow: var(--shadow-md);
}
.article__cover img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); }

.toc {
    position: sticky;
    top: 92px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    padding: var(--space-5);
}
.toc h4 { margin: 0 0 var(--space-3); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--honey-700); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: var(--space-2); }
.toc li[data-level="3"] { padding-inline-start: var(--space-4); }
.toc a {
    display: flex;
    gap: var(--space-2);
    color: var(--ink-700);
    font-size: var(--fs-sm);
    padding: .4rem 0;
    line-height: 1.4;
    transition: color .2s, padding .2s;
}
.toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--honey-500);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.toc a:hover, .toc a.is-active { color: var(--honey-700); padding-inline-start: var(--space-2); }

.article__body {
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    color: var(--ink-700);
}
.article__body h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin: var(--space-7) 0 var(--space-4);
    padding-inline-start: var(--space-4);
    border-inline-start: 5px solid var(--honey-500);
    scroll-margin-top: 90px;
}
.article__body h3 { margin: var(--space-5) 0 var(--space-3); color: var(--honey-800); scroll-margin-top: 90px; }
.article__body p { margin-bottom: var(--space-4); }
.article__body ul, .article__body ol { padding-inline-start: var(--space-5); margin-bottom: var(--space-4); }
.article__body li { margin-bottom: var(--space-2); }
.article__body strong { color: var(--ink-900); }
.article__body a { color: var(--honey-700); border-bottom: 1px dashed var(--honey-400); }
.article__body blockquote { background: var(--honey-50); border-inline-start: 4px solid var(--honey-500); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.article__body img, .article__body figure { border-radius: var(--r-md); margin: var(--space-5) 0; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--r-md); margin-bottom: var(--space-3); overflow: hidden; }
.faq__q {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    font-weight: 700;
    color: var(--ink-900);
    cursor: pointer;
    user-select: none;
}
.faq__q::after { content: '+'; font-size: 1.6rem; font-weight: 400; color: var(--honey-600); transition: transform .3s; }
.faq__item.is-open .faq__q::after { content: '−'; transform: rotate(0); }
.faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--color-text-soft); display: none; }
.faq__item.is-open .faq__a { display: block; }

/* ─── CTA band ──────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--honey-500) 0%, var(--honey-700) 100%);
    color: var(--ink-900);
    padding: var(--space-8) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .15) 0%, transparent 50%);
}
.cta-band__inner { position: relative; max-width: 720px; margin: 0 auto; padding-inline: var(--container-px); }
.cta-band h2 { color: var(--ink-900); margin-bottom: var(--space-4); }
.cta-band p { color: var(--ink-700); margin-bottom: var(--space-5); font-size: var(--fs-md); }
.cta-band .btn { background: var(--ink-900); color: var(--honey-300); }
.cta-band .btn:hover { background: var(--ink-700); color: var(--honey-200); }

/* ─── Breadcrumb ────────────────────────────────────── */
.crumbs { display: flex; gap: var(--space-2); align-items: center; color: var(--color-text-soft); font-size: var(--fs-xs); padding: var(--space-4) 0; flex-wrap: wrap; }
.crumbs a { color: var(--color-text-soft); }
.crumbs a:hover { color: var(--honey-700); }
.crumbs span[aria-current] { color: var(--ink-900); font-weight: 600; }

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
    background: var(--ink-900);
    color: var(--honey-200);
    padding: var(--space-8) 0 var(--space-5);
    margin-top: var(--space-9);
}
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--space-4); }
.site-footer a { color: var(--honey-200); }
.site-footer a:hover { color: var(--honey-400); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-7); margin-bottom: var(--space-6); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--space-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--space-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--honey-300); font-size: var(--fs-xs); }
.footer-disclaimer { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); padding: var(--space-4); border-radius: var(--r-md); font-size: var(--fs-xs); color: var(--honey-200); margin-bottom: var(--space-5); line-height: 1.7; }

/* ─── Scroll reveal animation system ────────────────── */
html.js [data-anim],
html.js .reveal {
    opacity: 0;
    transition: opacity .9s var(--easing-out), transform .9s var(--easing-out);
}
html.js [data-anim="up"]       { transform: translateY(40px); }
html.js [data-anim="down"]     { transform: translateY(-40px); }
html.js [data-anim="left"]     { transform: translateX(-40px); }
html.js [data-anim="right"]    { transform: translateX(40px); }
html.js [dir="rtl"] [data-anim="start"] { transform: translateX(40px); }
html.js [dir="rtl"] [data-anim="end"]   { transform: translateX(-40px); }
html.js [data-anim="start"]    { transform: translateX(-40px); }
html.js [data-anim="end"]      { transform: translateX(40px); }
html.js [data-anim="zoom"]     { transform: scale(.94); }
html.js [data-anim="zoom-out"] { transform: scale(1.06); }
html.js [data-anim="fade"]     { transform: none; }
html.js [data-anim="blur"]     { filter: blur(8px); transform: none; }

html.js [data-anim].is-revealed,
html.js .reveal.is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

html.js .stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--easing-out), transform .8s var(--easing-out);
}
html.js .stagger.in-view > * { opacity: 1; transform: none; }
html.js .stagger.in-view > *:nth-child(1) { transition-delay: .1s; }
html.js .stagger.in-view > *:nth-child(2) { transition-delay: .2s; }
html.js .stagger.in-view > *:nth-child(3) { transition-delay: .3s; }
html.js .stagger.in-view > *:nth-child(4) { transition-delay: .4s; }
html.js .stagger.in-view > *:nth-child(5) { transition-delay: .5s; }
html.js .stagger.in-view > *:nth-child(6) { transition-delay: .6s; }
html.js .stagger.in-view > *:nth-child(7) { transition-delay: .7s; }
html.js .stagger.in-view > *:nth-child(8) { transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
    html.js [data-anim], html.js .reveal, html.js .stagger > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ─── Forms ────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-weight: 600; margin-bottom: var(--space-2); color: var(--ink-900); font-size: var(--fs-sm); }
.form-input, .form-textarea, .form-select {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--r-md);
    padding: .75rem var(--space-4);
    font-family: inherit;
    font-size: var(--fs-sm);
    color: var(--ink-900);
    transition: border-color .25s, box-shadow .25s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: 0;
    border-color: var(--honey-500);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, .15);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ─── Misc utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-soft   { color: var(--color-text-soft); }
.fw-bold     { font-weight: 700; }
.mt-3 { margin-top: var(--space-5); }
.mt-5 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-5); }
.mb-5 { margin-bottom: var(--space-7); }

/* Hide visually but keep for screen-readers */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip-to-content link */
.skip-link { position: absolute; top: -100px; right: 0; background: var(--honey-500); color: var(--ink-900); padding: .75rem 1.25rem; z-index: 1000; border-radius: 0 0 0 var(--r-md); font-weight: 700; }
.skip-link:focus { top: 0; }

/* ─── Designed-by credit badge ───────────────────────── */
.ef-credit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: #101010;
    border: 1px solid rgba(217, 4, 41, .5);
    border-radius: 50px;
    padding: 9px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: .25s;
}
.ef-credit:hover { background: #D90429; border-color: #D90429; transform: translateY(-2px); color: #fff; }
.ef-credit strong { color: #D90429; font-weight: 800; transition: .25s; }
.ef-credit:hover strong { color: #fff; }
.ef-credit-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D90429;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, .25);
}
.ef-credit:hover .ef-credit-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
