/* Tajawal */
@font-face {
    font-display: swap;
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/tajawal-v11-arabic_latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/tajawal-v11-arabic_latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/tajawal-v11-arabic_latin-700.woff2') format('woff2');
}

/* Cairo */
@font-face {
    font-display: swap;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cairo-v30-arabic_latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/cairo-v30-arabic_latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/cairo-v30-arabic_latin-700.woff2') format('woff2');
}

/* Base font */
html,
body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* SEO-Friendly Heading Hierarchy */
h1 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

h5 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6 {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Mobile-first responsive headings */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    h5 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    h6 {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h5 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    h6 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}

/* Mobile-optimized text sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.4;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 1.3;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1.2;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

/* Mobile responsive text adjustments */
@media (max-width: 640px) {
    .text-2xl {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    .text-3xl {
        font-size: 1.625rem;
        line-height: 1.3;
    }

    .text-4xl {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .text-5xl {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .text-6xl {
        font-size: 2.75rem;
        line-height: 1.1;
    }
}

/* Optional helper to use Tajawal when needed */
.font-tajawal {
    font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Font weight utilities */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Line height utilities */
.leading-tight {
    line-height: 1.25;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}