/* Import Inter font family */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Font Families */
:root {
    --font-brand: "Arial Rounded MT Bold", "Arial", system-ui;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-arabic: "Tajawal", "Noto Kufi Arabic", "Noto Naskh Arabic", Arial, sans-serif;

    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Font Sizes - Desktop */
    --fs-h1: 3rem;          /* 48px */
    --fs-h2: 2rem;          /* 32px */
    --fs-h3: 1.5rem;        /* 24px */
    --fs-body: 1rem;        /* 16px */
    --fs-small: 0.9rem;   /* 14px */

    /* Line Heights */
    --lh-heading: 1.2;
    --lh-body: 1.5;
}

/* Responsive Font Sizes */
@media screen and (max-width: 768px) {
    :root {
        --fs-h1: 2.25rem;    /* 36px */
        --fs-h2: 1.625rem;   /* 26px */
        --fs-h3: 1.25rem;    /* 20px */
        --fs-body: 0.9375rem; /* 15px */
        /* Small text remains the same size on mobile */
    }
}

/* Typography Utility Classes */
/* Heading and body font classes */
.font-brand {
    font-family: var(--font-brand);
}
.font-body {
    font-family: var(--font-body);
}
html[dir="rtl"] .font-brand,
html[dir="rtl"] .font-body {
    font-family: var(--font-arabic);
}

/* Heading Styles */
/* Headings use brand font, but switch to Tajawal for RTL */
h1, .h1 {
    font-family: var(--font-brand);
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
}
h2, .h2 {
    font-family: var(--font-brand);
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
}
h3, .h3 {
    font-family: var(--font-brand);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
}
html[dir="rtl"] h1,
html[dir="rtl"] .h1,
html[dir="rtl"] h2,
html[dir="rtl"] .h2,
html[dir="rtl"] h3,
html[dir="rtl"] .h3 {
    font-family: var(--font-arabic);
}

/* Body Text Styles */
body, p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: var(--fw-regular);
}
html[dir="rtl"] body,
html[dir="rtl"] p {
    font-family: var(--font-arabic);
}

.small {
    font-size: var(--fs-small);
}

/* Font Weight Utilities */
.font-regular {
    font-weight: var(--fw-regular);
}

.font-medium {
    font-weight: var(--fw-medium);
}

.font-semibold {
    font-weight: var(--fw-semibold);
}

.font-bold {
    font-weight: var(--fw-bold);
}

/* Component-specific styles */
.button, .label {
    font-family: var(--font-brand);
    font-weight: var(--fw-bold);
}
