/* ==========================================================================
   KCRI design tokens
   Source of truth: Figma file BH9Z78mS9P3M7NbBrxlPBD (Homepage 2400:2478, Mobile 2400:2909)
   Every value here is taken from the Figma file. Change a brand value here, not in components.
   ========================================================================== */

:root {
  /* ---- Brand colors ---------------------------------------------------- */
  --kc-purple: #91288e;          /* Primary — buttons, active dots, accent links */
  --kc-purple-hover: #7a2178;    /* Derived: purple darkened ~15% for hover */
  --kc-purple-soft: #e9d4e8;     /* Derived: inactive slider dots */
  --kc-navy: #25215d;            /* Secondary — card titles, outline buttons, form header */
  --kc-night: #16142b;           /* Footer background */
  --kc-coral: #ff8a66;           /* Accent on dark (footer links), callout tint */
  --kc-coral-tint: rgba(255, 138, 102, 0.12); /* "Serving the Greater KC Area" callout */
  --kc-link: #ff3d00;            /* Inline text links inside cards */
  --kc-blush: #ffefe9;           /* Pull-quote background (Services intro) */
  --kc-orange-tint: rgba(255, 106, 59, 0.12); /* Check-icon tiles (Services "Approach") */
  --kc-sage: #d6e2de;            /* Icon circles (Why Choose cards) */
  --kc-icon: #453f95;            /* Icon fill (medal, email, why-choose icons) */
  --kc-star: #ffd643;            /* Review stars */

  /* ---- Neutrals / surfaces --------------------------------------------- */
  --kc-page: #fffcfb;            /* Default page background */
  --kc-white: #ffffff;
  --kc-cream: #fffaf4;           /* Services section background */
  --kc-cream-hero: #fbf6ef;      /* Hero gradient end color */
  --kc-sand: #f8f3ef;            /* Service card background */
  --kc-sand-2: #faf5f0;          /* Why Choose card background */
  --kc-linen: rgba(243, 237, 231, 0.4); /* Tinted section background (Connection, Form) */
  --kc-grey-bg: #f8f8f8;         /* Testimonials section background */

  /* ---- Text ------------------------------------------------------------ */
  --kc-ink: #121212;             /* Headings + body */
  --kc-ink-muted: #717171;       /* = #121212 at 60% on light bg (Figma uses opacity .6) */
  --kc-ink-hero: #585858;        /* Hero text */
  --kc-ink-soft: #505050;        /* Nav, section intro copy */
  --kc-ink-phone: #636363;       /* Header phone number */
  --kc-placeholder: #7f7f7f;     /* Form placeholders */
  --kc-ink-note: #667085;        /* Footnotes (rates disclaimer) */
  --kc-required: #e5251b;        /* Required asterisk */

  /* ---- Lines ----------------------------------------------------------- */
  --kc-border: #e1e1e1;          /* Testimonial cards, dividers */
  --kc-border-strong: #c4c4c4;   /* Form fields */
  --kc-border-warm: #e7dfd6;     /* Tabs, service list dividers, step cards, FAQ accordion */
  --kc-border-arrow: rgba(5, 8, 5, 0.15); /* Slider arrow buttons */
  --kc-border-dark: #667085;     /* Footer bottom row divider */

  /* ---- Typography: families -------------------------------------------- */
  --font-display: "DM Serif Text", Georgia, "Times New Roman", serif;    /* Big section titles, hero */
  --font-title: "DM Serif Display", Georgia, "Times New Roman", serif;   /* Card titles, names, questions */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* ---- Typography: scale (desktop) ---------------------------------------
     Named by LOOK, not by tag. A heading tag never implies a size — pick the
     class that matches Figma, and pick the tag from the content document. */
  --fs-display: 60px;   --lh-display: 1.2;   /* Hero headline */
  --fs-section: 48px;   --lh-section: 1.4;   /* Section titles */
  --fs-title-lg: 28px;  --lh-title: 1.3;     /* Therapist names, callout, form title */
  --fs-title-md: 25px;                       /* Service card titles */
  --fs-eyebrow: 24px;   --lh-eyebrow: 1;     /* Hero eyebrow line (the page H1) */
  --fs-title-sm: 20px;                       /* Why cards, FAQ questions, reviewer names */
  --fs-lead: 18px;      --lh-lead: 1.6;      /* Section intro copy */
  --fs-body: 16px;      --lh-body: 1.6;
  --fs-small: 14px;
  --fs-caption: 12px;

  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Spacing (8px-ish rhythm, values from Figma auto-layout) ---------- */
  --space-2xs: 6px;
  --space-xs: 10px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 100px;

  --section-pad-y: 100px;        /* 80–100 in Figma; 100 for primary sections */
  --section-pad-y-sm: 80px;
  --gutter: 40px;                /* Minimum side padding; at 1440 the containers below center themselves */

  /* ---- Layout ---------------------------------------------------------- */
  --container: 1128px;           /* Most sections */
  --container-wide: 1200px;      /* Services carousel */
  --container-header: 1300px;    /* Floating nav pill */

  /* ---- Radius ---------------------------------------------------------- */
  --radius-pill: 100px;          /* Buttons, nav bar */
  --radius-card: 20px;           /* Service + Why cards, hero bottom corners */
  --radius-md: 16px;             /* Team photos, testimonial cards */
  --radius-sm: 12px;             /* Form card, callout, flags */
  --radius-xs: 6px;              /* Square slider arrows */

  /* ---- Elevation ------------------------------------------------------- */
  --shadow-nav: 0 4px 15px rgba(12, 72, 129, 0.15);
  --shadow-form: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* ---- Controls -------------------------------------------------------- */
  --btn-height: 54px;
  --btn-pad-x: 24px;
  --arrow-size: 48px;

  /* ---- Motion ---------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

/* ---- Mobile scale (Figma mobile frame is 390px wide) -------------------- */
@media (max-width: 767px) {
  :root {
    --fs-display: 36px;
    --fs-section: 30px;  --lh-section: 1.2;
    --fs-eyebrow: 14px;  --lh-eyebrow: 1.2;
    --fs-title-lg: 20px;
    --fs-lead: 16px;

    --section-pad-y: 60px;
    --section-pad-y-sm: 40px;
    --gutter: 20px;
  }
}

/* ---- In-between widths (no tablet design in Figma — interpolated) ------- */
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --fs-display: 48px;
    --fs-section: 38px;
    --fs-eyebrow: 20px;
    --section-pad-y: 80px;
    --section-pad-y-sm: 64px;
  }
}
