/**
 * ═══════════════════════════════════════════════════════════
 * 🎨 SHROOQ DESIGN SYSTEM — Single Source of Truth
 * ═══════════════════════════════════════════════════════════
 *
 * This file contains ALL shared design tokens, animations,
 * and component styles for the entire Shrooq Al-Anwar website.
 *
 * RULES:
 * 1. NO hardcoded colors — always use var(--shrooq-*)
 * 2. NO page-specific prefixes — use shrooq-* only
 * 3. ALL hover/transition/shadow values come from here
 * 4. ALL @keyframes defined here — nowhere else
 *
 * @package Shrooq
 * @version 2.0.0
 */

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS — Colors
   ═══════════════════════════════════════════ */

:root {
    /* ─── Brand Colors ─── */
    --shrooq-primary: #f97316;
    --shrooq-primary-light: #fb923c;
    --shrooq-primary-dark: #ea580c;
    --shrooq-primary-rgb: 249, 115, 22;
    --shrooq-primary-50: rgba(249, 115, 22, 0.05);
    --shrooq-primary-10: rgba(249, 115, 22, 0.1);
    --shrooq-primary-15: rgba(249, 115, 22, 0.15);
    --shrooq-primary-20: rgba(249, 115, 22, 0.2);
    --shrooq-primary-30: rgba(249, 115, 22, 0.3);

    --shrooq-secondary: #0c1929;
    --shrooq-secondary-light: #1e3a5f;
    --shrooq-secondary-rgb: 12, 25, 41;
    --shrooq-secondary-50: rgba(12, 25, 41, 0.5);
    --shrooq-secondary-80: rgba(12, 25, 41, 0.8);
    --shrooq-secondary-90: rgba(12, 25, 41, 0.9);

    --shrooq-accent: #22c55e;

    /* ─── Status Colors ─── */
    --shrooq-error: #ef4444;
    --shrooq-error-rgb: 239, 68, 68;
    --shrooq-success: #22c55e;
    --shrooq-success-rgb: 34, 197, 94;
    --shrooq-warning: #fb923c;

    /* ─── Semantic Colors (Light Mode) ─── */
    --shrooq-bg: #ffffff;
    --shrooq-bg-alt: #f8fafc;
    --shrooq-bg-card: #ffffff;
    --shrooq-text: #374151;
    --shrooq-text-heading: #0c1929;
    --shrooq-text-light: #64748b;
    --shrooq-text-muted: #94a3b8;
    --shrooq-border: rgba(0, 0, 0, 0.06);
    --shrooq-border-light: #f1f5f9;

    /* ─── Typography ─── */
    --font-family-en: 'Cairo', sans-serif;

    /* ─── Green (Sustainability only) ─── */
    --shrooq-green: #22c55e;
    --shrooq-green-dark: #16a34a;
    --shrooq-green-10: rgba(34, 197, 94, 0.1);
    --shrooq-green-20: rgba(34, 197, 94, 0.2);
}

/* ═══════════════════════════════════════════
   1a. LANGUAGE-SPECIFIC Font
   ═══════════════════════════════════════════ */

body.ltr,
body.lang-en {
    --font-family: var(--font-family-en);
}

/* ═══════════════════════════════════════════
   1b. DARK MODE Colors
   ═══════════════════════════════════════════ */

[data-theme="dark"] {
    --shrooq-bg: #0f172a;
    --shrooq-bg-alt: #1e293b;
    --shrooq-bg-card: #1e293b;
    --shrooq-text: #e2e8f0;
    --shrooq-text-heading: #f1f5f9;
    --shrooq-text-light: #94a3b8;
    --shrooq-text-muted: #64748b;
    --shrooq-border: rgba(255, 255, 255, 0.08);
    --shrooq-border-light: #1e293b;
}


/* ═══════════════════════════════════════════
   2. DESIGN TOKENS — Typography Weights
   ═══════════════════════════════════════════ */

