/* =====================================================================
   Just Healthy Homes — brand design tokens
   Source of truth: https://justhealthyhomes.com/ (inspected 2026-11-19).
   Values marked [V] are VERIFIED from the live site's computed styles,
   inline style attributes, stylesheet rules or logo pixels. Values marked
   [D] are DERIVED from verified tokens for states the live site doesn't
   show (no new hues are introduced). See just-healthy-homes-brand-guide.md.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License 1.1) [V] families ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  /* ---------- Brand colors ---------- */
  --jhh-navy: #1A3149;            /* [V] primary: H1/H2 color, primary CTA bg, dark section bg */
  --jhh-navy-hover: #243F5C;      /* [V] primary CTA hover bg (style-hover) */
  --jhh-navy-deep: #102338;       /* [V] deeper navy used in dark sections */
  --jhh-logo-navy: #233A4F;       /* [V] logo wordmark pixels (dominant opaque color) */
  --jhh-logo-gold: #F9DE92;       /* [V] logo script "Just" pixels */
  --jhh-gold: #C9A97E;            /* [V] accent: links, rules, borders, eyebrow on dark */
  --jhh-gold-text: #9C743F;       /* [V] eyebrow + highlighted words on light backgrounds */
  --jhh-gold-hover: #A87C43;      /* [V] a:hover */
  --jhh-gold-text-small: #836135; /* [D] APPROVED accessibility variant of #9C743F for SMALL text on light backgrounds.
                                     Same hue (34.2°) and saturation (42.5%), lightness 42.9% → 35.9%.
                                     Contrast: 4.54:1 on #EDE6DA · 5.13:1 on #F7F4EE · 5.64:1 on #FFFFFF ·
                                     5.32:1 on #FBF8F2 · 4.79:1 on #F1ECE2 · 5.04:1 on #FAF3CE (WCAG AA ≥ 4.5:1).
                                     Original #9C743F stays for large text and decorative accents; #C9A97E stays on navy. */
  --jhh-highlight: #E9DFA8;       /* [V] highlight chip; CTA bg on dark sections; highlighted words on dark */
  --jhh-highlight-hover: #F1E8B8; /* [V] dark-section CTA hover bg */
  --jhh-highlight-soft: #FAF3CE;  /* [V] highlighted row background */

  /* ---------- Text ---------- */
  --jhh-text-heading: #1A3149;    /* [V] */
  --jhh-text-body: #2F3F52;       /* [V] root color on the live site */
  --jhh-text-muted: #4E6482;      /* [V] secondary text, small labels */
  --jhh-text-subtle: #8496A9;     /* [V] tertiary labels */
  --jhh-text-on-dark: #FFFFFF;    /* [V] headings on navy */
  --jhh-text-on-dark-body: #B9CADB;  /* [V] paragraph text on navy */
  --jhh-text-on-dark-muted: #93A7BC; /* [V] small/source text on navy */
  --jhh-text-on-cta: #F7F4EE;     /* [V] primary CTA text */

  /* ---------- Surfaces ---------- */
  --jhh-bg-page: #F7F4EE;         /* [V] main content section background */
  --jhh-bg-alt: #EDE6DA;          /* [V] body background / alternate band */
  --jhh-bg-soft: #F1ECE2;         /* [V] soft beige tiles (letter badges) */
  --jhh-bg-warm-white: #FBF8F2;   /* [V] warm-white panel */
  --jhh-surface-card: #FFFFFF;    /* [V] cards */
  --jhh-surface-dark: #1A3149;    /* [V] */
  --jhh-surface-dark-deep: #102338; /* [V] */
  --jhh-surface-dark-tile: rgba(255, 255, 255, .035); /* [V] tiles on navy */
  --jhh-surface-glass: rgba(247, 244, 238, .92); /* [D] sticky header / mobile bar, from --jhh-bg-page */

  /* ---------- Borders & dividers ---------- */
  --jhh-border: #E3DBCB;          /* [V] card + section borders */
  --jhh-border-soft: #EDE6DA;     /* [V] row dividers inside cards */
  --jhh-border-gold: #C9A97E;     /* [V] option/feature borders */
  --jhh-border-gold-soft: rgba(201, 169, 126, .30); /* [V] tile borders on navy */
  --jhh-border-on-dark: rgba(185, 202, 219, .22);   /* [V] dividers on navy */

  /* ---------- Status ---------- */
  --jhh-success: #2F7D57;         /* [V] green badge/marker */
  --jhh-danger: #D9534A;          /* [V] red badge bg (white text) */
  --jhh-danger-text: #8C2F39;     /* [V] deep red in the site bundle; used for error text (AA on white) */

  /* ---------- Typography ---------- */
  --jhh-font-serif: "Playfair Display", Georgia, serif;           /* [V] headings, emphasis */
  --jhh-font-sans: "Inter", system-ui, -apple-system, sans-serif; /* [V] body, UI, buttons */
  --jhh-weight-regular: 400;
  --jhh-weight-medium: 500;       /* [V] H2/H3 */
  --jhh-weight-semibold: 600;     /* [V] H1 */
  --jhh-weight-bold: 700;         /* [V] buttons, eyebrows */
  --jhh-h1-size: clamp(2.6rem, 6.4vw, 5.2rem);  /* [D] scale for this layout's display H1 (live H1 = clamp(24px,3.9cqi,39px)) */
  --jhh-h2-size: clamp(1.75rem, 3.6vw, 2.75rem);/* [V-range] live H2 = clamp(26px,4.3cqi,42px) */
  --jhh-h-line: 1.18;             /* [V] H2 line-height */
  --jhh-h-track: -0.02em;         /* [V] H2 letter-spacing */
  --jhh-body-size: 1.0625rem;     /* [D] 17px for long-form readability (live body 13.5–15.5px) */
  --jhh-body-line: 1.75;          /* [V] */
  --jhh-eyebrow-size: clamp(.6875rem, 1.4vw + .3rem, .8125rem); /* [V] live: clamp(11px,1.4cqi,13px) */
  --jhh-eyebrow-track: .2em;      /* [V] */
  --jhh-btn-size: .9375rem;       /* [V] 15px */
  --jhh-btn-track: .01em;         /* [V] */

  /* ---------- Shape & depth ---------- */
  --jhh-radius-btn: 6px;          /* [V] CTA */
  --jhh-radius-sm: 4px;           /* [V] photo frames */
  --jhh-radius-card: 10px;        /* [V] card */
  --jhh-radius-lg: 12px;          /* [V] largest panel radius on the live site */
  --jhh-radius-round: 50%;        /* [V] number badges */
  --jhh-shadow-cta: 0 12px 28px rgba(26, 49, 73, .22);     /* [V] */
  --jhh-shadow-cta-dark: 0 12px 28px rgba(0, 0, 0, .28);   /* [V] */
  --jhh-shadow-card: 0 18px 40px rgba(26, 49, 73, .10);    /* [V] */
  --jhh-shadow-lift: 0 20px 50px rgba(0, 0, 0, .25);       /* [V] */
  --jhh-btn-pad: 16px 30px;       /* [V] */

  /* ---------- Focus & dev-only placeholder markers ---------- */
  --jhh-focus: #9C743F;           /* [D] = --jhh-gold-text */
  --jhh-ph-a: rgba(201, 169, 126, .14); /* [D] placeholder stripes from --jhh-gold */
  --jhh-ph-b: rgba(201, 169, 126, .26);
  --jhh-ph-line: rgba(156, 116, 63, .6);

  /* ---------- Responsive ---------- */
  --jhh-header-h: 76px;           /* [D] */
  --jhh-header-h-mobile: 64px;    /* [D] */
  --jhh-logo-h: 44px;             /* [V-range] live logo height clamp(42px,…,62px) */
  --jhh-logo-h-mobile: 36px;      /* [D] */
}
