/* ============================================================================
   Tawleef — Core Styles (v2 — Editorial cream palette)

   Palette inspired by classical Arab editorial design:
   - Cream / ivory as primary surface
   - Burgundy as accent (text + buttons + highlights)
   - Slate blue for cool counterpoint
   - Generous spacing, sharp typography, subtle motion

   Direction: RTL Arabic
   Fonts: Thmanyah Sans (body) + Thmanyah Serif Display (headings)
============================================================================ */

/* -------- Fonts -------- */
@font-face { font-family:'Thmanyah Sans'; font-weight:300; font-style:normal; font-display:swap; src:url('../../fonts/sec-font/woff2/thmanyahsans-Light.woff2')   format('woff2'); }
@font-face { font-family:'Thmanyah Sans'; font-weight:400; font-style:normal; font-display:swap; src:url('../../fonts/sec-font/woff2/thmanyahsans-Regular.woff2') format('woff2'); }
@font-face { font-family:'Thmanyah Sans'; font-weight:500; font-style:normal; font-display:swap; src:url('../../fonts/sec-font/woff2/thmanyahsans-Medium.woff2')  format('woff2'); }
@font-face { font-family:'Thmanyah Sans'; font-weight:700; font-style:normal; font-display:swap; src:url('../../fonts/sec-font/woff2/thmanyahsans-Bold.woff2')    format('woff2'); }
@font-face { font-family:'Thmanyah Sans'; font-weight:900; font-style:normal; font-display:swap; src:url('../../fonts/sec-font/woff2/thmanyahsans-Black.woff2')   format('woff2'); }

@font-face { font-family:'Thmanyah Serif'; font-weight:300; font-style:normal; font-display:swap; src:url('../../fonts/main-font/woff2/thmanyahserifdisplay-Light.woff2')   format('woff2'); }
@font-face { font-family:'Thmanyah Serif'; font-weight:400; font-style:normal; font-display:swap; src:url('../../fonts/main-font/woff2/thmanyahserifdisplay-Regular.woff2') format('woff2'); }
@font-face { font-family:'Thmanyah Serif'; font-weight:500; font-style:normal; font-display:swap; src:url('../../fonts/main-font/woff2/thmanyahserifdisplay-Medium.woff2')  format('woff2'); }
@font-face { font-family:'Thmanyah Serif'; font-weight:700; font-style:normal; font-display:swap; src:url('../../fonts/main-font/woff2/thmanyahserifdisplay-Bold.woff2')    format('woff2'); }
@font-face { font-family:'Thmanyah Serif'; font-weight:900; font-style:normal; font-display:swap; src:url('../../fonts/main-font/woff2/thmanyahserifdisplay-Black.woff2')   format('woff2'); }

/* -------- Theme variables -------- */
:root {
    /* === CREAM (primary surface) === */
    --cream:           #F6F0E4;   /* main page background */
    --cream-2:         #F1E9D8;   /* cards / alt sections */
    --cream-3:         #EBE1CD;   /* dividers / hover */
    --cream-4:         #E2D5BB;   /* depth wash */
    --ivory:           #FBF7EE;   /* lightest — surfaces over cream */

    /* === BURGUNDY (supporting accent) === */
    --burgundy:        #7A1D2D;
    --burgundy-dark:   #5A1320;
    --burgundy-soft:   #9A3548;
    --burgundy-wash:   #F2E1E4;   /* very light tint for backgrounds */

    /* === BLUE (cool counterpoint, light touch) === */
    --blue:            #5C7A95;
    --blue-soft:       #87A2BA;
    --blue-light:      #D4E1EC;
    --blue-wash:       #EAF0F5;

    /* === INK (text) === */
    --ink:             #2A1F18;   /* primary text */
    --ink-soft:        #5A4B40;   /* secondary text */
    --ink-muted:       #8B7D6F;   /* muted text */
    --line:            #DDD0B6;   /* borders on cream */
    --line-soft:       #E8DDC4;   /* lighter divider */

    /* === Functional === */
    --gold:            #B89254;   /* subtle accent (numbers/decoration) */
    --success:         #3B6B47;
    --danger:          #9B2C2C;
    --warning:         #B97B1B;

    /* === Typography === */
    --font-body:    'Thmanyah Sans', 'SF Arabic', 'Segoe UI', Tahoma, sans-serif;
    --font-display: 'Thmanyah Serif', 'SF Arabic', 'Segoe UI', Tahoma, serif;

    --fs-xs:    0.75rem;
    --fs-sm:    0.875rem;
    --fs-base:  1rem;
    --fs-lg:    1.125rem;
    --fs-xl:    1.25rem;
    --fs-2xl:   1.5rem;
    --fs-3xl:   1.875rem;
    --fs-4xl:   2.25rem;
    --fs-5xl:   3rem;
    --fs-6xl:   3.75rem;
    --fs-7xl:   4.5rem;

    /* === Spacing === */
    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
    --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
    --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

    /* === Layout === */
    --container-max: 1240px;
    --container-narrow: 820px;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;
    --radius-xl: 22px;

    /* === Shadows (warm, like sunlight through cream paper) === */
    --shadow-sm: 0 1px 2px rgba(60, 36, 20, 0.05);
    --shadow:    0 6px 22px rgba(60, 36, 20, 0.08);
    --shadow-lg: 0 20px 48px rgba(60, 36, 20, 0.12);
    --shadow-burgundy: 0 14px 36px rgba(122, 29, 45, 0.22);

    /* === Motion === */
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:      180ms var(--ease);
    --t:           320ms var(--ease);
    --t-slow:      520ms var(--ease);
}

