/* Montclair Website: design tokens (site-wide)
   Home: wp-content/mu-plugins/montclair-website/css/tokens.css, enqueued by montclair-website.php on every page.
   Mirrors montclair-ds/ds/tokens.css. Namespace --mpd-*. Breakpoints (Elementor kit): tablet ≤1024, mobile ≤767. */

:root {
    /* colour primitives: client brand palette ("Montclair Updated Colors", 2024-01-24), applied 2026-11-18 */
    --mpd-color-sage-500: #687f62;    /* brand green: icons, borders, large text on light grounds */
    --mpd-color-sage-300: #b2bc88;    /* brand light green: decorative only */
    --mpd-color-cream-100: #eee7da;   /* brand cream */
    --mpd-color-mustard-300: #f1b95f; /* brand mustard: decorative only */
    --mpd-color-peach-300: #e7bda4;   /* brand peach */
    --mpd-color-orange-400: #e2935c;  /* brand orange: action fill (ink label 6.58:1), stars */
    /* derived: hover, small text, rules, and the fill behind white text */
    --mpd-color-sage-550: #63795d;    /* green fill behind white text: white 4.75:1 (approved by the client 2026-11-18) */
    --mpd-color-sage-600: #5f7459;    /* sage hover */
    --mpd-color-sage-700: #586d52;    /* sage text < 24 px on light grounds: white 5.64, cream 4.59 */
    --mpd-color-orange-700: #d9824a;  /* action hover */
    --mpd-color-orange-800: #a2531d;  /* links in text: same hue as brand orange; white 5.54, cream 4.50 (approved 2026-11-18) */
    --mpd-color-cream-200: #e2d8c5;   /* rules on cream */
    /* neutrals */
    --mpd-color-slate-600: #54595f;   /* headings; on cream 5.75:1 */
    --mpd-color-grey-600: #666666;    /* body; on white 5.74:1, on cream 4.67:1 */
    --mpd-color-ink-900: #1f2124;
    --mpd-color-white: #ffffff;

    /* roles. Allowed pairs (H8): text on bg/surface/card; inverse on brand/overlay; on-action on action.
       Green behind white text uses brand-fill (sage-550, 4.75:1); brand (#687f62) stays for icons, borders and large text. */
    --mpd-color-bg: var(--mpd-color-white);
    --mpd-color-surface: var(--mpd-color-cream-100);
    --mpd-color-brand: var(--mpd-color-sage-500);
    --mpd-color-brand-fill: var(--mpd-color-sage-550);
    --mpd-color-brand-ink: var(--mpd-color-sage-700);
    --mpd-color-action: var(--mpd-color-orange-400);
    --mpd-color-action-hover: var(--mpd-color-orange-700);
    --mpd-color-on-action: var(--mpd-color-ink-900);
    --mpd-color-heading: var(--mpd-color-slate-600);
    --mpd-color-text: var(--mpd-color-grey-600);
    --mpd-color-inverse: var(--mpd-color-white);
    --mpd-color-inverse-soft: var(--mpd-color-cream-100);
    --mpd-color-rule: var(--mpd-color-cream-200);
    --mpd-color-focus: var(--mpd-color-sage-700);
    --mpd-color-link: var(--mpd-color-orange-800);       /* underlined */
    --mpd-color-link-hover: var(--mpd-color-ink-900);
    --mpd-color-accent-warm: var(--mpd-color-mustard-300);
    --mpd-color-accent-soft: var(--mpd-color-sage-300);

    /* type families */
    --mpd-font-display: "EB Garamond", Georgia, serif;
    --mpd-font-body: "Plus Jakarta Sans", Arial, sans-serif;

    /* fluid type (T13): min at 390px, max at 1440px viewport */
    --mpd-text-display: clamp(2.375rem, 1.9107rem + 1.9048vw, 3.625rem);   /* 38 → 58 · H1 */
    --mpd-text-display-sm: clamp(2rem, 1.5357rem + 1.9048vw, 3.25rem);     /* 32 → 52 · closing H2 */
    --mpd-text-section: clamp(2rem, 1.7214rem + 1.1429vw, 2.75rem);       /* 32 → 44 · section H2 */
    --mpd-text-headline: clamp(1.625rem, 1.4857rem + 0.5714vw, 2rem);     /* 26 → 32 · band H2 */
    --mpd-text-title: clamp(1.375rem, 1.2821rem + 0.381vw, 1.625rem);     /* 22 → 26 · hero H2, pillar label */
    --mpd-text-name: clamp(1.25rem, 1.25rem + 0vw, 1.25rem);              /* 20 fixed · reviewer name */
    --mpd-text-body-lg: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);      /* 16 → 18 */
    --mpd-text-body: clamp(1rem, 0.9768rem + 0.0952vw, 1.0625rem);        /* 16 → 17 */
    --mpd-text-body-sm: clamp(0.9375rem, 0.9143rem + 0.0952vw, 1rem);     /* 15 → 16 · labels, cards */
    --mpd-text-tile: clamp(0.875rem, 0.8054rem + 0.2857vw, 1.0625rem);    /* 14 → 17 · tile H3 */
    --mpd-text-overline: clamp(0.8125rem, 0.7429rem + 0.2857vw, 1rem);    /* 13 → 16 */
    --mpd-text-small: clamp(0.8125rem, 0.7661rem + 0.1905vw, 0.9375rem); /* 13 → 15 */
    --mpd-text-caption: clamp(0.75rem, 0.7036rem + 0.1905vw, 0.875rem);   /* 12 → 14 */

    /* space */
    --mpd-space-1: 0.25rem;
    --mpd-space-2: 0.5rem;
    --mpd-space-3: 0.75rem;
    --mpd-space-4: 1rem;
    --mpd-space-5: 1.25rem;
    --mpd-space-6: 1.5rem;
    --mpd-space-7: 2rem;
    --mpd-space-8: 2.5rem;
    --mpd-space-9: 3.5rem;
    --mpd-space-10: 4rem;
    --mpd-section-y: clamp(3.5rem, 2.5714rem + 3.8095vw, 6rem);   /* 56 → 96 */
    --mpd-gutter: clamp(1.25rem, 0.2286rem + 4.1905vw, 4rem);     /* 20 → 64 */
    --mpd-content-max: 82rem;                                     /* 1312, design content width */
    --mpd-section-x: max(var(--mpd-gutter), calc((100% - var(--mpd-content-max)) / 2));

    /* shape, depth, motion */
    --mpd-radius-sm: 5px;
    --mpd-radius-md: 10px;
    --mpd-radius-lg: 16px;
    --mpd-radius-full: 9999px;
    --mpd-shadow-card: 0 10px 24px rgb(0 0 0 / 15%);
    --mpd-shadow-raise: 0 12px 28px rgb(0 0 0 / 12%);
    --mpd-duration: 0.3s;
    --mpd-control-h: 3.5rem;      /* 56 */
    --mpd-control-h-sm: 2rem;     /* 32 */
}

/* Button component tokens (public: --mpd-btn-bg, -fg, -border) */
:root {
    --mpd-btn-bg: var(--mpd-color-brand-fill);
    --mpd-btn-fg: var(--mpd-color-inverse);
    --mpd-btn-border: var(--mpd-color-brand-fill);
}

/* Phone action bar: label size and the Lucide outline icons drawn as CSS masks */
:root {
    --mpd-text-bar-label: clamp(0.8125rem, 0.8125rem + 0vw, 0.8125rem);   /* 13 fixed: tab-bar label */
    --mpd-icon-map-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    --mpd-icon-calendar-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
    --mpd-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    --mpd-action-bar-icon: var(--mpd-icon-map-pin);
}
