/* ==========================================================================
   BASE STYLES — Global element styling, font loading, body defaults
   ========================================================================== */

/* ── Font Loading ────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Lora';
  src: url('../assets/fonts/Lora-VariableFont_wght.woff2') format('woff2-variations'),
       url('../fonts/Lora-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations'),
       url('../fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-optical-sizing: auto;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri Quran';
  src: url('../assets/fonts/AmiriQuran-Regular.woff2') format('woff2'),
       url('../fonts/AmiriQuran-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Body & HTML ─────────────────────────────────────────────────────────── */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg-primary);
}

/* ── Headings ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

/* ── Paragraphs ──────────────────────────────────────────────────────────── */

p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

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

/* Lead paragraph */
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

/* ── Links ───────────────────────────────────────────────────────────────── */

a {
  transition: var(--transition-color);
}

.link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-color);
}

.link:hover {
  color: var(--color-primary-light);
}

/* ── Selections ──────────────────────────────────────────────────────────── */

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-lighter);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ── Focus Styles ────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Horizontal Rule ─────────────────────────────────────────────────────── */

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

/* ── Blockquote ──────────────────────────────────────────────────────────── */

blockquote {
  padding: var(--space-6) var(--space-8);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-secondary);
}

/* ── Quranic Text ────────────────────────────────────────────────────────── */

.quran-text {
  font-family: var(--font-quran);
  font-size: var(--text-2xl);
  line-height: var(--leading-loose);
  direction: rtl;
  text-align: right;
  color: var(--color-primary-dark);
}

/* ── Strong & Emphasis ───────────────────────────────────────────────────── */

strong, b {
  font-weight: var(--weight-semibold);
}

em, i {
  font-style: italic;
}

/* ── Code ────────────────────────────────────────────────────────────────── */

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

/* ── Image ───────────────────────────────────────────────────────────────── */

img {
  border-radius: var(--radius-md);
}

figure {
  margin-bottom: var(--space-6);
}

figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: center;
}

/* ── Lucide Icons (global sizing) ───────────────────────────────────────── */

.logo-mark svg       { width: 22px; height: 22px; stroke-width: 2; }
.dropdown-icon svg   { width: 13px; height: 13px; stroke-width: 2.5; }
.whatsapp-float svg  { width: 28px; height: 28px; }
.back-to-top svg     { width: 20px; height: 20px; }
.faq-icon svg        { width: 18px; height: 18px; stroke-width: 2.5; }
.trust-icon svg      { width: 18px; height: 18px; stroke-width: 2; }
.feature-icon svg    { width: 22px; height: 22px; stroke-width: 2; }
