@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Archivo:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');
/* ============================================================
   BarberMaxx United States — Foundations
   Colors & Typography tokens. Import this in any artifact.
   ============================================================ */

/* --- Webfonts -------------------------------------------------
   Brand primary display: "BarberChop" — proprietary face,
   served locally from ./fonts/BarberChop.otf.
   Brand secondary: Montserrat (Google Fonts). Use 1:1.
   Big Shoulders Display kept as a metric-similar fallback so
   layout doesn't reflow during font swap on slow connections.
   ------------------------------------------------------------ */

@font-face {
  font-family: "BarberChop";
  src: url("./fonts/BarberChop.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============ COLOR — RAW PALETTE ============
     Pulled directly from the Brand Guide. Five values, period. */
  --bm-black:       #000000; /* Primary ink. Backgrounds, body, ALL CAPS display. */
  --bm-graphite:    #505353; /* Mid-grey. Secondary text, dividers, subtle fills. */
  --bm-blue:        #4F86C6; /* Brand accent — barber-pole blue. Links, badges. */
  --bm-fog:         #BEBEC6; /* Cool light grey. Borders, disabled, surface lines. */
  --bm-red:         #ED3024; /* Brand alert — barber-pole red. CTAs, emphasis. */
  --bm-white:       #FFFFFF; /* Pure white. Reverse type, paper surfaces. */

  /* ============ COLOR — SEMANTIC ============ */
  /* Surfaces */
  --bg-page:        var(--bm-black);
  --bg-paper:       #0B0B0C;     /* near-black card */
  --bg-elevated:    #161618;     /* tooltip / popover */
  --bg-paper-light: var(--bm-white);
  --bg-tile:        #1B1B1E;     /* product card on dark */
  --bg-stripe:      #0F0F11;     /* alternating row */

  /* Foreground */
  --fg-1:           var(--bm-white);   /* primary text on dark */
  --fg-2:           #C9C9CE;           /* secondary text on dark */
  --fg-3:           var(--bm-graphite);/* tertiary / metadata */
  --fg-ink:         var(--bm-black);   /* primary text on light */
  --fg-ink-2:       #2A2A2C;           /* secondary on light */
  --fg-ink-3:       var(--bm-graphite);

  /* Lines */
  --line:           #1F1F22;           /* hairline on dark */
  --line-soft:      rgba(255,255,255,0.08);
  --line-ink:       var(--bm-fog);     /* line on light */

  /* Accents */
  --accent:         var(--bm-red);     /* primary CTA, sale tags */
  --accent-blue:    var(--bm-blue);    /* informational, secondary CTA */
  --accent-hover:   #FF4337;
  --accent-press:   #C8221A;

  /* Status (derived from palette where possible) */
  --status-success: #2FA871;           /* derived green, used sparingly */
  --status-warning: #F5A524;           /* derived warm, used sparingly */
  --status-danger:  var(--bm-red);

  /* ============ TYPOGRAPHY — FAMILIES ============ */
  --font-display: "BarberChop", "Big Shoulders Display", "Oswald", Impact, sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ============ TYPOGRAPHY — SCALE ============
     Mobile-first; bump display sizes on large screens. */
  --fs-display-xl: clamp(56px, 9vw, 128px); /* hero */
  --fs-display-l:  clamp(40px, 6vw, 88px);  /* page title */
  --fs-display-m:  clamp(32px, 4vw, 56px);  /* section */
  --fs-h1:         clamp(28px, 3vw, 40px);
  --fs-h2:         clamp(22px, 2.2vw, 30px);
  --fs-h3:         18px;
  --fs-body:       16px;
  --fs-body-sm:    14px;
  --fs-caption:    12px;
  --fs-eyebrow:    11px;

  --lh-display:    0.92;
  --lh-tight:      1.1;
  --lh-snug:       1.25;
  --lh-body:       1.55;

  /* Letter-spacing (display is condensed/heavy; body is plain) */
  --tracking-display: -0.01em;
  --tracking-eyebrow: 0.18em;
  --tracking-button:  0.08em;

  /* ============ SPACING ============ */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* ============ RADII ============
     The brand is masculine and architectural — radii are SMALL.
     Sharp corners on display surfaces; subtle on form fields. */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;

  /* ============ SHADOWS ============
     Brand is dark; shadows are heavy & directional. */
  --shadow-1: 0 1px 0 rgba(0,0,0,0.4);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-3: 0 12px 28px rgba(0,0,0,0.55);
  --shadow-4: 0 24px 60px rgba(0,0,0,0.7);
  --shadow-red:  0 6px 24px rgba(237, 48, 36, 0.35);
  --shadow-blue: 0 6px 24px rgba(79, 134, 198, 0.35);

  /* ============ BORDERS ============ */
  --b-hair:  1px solid var(--line);
  --b-soft:  1px solid var(--line-soft);
  --b-ink:   1px solid var(--bm-black);
  --b-fog:   1px solid var(--bm-fog);
  --b-accent:1px solid var(--accent);

  /* ============ MOTION ============ */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* ============ LAYOUT ============ */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 24px;
  --header-h: 72px;
}

/* ============================================================
   SEMANTIC ELEMENT DEFAULTS
   Apply on the document root or scope under [data-bm].
   ============================================================ */

html, body { background: var(--bg-page); color: var(--fg-1); }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }

