/*
 * J&S design system tokens.
 * Source: Figma "J&S Transportation — Website Redesign", page 01 Foundations
 * (Figma variables and text styles). Bind to these, never type hex values.
 *
 * Units are px on purpose: the plugin loads Bootstrap 3 site-wide, which sets
 * html { font-size: 10px }, so rem values would not match the design.
 *
 * Breakpoints (CSS custom properties can't be used in media queries, so these
 * are documented here and repeated literally):
 *   mobile  <= 767px   (Figma mobile frames: 390)
 *   tablet  768–980px  (no Figma frames; matches Divi's breakpoints)
 *   desktop >= 981px   (Figma desktop frames: 1440)
 */

:root {
  /* Brand */
  --jsds-brand-red: #ae0b07;          /* Primary action, links on light */
  --jsds-brand-red-hover: #8b0c10;    /* Hover / pressed */
  --jsds-brand-yellow: #f3c774;       /* Accent on dark grounds only */

  /* Ink */
  --jsds-ink-900: #180c14;            /* asphalt: headings, dark bands, footer */
  --jsds-ink-700: #3a3f47;            /* body copy */
  --jsds-ink-500: #626872;            /* muted: secondary text, eyebrows */
  --jsds-ink-400: #6f7680;            /* input placeholder */

  /* Surface */
  --jsds-surface-white: #ffffff;
  --jsds-surface-page: #f4f5f7;
  --jsds-surface-band: #eaecf0;
  --jsds-surface-note: #f8f3ec;
  --jsds-surface-amber-tint: #fff7e3; /* notice background */
  --jsds-surface-amber-tint-2: #fff2d6; /* Figma surface/amber-tint-2: Shipping Guide second capture */
  --jsds-surface-dark-photo: #2a2225; /* photo placeholder */

  /* Border */
  --jsds-border-default: #d6dae1;
  --jsds-border-field: #c9ced6;       /* borders only, never text */
  --jsds-border-warm: #e6dfe1;

  /* Raw colours used by components (no Figma variable; see the cache's
     open questions). Named here so components never type hex values. */
  --jsds-on-dark-muted: #c9bdbf;      /* labels and small print on asphalt */
  --jsds-on-dark-desc: #d8d2d3;       /* descriptions on asphalt cards */
  --jsds-on-red-soft: #fbe3e2;        /* secondary text on brand red */

  /* Accent */
  --jsds-accent-amber-ink: #3d2a00;   /* text on amber tint */
  --jsds-accent-amber-ink-2: #8a5a00; /* Figma accent/amber-ink-2: eyebrow on amber tint (5.4:1) */
  --jsds-accent-success: #1f6f43;
  --jsds-accent-star: #946c0b;

  /* Font families */
  --jsds-font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --jsds-font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --jsds-font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  /* Layout */
  --jsds-container: 1200px;
  --jsds-gutter: clamp(20px, 8.333vw, 120px); /* 20px at 390, 120px at 1440 */
  --jsds-section-pad: 64px;          /* Home sections, confirmed [B] */
  --jsds-section-pad-mobile: 44px;   /* Home sections, confirmed [B] */
  --jsds-mobile-gutter: 20px;

  /* Elevation */
  --jsds-shadow-card: 0 20px 50px 0 rgba(0, 0, 0, 0.35);

  /* Focus ring (not in Figma; needed for keyboard users) */
  --jsds-focus-ring: 2px solid var(--jsds-ink-900);
}

/* Figma mobile frames use a 20px gutter [B] (the clamp gives 32px at 390) */
@media (max-width: 767px) {
  :root {
    --jsds-gutter: var(--jsds-mobile-gutter);
  }
}
