/*
 * Bluespectrum Innovative — Design System Utilities
 * ══════════════════════════════════════════════════════════════════
 *
 * RULE: Before writing any custom CSS for a new section, check here.
 * If a utility class handles it, use the class — do NOT duplicate it.
 *
 * Load order: tokens.css → system.css → styles.css → page <style>
 *
 * Contents:
 *   1. Layout    — section wrappers, inner containers
 *   2. Backgrounds
 *   3. Typography — heading, body, label scales
 *   4. Text colors
 *   5. Section label component
 *   6. Dividers & borders
 *   7. Spacing helpers
 * ══════════════════════════════════════════════════════════════════
 */


/* ══════════════════════════════════════════════════════════════════
   1. LAYOUT
   ══════════════════════════════════════════════════════════════════

   Standard section padding (vertical rhythm for the whole site):
     .section        → 80px top/bottom  (default)
     .section--lg    → 120px            (hero-adjacent, feature sections)
     .section--sm    → 48px             (compact sections, intros)
     .section--flush → 0 padding        (full-bleed images, etc.)

   Inner container widths:
     .section-inner          → 1440px  (full canvas — matches existing pages)
     .section-inner--frame   → 1200px  (Figma frame width — matches Figma exactly)
     .section-inner--narrow  → 960px   (text-heavy, article-like sections)

   Combine: <section class="section bg-navy">
              <div class="section-inner--frame"> … </div>
            </section>
   ══════════════════════════════════════════════════════════════════ */

.section         { padding: 80px var(--gutter); }
.section--lg     { padding: 120px var(--gutter); }
.section--sm     { padding: 48px var(--gutter); }
.section--flush  { padding-left: var(--gutter); padding-right: var(--gutter); }

.section-inner {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.section-inner--frame {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-inner--narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════════════════════════════
   2. BACKGROUNDS
   ══════════════════════════════════════════════════════════════════ */

.bg-white       { background-color: var(--color-white); }
.bg-navy        { background-color: var(--color-navy); }
.bg-dark        { background-color: var(--color-near-black); }
.bg-primary     { background-color: var(--color-primary); }
.bg-light       { background-color: var(--color-tint-blue); }  /* #e1f7ff */
.bg-approach    { background-color: #f9fafb; }                 /* light gray */
.bg-brand       { background: var(--gradient-brand); }         /* navy → cyan */
.bg-footer      { background: var(--gradient-footer); }        /* dark gradient */


/* ══════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════

   Scale (Figma-sourced, see tokens.css for full token reference):

     Display  → 56px Gilroy-SemiBold, lh 1.05, ls -0.02em
     H1       → 48px Gilroy-SemiBold, lh 1.0,  ls -0.02em
     H2       → 40px Gilroy-SemiBold, lh 1.1,  ls -0.01em
     H3       → 28px Gilroy-Bold,     lh 1.05
     H4       → 22px Gilroy-Bold,     lh 1.05
     Body-lg  → 18px Aventa,          lh 1.35
     Body     → 16px Aventa,          lh 1.35
     Body-sm  → 14px Aventa,          lh 1.71
     Caption  → 13px Aventa,          lh 1.85
     Label    → 16px Gilroy-Medium,   lh 1.1

   Usage: <h2 class="t-h1 text-primary"> … </h2>
   ══════════════════════════════════════════════════════════════════ */

.t-display {
  font-family: var(--font-semibold);
  font-size: var(--text-56);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}
.t-h1 {
  font-family: var(--font-semibold);
  font-size: var(--text-48);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-semibold);
  font-size: var(--text-40);
  font-weight: 400;
  line-height: var(--lh-normal);
  letter-spacing: -0.01em;
}
.t-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-28);
  font-weight: 400;
  line-height: var(--lh-heading);
}
.t-h4 {
  font-family: var(--font-heading);
  font-size: var(--text-22);
  font-weight: 400;
  line-height: var(--lh-heading);
}
.t-h5 {
  font-family: var(--font-heading);
  font-size: var(--text-21);
  font-weight: 400;
  line-height: var(--lh-card);
}
.t-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-18);
  font-weight: 400;
  line-height: var(--lh-body-alt);
}
.t-body {
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: var(--lh-body-alt);
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: var(--lh-looser);
}
.t-caption {
  font-family: var(--font-body);
  font-size: var(--text-13);
  font-weight: 400;
  line-height: var(--lh-loosest);
}
.t-label {
  font-family: var(--font-medium);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: var(--lh-normal);
}
.t-label-sm {
  font-family: var(--font-medium);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: var(--lh-normal);
}


