/* ============================================================
   BEST STEAMERS — FOUNDATION TOKENS (M2)
   shop.besteamers.site
   ------------------------------------------------------------
   The six core brand colors are LOCKED. Do not sample them from
   the logo renders — the 3D shading in those files reads several
   points off, and eyedropping produces drift.
   ============================================================ */

:root {

  /* ---------- CORE PALETTE · LOCKED ---------- */
  --bs-orange:            #FF4D1F;  /* Ignition Orange — primary accent, CTAs */
  --bs-cyan:              #00C2CB;  /* Vapor Cyan — secondary accent */
  --bs-charcoal:          #1E1E1E;  /* Jet Charcoal — ink, premium backgrounds */
  --bs-steel:             #6B6B6B;  /* Steel Gray — secondary text */
  --bs-mist:              #D8D8D8;  /* Mist Gray — dividers, light secondary */
  --bs-cloud:             #F7F5F2;  /* Cloud White — primary background */
  --bs-white:             #FFFFFF;

  /* ---------- ORANGE RAMP · UI states only ---------- */
  --bs-orange-50:         #FFF1ED;
  --bs-orange-100:        #FFDFD7;
  --bs-orange-200:        #FFBFAE;
  --bs-orange-300:        #FF9B82;
  --bs-orange-400:        #FF7450;
  --bs-orange-500:        #FF4D1F;  /* = --bs-orange */
  --bs-orange-600:        #D8431C;  /* hover */
  --bs-orange-700:        #B13819;  /* active / pressed */
  --bs-orange-800:        #862C16;
  --bs-orange-900:        #5A2112;

  /* ---------- CYAN RAMP · UI states only ---------- */
  --bs-cyan-50:           #EBFAFB;
  --bs-cyan-100:          #D1F4F6;
  --bs-cyan-200:          #A3E9EC;
  --bs-cyan-300:          #70DDE2;
  --bs-cyan-400:          #38CFD6;
  --bs-cyan-500:          #00C2CB;  /* = --bs-cyan */
  --bs-cyan-600:          #02A5AC;
  --bs-cyan-700:          #04888E;
  --bs-cyan-800:          #06676C;
  --bs-cyan-900:          #084649;

  /* ---------- NEUTRAL RAMP ---------- */
  --bs-neutral-bg:        #F7F5F2;  /* = --bs-cloud */
  --bs-neutral-100:       #F3F3F3;
  --bs-neutral-200:       #E4E4E4;
  --bs-neutral-300:       #D8D8D8;  /* = --bs-mist */
  --bs-neutral-400:       #ACACAC;
  --bs-neutral-500:       #6B6B6B;  /* = --bs-steel */
  --bs-neutral-600:       #5C5C5C;
  --bs-neutral-700:       #4D4D4D;
  --bs-neutral-800:       #3C3C3C;
  --bs-neutral-ink:       #1E1E1E;  /* = --bs-charcoal */

  /* ---------- DERIVED TEXT TOKENS ----------
     Neither accent is legible as small text on light surfaces.
     These darkened variants exist ONLY for that job — they are
     not substitutes for the brand colors in fills or graphics. */
  --bs-orange-text:       #CA3F1B;  /* 4.57:1 on Cloud White */
  --bs-cyan-text:         #057D82;  /* 4.53:1 on Cloud White */
  --bs-steel-on-dark:     #868686;  /* 4.56:1 on Jet Charcoal */

  /* ---------- SEMANTIC ASSIGNMENTS ---------- */
  --bs-bg:                var(--bs-cloud);
  --bs-bg-elevated:       var(--bs-white);
  --bs-bg-inverse:        var(--bs-charcoal);
  --bs-text-primary:      var(--bs-charcoal);
  --bs-text-secondary:    var(--bs-steel);
  --bs-text-inverse:      var(--bs-cloud);
  --bs-text-link:         var(--bs-cyan-text);
  --bs-border:            var(--bs-mist);
  --bs-border-subtle:     var(--bs-neutral-200);

  /* CTA — charcoal on orange. White on orange is 3.32:1 and FAILS
     at button-label size. Do not override. */
  --bs-cta-bg:            var(--bs-orange);
  --bs-cta-bg-hover:      var(--bs-orange-600);
  --bs-cta-bg-active:     var(--bs-orange-700);
  --bs-cta-text:          var(--bs-charcoal);

  /* ---------- LOGO GEOMETRY · IMMUTABLE ----------
     Always declare BOTH dimensions. Never let one resolve. */
  --bs-logo-h-ratio:      3.167;    /* Full Horizontal 3167×1000 */
  --bs-logo-icon-ratio:   1;        /* Icon Only 1000×1000 */
  --bs-logo-stack-ratio:  1;        /* Vertical Stack 2000×2000 */
  --bs-logo-min-width:    101px;    /* below this, switch to Icon Only */
  --bs-logo-min-height:   32px;
  --bs-logo-print-min:    25mm;
}

/* ============================================================
   LOGO PLACEMENT — the only safe pattern.
   The earlier compression bug came from a column flex container
   inheriting align-items:stretch and pulling the mark to the
   width of its widest sibling. These three guards are redundant
   on purpose: any one of them failing still leaves two.
   ============================================================ */

.bs-logo {
  object-fit: contain;      /* never fills, never crops */
  flex: none;               /* immune to flex stretch/shrink */
  align-self: flex-start;   /* immune to align-items:stretch */
}

/* Pre-computed size pairs — pick one, set both. */
.bs-logo--nav     { width: 101px; height: 32px; }   /* minimum */
.bs-logo--header  { width: 127px; height: 40px; }
.bs-logo--footer  { width: 152px; height: 48px; }
.bs-logo--card    { width: 203px; height: 64px; }
.bs-logo--hero    { width: 304px; height: 96px; }
.bs-logo--xl      { width: 380px; height: 120px; }

.bs-icon--sm      { width: 32px;  height: 32px; }
.bs-icon--md      { width: 48px;  height: 48px; }
.bs-icon--lg      { width: 96px;  height: 96px; }

/* Clearspace: margin on all sides equal to the icon's full height. */
.bs-logo-lockup   { padding: 1em; }  /* 1em = icon height at current scale */
