/* ==========================================================================
   VARIABLES.CSS
   Design tokens extracted from the approved HM UNIQUE Website Concept PDF.
   This file is the single source of truth for every color, spacing, radius,
   shadow, and type value used across the site. No other file should hard
   code a raw color/px value that belongs here.

   NOTE: exact brand hex codes and the confirmed font family are pending
   final source-file confirmation (see Phase 1 Recommendation #1). The
   values below are the closest analytical match to the concept PDF and
   are isolated here so a future correction only requires editing this
   one file.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     COLOR — PRIMARY
     Refined during the UI Refinement phase — navy and teal moved
     slightly closer to the concept PDF's actual rendered colors
     (pixel-sampled from the reference screenshots), not a redesign.
     --------------------------------------------------------------------- */
  --color-navy-900: #0c2836;   /* deepest navy — header, hero, dark bands */
  --color-navy-800: #10334533; /* not used directly, kept for reference   */
  --color-navy-800-solid: #102f3f; /* footer background                  */
  --color-navy-700: #14374c;   /* hover state on navy surfaces           */
  --color-cta-band-bg: #033139; /* global "Looking for the Right Products"
                                    CTA band background — pixel-sampled
                                    from the reference, a richer teal-navy
                                    distinct from the darker footer tone */

  /* COLOR — ACCENT (Teal + Accent Cyan)
     Two distinct accent shades, matching the concept PDF, which uses a
     mid-teal for buttons/icons/interactive elements and a brighter,
     more saturated cyan specifically for keyword highlights inside
     dark-background headings (the hero's "Electricals, Electronics,
     Hardwares & Industrial Tools" phrase). Using cyan on a LIGHT
     background instead would fail contrast (verified: 2.43:1, well
     under the 3:1 large-text minimum), so cyan is reserved for
     dark-background contexts only — see .text-accent in style.css. */
  --color-teal-500: #0f96a0;   /* primary accent — buttons, icons, links */
  --color-teal-600: #0c7d87;   /* hover/active state of teal accent      */
  --color-teal-100: #e3f5f6;   /* tinted teal background (success box)   */
  /* Stage 7A: the approved brand teal. teal-500 is only 3.57:1 on white
     (3.35:1 on the light surface), so it is kept for icons, borders and
     other non-text graphics (3:1) and brand teal is used wherever teal is
     NORMAL TEXT on a light surface or the BACKGROUND of a white label.
     White on #0d5c63 is 7.70:1; #0d5c63 on white is 7.70:1. */
  --color-teal-brand: #0d5c63;
  --color-teal-brand-hover: #094a50;   /* pressed/hover shade of brand teal (white on it 9.97:1) */
  --color-cyan-500: #06b6d4;   /* accent cyan — dark-background heading keyword highlights only */

  /* COLOR — CTA GOLD (secondary accent, used sparingly) */
  --color-gold-500: #f2a83c;
  --color-gold-600: #dd9527;

  /* COLOR — NEUTRAL */
  --color-white: #ffffff;
  --color-surface-light: #f6f8f9;
  --color-surface-alt: #eef2f3;
  --color-border: #e3e7ea;
  --color-border-control: #7b868e;   /* Stage 7A: form-control boundary; 3.72:1 on white, 3.49:1 on the light surface (WCAG 1.4.11 needs 3:1). --color-border (1.24:1) stays for decorative dividers/cards. */
  --color-text-heading: #10181f;
  --color-text-body: #5b6670;
  --color-text-muted: #646f77;   /* Stage 7A: was #8a939a (3.12:1 on white); now 5.14:1 white / 4.83:1 light surface / 4.56:1 alt surface */
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #c3d3d8;

  /* COLOR — SEMANTIC */
  --color-success: #2fae4e;
  --color-error: #b8322a;   /* Stage 7A: was #e0453a (4.13:1 on white, ~3.7:1 on the error tint); now 5.95:1 white / 5.08:1 on --color-error-tint */
  --color-error-tint: #fbe9e8;

  /* COLOR — OVERLAYS (all rgba() values used anywhere in the project
     must be tokenized here — no raw rgba()/hex outside this file) */
  --overlay-navy-40: rgba(14, 43, 59, 0.4);
  --overlay-navy-50: rgba(14, 43, 59, 0.5);
  --overlay-navy-55: rgba(14, 43, 59, 0.55);
  --overlay-white-08: rgba(255, 255, 255, 0.08);
  --overlay-white-10: rgba(255, 255, 255, 0.1);
  --overlay-white-12: rgba(255, 255, 255, 0.12);
  --overlay-white-40: rgba(255, 255, 255, 0.4);
  --overlay-white-50: rgba(255, 255, 255, 0.5);

  /* COLOR — THIRD-PARTY BRAND (fixed by the platform's own brand
     guidelines, not part of HM UNIQUE's palette — kept here, not
     inline in components.css, so it is still the single audited
     source of every color in the project) */
  --color-whatsapp-brand: #25d366;

  /* ---------------------------------------------------------------------
     TYPOGRAPHY
     Three-family hierarchy (Phase: UI Refinement) — replaces the
     earlier single-family (Poppins/Inter) system with a deliberate
     hierarchy matching content role, loaded via Google Fonts:
       Primary heading (h1, h2)   -> Plus Jakarta Sans, bold/extrabold
       Secondary heading (h3, h4) -> Manrope, bold
       Body / specs               -> Inter, regular
       Buttons                    -> Inter, medium
       Navigation                 -> Inter, semibold
       Small labels / eyebrows    -> Inter, medium
     --------------------------------------------------------------------- */
  --font-heading-primary: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-heading-secondary: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Kept as an alias so any rule still referencing --font-heading
     directly (rather than the new primary/secondary split) resolves
     to the correct primary-heading family, not a stale one. */
  --font-heading: var(--font-heading-primary);

  --fs-h1: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body-lg: 1.0625rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-heading: 1.25;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --ls-eyebrow: 0.08em;

  /* ---------------------------------------------------------------------
     SPACING SCALE (4px base unit)
     --------------------------------------------------------------------- */
  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 6rem;      /* 96px */

  --section-padding-y: var(--space-8);
  --section-padding-y-sm: var(--space-6);

  /* ---------------------------------------------------------------------
     CONTAINERS & GRID
     --------------------------------------------------------------------- */
  --container-max: 1320px;
  --container-gutter: 1.5rem;
  --container-gutter-sm: 1rem;
  --grid-gap: var(--space-5);

  /* Height of the sticky header (utility bar + main row, ~110px) plus a
     little slack. Used as scroll-padding-top in style.css so anchor
     jumps and keyboard focus scrolling never land underneath it;
     responsive.css zeroes it on short viewports where the header
     stops being sticky. */
  --header-offset: 9.5rem;  /* static fallback; js/navigation.js replaces it with the measured header height */

  /* Space reserved at the bottom of the page / scroll area so the fixed
     floating controls never sit on top of the last line of content. */
  --floating-clearance: 4.5rem;

  /* ---------------------------------------------------------------------
     RADIUS
     --------------------------------------------------------------------- */
  --radius-sm: 6px;    /* inputs, buttons   */
  --radius-md: 12px;   /* cards             */
  --radius-lg: 20px;   /* hero/banner/modal */
  --radius-pill: 999px;

  /* ---------------------------------------------------------------------
     SHADOWS
     --------------------------------------------------------------------- */
  --shadow-sm: 0 2px 6px rgba(16, 24, 31, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 31, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 31, 0.14);
  --shadow-modal: 0 20px 60px rgba(14, 43, 59, 0.35);

  /* ---------------------------------------------------------------------
     TRANSITIONS
     --------------------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 350ms ease;

  /* ---------------------------------------------------------------------
     Z-INDEX SCALE
     --------------------------------------------------------------------- */
  --z-header: 500;
  --z-dropdown: 520;
  --z-mobile-nav: 600;
  /* Floating call/WhatsApp and scroll-to-top controls sit BELOW the
     mobile drawer and its overlay (they used to be 650, above both, so
     they stayed bright and tappable on top of an open drawer and
     covered its links). They remain above ordinary page content. */
  --z-floating-buttons: 450;
  --z-scroll-top: 450;
  --z-modal-overlay: 900;
  --z-modal: 910;

  /* ---------------------------------------------------------------------
     BREAKPOINT REFERENCE (informational only — CSS custom properties
     cannot be used inside @media queries, actual values live in
     responsive.css; kept here so both files are derived from one
     documented source of truth)

     Mobile-first — base styles below (no media query) target Mobile.
     Every breakpoint below is a min-width, progressively enhancing
     the layout upward. Standardized 5-tier list, no internal splits:

     Mobile       : 0px     (default, no media query)
     Large Mobile : >= 480px
     Tablet       : >= 768px
     Laptop       : >= 992px
     Desktop      : >= 1200px
     --------------------------------------------------------------------- */
}