:root {
    --heading-weight: 800;
    --body-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--heading-weight);
}

body {
    font-weight: var(--body-weight);
}


/* ═══════════════════════════════════════════
   2b. DESIGN TOKENS — Motion & Spacing
   ═══════════════════════════════════════════ */

:root {
    /* ─── Transitions ─── */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* ─── Hover Transforms ─── */
    --hover-lift: translateY(-5px);
    --hover-lift-sm: translateY(-3px);
    --hover-lift-lg: translateY(-8px);
    --hover-scale: scale(1.03);
    --hover-scale-sm: scale(1.02);
    --hover-scale-lg: scale(1.05);

    /* ─── Shadows ─── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-base: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 25px rgba(249, 115, 22, 0.25);
    --shadow-primary-lg: 0 15px 35px rgba(249, 115, 22, 0.3);

    /* ─── Border Radius ─── */
    --radius-sm: 8px;
    --radius-base: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --radius-circle: 50%;

    /* ─── Section Spacing ─── */
    --section-py: 100px;
    --section-py-mobile: 60px;
    --section-py-sm: 80px;
    --section-py-lg: 120px;

    /* ─── Icon Sizes ─── */
    --icon-sm: 32px;
    --icon-base: 40px;
    --icon-md: 48px;
    --icon-lg: 56px;
    --icon-xl: 64px;
    --icon-2xl: 72px;
}

/* Responsive section padding - override variables on mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 60px;
        --section-py-sm: 50px;
        --section-py-lg: 80px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-py: 48px;
        --section-py-sm: 40px;
        --section-py-lg: 60px;
    }
}


/* ═══════════════════════════════════════════
   3. UNIFIED KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes shrooq-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shrooq-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shrooq-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--shrooq-primary-rgb), 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(var(--shrooq-primary-rgb), 0); }
}

@keyframes shrooq-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shrooq-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shrooq-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shrooq-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes shrooq-ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes shrooq-count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shrooq-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shrooq-border-glow {
    0%, 100% { border-color: rgba(var(--shrooq-primary-rgb), 0.2); }
    50% { border-color: rgba(var(--shrooq-primary-rgb), 0.5); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* AOS elements — show immediately */
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Decorative looping animations */
    .page-hero-particle,
    .shrooq-section-badge::after {
        animation: none !important;
        animation-delay: 0s !important;
    }

    /* Smooth scroll fallback */
    html {
        scroll-behavior: auto !important;
    }
}


/* ═══════════════════════════════════════════
   4. SHARED CARD COMPONENTS
   ═══════════════════════════════════════════ */

/* Standard card */
.shrooq-card {
    border-radius: var(--radius-md);
    background: var(--shrooq-bg-card);
    box-shadow: var(--shadow-base);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}
@media (hover: hover) {
    .shrooq-card:hover {
        transform: var(--hover-lift);
        box-shadow: var(--shadow-lg);
    }
}

/* Featured card (larger lift) */
.shrooq-card-featured {
    border-radius: var(--radius-lg);
    background: var(--shrooq-bg-card);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}
@media (hover: hover) {
    .shrooq-card-featured:hover {
        transform: var(--hover-lift-lg);
        box-shadow: var(--shadow-xl);
    }
}

