/* Soltermex — design tokens.
   Brand colors are locked from the logo (assets/logo/logo_svg.svg). Everything else is tunable here. */

:root {
  /* Brand */
  --navy: #07344d;          /* text, dark sections — 13.1:1 on white */
  --blue-accent: #005590;   /* links, focus rings — 7.8:1 on white */
  --blue: #008bca;          /* large display text only (24px+), rules, bands — never body text or links */
  --orange: #f2a74a;        /* button fill with navy text (6.5:1), sparing use — never text on white */
  --orange-hover: #e5913a;  /* button hover fill; navy text stays above 5:1 */

  /* Functional */
  --error: #b3261e;         /* form validation only */

  /* Surfaces */
  --white: #ffffff;
  --gray-cool: #f3f6f8;     /* alternating section background */
  --blue-tint: #e8f0f6;     /* success panel background (Contacto) — navy text 11.3:1 */
  --input-border: rgb(7 52 77 / 0.6); /* form field borders — 3.9:1 on white (WCAG 1.4.11 needs 3:1) */
  --rule: rgb(7 52 77 / 0.15);
  --text-muted: #4b6475;    /* secondary text on white — 6.1:1 */
  --on-dark: #ffffff;
  --on-dark-muted: #c5d3dc; /* secondary text on navy — 8.5:1 */

  /* Type families */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Archivo width axis: wider on large screens, narrower on phones so long Spanish words fit */
  --display-stretch: 92%;

  /* Type scale (base 18px) */
  --step--1: 0.9375rem;                                  /* 15px — fine print */
  --step-0: 1.125rem;                                    /* 18px — body */
  --step-1: 1.375rem;                                    /* 22px — lead, h4 */
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);     /* h3 */
  --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);    /* h2 */
  --step-4: clamp(2.25rem, 1.6rem + 2.9vw, 4rem);        /* h1 / hero */

  --leading-body: 1.55;
  --leading-display: 1.1;   /* not lower: capital accents (Á É Í) collide with the line above */
  --measure: 68ch;

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;           /* side margin */
  --grid-gap: 16px;
  --section-space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 3px;

  /* Logo + header */
  --logo-height: 64px;
  --header-pad: 16px;
  /* Rendered height of the sticky header: the logo is its tallest item at every width
     (menu button and nav links are 48px), plus padding and the 1px bottom border = 97px.
     Only exception: no-JS phones, where the nav wraps under the logo (see site.css). */
  --header-height: calc(var(--logo-height) + 2 * var(--header-pad) + 1px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-enter: 400ms;
  --dur-panel: 200ms;
  --dur-hover: 150ms;
}

@media (min-width: 30em) {
  :root { --display-stretch: 104%; }
}

@media (min-width: 48em) {
  :root {
    --gutter: 40px;
    --grid-gap: 24px;
    --display-stretch: 110%;
  }
}
