/* Google Fonts: Urbanist for English */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* Arabic Primary: Lama Rounded (Self-hosted official OTF files) */
@font-face {
  font-family: 'Lama Rounded';
  src: url('../assets/fonts/LamaRounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Rounded';
  src: url('../assets/fonts/LamaRounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Rounded';
  src: url('../assets/fonts/LamaRounded-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Rounded';
  src: url('../assets/fonts/LamaRounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Rounded Expanded';
  src: url('../assets/fonts/LamaRounded-BoldExpanded.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base Language Specific Typographic Defaults */
html[lang="ar"],
html[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[lang="en"],
html[dir="ltr"] {
  font-family: var(--font-english);
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem); /* 32px to 48px */
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw + 1rem, 2.35rem); /* 26px to 38px */
  line-height: 1.32;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem); /* 20px to 24px */
  line-height: 1.4;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.45;
}

p {
  margin: 0 0 1rem 0;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.2rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

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

.text-xs {
  font-size: 0.775rem;
  line-height: 1.4;
}

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

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

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

.font-expanded {
  font-family: var(--font-display);
}
