/* GGR + VALLE design tokens. Rebuilt 2026-11-17 so each brand owns its loud things.

   FAMILY (shared, quiet): spacing, grid, type sizes, the body face, control sizes, motion,
   and the "+" as the label marker. These never carry a brand color or a brand shape.

   BRAND (separate, loud): colors, shapes, heading face, label style. One brand's set never
   appears in the other brand's material.

   Use: <html data-brand="valle"> or <html data-brand="ggr">. There is NO default brand.
   A page with no data-brand gets the plain family skin (rule sheets, shared documents).
   Values mirror tokens.json. */

/* ---------- 1. FAMILY: shared by both brands ---------- */
:root {
  /* Body face (shared) */
  --f-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fw-body: 400;

  /* Type sizes (shared). Each brand sets its own heading face, weight, case and tracking. */
  --t-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  --t-h1: clamp(2.375rem, 1.55rem + 3.4vw, 4rem);
  --t-h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
  --t-h3: clamp(1.3rem, 1.18rem + .5vw, 1.6rem);
  --t-lead: clamp(1.125rem, 1.06rem + .3vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .875rem;
  --lh-body: 1.6;
  --measure: 64ch;

  /* Space and grid (shared) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1240px;
  --section: clamp(64px, 8vw, 120px);

  /* Control sizes (shared). Shape and color come from the brand. */
  --btn-h: 50px;
  --btn-pad-x: 26px;
  --field-pad: 13px 15px;

  /* Motion (shared) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
}

/* ---------- 2. PLAIN FAMILY SKIN: no brand. Rule sheets and shared documents only. ---------- */
:root {
  --page: #FFFFFF;
  --panel: #F3F3F1;
  --paper: #FFFFFF;
  --ink: #1E2124;
  --ink-mute: #5A6066;
  --line: rgba(30, 33, 36, .28);
  --hair: rgba(30, 33, 36, .12);
  --dark: #1E2124;
  --on-dark: #FFFFFF;
  --on-dark-mute: #C9CDD1;
  --mark: var(--ink);
  --mark-on-dark: #FFFFFF;
  --act: var(--ink);
  --act-ink: #FFFFFF;
  --act-hover: #000000;
  --act-hover-ink: #FFFFFF;
  --link: var(--ink);
  --tint: #E9EAE7;
  --focus: var(--ink);

  --f-display: var(--f-body);
  --fw-display: 600;
  --ls-display: -.01em;
  --lh-display: 1.1;
  --display-scale: 1;
  --display-case-major: none;
  --ls-display-major: -.01em;

  --f-label: var(--f-body);
  --fw-label: 600;
  --label-case: none;
  --ls-label: .01em;

  --shape-photo: 0;
  --shape-card: 8px;
  --shape-logo-plate: 0;
  --shape-button: 8px;
  --shape-field: 8px;
  --shape-badge: 8px;
  --ratio-feature: 4 / 3;
}

/* ---------- 3. VALLE cabinetry + millwork ----------
   Colors: copper, teal and aqua come from the round VALLE badge; charcoal from the wordmark.
   Grounds: warm plaster and sand, deep pacific ink.
   Shape: the ARCH and round forms, from the round badge.
   Heading face: condensed capitals, from the "CABINETRY + MILLWORK" line of the logo.
   Never on VALLE: GGR blue, square plates, the geometric GGR heading face. */
[data-brand="valle"] {
  --valle-plaster: #F7F1E7;   /* page */
  --valle-sand: #EDE2D0;      /* panels, cards */
  --valle-paper: #FFFDF8;     /* fields, logo plates */
  --valle-pacific: #153E3C;   /* text, dark bands */
  --valle-seaglass: #C6DBD1;  /* tints, text on dark */
  --valle-ochre: #BF9163;     /* rules, illustration only (not text) */
  --valle-copper: #A57549;    /* marks, the "+" (not body text) */
  --valle-teal: #3F5351;      /* buttons, links */
  --valle-aqua: #A7DCDB;      /* tints, tags */
  --valle-charcoal: #343433;  /* wordmark only */

  --page: var(--valle-plaster);
  --panel: var(--valle-sand);
  --paper: var(--valle-paper);
  --ink: var(--valle-pacific);
  --ink-mute: #4A605D;        /* 6.1:1 on plaster */
  --line: rgba(21, 62, 60, .30);
  --hair: rgba(21, 62, 60, .14);
  --dark: var(--valle-pacific);
  --on-dark: #F7F1E7;
  --on-dark-mute: #C6DBD1;
  --mark: var(--valle-copper);
  --mark-on-dark: var(--valle-ochre);   /* copper misses 3:1 on pacific */
  --act: var(--valle-teal);
  --act-ink: var(--valle-plaster);
  --act-hover: var(--valle-pacific);
  --act-hover-ink: var(--valle-plaster);
  --link: var(--valle-teal);
  --tint: var(--valle-aqua);
  --focus: var(--valle-teal);

  /* Heading face: condensed, capitals on the main headline, sentence case below it. */
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --fw-display: 600;
  --ls-display: .005em;
  --lh-display: 1.02;
  --display-scale: 1.15;            /* condensed letters need more size to carry the same weight */
  --display-case-major: uppercase;  /* h1 and hero headline only */
  --ls-display-major: .015em;

  /* Label style: small condensed capitals, widely spaced, like the logo's second line. */
  --f-label: var(--f-display);
  --fw-label: 500;
  --label-case: uppercase;
  --ls-label: .12em;

  /* Shapes: arches and round forms. */
  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-pill: 999px;
  /* The arch frame: a true semicircle top on a fixed aspect ratio, radius-28 feet.
     Horizontal radius 50% of width; vertical radius = half the width as a share of height. */
  --arch-4x5: 50% 50% var(--r-xl) var(--r-xl) / 40% 40% var(--r-xl) var(--r-xl);
  --arch-3x4: 50% 50% var(--r-xl) var(--r-xl) / 37.5% 37.5% var(--r-xl) var(--r-xl);
  --arch-2x3: 50% 50% var(--r-xl) var(--r-xl) / 33.4% 33.4% var(--r-xl) var(--r-xl);
  --arch-1x1: 50% 50% var(--r-xl) var(--r-xl) / 50% 50% var(--r-xl) var(--r-xl);
  --shape-photo: var(--arch-4x5);
  --shape-card: var(--r-xl);
  --shape-logo-plate: var(--r-lg);
  --shape-button: var(--r-pill);
  --shape-field: var(--r-md);
  --shape-badge: 50%;
  --ratio-feature: 4 / 5;

  /* Names the VALLE site CSS already uses (same values as above). */
  --c-plaster: var(--valle-plaster);
  --c-sand: var(--valle-sand);
  --c-paper: var(--valle-paper);
  --c-pacific: var(--valle-pacific);
  --c-seaglass: var(--valle-seaglass);
  --c-ochre: var(--valle-ochre);
  --c-ink: var(--ink);
  --c-ink-mute: var(--ink-mute);
  --c-line: var(--line);
  --c-hair: var(--hair);
  --c-on-dark: var(--on-dark);
  --c-on-dark-mute: var(--on-dark-mute);
}

/* ---------- 4. GGR design + remodeling ----------
   Colors: the blue, black and white of the GGR logo. Cool white ground.
   Shape: the SQUARE, from the logo mark. Every corner is sharp: no arches, no circles, no pills.
   Heading face: geometric sans, from the big G-G-R letters. Sentence case.
   Label style: lowercase bold ending in a period, like the logo line "design + remodeling."
   The GGR mark never appears without its words "design + remodeling".
   Never on GGR: plaster or sand grounds, copper, teal, arches, the condensed VALLE face. */
[data-brand="ggr"] {
  --ggr-blue: #00AFDB;    /* the square, marks, buttons (black text on it: 8.1:1) */
  --ggr-deep: #00708F;    /* links, hover (white text on it: 5.6:1) */
  --ggr-black: #020202;   /* logo words, dark bands */
  --ggr-white: #FFFFFF;   /* page; the logo sits on white only */
  --ggr-mist: #F1F5F7;    /* panels */
  --ggr-sky: #D9F3FA;     /* tints, tags */

  --page: var(--ggr-white);
  --panel: var(--ggr-mist);
  --paper: var(--ggr-white);
  --ink: #111416;
  --ink-mute: #4F5961;    /* 7.2:1 on white */
  --line: rgba(2, 2, 2, .22);
  --hair: rgba(2, 2, 2, .10);
  --dark: var(--ggr-black);
  --on-dark: #FFFFFF;
  --on-dark-mute: #B8C1C7;
  --mark: var(--ggr-blue);
  --mark-on-dark: var(--ggr-blue);
  --act: var(--ggr-blue);
  --act-ink: var(--ggr-black);
  --act-hover: var(--ggr-deep);
  --act-hover-ink: #FFFFFF;
  --link: var(--ggr-deep);
  --tint: var(--ggr-sky);
  --focus: var(--ggr-deep);

  --f-display: "Jost", Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --fw-display: 600;
  --ls-display: -.02em;
  --lh-display: 1.04;
  --display-scale: 1;
  --display-case-major: none;
  --ls-display-major: -.02em;

  --f-label: var(--f-body);
  --fw-label: 700;
  --label-case: lowercase;
  --ls-label: 0;

  --shape-photo: 0;
  --shape-card: 0;
  --shape-logo-plate: 0;
  --shape-button: 0;
  --shape-field: 0;
  --shape-badge: 0;
  --ratio-feature: 1 / 1;   /* feature photos are cropped square, like the logo plate */
}

/* ---------- 5. Derived tokens. Declared on every brand scope so they follow that brand. ---------- */
:root, [data-brand] {
  --btn-font: 600 1rem/1 var(--f-body);
  --btn-radius: var(--shape-button);
  --field-bg: var(--paper);
  --field-border: var(--ink-mute);   /* 3:1 or better on every ground; --line is for dividers only */
  --field-radius: var(--shape-field);
  --field-font: 400 1rem/1.4 var(--f-body);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