/* -------- Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Subtle cream texture using gradient — feels like fine paper */
    background:
        radial-gradient(ellipse at top, rgba(184, 146, 84, 0.04) 0%, transparent 60%),
        var(--cream);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--ink);
    background: transparent;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 var(--sp-4);
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, var(--fs-6xl)); font-weight: 900; line-height: 1.35; padding-block-start: 0.15em; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-4xl)); line-height: 1.4; padding-block-start: 0.1em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 1.5px; }

p { margin: 0 0 var(--sp-4); color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover, a:focus { color: var(--burgundy-soft); }
a:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
    border-radius: 2px;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: var(--sp-6); color: var(--ink-soft); }
li { margin-bottom: var(--sp-2); }

blockquote {
    border-inline-start: 3px solid var(--burgundy);
    padding: var(--sp-4) var(--sp-6);
    margin: var(--sp-6) 0;
    background: var(--ivory);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-style: normal;
    color: var(--ink);
    line-height: 1.7;
}
blockquote p:last-child { margin-bottom: 0; }

code {
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    background: var(--cream-2);
    color: var(--burgundy);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
pre {
    background: var(--ink);
    color: var(--cream);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: var(--fs-sm);
}
pre code { background: transparent; color: inherit; padding: 0; }

hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: var(--sp-12) 0;
}

button { font-family: inherit; cursor: pointer; }

input, textarea, select, button { font-family: inherit; font-size: var(--fs-base); }

::selection { background: var(--burgundy); color: var(--ivory); }

/* -------- Layout helpers -------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 0;
    background: var(--burgundy);
    color: var(--ivory);
    padding: var(--sp-3) var(--sp-6);
    z-index: 9999;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top var(--t-fast);
    text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--ivory); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
    white-space: nowrap;
    border: 0; padding: 0; margin: -1px;
}

.site-main {
    min-height: calc(100vh - 480px);
}

/* -------- SVG Icons -------- */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em; height: 1em;
    font-size: 24px;
    flex-shrink: 0;
}

/* ────────────── Header / Nav (v5 — clean, logo-only brand) ────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246, 240, 228, 0.88);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow var(--t), padding var(--t), background var(--t);
    padding-block: var(--sp-3);
}
.site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(60,36,20,0.10);
    padding-block: var(--sp-2);
    background: rgba(246, 240, 228, 0.96);
}
.site-header.is-scrolled .brand-logo { height: 72px; }

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    flex-wrap: wrap;
    position: relative;
}

/* Nav actions group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--burgundy);
    color: var(--ivory) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none !important;
    transition: all var(--t);
    box-shadow: 0 4px 14px rgba(122,29,45,0.22);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 700ms;
}
.nav-cta:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(122,29,45,0.32);
}
.nav-cta:hover::after { transform: translateX(100%); }

/* Search toggle icon button */
.nav-search-toggle {
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--t-fast);
}
.nav-search-toggle:hover {
    background: var(--burgundy-wash);
    border-color: var(--burgundy);
    color: var(--burgundy);
}
.nav-search-toggle.is-active {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--ivory);
}