/* Card with orange top border accent */
.shrooq-card-accent {
    border-top: 3px solid transparent;
    transition: border-color var(--transition-base), transform var(--transition-slow), box-shadow var(--transition-slow);
}
.shrooq-card-accent:hover {
    border-top-color: var(--shrooq-primary);
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

/* Image zoom on hover */
.shrooq-img-zoom {
    overflow: hidden;
    border-radius: var(--radius-base);
}
.shrooq-img-zoom img {
    transition: transform var(--transition-slow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shrooq-img-zoom:hover img {
    transform: var(--hover-scale);
}


/* ═══════════════════════════════════════════
   5. UNIFIED BUTTONS
   ═══════════════════════════════════════════ */

.shrooq-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

/* Primary — Orange filled */
.shrooq-btn-primary {
    padding: 16px 36px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--shrooq-primary), var(--shrooq-primary-dark));
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.shrooq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    background: linear-gradient(135deg, var(--shrooq-primary-light), var(--shrooq-primary));
    color: #fff;
}

/* Secondary — Outlined */
.shrooq-btn-secondary {
    padding: 14px 32px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--shrooq-primary);
    border: 2px solid var(--shrooq-primary);
}
.shrooq-btn-secondary:hover {
    background: var(--shrooq-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Ghost — White on dark backgrounds */
.shrooq-btn-ghost {
    padding: 14px 32px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.shrooq-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Size variants */
.shrooq-btn-lg {
    padding: 18px 42px;
    font-size: 1rem;
}
.shrooq-btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Arrow animation */
.shrooq-btn i,
.shrooq-btn .btn-arrow {
    transition: transform var(--transition-base);
}
.shrooq-btn:hover i,
.shrooq-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* RTL: move icon to start (right side in Arabic) */
[dir="rtl"] .shrooq-btn i,
[dir="rtl"] .shrooq-btn .btn-arrow {
    order: -1;
}
[dir="rtl"] .shrooq-btn:hover i,
[dir="rtl"] .shrooq-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* ── RTL Icon Flips ── */
/* Paper-plane: flip horizontally for RTL send direction */
[dir="rtl"] .fa-paper-plane,
body.rtl .fa-paper-plane {
    transform: scaleX(-1);
}
[dir="rtl"] .shrooq-btn:hover .fa-paper-plane,
body.rtl .shrooq-btn:hover .fa-paper-plane {
    transform: scaleX(-1) translateX(4px);
}

/* Phone: flip horizontally for RTL */
[dir="rtl"] .fa-phone,
body.rtl .fa-phone {
    transform: scaleX(-1);
}
[dir="rtl"] .shrooq-btn:hover .fa-phone,
body.rtl .shrooq-btn:hover .fa-phone {
    transform: scaleX(-1) translateX(-4px);
}

/* Phone-volume: flip horizontally for RTL */
[dir="rtl"] .fa-phone-volume,
body.rtl .fa-phone-volume {
    transform: scaleX(-1);
}
[dir="rtl"] .shrooq-btn:hover .fa-phone-volume,
body.rtl .shrooq-btn:hover .fa-phone-volume {
    transform: scaleX(-1) translateX(-4px);
}


/* ═══════════════════════════════════════════
   6. UNIFIED SECTION HEADERS
   ═══════════════════════════════════════════ */

.shrooq-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.shrooq-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--shrooq-primary-10);
    border: 1px solid var(--shrooq-primary-20);
    border-radius: var(--radius-full);
    color: var(--shrooq-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Shine animation on badge */
.shrooq-section-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--shrooq-primary-rgb), 0.15), transparent);
    animation: shrooq-shine 4s ease-in-out infinite;
}

.shrooq-section-badge i {
    font-size: 0.8rem;
}

