/* Torres-Boren Roofing — design tokens
 *
 * EXACT_MIGRATION / tokens_only. Every value here is MEASURED from the live
 * source via computed styles at three real device profiles. Nothing is invented
 * and nothing is "improved" — see docs/04-design-system.json for provenance and
 * docs/art-direction.md for what each value does.
 *
 * Breakpoints follow the source's own media queries: 767 / 1024 / 1400.
 */

:root {
  /* ---- Brand ---- */
  --color-green: #023E1D;          /* the CTA colour */
  --color-green-alt: #254441;      /* button hover text */
  /* NO YELLOW. #FFD50E and #F7CF21 appear in Duda's declared button tokens on
     the source, and Phase 2 recorded them as a brand accent. The client says
     yellow is not part of the branding — that is the client's call, not the
     stylesheet's. The palette is greens, neutrals and white only. */

  /* ---- Text ---- */
  --color-text: #585858;           /* dominant body text */
  --color-text-strong: #000000;
  --color-text-warm: #463939;
  --color-text-secondary: #666666;
  --color-text-inverse: #FFFFFF;
  --color-text-muted-on-dark: #C6C6C6;  /* on black only; fails AA on white */

  /* ---- Surfaces ---- */
  --color-surface: #FFFFFF;
  --color-surface-alt: #DFDFDF;    /* alternating section band */
  --color-surface-page: #EEEEEE;   /* body background */
  --color-surface-dark: #000000;   /* utility bar, footer */

  /* ---- Overlay ---- */
  --overlay-hero: rgba(0, 0, 0, 0.5);

  /* ---- Type families ---- */
  --font-primary: "Poppins", "Poppins Fallback", system-ui, -apple-system, sans-serif;
  --font-accent: "Dancing Script", cursive;

  /* ---- Type scale (mobile-first; desktop values in the query below) ---- */
  --fs-h1-hero: 58px;
  --lh-h1-hero: 1.0;
  --fs-h1: 48px;
  --lh-h1: 1.0;
  --fs-h2: 44px;
  --lh-h2: 1.1;
  --fs-h3: 20px;
  --lh-h3: 30px;
  --fs-body: 16px;
  --lh-body: 1.5;
  --fs-nav: 18px;
  --lh-nav: 27px;
  --fs-button: 16px;
  --fs-input: 16px;
  --fs-accent-xl: 72px;
  --fs-accent-lg: 48px;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Layout ----
   * 1200px is measured from the source (35 occurrences at desktop), not the
   * 1280px default. Exactly one default container plus one wide variant. */
  --container: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;

  /* ---- Spacing ---- */
  --space-unit: 8px;
  --space-hero-block: 72px;        /* 150px at desktop, see query */
  --utility-bar-height: 72px;
  --nav-row-height: 145px;

  /* ---- Geometry ----
   * Zero radius everywhere on the source, no exceptions. */
  --radius: 0px;
  --btn-padding: 17px 11px;
  --input-height: 30px;
  --input-padding: 0 10px;
  --input-border: 0 0 1px 0;
  --input-border-color: #000000;

  /* ---- Depth ----
   * The source computes to no shadow despite Duda declaring one. */
  --shadow: none;

  /* ---- Motion ---- */
  --transition-button: color 0.3s ease-in, background-color 0.3s ease-in;
  --duration: 0.3s;
  --easing: ease-in;
}

/* Tablet — 768px and up */
@media (min-width: 768px) {
  :root {
    --fs-h1-hero: 72px;
    --fs-h1: 60px;
    --fs-h2: 55px;
    --fs-accent-xl: 96px;
    --fs-accent-lg: 60px;
    --space-hero-block: 110px;
  }
}

/* Desktop — 1025px and up */
@media (min-width: 1025px) {
  :root {
    --fs-body: 14px;
    --lh-body: 21px;
    --fs-nav: 14px;
    --lh-nav: 21px;
    --fs-accent-xl: 120px;
    --fs-accent-lg: 72px;
    --space-hero-block: 150px;
  }
}

/* The source ships no reduced-motion handling. Added as an execution-quality
 * fix, not a design change — it removes motion, it does not introduce any. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-button: none;
    --duration: 0.01ms;
  }
}