/* Search panel — slides down from header */
.nav-search-panel {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    margin-top: 8px;
    background: var(--ivory);
    border: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: 680px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(60,36,20,0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    z-index: 60;
}
.nav-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-search-panel input {
    flex: 1;
    border: none;
    background: var(--cream);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius);
    font-size: var(--fs-base);
    outline: none;
    color: var(--ink);
}
.nav-search-panel input::placeholder { color: var(--ink-muted); }
.nav-search-panel input:focus { box-shadow: 0 0 0 3px rgba(122,29,45,0.10); }
.nav-search-panel button {
    background: var(--burgundy);
    color: var(--ivory);
    border: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    flex-shrink: 0;
}
.nav-search-panel button:hover { background: var(--burgundy-dark); }

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--burgundy);
    text-decoration: none !important;
    transition: transform var(--t);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
    height: 100px;
    width: auto;
    transition: all var(--t);
    filter: drop-shadow(0 4px 12px rgba(122,29,45,0.10));
}
.brand:hover .brand-logo { filter: drop-shadow(0 6px 18px rgba(122,29,45,0.18)); }

/* Video-logo polish: smooth fade-in on first paint, soft hover scale,
   round the corners just slightly so the video frame doesn't look harsh. */
.brand-logo-video {
    display: block;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    transform-origin: center;
    animation: brand-logo-in 520ms cubic-bezier(.2,.7,.2,1) both;
    will-change: transform, filter;
}
.brand:hover .brand-logo-video {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 22px rgba(122,29,45,0.22));
}
@keyframes brand-logo-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .brand-logo-video { animation: none; }
    .brand:hover .brand-logo-video { transform: none; }
}

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    padding: 0;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center; justify-content: center;
    color: var(--burgundy);
    cursor: pointer;
    transition: all var(--t-fast);
}
.nav-toggle:hover { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}
.nav-list {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 2px;
    flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-3) var(--sp-3);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--t-fast);
    border-radius: var(--radius-sm);
}
.nav-list > li > a::after,
.nav-list > li > button::after {
    content: '';
    position: absolute;
    inset-inline-start: var(--sp-3);
    inset-inline-end: var(--sp-3);
    bottom: 0;
    height: 2px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li.is-open > button { color: var(--burgundy); }
.nav-list > li > a:hover::after,
.nav-list > li > button:hover::after,
.nav-list > li.is-open > button::after { transform: scaleX(1); }

.nav-list .caret { transition: transform var(--t-fast); margin-inline-start: 2px; }
.has-dropdown.is-open .caret { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(60,36,20,0.14);
    list-style: none;
    margin: 8px 0 0; padding: var(--sp-2);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    z-index: 50;
}
.has-dropdown.is-open .dropdown,
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-3);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--t-fast);
}
.dropdown a .icon { color: var(--burgundy); opacity: 0.7; transition: opacity var(--t-fast); }
.dropdown a:hover, .dropdown a:focus {
    background: var(--burgundy-wash);
    color: var(--burgundy);
    padding-inline-start: var(--sp-4);
}
.dropdown a:hover .icon { opacity: 1; }

.nav-search {
    display: flex;
    align-items: center;
    background: var(--ivory);
    border-radius: 999px;
    padding: 4px;
    padding-inline-end: 14px;
    border: 1.5px solid var(--line);
    transition: all var(--t-fast);
}
.nav-search:focus-within {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 4px rgba(122,29,45,0.08);
}
.nav-search input {
    border: none; background: transparent; outline: none;
    width: 140px; padding: var(--sp-2);
    font-size: var(--fs-sm); color: var(--ink);
    transition: width var(--t);
}
.nav-search input:focus { width: 200px; }
.nav-search input::placeholder { color: var(--ink-muted); }
.nav-search button {
    border: none; background: var(--burgundy); cursor: pointer;
    color: var(--ivory);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
}
.nav-search button:hover { background: var(--burgundy-dark); }

