/* ============================================
   Qolivera — Base Styles + RTL Reset
   ============================================ */

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

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- LTR override for English text ---- */
.ltr-text {
  direction: ltr;
  font-family: var(--font-english);
  unicode-bidi: embed;
}
.ltr-inline {
  direction: ltr;
  display: inline-block;
  font-family: var(--font-english);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  color: var(--body-text);
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange-hover); }

ul { list-style: none; }

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

/* ---- Lucide icons ---- */
/* Placeholder before the library swaps it for an <svg> — keeps layout from jumping. */
[data-lucide] {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
}
svg.lucide {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---- Section spacing ---- */
.section {
  padding-block: var(--section-py);
}
.section--gray {
  background-color: var(--off-white);
}
.section--card {
  background-color: var(--card-bg);
}
.section--navy {
  background-color: var(--navy);
}

/* ---- Section header ---- */
.section-header {
  margin-bottom: 56px;
}
.section-header .section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 8px;
}
.section-header .section-subtitle {
  font-family: var(--font-english);
  font-style: italic;
  color: var(--gray);
  font-size: 1rem;
  direction: ltr;
}
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin-top: 12px;
}

/* ---- Divider ---- */
.divider-orange {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin-top: 16px;
  border-radius: 2px;
}

/* ---- Utility ---- */
.text-orange  { color: var(--orange); }
.text-navy    { color: var(--navy); }
.text-gray    { color: var(--gray); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.text-start   { text-align: start; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ---- Responsive grid helpers ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
