/* Grace Home Care design tokens
   Source: read-only audit of https://gracehomecareco.com/ (2026-11-19, America/Denver)
   Base build uses exact original logos in ../assets/logos/ — never modify those files.
   --brand-* values are the live extracted colors.
   --color-*, typography, and control tokens are accessibility upgrades (WCAG AA, AAA on body text).
   Nothing in this file is published live. */

:root {
  /* ===== Extracted brand colors (Elementor kit + banner) ===== */
  --brand-primary: #3e60a0;
  --brand-secondary: #87ad5e;
  --brand-text: #000000;
  --brand-accent: #cccccc;
  --brand-white: #ffffff;
  --brand-banner-bg: #3e60a0;
  --brand-banner-text: #ffffff;
  --brand-banner-link: #bdf288;

  /* Astra leftovers (documented, not primary UI) */
  --brand-astra-blue: #0170b9;
  --brand-astra-blue-hover: #0065a1;
  --brand-astra-button: #303030;
  --brand-nav-live: #666666;
  --brand-nav-hover-live: #999999;
  --brand-call-now-live: #00bb00;

  /* ===== Accessible UI colors ===== */
  --color-bg: #ffffff;
  --color-bg-soft: #f5f5f5;
  --color-bg-tint: #edf0f3;
  --color-bg-primary: #2c4a82;        /* deeper navy; 8.72:1 with white */
  --color-bg-primary-hover: #3e60a0;
  --color-bg-cta: #436124;          /* deep sage; 7.06:1 AAA with white */
  --color-bg-cta-hover: #354f1d;
  --color-bg-cta-aa: #5e7a3a;        /* 4.86:1 — AA floor if a lighter green is needed */

  --color-text: #1a1a1a;             /* AAA on white */
  --color-text-muted: #3a3a3a;       /* 11.37:1 AAA — extracted body grey */
  --color-text-on-primary: #ffffff;  /* 8.72:1 AAA on #2C4A82; 6.2:1 AA on #3E60A0 */
  --color-text-on-cta: #ffffff;      /* 7.06:1 AAA on #436124 */

  --color-link: #2f4c82;
  --color-link-hover: #3e60a0;
  --color-border: #d0d5dd;
  --color-border-soft: #dae7e6;
  --color-focus: #3e60a0;
  --color-banner-link: #e8ffc2;      /* brighter than #BDF288 for slightly stronger contrast */

  /* Decorative only — never use as small text or button label color on white */
  --color-decorative-green: #87ad5e;
  --color-decorative-lime: #bdf288;

  /* ===== Typography (live families, readable sizes) ===== */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Lato, "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Elementor kit specified Muli but never loaded it. Lato was the live fallback. */

  --font-size-body: 1.125rem;        /* 18px */
  --font-size-small: 1rem;           /* 16px minimum for supporting copy */
  --font-size-lead: 1.25rem;         /* 20px */
  --font-size-h1: 2.625rem;          /* 42px */
  --font-size-h2: 2.125rem;          /* 34px */
  --font-size-h3: 1.625rem;          /* 26px */
  --font-size-h4: 1.375rem;          /* 22px */
  --font-size-button: 1.125rem;
  --font-size-nav: 1.125rem;

  --font-weight-body: 400;
  --font-weight-heading: 600;
  --font-weight-nav: 700;
  --font-weight-button: 700;

  --line-height-body: 1.65;
  --line-height-heading: 1.25;
  --max-line-length: 70ch;

  /* ===== Spacing & layout ===== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container: 72rem;                /* ~1152px, near the live 1200px kit width */
  --header-logo-max-height: 5rem;    /* 80px — wordmark must stay legible on white */
  --radius: 0.5rem;
  --radius-pill: 999px;

  /* ===== Controls ===== */
  --button-min-height: 3rem;         /* 48px touch target */
  --button-padding: 0.85rem 1.75rem;
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--color-focus);

  /* ===== Payments (Cliff, 2026-11-19) — lead with these three only ===== */
  --payments-lead: "Private Pay, Medicaid, and VA Benefits";
}

@media (max-width: 48rem) {
  :root {
    --font-size-h1: 2rem;            /* 32px */
    --font-size-h2: 1.75rem;         /* 28px */
    --font-size-h3: 1.5rem;          /* 24px */
    --space-xl: 2.5rem;
  }
}

html {
  font-size: 100%; /* abandon the live 93.75% html shrink so 18px body is truly 18px */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

a {
  color: var(--color-link);
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn,
button,
input[type="submit"] {
  font-family: var(--font-heading);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-button);
  line-height: 1.2;
  min-height: var(--button-min-height);
  padding: var(--button-padding);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-primary,
.btn--primary {
  background: var(--color-bg-cta);
  color: var(--color-text-on-cta);
}

.btn-primary:hover,
.btn--primary:hover,
.btn-primary:focus-visible,
.btn--primary:focus-visible {
  background: var(--color-bg-cta-hover);
  color: var(--color-text-on-cta);
}

.btn-secondary,
.btn--secondary {
  background: var(--color-bg-primary);
  color: var(--color-text-on-primary);
}

.btn-secondary:hover,
.btn--secondary:hover,
.btn-secondary:focus-visible,
.btn--secondary:focus-visible {
  background: var(--color-bg-primary-hover);
  color: var(--color-text-on-primary);
}

/* Original logos — wire these paths; do not replace with generated marks in the base build */
.logo-header {
  display: block;
  height: var(--header-logo-max-height);
  width: auto;
}

.logo-header img,
.site-logo {
  display: block;
  height: var(--header-logo-max-height);
  width: auto;
  max-width: 16rem;
  object-fit: contain;
}