.shrooq-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--shrooq-text-heading);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Orange gradient span in title */
.shrooq-section-title span {
    background: linear-gradient(135deg, var(--shrooq-primary), var(--shrooq-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shrooq-section-desc {
    font-size: 1.05rem;
    color: var(--shrooq-text-light);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Decorative line under title */
.shrooq-section-header .shrooq-title-line {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--shrooq-primary), var(--shrooq-primary-light));
    margin: 16px auto 20px;
    border-radius: 2px;
}

/* On dark section backgrounds */
.shrooq-section-header.on-dark .shrooq-section-badge {
    background: rgba(var(--shrooq-primary-rgb), 0.15);
    border-color: rgba(var(--shrooq-primary-rgb), 0.3);
}
.shrooq-section-header.on-dark .shrooq-section-title {
    color: #ffffff;
}
.shrooq-section-header.on-dark .shrooq-section-title span {
    -webkit-text-fill-color: var(--shrooq-primary);
    background: none;
}
.shrooq-section-header.on-dark .shrooq-section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark mode support */
[data-theme="dark"] .shrooq-section-badge {
    background: rgba(var(--shrooq-primary-rgb), 0.15);
    border-color: rgba(var(--shrooq-primary-rgb), 0.25);
}
[data-theme="dark"] .shrooq-section-title {
    color: var(--shrooq-text-heading);
}
[data-theme="dark"] .shrooq-section-desc {
    color: var(--shrooq-text-light);
}


/* ═══════════════════════════════════════════
   7. UNIFIED CTA SECTION
   ═══════════════════════════════════════════ */

.shrooq-cta-section {
    position: relative;
    padding: 100px 0 110px;
    overflow: hidden;
    text-align: center;
}

/* Dawn gradient background — exact page-hero replica */
.shrooq-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        #0a1628 0%,
        #0f1d30 20%,
        #1a2d45 40%,
        #2d3f54 60%,
        #3d4f63 75%,
        #4a5a6b 85%,
        #5a6a78 92%,
        #6b7a85 100%
    );
    z-index: 0;
}

/* Dawn glow — same as page-hero::before */
.shrooq-cta-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(249, 115, 22, 0.03) 30%,
        rgba(251, 146, 60, 0.06) 50%,
        rgba(253, 186, 116, 0.08) 70%,
        rgba(254, 215, 170, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Subtle light rays — same as page-hero::after */
.shrooq-cta-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 50%;
    background: radial-gradient(ellipse at bottom center,
        rgba(251, 146, 60, 0.08) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

/* Pattern inside CTA — same as page-hero-pattern */
.shrooq-cta-section .page-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}

/* CTA Badge — same as page-hero breadcrumbs pill */
.shrooq-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.shrooq-cta-badge i {
    font-size: 0.8rem;
    color: #f97316;
}
.shrooq-cta-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--shrooq-primary-rgb), 0.15), transparent);
    animation: shrooq-shine 3s ease-in-out infinite;
}

/* Content wrapper */
.shrooq-cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title — same size/weight as page-hero-title */
.shrooq-cta-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.shrooq-cta-title span {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description — same as page-hero-desc */
.shrooq-cta-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.shrooq-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CTA on mobile ── */
@media (max-width: 768px) {
    .shrooq-cta-section {
        padding: 70px 0 80px;
    }
    .shrooq-cta-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    .shrooq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .shrooq-cta-buttons .shrooq-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .shrooq-cta-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    .shrooq-cta-desc {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ── CTA Green variant (sustainability) ── */
.shrooq-cta-section.shrooq-cta-green .shrooq-cta-bg {
    background: linear-gradient(135deg, var(--shrooq-secondary) 0%, #0a2e1a 50%, var(--shrooq-secondary) 100%);
}
.shrooq-cta-section.shrooq-cta-green .shrooq-cta-bg::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(22, 163, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(var(--shrooq-primary-rgb), 0.1) 0%, transparent 40%);
}
.shrooq-cta-section.shrooq-cta-green .shrooq-cta-bg::after {
    background: radial-gradient(ellipse at center bottom, rgba(34, 197, 94, 0.08), transparent 60%);
}
.shrooq-cta-section.shrooq-cta-green .shrooq-cta-badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
    color: #22c55e;
}
.shrooq-cta-section.shrooq-cta-green .shrooq-cta-title span {
    color: #22c55e;
}


/* ═══════════════════════════════════════════
   8. UNIFIED SECTION SPACING
   ═══════════════════════════════════════════ */

.shrooq-section {
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}
.shrooq-section-compact {
    padding: var(--section-py-sm) 0;
}
.shrooq-section-hero {
    padding: var(--section-py-lg) 0;
}

@media (max-width: 768px) {
    .shrooq-section {
        padding: var(--section-py-mobile) 0;
    }
    .shrooq-section-compact {
        padding: 50px 0;
    }
    .shrooq-section-hero {
        padding: 80px 0;
    }
}

/* Background alternation */
.shrooq-section-white { background: var(--shrooq-bg); }
.shrooq-section-gray  { background: var(--shrooq-bg-alt); }
.shrooq-section-dark  { background: var(--shrooq-secondary); color: #fff; }


/* ═══════════════════════════════════════════
   9. UNIFIED ICON CONTAINERS
   ═══════════════════════════════════════════ */

.shrooq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--shrooq-primary), var(--shrooq-primary-dark));
    color: #fff;
    border-radius: var(--radius-base);
    transition: transform var(--transition-base);
}
.shrooq-icon-sm   { width: var(--icon-sm);   height: var(--icon-sm);   font-size: 14px; }
.shrooq-icon-base { width: var(--icon-base); height: var(--icon-base); font-size: 16px; }
.shrooq-icon-md   { width: var(--icon-md);   height: var(--icon-md);   font-size: 20px; }
.shrooq-icon-lg   { width: var(--icon-lg);   height: var(--icon-lg);   font-size: 22px; }
.shrooq-icon-xl   { width: var(--icon-xl);   height: var(--icon-xl);   font-size: 26px; }