h1, .h1, .display-l {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-l);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  margin: 0;
}
h2, .h2, .display-m {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-m);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  margin: 0;
}

p { margin: 0 0 var(--s-4); color: var(--fg-2); }
small, .caption { font-size: var(--fs-caption); color: var(--fg-3); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-2);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--bm-white); border-bottom-color: var(--accent-blue); }

code, pre { font-family: var(--font-mono); font-size: 13px; }

/* Reverse: light-theme blocks (paper-on-dark surfaces) */
[data-theme="light"] {
  background: var(--bg-paper-light);
  color: var(--fg-ink);
}
[data-theme="light"] p { color: var(--fg-ink-2); }
[data-theme="light"] small, [data-theme="light"] .caption { color: var(--fg-ink-3); }
/* ============================================================
   BARBER MAXX — Design System Foundations
   colors_and_type.css
   Premium dark + silver + gold, with barber-pole heritage accents.
   Fonts are Google Fonts substitutions (see README → CAVEATS).
   ============================================================ */


:root {
  /* ---------- TYPE FAMILIES ---------- */
  --bm-font-display: 'Oswald', 'Arial Narrow', sans-serif;   /* condensed, uppercase, athletic */
  --bm-font-body: 'Archivo', system-ui, sans-serif;          /* modern grotesque body */
  --bm-font-mono: 'Space Mono', ui-monospace, monospace;     /* spec tables, eyebrows, codes */

  /* ---------- PRIMARY (black & white base) ---------- */
  --bm-ink:        #0B0B0B;   /* Premium Black — page background */
  --bm-black:      #141414;   /* near-black surface step */
  --bm-surface:    #1A1A1A;   /* Dark Charcoal — cards */
  --bm-surface-2:  #232323;   /* elevated card / hover */
  --bm-surface-3:  #2C2C2C;   /* inputs, wells */
  --bm-white:      #FFFFFF;
  --bm-line:        rgba(255,255,255,0.10);  /* hairline border */
  --bm-line-strong: rgba(255,255,255,0.18);  /* emphasized border */

  /* ---------- SECONDARY (grays) ---------- */
  --bm-light-gray:  #F4F4F4;
  --bm-medium-gray: #6B6B6B;
  --bm-silver:    #F4F4F4;   /* alias → Light Gray */
  --bm-steel:     #A8A8A8;
  --bm-gray:      #6B6B6B;   /* Medium Gray */
  --bm-gray-dim:  #3A3A3A;

  /* ---------- TEXT ---------- */
  --bm-fg:        #FFFFFF;   /* primary text on dark */
  --bm-fg-2:      #B8B8B8;   /* secondary text */
  --bm-fg-3:      #6B6B6B;   /* Medium Gray — tertiary / captions */
  --bm-fg-invert: #0B0B0B;   /* text on white / light / gold */

  /* ---------- ACCENT · RED (strong CTAs & actions) ---------- */
  --bm-red:        #C1121F;  /* Barber Red */
  --bm-red-bright: #E0202E;
  --bm-red-deep:   #930B16;
  --bm-red-soft:   rgba(193,18,31,0.16);
  --bm-red-line:   rgba(193,18,31,0.45);

  /* ---------- ACCENT · GOLD (subtle premium details only) ---------- */
  --bm-gold:        #C9A24D;  /* Premium Gold */
  --bm-gold-bright: #E0C079;
  --bm-gold-deep:   #997636;
  --bm-gold-soft:   rgba(201,162,77,0.14);
  --bm-gold-line:   rgba(201,162,77,0.42);

  /* ---------- SEMANTIC ---------- */
  --bm-success: #3FB57A;
  --bm-warning: #C9A24D;
  --bm-danger:  #C1121F;
  --bm-info:    #A8A8A8;

  /* ---------- LIGHT MODE TOKENS (rare — light sections) ---------- */
  --bm-paper:     #F6F5F2;   /* warm off-white */
  --bm-paper-2:   #ECEAE4;
  --bm-on-paper:  #1A1B1E;

  /* ---------- RADII ---------- */
  --bm-r-xs:  3px;
  --bm-r-sm:  6px;
  --bm-r-md:  10px;
  --bm-r-lg:  16px;
  --bm-r-xl:  24px;
  --bm-r-pill: 999px;

  /* ---------- SPACING (4pt) ---------- */
  --bm-s-1: 4px;
  --bm-s-2: 8px;
  --bm-s-3: 12px;
  --bm-s-4: 16px;
  --bm-s-5: 24px;
  --bm-s-6: 32px;
  --bm-s-7: 48px;
  --bm-s-8: 64px;
  --bm-s-9: 96px;
  --bm-s-10: 128px;

  /* ---------- ELEVATION / SHADOW ---------- */
  --bm-shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --bm-shadow-md: 0 8px 24px -8px rgba(0,0,0,0.65);
  --bm-shadow-lg: 0 24px 60px -18px rgba(0,0,0,0.78);
  --bm-glow-red:  0 10px 34px -10px rgba(193,18,31,0.50);
  --bm-glow-gold: 0 10px 34px -10px rgba(201,162,77,0.40);
  --bm-inset-top: inset 0 1px 0 rgba(255,255,255,0.06);

  /* ---------- MOTION ---------- */
  --bm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bm-dur-fast: 140ms;
  --bm-dur: 220ms;
  --bm-dur-slow: 420ms;

  /* ---------- LAYOUT ---------- */
  --bm-maxw: 1200px;
  --bm-gutter: 24px;
}

/* ============================================================
   SEMANTIC TYPE  — apply these classes or copy the rules.
   Display = Oswald, condensed, uppercase, tight tracking.
   ============================================================ */

.bm-display {
  font-family: var(--bm-font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bm-fg);
}

.bm-h1 {
  font-family: var(--bm-font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--bm-fg);
}

.bm-h2 {
  font-family: var(--bm-font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: 0.014em;
  text-transform: uppercase;
  color: var(--bm-fg);
}

.bm-h3 {
  font-family: var(--bm-font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bm-fg);
}

.bm-eyebrow {
  font-family: var(--bm-font-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bm-gold);
}

.bm-lead {
  font-family: var(--bm-font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--bm-fg-2);
}

.bm-body {
  font-family: var(--bm-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bm-fg-2);
}

.bm-small {
  font-family: var(--bm-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bm-fg-3);
}

.bm-spec-label {
  font-family: var(--bm-font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-fg-3);
}

.bm-price {
  font-family: var(--bm-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.01em;
  color: var(--bm-fg);
}

/* Gold-on-text helper */
.bm-gold-text { color: var(--bm-gold); }
.bm-silver-text { color: var(--bm-silver); }
