/* ============================================================
   Up Me Up Dental — Design Tokens
   Single source of truth: palette, type, spacing, radii, shadows, motion.
   ============================================================ */

/* --- Webfonts: Tajawal (AR, Masri substitute) + Manrope (EN) -- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ------------------------------------------------------------
     PALETTE
     ------------------------------------------------------------ */
  --sage:        #F6F1E7;   /* dominant surface — warm paper */
  --sage-deep:   #EFE7D7;   /* one shade deeper for layered surfaces */
  --mist:        #E8DFCB;   /* card / divider tone */
  --forest:      #0F5B4E;   /* primary brand color */
  --forest-deep: #0B473D;   /* hover / pressed forest */
  --forest-soft: #1A6B5E;   /* lighter forest for accents */
  --gold:        #C9A86A;   /* editorial accent — used sparingly */
  --gold-deep:   #A8884D;
  --ink:         #1A1A1A;   /* body text — not pure black */
  --ink-soft:    #4A4A48;   /* secondary text */
  --ink-mute:    #7A776E;   /* tertiary text, captions */
  --line:        #D9CFB8;   /* divider hairline */

  /* Semantic */
  --bg:          var(--sage);
  --bg-alt:      var(--sage-deep);
  --surface:     var(--mist);
  --fg:          var(--ink);
  --fg-2:        var(--ink-soft);
  --fg-3:        var(--ink-mute);
  --accent:      var(--forest);
  --accent-2:    var(--gold);

  /* ------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------ */
  --font-display-ar: 'Tajawal', system-ui, sans-serif;     /* substitute for Masri */
  --font-body-ar:    'Tajawal', system-ui, sans-serif;
  --font-display-en: 'Manrope', system-ui, sans-serif;
  --font-body-en:    'Manrope', system-ui, sans-serif;

  /* Scale */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  36px;
  --fs-3xl:  48px;
  --fs-4xl:  64px;
  --fs-5xl:  88px;
  --fs-display: 112px;

  /* Line height */
  --lh-tight:  1.05;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* Tracking */
  --track-tight: -0.03em;   /* large EN display */
  --track-normal: 0;
  --track-wide:  0.04em;    /* small caps, eyebrows */

  /* ------------------------------------------------------------
     SPACING (8pt grid)
     ------------------------------------------------------------ */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 96px;
  --s-13: 128px;
  --s-14: 160px;

  /* ------------------------------------------------------------
     RADII
     ------------------------------------------------------------ */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ------------------------------------------------------------
     SHADOWS
     ------------------------------------------------------------ */
  --shadow-1: 0 1px 2px rgba(15, 91, 78, 0.06), 0 4px 12px rgba(15, 91, 78, 0.04);
  --shadow-2: 0 4px 8px rgba(15, 91, 78, 0.08), 0 16px 32px rgba(15, 91, 78, 0.08);

  /* ------------------------------------------------------------
     MOTION
     ------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 600ms;
  --dur-hero: 900ms;

  /* ------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------ */
  --container: 1240px;
  --gutter: 32px;
  --gutter-mobile: 20px;
  --nav-height: 80px;
}

/* ============================================================
   SEMANTIC TYPE STYLES
   Direction-aware: html[dir="rtl"] uses Arabic stack.
   ============================================================ */
html {
  font-family: var(--font-body-en);
  color: var(--fg);
  background: var(--bg);
}
html[dir="rtl"] {
  font-family: var(--font-body-ar);
}

body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display-en);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
  color: var(--fg);
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: var(--font-display-ar);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.display    { font-size: var(--fs-display); line-height: 0.95; }
.h1         { font-size: var(--fs-4xl); }
.h2         { font-size: var(--fs-3xl); }
.h3         { font-size: var(--fs-2xl); }
.h4         { font-size: var(--fs-xl); font-weight: 700; }

.eyebrow {
  font-family: var(--font-body-en);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-deep);
}
html[dir="rtl"] .eyebrow {
  font-family: var(--font-body-ar);
  text-transform: none;
  letter-spacing: 0;
}

.lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--fg-2);
}

p {
  line-height: var(--lh-normal);
  color: var(--fg);
}
html[dir="rtl"] p { line-height: var(--lh-loose); }

.caption {
  font-size: var(--fs-sm);
  color: var(--fg-3);
  line-height: var(--lh-normal);
}

.mono-numeric {
  font-feature-settings: "tnum" 1;
}