/* ══════════════════════════════════════════════════════════════════
   4. TEXT COLORS
   ══════════════════════════════════════════════════════════════════

   On light backgrounds:   text-primary, text-navy, text-muted, text-cyan
   On dark backgrounds:    text-white, text-white-soft, text-cyan, text-lavender
   ══════════════════════════════════════════════════════════════════ */

/* On-light */
.text-primary    { color: var(--color-primary); }    /* #002347 — dark headings */
.text-navy       { color: var(--color-navy); }       /* #0d0c3f */
.text-cyan       { color: var(--color-cyan); }       /* #42c8f4 */
.text-muted      { color: var(--color-subtext); }    /* #4a5453 — body on white */
.text-gray       { color: var(--color-gray-67); }    /* #667085 — captions */
.text-orange     { color: var(--color-orange); }     /* #ff5104 */

/* On-dark */
.text-white      { color: var(--color-white); }
.text-white-soft { color: var(--color-white-60); }   /* 60% white — secondary on dark */
.text-lavender   { color: var(--color-gray-text); }  /* #dbdaff — body on navy */


/* ══════════════════════════════════════════════════════════════════
   5. SECTION LABEL COMPONENT
   ══════════════════════════════════════════════════════════════════

   The left-cyan-bar label used at the top of every section.
   ALWAYS use this class — never create a one-off equivalent.

   Usage:
     <div class="section-label">Locations</div>
     <div class="section-label section-label--on-dark">Activities</div>
     <div class="section-label section-label--white">Events</div>

   Note: .ev-label is an alias that maps to these same rules (see below).
   ══════════════════════════════════════════════════════════════════ */

.section-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-medium);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--color-subtext);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--color-cyan);
  border-radius: 2px;
  flex-shrink: 0;
}
/* On dark/navy backgrounds */
.section-label--on-dark {
  color: rgba(255, 255, 255, 0.65);
}
.section-label--on-dark::before {
  background: rgba(255, 255, 255, 0.5);
}
/* White text, cyan bar (on colored or image backgrounds) */
.section-label--white {
  color: var(--color-white);
}
.section-label--white::before {
  background: var(--color-cyan);
}
/* Centered variant */
.section-label--center {
  display: flex;
  justify-content: center;
}


/* ══════════════════════════════════════════════════════════════════
   6. DIVIDERS & BORDERS
   ══════════════════════════════════════════════════════════════════ */

.border-top         { border-top: 1px solid var(--color-gray-d0); }
.border-bottom      { border-bottom: 1px solid var(--color-gray-d0); }
.border-top-subtle  { border-top: 1px solid var(--color-navy-08); }
.border-top-dark    { border-top: 1px solid rgba(255, 255, 255, 0.08); }


/* ══════════════════════════════════════════════════════════════════
   7. SPACING HELPERS
   ══════════════════════════════════════════════════════════════════

   Standard bottom-margin after a section label before the heading:
     .mb-label  → 20px (label → heading gap)
     .mb-heading → 40px (heading → body/grid gap)
   ══════════════════════════════════════════════════════════════════ */

.mb-label   { margin-bottom: 20px; }
.mb-heading { margin-bottom: 40px; }
.mb-xs      { margin-bottom: 8px; }
.mb-sm      { margin-bottom: 16px; }
.mb-md      { margin-bottom: 24px; }
.mb-lg      { margin-bottom: 48px; }
.mb-xl      { margin-bottom: 64px; }
.mb-0       { margin-bottom: 0; }
