/**
 * Design Tokens — CSS Custom Properties
 * ---------------------------------------------------------------------------
 * File: assets/css/variables.css
 * Enqueued by: inc/enqueue.php (handle: gdq-variables), loaded FIRST in the
 * cascade — every other stylesheet assumes these tokens already exist.
 *
 * Single source of truth for every colour, type, spacing, radius, shadow,
 * motion, z-index, container and breakpoint value approved in the GDQ
 * Design System & Development Specification. No component or section rule
 * belongs in this file — tokens only. Nothing here is new since Sprint 1
 * except the additions Sprint 2A specifically asked for (z-index scale,
 * container widths, a couple of convenience transition tokens) — colours,
 * type, spacing, radius, shadow and motion values are unchanged from the
 * approved blueprint and Sprint 1's foundation.
 *
 * RULE: if a value is used more than once anywhere in this theme, it MUST
 * be a token here first. No component file (Sprint 2B onward) may
 * hard-code a colour, spacing, radius, shadow, duration, z-index, or
 * breakpoint value — it references a variable defined below instead.
 */

:root {

	/* ==========================================================================
	   COLOUR
	   Rationale: one dark navy scale + one gold accent + two text tones,
	   matching the palette confirmed identical across all 6 analysed pages.
	   ========================================================================== */
	--gdq-color-bg-primary:      #0B1320; /* primary navy — nav, hero, section backgrounds */
	--gdq-color-bg-surface:      #111828; /* elevated card/panel surface on primary bg */
	--gdq-color-bg-surface-alt:  #0F1626; /* secondary surface — forms, info cards */
	--gdq-color-bg-inverse:      #161719; /* near-black alternate section background */
	--gdq-color-accent:          #C8A45B; /* primary gold accent — CTAs, links, emphasis */
	--gdq-color-accent-hover:    #c4a672; /* GDQ Gold — lighter hover */ /* accent hover/active state (~10% darker) */
	--gdq-color-text-heading:    #F5F0E8; /* headings on dark backgrounds */
	--gdq-color-text-body:       #A8A8AE; /* body copy — lightened in Sprint 1 from the initial
	                                          Figma estimate specifically to help clear WCAG AA
	                                          contrast against navy; see README §9 */
	--gdq-color-border:          #1C2333; /* hairline card/panel borders */
	--gdq-color-white:           #FFFFFF; /* form input backgrounds, high-contrast text */

	/* Semantic aliases — used by base/typography/layout instead of the raw
	   palette names above, so a future rebrand only ever touches THIS block,
	   never the semantic layer. */
	--gdq-color-text-selection-bg: var(--gdq-color-accent);
	--gdq-color-text-selection-fg: var(--gdq-color-bg-primary);
	--gdq-color-focus-ring:        var(--gdq-color-accent);
	--gdq-color-border-table:      var(--gdq-color-border);
	--gdq-color-code-bg:           var(--gdq-color-bg-surface);
	--gdq-color-code-text:         var(--gdq-color-text-heading);
	--gdq-color-blockquote-border: var(--gdq-color-accent);
	--gdq-color-error: #E5484D; /* Sprint 2B addition — semantic error red for
	                                form validation states. The one deliberate
	                                new colour in the palette: WCAG AA error
	                                states need a hue distinct from the brand
	                                gold (already used for positive/accent
	                                meaning) and navy — reusing either for
	                                "something is wrong" would be confusing.
	                                Tokenised here rather than hardcoded in
	                                form.css so it still follows the
	                                single-source-of-truth rule. */

	/* ==========================================================================
	   TYPOGRAPHY
	   Rationale: one font family (weight differentiates heading/body, not
	   typeface — confirmed across all 6 pages); scale below extends the
	   blueprint's documented H1–H3 sizes down through H4–H6 using the same
	   modular step the approved sizes already imply, rather than inventing
	   an unrelated scale.
	   ========================================================================== */
	--gdq-font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	/* Placeholder system-font stack until the production typeface is
	   confirmed with the client/designer (open item carried from the
	   blueprint). Swapping this one line updates every heading/body
	   element sitewide — no other file references a font name directly. */
	--gdq-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	/* Monospace stack for <code>/<pre> — not specified in the blueprint (no
	   code blocks appeared in any of the 6 analysed pages), so this uses
	   each OS's native monospace font rather than inventing a brand choice
	   that was never approved. */

	--gdq-text-h1-size:   3.5rem;    /* ~56px — approved */
	--gdq-text-h1-weight: 700;
	--gdq-text-h1-lh:     1.1;

	--gdq-text-h2-size:   2.25rem;   /* ~36px — approved */
	--gdq-text-h2-weight: 700;
	--gdq-text-h2-lh:     1.2;

	--gdq-text-h3-size:   1.25rem;   /* ~20px — approved */
	--gdq-text-h3-weight: 600;
	--gdq-text-h3-lh:     1.3;

	--gdq-text-h4-size:   1.125rem;  /* ~18px — extrapolated, not shown in source designs */
	--gdq-text-h4-weight: 600;
	--gdq-text-h4-lh:     1.35;

	--gdq-text-h5-size:   1rem;      /* ~16px — extrapolated */
	--gdq-text-h5-weight: 600;
	--gdq-text-h5-lh:     1.4;

	--gdq-text-h6-size:   0.875rem;  /* ~14px — extrapolated */
	--gdq-text-h6-weight: 600;
	--gdq-text-h6-lh:     1.4;

	--gdq-text-lead-size:   1.25rem;  /* larger intro/lead paragraph — extrapolated from
	                                      hero/section-intro copy, which consistently reads
	                                      larger than standard body text across all pages */
	--gdq-text-lead-weight: 400;
	--gdq-text-lead-lh:     1.5;

	--gdq-text-body-size:   1rem;     /* ~16px — approved */
	--gdq-text-body-weight: 400;
	--gdq-text-body-lh:     1.6;

	--gdq-text-small-size:   0.875rem; /* ~14px — extrapolated, captions/meta/fine print */
	--gdq-text-small-weight: 400;
	--gdq-text-small-lh:     1.5;

	--gdq-text-eyebrow-size:   0.8125rem; /* ~13px — approved */
	--gdq-text-eyebrow-weight: 600;
	--gdq-text-eyebrow-ls:     0.09375rem; /* ~1.5px */

	--gdq-text-button-size:   0.875rem; /* ~14px — approved */
	--gdq-text-button-weight: 600;

	--gdq-text-stat-size:   2.25rem;  /* ~36px — approved */
	--gdq-text-stat-weight: 700;

	--gdq-text-stat-label-size:   0.75rem; /* ~12px — approved */
	--gdq-text-stat-label-weight: 500;

	--gdq-text-caption-size:  0.8125rem; /* ~13px — extrapolated, figcaption/image credits */
	--gdq-text-caption-weight: 400;
	--gdq-text-caption-style:  italic;

	/* ==========================================================================
	   SPACING — 8px base unit, confirmed consistent across all 6 pages
	   ========================================================================== */
	--gdq-space-1: 0.5rem;   /* 8px */
	--gdq-space-2: 1rem;     /* 16px */
	--gdq-space-3: 1.5rem;   /* 24px */
	--gdq-space-4: 2rem;     /* 32px */
	--gdq-space-5: 2.5rem;   /* 40px */
	--gdq-space-6: 4rem;     /* 64px */
	--gdq-space-7: 6rem;     /* 96px */
	--gdq-space-8: 7.5rem;   /* 120px */

	/* ==========================================================================
	   BORDER RADIUS
	   ========================================================================== */
	--gdq-radius-sm:   4px;
	--gdq-radius-md:   8px;
	--gdq-radius-lg:   12px;
	--gdq-radius-pill: 999px;

	/* ==========================================================================
	   SHADOW — flat/dark-mode design; shadows reserved for interaction
	   feedback only, never resting-state decoration (Design Spec §3.5)
	   ========================================================================== */
	--gdq-shadow-none:        none;
	--gdq-shadow-glow-accent: 0 0 24px rgba(200, 164, 91, 0.35);
	

	/* ==========================================================================
	   TRANSITION / ANIMATION
	   ========================================================================== */
	--gdq-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--gdq-duration-fast: 150ms;
	--gdq-duration-base: 300ms;
	--gdq-duration-slow: 600ms;

	/* Convenience composites — Sprint 2A addition. Saves every component
	   from re-assembling "property duration easing" by hand and drifting
	   out of sync between files. */
	--gdq-transition-fast: all var(--gdq-duration-fast) var(--gdq-ease-standard);
	--gdq-transition-base: all var(--gdq-duration-base) var(--gdq-ease-standard);
	--gdq-transition-slow: all var(--gdq-duration-slow) var(--gdq-ease-standard);

	/* ==========================================================================
	   Z-INDEX SCALE — Sprint 2A addition
	   Rationale: a named, stepped scale (rather than ad-hoc 999/9999 numbers
	   scattered per component) prevents stacking-context bugs as more
	   overlapping UI (sticky header, mobile drawer, future modals/toasts)
	   gets built. Large gaps between steps leave room to insert a new layer
	   later without renumbering everything above it.
	   ========================================================================== */
	--gdq-z-base:     0;    /* normal document flow */
	--gdq-z-dropdown: 100;  /* menu dropdowns, select-like popovers */
	--gdq-z-sticky:   200;  /* sticky/fixed header */
	--gdq-z-drawer:   300;  /* mobile nav drawer/overlay */
	--gdq-z-overlay:  400;  /* modal backdrop */
	--gdq-z-modal:    500;  /* modal/dialog content */
	--gdq-z-toast:    600;  /* toast/notification, above everything transient */
	--gdq-z-max:      9999; /* escape hatch for genuine emergencies only — using this
	                            anywhere should be treated as a code-review flag */

	/* ==========================================================================
	   CONTAINER WIDTHS — Sprint 2A addition
	   Rationale: all 6 analysed pages consistently center content in a
	   ~1200–1280px measure. Three named widths are exposed so different
	   content types (a full section vs. narrow text-only copy vs. an
	   intentionally wide media grid) have an explicit, reusable choice
	   instead of one-off widths appearing in individual files later.
	   ========================================================================== */
	--gdq-container-narrow: 800px;  /* long-form text: single-column article body copy */
	--gdq-container-max:    1200px; /* default — matches the measure used across all 6 pages */
	--gdq-container-wide:   1400px; /* reserved for a future wide media/gallery layout */

	/* ==========================================================================
	   RESPONSIVE BREAKPOINTS
	   NOTE: CSS custom properties cannot be read inside @media conditions
	   (a CSS engine limitation, not a choice) — these values exist for
	   documentation/JS use (e.g. matchMedia in future JS modules). Every
	   @media rule in base.css/typography.css/layout.css and all future
	   component files MUST hard-code the SAME pixel value shown here, and
	   MUST comment which token it mirrors, e.g.:
	     @media (min-width: 768px) { … }  -- mirrors --gdq-bp-tablet
	   This keeps one documented source of truth even though the language
	   forces the literal number to be repeated at each call site.
	   ========================================================================== */
	--gdq-bp-tablet:  768px;
	--gdq-bp-desktop: 1200px;

	/* ==========================================================================
	   ICON DEFAULTS (Design Spec §3.9)
	   ========================================================================== */
	--gdq-icon-size-default:  24px;
	--gdq-icon-stroke-width:  2px;
	--gdq-icon-color-default: var(--gdq-color-accent);
	--gdq-icon-color-hover:   var(--gdq-color-text-heading);
}
