/* ==========================================================================
   Responsive & Fluid General Styles
   ========================================================================== */


/*------------------------------------*\
  # Box Sizing
\*------------------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
}


/*------------------------------------*\
    # Variables
  \*------------------------------------*/

 :root {
    /* Colors */
    --primary-color: #222;
    --secondary-color: #222;
    --background-color: #f8f8f8;
    --text-color: #333;
    --light-text-color: #555;
    --white-color: #fff;
    --black-color: #000;
    --border-color: #ddd;
    /* Fluid Typography */
    --fs-base: clamp(0.875rem, 1.2vw, 1.125rem);
    --fs-h1: #222;
    --fs-h2: clamp(1.75rem, 4vw, 3rem);
    --fs-h3: clamp(1.25rem, 3vw, 2rem);
    --fs-section-title: #222;
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}


/*------------------------------------*\
    # Base Styles
  \*------------------------------------*/

html {
    font-size: var(--fs-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--bp-xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}


/*------------------------------------*\
    # Typography
  \*------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--space-md);
    font-weight: 700;
    color: var(--secondary-color);
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.3;
}

.section-title {
    font-size: var(--fs-section-title);
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    text-align: center;
}

p {
    font-size: var(--fs-base);
    margin-bottom: var(--space-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}


/*------------------------------------*\
    # Images & Media
  \*------------------------------------*/

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


/*------------------------------------*\
    # Utility Classes
  \*------------------------------------*/

.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}


/*------------------------------------*\
    # Responsive Utilities
  \*------------------------------------*/

@media (max-width: var(--bp-md)) {
    .section-title {
        text-align: left;
    }
}

@media (max-width: var(--bp-sm)) {
    main {
        padding: 0 var(--space-sm);
    }
}