/* Light variant (light bg, orange icon) */
.shrooq-icon-light {
    background: var(--shrooq-primary-10);
    color: var(--shrooq-primary);
}


/* ═══════════════════════════════════════════
   10. DECORATIVE ELEMENTS
   ═══════════════════════════════════════════ */

/* Background blob */
.shrooq-deco-blob::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--shrooq-primary-50), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Dot grid */
.shrooq-deco-dots::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Grain texture overlay */
.shrooq-deco-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}


/* ═══════════════════════════════════════════
   11. UTILITY CLASSES
   ═══════════════════════════════════════════ */

/* Container (matches Tailwind's max-w-7xl) */
.shrooq-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .shrooq-container {
        padding: 0 16px;
    }
}

/* Separator line */
.shrooq-separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--shrooq-primary), var(--shrooq-primary-light));
    border-radius: 2px;
    margin: 16px auto;
}

/* Screen reader only */
.shrooq-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 Link — visible on :focus for keyboard users (WCAG A) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: var(--shrooq-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: -2px;
}


/* ═══════════════════════════════════════════
   12. TAILWIND DARK: POLYFILLS
   ═══════════════════════════════════════════
   Since Tailwind CSS is not compiled, these rules
   replicate every dark: class used across templates
   using [data-theme="dark"] selector.
   ═══════════════════════════════════════════ */