/* -------- Footer -------- */
.site-footer {
    margin-top: var(--sp-24);
    background: var(--ink);
    color: var(--cream);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--sp-10);
    padding-block: var(--sp-16) var(--sp-10);
}
.footer-logo {
    background: var(--cream);
    padding: 10px;
    border-radius: var(--radius);
    margin-bottom: var(--sp-4);
    display: inline-block;
}
.footer-logo-video {
    display: block;
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}
.footer-about {
    color: rgba(246, 240, 228, 0.7);
    font-size: var(--fs-sm);
    line-height: 1.9;
    max-width: 28em;
}
.footer-heading {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    color: var(--gold);
    margin-bottom: var(--sp-5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}
.footer-links, .footer-contact {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li, .footer-contact li {
    margin-bottom: var(--sp-3);
    font-size: var(--fs-sm);
    color: rgba(246, 240, 228, 0.7);
}
.footer-contact li {
    display: flex; align-items: center; gap: var(--sp-2);
}
.footer-contact .icon { color: var(--gold); flex-shrink: 0; }
.footer-links a, .footer-contact a { color: rgba(246, 240, 228, 0.85); transition: color var(--t-fast); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }

.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(246, 240, 228, 0.08);
    color: var(--cream);
    text-decoration: none !important;
    transition: all var(--t);
    border: 1px solid rgba(246, 240, 228, 0.12);
}
.social-link:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-3px);
    border-color: var(--gold);
}
.social-link .icon { width: 18px; height: 18px; }

.footer-bar {
    border-top: 1px solid rgba(246, 240, 228, 0.08);
    padding-block: var(--sp-5);
    text-align: center;
    font-size: var(--fs-sm);
    color: rgba(246, 240, 228, 0.5);
}
.footer-bar p { margin: 0; color: inherit; }

/* -------- Animation utilities -------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.65; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-block: var(--sp-4);
        border-top: 1px solid var(--line);
        margin-top: var(--sp-3);
    }
    .primary-nav.is-open { display: flex; animation: fadeUp 300ms var(--ease); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a,
    .nav-list > li > button.nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: var(--sp-3) var(--sp-4);
        border-bottom: 1px solid var(--line-soft);
        font-size: var(--fs-base);
    }
    .nav-list > li > a::after, .nav-list > li > button::after { display: none; }
    .has-dropdown { position: static; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none;
        background: var(--cream-2);
        padding-inline-start: var(--sp-4);
        display: none;
        margin: 0;
        border-radius: 0;
        min-width: 0;
    }
    .has-dropdown.is-open .dropdown { display: block; }
    .nav-search { margin-top: var(--sp-3); width: 100%; }
    .nav-search input { width: 100% !important; }
    .topbar-left { display: none; }
    .brand-tagline { display: none; }
}

@media (max-width: 640px) {
    .topbar { display: none; }
    .brand-logo { height: 48px; }
    .brand-name { font-size: var(--fs-xl); }
}

@media (max-width: 640px) {
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-2xl); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-10) var(--sp-6); }
    .container { padding-inline: var(--sp-4); }
}

/* ────────────── Additional global animations ────────────── */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}
@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes spin360 {
    to { transform: rotate(360deg); }
}

/* Smooth focus-visible everywhere */
:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Hover lift utility for any element */
.hover-lift { transition: transform var(--t), box-shadow var(--t); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Card image zoom on hover already exists; add subtle bg color shift */
.card { transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t); }
.card:hover { background: var(--ivory); }

/* Underline animation for inline links inside articles */
.article-body a {
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: right 100%;
    background-repeat: no-repeat;
    transition: background-size 350ms var(--ease);
    border-bottom: none !important;
}
.article-body a:hover { background-size: 100% 1px; background: transparent; }

/* Section transitions on entering viewport */
.section, .section-sm { scroll-margin-top: 120px; }

/* Smooth scroll for whole page */
html { scroll-behavior: smooth; }

/* Improve mobile tap targets */
@media (max-width: 640px) {
    .btn { min-height: 46px; }
    .btn-sm { min-height: 38px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Arabic typography fix — letter-spacing tears connected glyphs apart.
   The eyebrow/heading classes inherited a Latin "elegant all-caps" look
   with letter-spacing: 2–4px which doesn't work for Arabic. Reset.
   ───────────────────────────────────────────────────────────────────── */
html[lang="ar"] .eyebrow,
html[lang="ar"] .hero-eyebrow,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .section-title,
html[lang="ar"] .footer-heading,
html[lang="ar"] .mini-label,
html[lang="ar"] .stat-label,
html[lang="ar"] .stat-tile .num,
html[lang="ar"] .result-summary h2,
html[lang="ar"] .content-row-meta,
html[lang="ar"] .breadcrumb,
html[lang="ar"] .btn {
    letter-spacing: 0 !important;
}
