/* ===== fonts.css ===== */
/* ============================================================
   Solar Bridge — Webfonts
   Coolvetica (Typodermic / Ray Larabie) is the brand display face.
   Body/UI text pairs with Archivo.
   batch 17: every face is self-hosted as WOFF2 under /fonts/ (versioned file
   names, cached 1 year). Archivo was loaded from Google Fonts via @import;
   it is now the same Google Fonts files (latin + latin-ext), served locally.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.ff4f17d2.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.8f704806.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-italic-latin-ext.cbaf874f.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-italic-latin.3d109f97.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Coolvetica Regular — default brand sans, headings + UI labels */
@font-face {
  font-family: 'Coolvetica';
  src: url('/fonts/coolvetica-rg.5907cddf.woff2') format('woff2'),
       url('../assets/fonts/coolvetica-rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Coolvetica Regular Italic */
@font-face {
  font-family: 'Coolvetica';
  src: url('/fonts/coolvetica-rg-it.a8b9caf6.woff2') format('woff2'),
       url('../assets/fonts/coolvetica-rg-it.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

/* Coolvetica Condensed — tighter headings */
@font-face {
  font-family: 'Coolvetica Condensed';
  src: url('/fonts/coolvetica-rg-cond.8e960714.woff2') format('woff2'),
       url('../assets/fonts/coolvetica-rg-cond.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Coolvetica Crammed — tightest condensed, big stacked display */
@font-face {
  font-family: 'Coolvetica Crammed';
  src: url('/fonts/coolvetica-rg-cram.8b13a564.woff2') format('woff2'),
       url('../assets/fonts/coolvetica-rg-cram.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Coolvetica Heavy Compressed — the logo face, hero display only */
@font-face {
  font-family: 'Coolvetica Heavy';
  src: url('/fonts/coolvetica-hv-comp.dc4fbcc1.woff2') format('woff2'),
       url('../assets/fonts/coolvetica-hv-comp.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
/* ===== colors.css ===== */
/* ============================================================
   Solar Bridge — Color tokens
   The brand is built on a single signature element: the SOLAR
   SPECTRUM — a ray gradient running deep ember red → orange →
   gold → lime → green, always read on near-black. It doubles as
   an energy-efficiency scale (A→G), which suits solar perfectly.
   ============================================================ */

:root {
  /* ---- Solar spectrum (the signature, sampled from the logo) ---- */
  --sun-ember:   #B5240A;   /* deepest, lowest-energy red    */
  --sun-orange:  #DB6E01;   /* warm orange                   */
  --sun-amber:   #ED9A00;   /* amber                         */
  --sun-gold:    #F0C808;   /* gold / yellow                 */
  --sun-citron:  #CBD92A;   /* yellow-green                  */
  --sun-lime:    #9FD92A;   /* lime                          */
  --sun-green:   #7CC41C;   /* high-energy green             */

  /* The brand gradient. Use for hero washes, rays, energy bars. */
  --gradient-solar: linear-gradient(90deg,
    var(--sun-ember) 0%,
    var(--sun-orange) 26%,
    var(--sun-amber) 42%,
    var(--sun-gold) 56%,
    var(--sun-citron) 72%,
    var(--sun-lime) 86%,
    var(--sun-green) 100%);
  --gradient-warm: linear-gradient(120deg, var(--sun-ember) 0%, var(--sun-orange) 50%, var(--sun-gold) 100%);
  --gradient-fade-ink: linear-gradient(180deg, rgba(10,10,10,0) 0%, var(--ink-900) 80%);

  /* ---- Primary brand ramp (warm solar orange) ---- */
  --orange-50:  #FEF3E6;
  --orange-100: #FCE0BF;
  --orange-200: #F8C285;
  --orange-300: #F2A248;
  --orange-400: #EC8716;
  --orange-500: #DB6E01;   /* core brand orange */
  --orange-600: #B85700;
  --orange-700: #934503;
  --orange-800: #6F340A;
  --orange-900: #4A240B;

  /* ---- Green ramp (energy / positive) ---- */
  --green-50:  #F1FAE2;
  --green-100: #DCF2B7;
  --green-200: #C2E882;
  --green-300: #A4D94C;
  --green-400: #8BCB29;
  --green-500: #6FA918;   /* accessible green for text/fills */
  --green-600: #588712;
  --green-700: #436810;
  --green-800: #314C10;
  --green-900: #21330C;

  /* ---- Sky (single restrained cool accent — links / info) ---- */
  --sky-50:  #E9F4FB;
  --sky-100: #C8E4F4;
  --sky-300: #6FBCE3;
  --sky-500: #2A93C9;
  --sky-700: #196A95;

  /* ---- Warm neutrals (ink) — tinted toward the Ivorian sun ---- */
  --ink-900: #0A0A0A;   /* brand black           */
  --ink-850: #131211;
  --ink-800: #1C1A18;
  --ink-700: #2A2724;
  --ink-600: #423E39;
  --ink-500: #635D55;
  --ink-400: #8C857B;
  --ink-300: #B4ADA2;
  --ink-200: #D8D2C8;
  --ink-150: #E7E2D9;
  --ink-100: #EFEBE3;
  --ink-50:  #F6F0E2;   /* pale cream page        */
  --white:   #FFFFFF;

  /* ---- Named brand colors (B2B palette: ember on black, gold highlights) ---- */
  --ember:   #DB6E01;   /* primary flame orange  */
  --flame:   #C9460A;   /* hotter ember red-orange */
  --gold:    #F0C808;   /* secondary highlight   */
  --amber:   #ED9A00;   /* secondary highlight   */
  --cream:   #F6F0E2;   /* pale cream            */
  --cream-dim: #E4DBC6; /* muted cream on black  */

  /* WhatsApp Business — the primary contact channel (its own brand color) */
  --whatsapp:       #25D366;
  --whatsapp-hover: #1FB857;
  --whatsapp-press: #18994A;

  /* Warm CTA gradient (ember → orange → gold, NO green — avoids solar cliché) */
  --gradient-ember: linear-gradient(120deg, var(--flame) 0%, var(--ember) 46%, var(--gold) 100%);

  /* =========================================================
     SEMANTIC ALIASES — light surface (default)
     ========================================================= */
  --brand:           var(--orange-500);
  --brand-hover:     var(--orange-600);
  --brand-press:     var(--orange-700);
  --brand-subtle:    var(--orange-50);
  --brand-border:    var(--orange-200);
  --on-brand:        #FFFFFF;

  --accent:          var(--gold);
  --accent-hover:    var(--amber);
  --accent-subtle:   #FBF1C9;
  --on-accent:       var(--ink-900);

  --text-strong:     var(--ink-900);
  --text-body:       var(--ink-700);
  --text-muted:      var(--ink-500);
  --text-faint:      var(--ink-400);
  --text-inverse:    var(--ink-50);
  --text-link:       var(--sky-700);
  --text-on-brand:   #FFFFFF;

  --surface-page:    var(--ink-50);
  --surface-card:    var(--white);
  --surface-raised:  var(--white);
  --surface-sunk:    var(--ink-100);
  --surface-inverse: var(--ink-900);

  --border-subtle:   var(--ink-150);
  --border-default:  var(--ink-200);
  --border-strong:   var(--ink-400);

  /* Semantic status */
  --success:         var(--green-500);
  --success-subtle:  var(--green-50);
  --warning:         var(--sun-amber);
  --warning-subtle:  #FDF1DA;
  --danger:          #C92A12;
  --danger-subtle:   #FBE7E2;
  --info:            var(--sky-500);
  --info-subtle:     var(--sky-50);

  --focus-ring:      var(--orange-400);
}

/* =========================================================
   DARK SURFACE — the brand's native habitat (black + spectrum)
   Add data-theme="dark" to any container or :root.
   ========================================================= */
[data-theme="dark"] {
  --brand:           var(--orange-400);
  --brand-hover:     var(--orange-300);
  --brand-press:     var(--orange-500);
  --brand-subtle:    rgba(219,110,1,0.14);
  --brand-border:    rgba(236,135,22,0.35);
  --on-brand:        var(--ink-900);

  --accent:          var(--gold);
  --accent-hover:    var(--amber);
  --accent-subtle:   rgba(240,200,8,0.16);
  --on-accent:       var(--ink-900);

  --text-strong:     var(--ink-50);
  --text-body:       var(--ink-200);
  --text-muted:      var(--ink-400);
  --text-faint:      var(--ink-500);
  --text-inverse:    var(--ink-900);
  --text-link:       var(--sky-300);
  --text-on-brand:   var(--ink-900);

  --surface-page:    var(--ink-900);
  --surface-card:    var(--ink-850);
  --surface-raised:  var(--ink-800);
  --surface-sunk:    #050505;
  --surface-inverse: var(--ink-50);

  --border-subtle:   rgba(255,255,255,0.07);
  --border-default:  rgba(255,255,255,0.13);
  --border-strong:   rgba(255,255,255,0.30);

  --success-subtle:  rgba(111,169,24,0.16);
  --warning-subtle:  rgba(237,154,0,0.16);
  --danger:          #F0563A;
  --danger-subtle:   rgba(201,42,18,0.18);
  --info:            var(--sky-300);
  --info-subtle:     rgba(42,147,201,0.16);

  --focus-ring:      var(--orange-300);
}
/* ===== typography.css ===== */
/* ============================================================
   Solar Bridge — Typography tokens
   Display: Coolvetica (the brand face). Bold, rounded, geometric,
   tightly tracked — confident and energetic. Use UPPERCASE for the
   loudest moments (echoes the logo wordmark).
   Body/UI: Archivo — a sturdy grotesque that reads cleanly at small
   sizes where Coolvetica gets too characterful.
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-hero:      'Coolvetica Heavy', 'Coolvetica', 'Archivo', sans-serif;       /* logo-scale display */
  --font-display:   'Coolvetica', 'Archivo', sans-serif;                            /* H1–H2 */
  --font-condensed: 'Coolvetica Condensed', 'Coolvetica', 'Archivo', sans-serif;    /* stat numerals, tight labels */
  --font-crammed:   'Coolvetica Crammed', 'Coolvetica Condensed', sans-serif;       /* stacked editorial display */
  --font-body:      'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;    /* paragraphs, UI */
  --font-mono:      ui-monospace, 'SF Mono', Menlo, Consolas, monospace;           /* SKUs, specs, code */

  /* ---- Type scale (1.25 major-third-ish, display steps wider) ---- */
  --text-2xs:   11px;
  --text-xs:    12px;
  --text-sm:    14px;
  --text-base:  16px;
  --text-md:    18px;
  --text-lg:    20px;
  --text-xl:    24px;
  --text-2xl:   30px;
  --text-3xl:   38px;
  --text-4xl:   48px;
  --text-5xl:   62px;
  --text-6xl:   80px;
  --text-7xl:   108px;

  /* ---- Weights ---- */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ---- Line heights ---- */
  --leading-none:    1;
  --leading-tight:   1.08;   /* big display */
  --leading-snug:    1.22;   /* headings */
  --leading-normal:  1.5;    /* body */
  --leading-relaxed: 1.65;   /* long-form */

  /* ---- Letter spacing (Coolvetica display wants it tight; labels wide) ---- */
  --tracking-tighter: -0.02em;
  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.10em;   /* eyebrow / overline labels */
  --tracking-widest:  0.18em;
}
/* ===== spacing.css ===== */
/* ============================================================
   Solar Bridge — Spacing & layout tokens
   4px base grid. Generous, architectural rhythm.
   ============================================================ */

:root {
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* Layout */
  --container-sm:  640px;
  --container-md:  860px;
  --container-lg:  1120px;
  --container-xl:  1320px;
  --gutter:        clamp(20px, 5vw, 64px);    /* @kind spacing */
  --section-y:     clamp(56px, 9vw, 128px);   /* @kind spacing */
}
/* ===== effects.css ===== */
/* ============================================================
   Solar Bridge — Effects: radii, shadows, borders, motion
   The look is industrial-clean: modest radii, soft warm shadows,
   crisp 1px borders. The ONE expressive move is the solar
   gradient used as edge light, energy bars and ray motifs.
   ============================================================ */

:root {
  /* ---- Corner radii ---- */
  --radius-none:  0;
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    10px;    /* default cards, inputs */
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-pill:  999px;   /* buttons, chips, badges */

  /* ---- Shadows — warm-tinted, never pure black ---- */
  --shadow-xs:  0 1px 2px rgba(42,30,15,0.06);
  --shadow-sm:  0 1px 3px rgba(42,30,15,0.08), 0 1px 2px rgba(42,30,15,0.06);
  --shadow-md:  0 4px 12px rgba(42,30,15,0.10), 0 2px 4px rgba(42,30,15,0.06);
  --shadow-lg:  0 12px 28px rgba(42,30,15,0.14), 0 4px 10px rgba(42,30,15,0.08);
  --shadow-xl:  0 28px 60px rgba(42,30,15,0.18), 0 10px 22px rgba(42,30,15,0.10);

  /* Warm glow — solar accent halo for hover/active hero elements */
  --glow-solar: 0 0 0 1px rgba(219,110,1,0.35), 0 8px 32px rgba(219,110,1,0.30);
  --glow-green: 0 0 0 1px rgba(139,203,41,0.35), 0 8px 32px rgba(124,196,28,0.28);
  --glow-gold:  0 0 0 1px rgba(240,200,8,0.40), 0 8px 32px rgba(237,154,0,0.30);
  --glow-whatsapp: 0 0 0 1px rgba(37,211,102,0.40), 0 8px 28px rgba(37,211,102,0.32);

  /* ---- Borders ---- */
  --border-width: 1px;
  --border-width-thick: 2px;

  /* ---- Focus ---- */
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);   /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   120ms;  /* @kind other */
  --dur-base:   200ms;  /* @kind other */
  --dur-slow:   360ms;  /* @kind other */

  /* ---- Z-index ---- */
  --z-base: 1;       /* @kind other */
  --z-sticky: 100;   /* @kind other */
  --z-overlay: 1000; /* @kind other */
  --z-modal: 1100;   /* @kind other */
  --z-toast: 1200;   /* @kind other */
}
/* ===== base.css ===== */
/* ============================================================
   Solar Bridge — Base element defaults & brand utilities
   (Tokens live in tokens/*.css; this applies them to bare HTML.)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings default to the brand display face */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--text-5xl); line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: var(--weight-semibold); }

small { font-size: var(--text-sm); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

hr { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--space-8) 0; }

::selection { background: var(--sun-gold); color: var(--ink-900); }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-xs);
}

/* ---- Brand utilities ---- */

/* Eyebrow / overline label — wide-tracked uppercase, brand voice */
.sb-eyebrow {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-sm);
  color: var(--brand);
  font-weight: var(--weight-medium);
}

/* Hero display lockup */
.sb-hero {
  font-family: var(--font-hero);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-none);
  font-size: var(--text-7xl);
  color: var(--text-strong);
}

/* Solar gradient filled text */
.sb-gradient-text {
  background: var(--gradient-solar);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The signature solar bar — thin energy strip */
.sb-solar-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--gradient-solar);
}

/* Layout container */
.sb-container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