/* ── Text Colors ── */
[data-theme="dark"] .dark\:text-white { color: #ffffff; }
[data-theme="dark"] .dark\:text-gray-200 { color: #e5e7eb; }
[data-theme="dark"] .dark\:text-gray-300 { color: #d1d5db; }
[data-theme="dark"] .dark\:text-gray-400 { color: #9ca3af; }
[data-theme="dark"] .dark\:text-green-400 { color: #22c55e; }
[data-theme="dark"] .dark\:text-yellow-400 { color: #fb923c; }
[data-theme="dark"] .dark\:text-\[\#1e293b\] { color: #1e293b; }

/* ── Background Colors ── */
[data-theme="dark"] .dark\:bg-slate-600 { background-color: #475569; }
[data-theme="dark"] .dark\:bg-slate-700 { background-color: #334155; }
[data-theme="dark"] .dark\:bg-slate-800 { background-color: #1e293b; }
[data-theme="dark"] .dark\:bg-slate-900 { background-color: #0f172a; }
[data-theme="dark"] .dark\:bg-primary-800\/30 { background-color: rgba(234, 88, 12, 0.3); }
[data-theme="dark"] .dark\:bg-green-900\/30 { background-color: rgba(22, 163, 74, 0.3); }
[data-theme="dark"] .dark\:bg-yellow-900\/30 { background-color: rgba(234, 88, 12, 0.3); }

/* ── Border Colors ── */
[data-theme="dark"] .dark\:border-slate-600 { border-color: #475569; }
[data-theme="dark"] .dark\:border-slate-700 { border-color: #334155; }

/* ── Fill (SVG) ── */
[data-theme="dark"] .dark\:fill-slate-900 { fill: #0f172a; }

/* ── Gradient Stops ── */
[data-theme="dark"] .dark\:from-primary-900\/20 { --tw-gradient-from: rgba(124, 45, 18, 0.2); --tw-gradient-to: rgba(124, 45, 18, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
[data-theme="dark"] .dark\:to-accent-900\/20 { --tw-gradient-to: rgba(124, 45, 18, 0.2); }

/* ── Hover States ── */
[data-theme="dark"] .dark\:hover\:bg-slate-700:hover { background-color: #334155; }
[data-theme="dark"] .dark\:hover\:bg-primary-900\/20:hover { background-color: rgba(124, 45, 18, 0.2); }
[data-theme="dark"] .dark\:hover\:text-primary-400:hover { color: #fb923c; }

/* ── Prose Invert (Typography plugin) ── */
[data-theme="dark"] .dark\:prose-invert {
    color: #d1d5db;
}
[data-theme="dark"] .dark\:prose-invert h1,
[data-theme="dark"] .dark\:prose-invert h2,
[data-theme="dark"] .dark\:prose-invert h3,
[data-theme="dark"] .dark\:prose-invert h4,
[data-theme="dark"] .dark\:prose-invert h5,
[data-theme="dark"] .dark\:prose-invert h6,
[data-theme="dark"] .dark\:prose-invert strong,
[data-theme="dark"] .dark\:prose-invert thead th {
    color: #ffffff;
}
[data-theme="dark"] .dark\:prose-invert a {
    color: var(--shrooq-primary);
}
[data-theme="dark"] .dark\:prose-invert blockquote {
    color: #9ca3af;
    border-color: #475569;
}
[data-theme="dark"] .dark\:prose-invert code {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}
[data-theme="dark"] .dark\:prose-invert pre {
    background: #1e293b;
    border: 1px solid #334155;
}
[data-theme="dark"] .dark\:prose-invert hr {
    border-color: #334155;
}
[data-theme="dark"] .dark\:prose-invert li::marker {
    color: #9ca3af;
}


/* ═══════════════════════════════════════════════════
   13. STATUS & ACCENT UTILITY CLASSES
   ═══════════════════════════════════════════════════ */

/* ── Text Colors ── */
.text-error   { color: var(--shrooq-error)   !important; }
.text-success { color: var(--shrooq-success) !important; }
.text-warning { color: var(--shrooq-warning) !important; }
.text-accent  { color: var(--shrooq-accent)  !important; }

/* ── Background Colors ── */
.bg-error   { background-color: var(--shrooq-error)   !important; }
.bg-success { background-color: var(--shrooq-success) !important; }
.bg-warning { background-color: var(--shrooq-warning) !important; }
.bg-accent  { background-color: var(--shrooq-accent)  !important; }

/* ── Soft Backgrounds (10% opacity) ── */
.bg-error-soft   { background: rgba(var(--shrooq-error-rgb),   0.1) !important; }
.bg-success-soft { background: rgba(var(--shrooq-success-rgb), 0.1) !important; }

/* ── Border Colors ── */
.border-error   { border-color: var(--shrooq-error)   !important; }
.border-success { border-color: var(--shrooq-success) !important; }
.border-warning { border-color: var(--shrooq-warning) !important; }
.border-accent  { border-color: var(--shrooq-accent)  !important; }
