/* ==========================================================================
   UBDetsurf Industries — design tokens
   Single source of truth for colour, type, spacing. Change a value here and
   it updates on every page. Values are carried over from the original Wix
   site (forest green + gold, Merriweather / Open Sans / DM Mono).
   ========================================================================== */

/* Self-hosted fonts (Latin subset, SIL Open Font License). font-display: swap
   keeps text visible while fonts load. */
@font-face {
  font-family: "Merriweather";
  src: url("../assets/fonts/merriweather-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("../assets/fonts/merriweather-latin-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
/* Open Sans is a variable font: one file covers weights 300–800. */
@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand greens (from the original site) --- */
  --green-900: #061a0a;
  --green-800: #0e2d14;
  --green-700: #1b4332;
  --green-600: #2d6a4f;
  --green-500: #40916c;
  --green-400: #52b788;
  /* Darker variant of green-500 that passes 4.5:1 on white for italic accents. */
  --green-accent: #2f7a58;

  /* --- Gold accents --- */
  --gold-500: #c9a84c;   /* decorative + buttons + use on DARK backgrounds */
  --gold-300: #e8c96e;
  --gold-200: #f4d98a;
  /* The original gold fails contrast on light backgrounds (2.3:1).
     Use this darker gold for small text on white / off-white (4.9:1). */
  --gold-text: #8a6d1c;

  /* --- Logo navy (used sparingly: focus ring on dark areas, theme colour) --- */
  --brand-navy: #33449c;

  /* --- Neutrals / surfaces --- */
  --white: #ffffff;
  --surface: #f4fbf4;      /* page background */
  --surface-alt: #e8f5e9;  /* tinted sections, table headers */
  --text: #0d2112;
  --text-muted: #46584b;   /* 7:1 on --surface */
  --line: rgba(27, 67, 50, 0.16);
  --line-strong: rgba(27, 67, 50, 0.32);

  /* Text on dark green */
  --on-dark: #ffffff;
  --on-dark-muted: #cad1cb;   /* 9.6:1 on green-800 */

  /* --- Typography --- */
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-h4: 1.1rem;
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-h2: clamp(1.65rem, 3.2vw, 2.7rem);
  --fs-h1: clamp(2rem, 5vw, 3.9rem);
  --fs-hero: clamp(2.1rem, 5.2vw, 4rem);

  /* --- Spacing (4px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-y: clamp(3.25rem, 7vw, 6rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;
  --container-narrow: 820px;

  /* --- Shape, depth, motion --- */
  --radius: 3px;        /* the original uses small, sharp radii */
  --radius-lg: 6px;
  --shadow-1: 0 10px 30px rgba(13, 33, 18, 0.08);
  --shadow-2: 0 18px 50px rgba(13, 33, 18, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.25s;

  /* Header geometry (used by the sticky-header offset in global.css) */
  --brand-row-h: 88px;
  --nav-row-h: 52px;
}
