/*
Theme Name: Alsharidah Child
Theme URI: https://alsharidah5.com
Description: Child theme متاع GeneratePress لموقع مكتب الشريدة للمحاماة
Author: Zeidy SEO
Template: generatepress
Version: 1.0.0
Text Domain: alsharidah-child
*/

/* ==========================================================================
   1. Variables — couleurs de la charte (extraites de src/styles/theme.css)
   ========================================================================== */

:root {
  --brand-navy: #0f2957;
  --brand-navy-dark: #071630;
  --brand-navy-light: #1d4ed8;
  --brand-green: #4caf50;
  --brand-green-dark: #388e3c;
  --brand-green-light: #81c784;
  --brand-ink: #0a0d14;
  --brand-cream: #f0f2f5;
  --card: #ffffff;
  --muted-foreground: #4b5873;
  --secondary: #e8eaee;
  --input-background: #eaecf0;
  --border: rgba(15, 41, 87, 0.1);
  --radius: 1rem;

  --font-arabic: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-english: 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ==========================================================================
   2. Polices locales
   ========================================================================== */

/* ---------- IBM Plex Sans Arabic ---------- */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
}

/* ---------- IBM Plex Sans (Latin) ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSans-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/uploads/fonts/IBMPlexSans-Bold.woff2') format('woff2');
}

/* ==========================================================================
   3. Typographie
   ========================================================================== */

/* ---------- Application des polices ---------- */
html {
  font-size: 16px;
}

/* font-size : GeneratePress pose `body, button, input, select, textarea
   { font-size: 17px }`. Le source hérite de html (16px) : tout élément
   sans taille propre prenait 1px de trop (pied de page : 46px entre
   deux liens au lieu de 44). */
html body {
  font-family: var(--font-arabic);
  font-feature-settings: "ss01" on, "ss02" on;
  font-size: 16px;
  line-height: 2;
}

html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="ltr"] body { font-family: var(--font-english); }

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

/* ---------- Échelle typographique (desktop) ---------- */
h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

p {
  font-size: 1.05rem;
  line-height: 2.1;
}

label {
  font-size: 0.95rem;
  font-weight: 500;
}

button {
  font-weight: 600;
}

/* ---------- Échelle typographique (mobile) ---------- */
@media (max-width: 767px) {
  h1 {
    font-size: clamp(1.85rem, 6vw, 2.5rem) !important;
    line-height: 1.5 !important;
  }
  h2 {
    font-size: clamp(1.45rem, 5vw, 1.95rem) !important;
    line-height: 1.5 !important;
  }
  h3 {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
  }
  p {
    line-height: 2 !important;
  }
}

/* ---------- Suppression globale des ombres ---------- */
*, *::before, *::after {
  box-shadow: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand-green) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* ---------- RTL ---------- */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] span,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] button {
  letter-spacing: normal !important;
}

/* ---------- Sélection ---------- */
::selection {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--brand-navy);
}
