/* =====================================================================
   VARIABLES  |  الألوان والخطوط والأحجام  ← أهم ملف لتغيير شكل الموقع
   ---------------------------------------------------------------------
   Change a value here and it updates everywhere on the site.
   غيّر أي قيمة هنا والتغيير يظهر في الموقع كله.

   Colors are written as #RRGGBB. Use any "color picker" site to get one.
   ===================================================================== */

:root {

  /* ---------- Brand colors | ألوان الهوية (ثابتة في الوضعين) ---------- */
  --primary: #C41E1E;        /* main buttons, logo word, ribbon */
  --accent: #8C1414;         /* accent buttons, tags, promo bar, ticks */
  --on-brand: #FFFFFF;       /* text on top of the brand colors */
  --whatsapp: #25D366;       /* floating WhatsApp button */

  /* ---------- Light mode | الوضع الفاتح ---------- */
  --bg: #F5F5F5;             /* page background */
  --card: #FFFFFF;           /* cards and header background */
  --ink: #0D0D0D;            /* main text */
  --mute: #666666;           /* secondary (grey) text */
  --line: #E0E0E0;           /* borders */
  --hero: #0D0D0D;           /* big dark box on the home page */

  /* ---------- Dark mode | الوضع الداكن ---------- */
  --dark-bg: #0A0A0A;
  --dark-card: #161616;
  --dark-ink: #F5F5F5;
  --dark-mute: #A6A6A6;
  --dark-line: #2E2E2E;
  --dark-hero: #000000;

  /* ---------- Text on the dark hero / photos ---------- */
  --on-dark: #FFFFFF;
  --on-dark-mute: #CFCFCF;

  /* ---------- Fonts | الخطوط ----------
     If you change a font, also change the Google Fonts <link> in index.html */
  --font-body: Barlow, system-ui, sans-serif;
  --font-heading: "Barlow Condensed", Impact, sans-serif;
  --font-size-body: 17px;

  /* ---------- Corner roundness | استدارة الحواف ---------- */
  --radius-sm: 12px;         /* buttons, inputs */
  --radius-md: 16px;         /* photos, small boxes */
  --radius-lg: 18px;         /* cards */
  --radius-xl: 22px;         /* big cards, coach photo */
  --radius-hero: 28px;       /* hero box */
  --radius-pill: 99px;       /* chips, tags, menu items */

  /* ---------- Layout | المقاسات ---------- */
  --page-width: 1100px;      /* max width of the content */
  --form-width: 560px;       /* max width of forms */
  --coach-photo-width: 300px;
}

/* ---------------------------------------------------------------------
   Dark mode switching  |  تبديل الوضع الداكن  (don't edit this part)
   The dark values above are applied either when the visitor taps the
   moon button, or automatically if their phone is set to dark mode.
   --------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: var(--dark-bg);
  --card: var(--dark-card);
  --ink: var(--dark-ink);
  --mute: var(--dark-mute);
  --line: var(--dark-line);
  --hero: var(--dark-hero);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--dark-bg);
    --card: var(--dark-card);
    --ink: var(--dark-ink);
    --mute: var(--dark-mute);
    --line: var(--dark-line);
    --hero: var(--dark-hero);
  }
}
