/* ==========================================================================
   Design tokens — Sivan Navot Physiotherapy
   Single source of truth for color, type, space, radius, elevation, motion.
   Brand colors marked "brand" are extracted from the live site
   (wp-content/themes/bridge-child/style.css). Everything else extends them.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Hebrew + Latin subsets) ---------- */
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-300-hebrew.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-400-hebrew.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-500-hebrew.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/ibm-plex-sans-hebrew-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-hebrew.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- Color: brand (from the existing site) ---------- */
  --plum-700: #5a0954;      /* brand: headings, primary actions */
  --orchid-500: #af63a8;    /* brand: hero subtitle */
  --grey-200: #e5e6e7;      /* brand: dividers */
  --green-500: #7ea403;     /* brand green: sampled from the homepage tiles (decorative only, 2.7:1 on white) */
  --plum-logo: #55004d;     /* logo wordmark purple */
  --teal-600: #11939c;      /* legacy hover color in old CSS: kept for reference, not used */

  /* ---------- Color: extended scales ---------- */
  --plum-950: #2a0427;
  --plum-900: #3d0739;
  --plum-800: #4b0846;
  --plum-600: #742a6d;
  --orchid-400: #c58cbf;
  --orchid-300: #dbb6d6;
  --lavender-200: #ecdfea;
  --lavender-100: #f5edf3;
  --lavender-50: #fbf7fa;

  --green-700: #587400;     /* text-bearing green (5.4:1 with white) */
  --green-600: #6a8a00;
  --green-200: #dbe6b8;
  --green-100: #eef3dc;     /* soft sage-olive surface */
  --green-50: #f6f8ee;
  --sage-100: #dee3cc;      /* light sage: 20% tint of --green-700 (the floating WhatsApp button); hero phone / WhatsApp buttons */
  --sage-200: #cdd5b3;      /* its hover (30% tint) */
  --beige-100: #f5efe7;     /* warm beige: scrolled header (round 9) */

  --grey-500: #9b9a9d;      /* logo line-drawing grey */

  --ivory: #fbf9f7;         /* warm off-white page background */
  --white: #ffffff;

  --ink-900: #251f28;       /* headings on light */
  --ink-700: #3f3843;       /* body text */
  --ink-500: #6c6470;       /* secondary text (AA on ivory) */
  --ink-300: #b9b2bc;
  --line: #e9e4e8;

  /* ---------- Color: semantic ---------- */
  --color-bg: var(--ivory);
  --color-surface: var(--white);
  --color-text: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-heading: var(--ink-900);
  --color-brand: var(--plum-700);
  --color-accent: var(--orchid-500);
  --color-link: var(--plum-700);
  --color-focus: var(--green-700);
  --color-error: #b3261e;
  --color-success: var(--green-700);

  /* ---------- Typography ---------- */
  --font-display: "IBM Plex Sans Hebrew", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --font-body: "Assistant", "Arial Hebrew", "Segoe UI", Arial, sans-serif;

  /* Fluid type scale (min @ 360px → max @ 1440px) */
  --text-xs: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13 → 14 */
  --text-sm: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);       /* 15 → 16 */
  --text-base: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);/* 17 → 19 */
  --text-lg: clamp(1.1875rem, 1.12rem + 0.35vw, 1.4375rem); /* 19 → 23 */
  --text-xl: clamp(1.4375rem, 1.3rem + 0.65vw, 1.875rem);   /* 23 → 30 */
  --text-2xl: clamp(1.875rem, 1.6rem + 1.25vw, 2.75rem);    /* 30 → 44 */
  --text-3xl: clamp(2.375rem, 1.9rem + 2.2vw, 3.875rem);    /* 38 → 62 */
  --text-display: clamp(2.875rem, 2.1rem + 3.9vw, 5.5rem);  /* 46 → 88 */

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.75;      /* Hebrew body needs generous leading */
  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  --measure: 62ch;           /* max line length for reading */
  --measure-narrow: 44ch;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);

  /* ---------- Layout ---------- */
  --container: 1240px;
  --container-wide: 1440px;
  --header-h: 88px;        /* space the floating capsule nav takes at the top */


  /* ---------- Radius ---------- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --radius-pill: 999px;

  /* ---------- Elevation (tinted with plum, never pure black) ---------- */
  --shadow-1: 0 1px 2px rgba(61, 7, 57, 0.06), 0 2px 8px rgba(61, 7, 57, 0.04);
  --shadow-2: 0 2px 6px rgba(61, 7, 57, 0.06), 0 12px 32px rgba(61, 7, 57, 0.08);
  --shadow-3: 0 6px 16px rgba(61, 7, 57, 0.08), 0 28px 64px rgba(61, 7, 57, 0.12);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* entrances */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* state changes */
  --dur-1: 160ms;   /* micro: color, opacity */
  --dur-2: 280ms;   /* hover, small moves */
  --dur-3: 600ms;   /* reveals */
  --dur-4: 900ms;   /* hero entrance */
  --dur-reveal: 1100ms; /* scroll reveals (slowed in round 2) */
  --dur-enter: 1500ms;  /* hero entrance (slowed in round 2) */
  --stagger: 140ms;
  --reveal-distance: 32px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
    --dur-reveal: 0ms;
    --dur-enter: 0ms;
    --stagger: 0ms;
    --reveal-distance: 0px;
  }
}
