/* =============================================================================
   Fennec Engineering — Brand Theme (2026 rebrand)
   Single source of truth for the static-site visual identity.

   Load this on every static page AFTER the Tailwind CDN script and BEFORE
   page-specific styles:
       <link rel="stylesheet" href="/theme.css">
       <script src="/tailwind-brand.js"></script>   (sets matching Tailwind tokens)

   Swapping the real STK Bureau / body typeface later is a one-line change:
   update --font-display / --font-body below.
   ============================================================================ */

/* Display + body webfonts. Fraunces is the interim STK Bureau fallback; drop in
   the licensed face and this import can be trimmed. Imported here so every page
   that links theme.css gets the serif display face automatically. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Surfaces ──────────────────────────────────────────────────────────── */
  --bone:        #F1EEED;   /* primary page background (warm off-white) */
  --paper:       #FFFFFF;   /* cards / elevated surfaces */
  --ink:         #0A0A0A;   /* near-black: text, logo, headlines */
  --ink-soft:    #3A3A3A;   /* secondary text */
  --ink-muted:   #6B6B6B;   /* tertiary text, captions, labels */

  /* ── Neutral scale (warm grays) ───────────────────────────────────────── */
  --neutral-50:  #F7F5F4;
  --neutral-100: #ECE8E6;
  --neutral-200: #DAD5D2;
  --neutral-300: #BFB9B5;
  --neutral-400: #9C9590;
  --neutral-500: #7A736E;
  --neutral-600: #5C5651;
  --neutral-700: #423D39;
  --neutral-800: #2A2623;
  --neutral-900: #161311;

  /* ── Brand accents ────────────────────────────────────────────────────── */
  --accent:        #F3FF09;  /* electric yellow — primary CTA / highlights */
  --accent-ink:    #0A0A0A;  /* text that sits on yellow (always near-black) */
  --blue:          #5282FB;  /* secondary accent */
  --blue-ink:      #FFFFFF;  /* text on blue */
  --orange:        #FF8051;  /* tertiary accent */
  --orange-ink:    #0A0A0A;  /* text on orange */

  /* ── Dark sections (kept for high-contrast hero/feature moments) ───────── */
  --dark-bg:     #0A0A0A;    /* near-black dark section background */
  --dark-paper:  #161311;    /* card surface on dark */
  --dark-text:   #F1EEED;    /* body text on dark */

  /* ── Status (binary safety states only; unchanged semantics) ──────────── */
  --status-success: #22c55e;
  --status-error:   #ef4444;
  --status-warning: #eab308;

  /* ── Typography ───────────────────────────────────────────────────────── */
  /* Display = STK Bureau (commercial). Fraunces is the interim fallback;
     drop in the licensed face and reorder this list to switch globally. */
  --font-display: 'STK Bureau', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* ── Radii ────────────────────────────────────────────────────────────── */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-pill: 9999px;

  /* ── Shadows (soft, warm) ─────────────────────────────────────────────── */
  --shadow-sm:   0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md:   0 8px 24px -8px rgba(10, 10, 10, 0.12);
  --shadow-lg:   0 24px 48px -16px rgba(10, 10, 10, 0.18);
  --shadow-glow: 0 0 0 4px rgba(243, 255, 9, 0.35);
}

/* =============================================================================
   Base
   ============================================================================ */

body.fennec-brand {
  background-color: var(--bone);
  color: var(--ink-soft);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fennec-brand h1,
.fennec-brand h2,
.fennec-brand h3,
.fennec-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* =============================================================================
   Components
   ============================================================================ */

/* Primary CTA — electric yellow, near-black text (the brand-board "Contact Us") */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-accent:hover {
  filter: brightness(0.96);
  box-shadow: var(--shadow-glow);
}

/* Secondary — outlined ink (the brand-board "Learn More") */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-outline:hover {
  background-color: var(--ink);
  color: var(--bone);
}

/* Blue + orange secondary CTAs */
.btn-blue   { background-color: var(--blue);   color: var(--blue-ink); }
.btn-orange { background-color: var(--orange); color: var(--orange-ink); }

/* Card surface */
.fennec-card {
  background-color: var(--paper);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Micro label (uppercase technical caption) */
.label-micro {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Dark section wrapper for high-contrast moments */
.fennec-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}
.fennec-dark h1,
.fennec-dark h2,
.fennec-dark h3 { color: var(--bone); }

/* Yellow highlight on text (brand signature) */
.fennec-highlight {
  background-color: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.15em;
  border-radius: 0.1em;
}

/* =============================================================================
   Button shape normalization (2026 brand = pill CTAs)
   Forces the pill radius on every brand button class so it wins over inline
   Tailwind `rounded-lg`/`rounded-xl` utilities (which otherwise leave CTAs as
   inconsistent rounded-rectangles across pages).
   ============================================================================ */
.btn-accent,
.btn-outline,
.btn-primary,
.btn-secondary,
.btn-gradient {
  border-radius: var(--radius-pill) !important;
}
