/*
 * Chicagoland Cleaning Co. type & spacing system.
 *
 * Everything is scoped to .ccx so it never affects pages that have not adopted it.
 * Currently used by the homepage only. To adopt on another page later:
 *   1. load the Google Fonts link for Manrope (600–800) and Inter (400–600),
 *   2. load this file after style.css,
 *   3. add class="ccx" to the page's header, main, and footer (or a wrapper).
 * Components should use the tokens below (var(--fs-h2) etc.) or the .t-* role
 * classes instead of hard-coded font sizes.
 */
.ccx {
  /* Families */
  --font-display: Manrope, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; /* headings: 600 / 700 / 800 */
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;               /* body 400 / 500; nav, buttons, labels 500 / 600 */

  /* Type scale (mobile → desktop) */
  --fs-h1: clamp(2rem, 1.45rem + 1.9vw, 3rem);          /* 32 → 48 */
  --fs-h2: clamp(1.625rem, 1.45rem + 0.6vw, 2rem);      /* 26 → 32 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);    /* 20 → 24 */
  --fs-card: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);  /* 17 → 20 */
  --fs-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);   /* 16 → 18 (hero / intro copy) */
  --fs-body: 1rem;                                      /* 16 */
  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 → 15 */
  --fs-xs: 0.8125rem;                                   /* 13: fine print, utility bar */
  --fs-nav: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);   /* 14 → 15 */
  --fs-btn: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);   /* 14 → 15 */
  --fs-label: 0.8125rem;                                /* 13: form labels */
  --fs-eyebrow: 0.75rem;                                /* 12 */

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;          /* display font only; Inter is loaded up to 600 */
  --fw-display: 700;      /* section headings, card titles */
  --fw-display-hero: 800; /* hero H1 only */

  /* Line heights */
  --lh-display: 1.08;
  --lh-heading: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  /* Letter spacing */
  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-eyebrow: 0.12em;

  /* Measures (paragraph widths) */
  --measure: 62ch;
  --measure-narrow: 46ch;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-section: clamp(56px, 2.5rem + 3vw, 80px);     /* standard section padding */
  --space-section-sm: clamp(44px, 2rem + 2vw, 60px);    /* compact sections */
  --space-head: clamp(28px, 1.5rem + 1vw, 40px);        /* heading block → content */

  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Neutralize the legacy theme (style.css): Fira Sans + Title Case headings,
   paragraph margins, heavy labels, and the global 110px section padding. */
.ccx h1, .ccx h2, .ccx h3, .ccx h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-transform: none;
}
.ccx p { margin: 0; line-height: var(--lh-body); }
/* Inter is loaded 400–600, so emphasis in body text uses 600 rather than a synthesized bold. */
.ccx strong, .ccx b { font-weight: var(--fw-semibold); }
.ccx label { font-family: var(--font-body); line-height: var(--lh-snug); margin: 0; }
.ccx button, .ccx input, .ccx select, .ccx textarea { font-family: var(--font-body); }

/* Role classes */
.ccx .t-h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-display-hero); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.ccx .t-h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-display); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.ccx .t-h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-display); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.ccx .t-card { font-family: var(--font-display); font-size: var(--fs-card); font-weight: var(--fw-display); line-height: var(--lh-snug); letter-spacing: 0; }
.ccx .t-lead { font-size: var(--fs-lead); line-height: var(--lh-body); max-width: var(--measure); }
.ccx .t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.ccx .t-small { font-size: var(--fs-small); line-height: var(--lh-body); }
.ccx .t-eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); line-height: 1.4; text-transform: uppercase; }
.ccx .t-label { font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
