﻿/*
 * Blue Engine Solutions — Brand CSS v5
 * Single source of truth for design tokens, fonts, and base styles.
 * All pages link to this file. Do not duplicate these rules in page <style> blocks.
 */

/* ── FONTS ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400;1,700&family=Epilogue:wght@300;400;500;600;700&family=Inconsolata:wght@400;500;700&display=swap');

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }

/* ── DESIGN TOKENS ───────────────────────────────────────────────── */
:root {
  /* Blues */
  --navy:         #1A3A5C;
  --royal:        #1455A4;
  --blue:         #1976D2;
  --teal:         #3DA6CD;
  --teal-deep:    #2B8CAE;
  --teal-pale:    rgba(61, 166, 205, 0.10);
  --teal-border:  rgba(61, 166, 205, 0.25);
  --powder:       #DDEEFF;

  /* Warm contrast — used for CTAs / primary actions only */
  --red:          #C43040;
  --red-deep:     #A8202E;
  --red-pale:     rgba(196, 48, 64, 0.09);

  /* Legacy aliases */
  --amber:        #C43040;
  --amber-deep:   #A8202E;
  --amber-pale:   rgba(196, 48, 64, 0.09);

  /* Surfaces */
  --bg:           #F0F6FF;
  --bg-warm:      #E8F0F8;   /* legacy alias */
  --surface:      #FFFFFF;
  --surface-tint: #E4EEF8;   /* legacy alias */

  /* Ink */
  --ink:          #1A3A5C;
  --ink-mid:      #2C3F58;
  --ink-light:    #5A7080;
  --ink-on-dark:  rgba(255, 255, 255, 0.80);   /* body text on navy/dark backgrounds */

  /* Borders */
  --border:       #C2D6EE;
  --border-light: #D9E8F8;
  --steel:        #C2D6EE;   /* legacy alias */

  /* Shadows */
  --shadow-soft:  0 2px 20px rgba(26, 58, 92, 0.07), 0 1px 4px rgba(26, 58, 92, 0.04);
  --shadow-blue:  0 4px 28px rgba(25, 118, 210, 0.14), 0 1px 4px rgba(25, 118, 210, 0.08);
  --shadow-teal:  0 4px 28px rgba(61, 166, 205, 0.18), 0 1px 4px rgba(61, 166, 205, 0.10);

  /* Legacy aliases kept for backward compatibility */
  --teal-dark:    #1A6A8A;
  --text:         #1A3A5C;   /* services page alias */
  --muted:        #5A7080;   /* services page alias */
  --white:        #FFFFFF;   /* services page alias */
  --cream:        #F0F6FF;   /* services page alias */
  --ice:          #DDEEFF;   /* services page alias */
  --sky:          #3DA6CD;   /* services page alias */
}

/* ── BASE ────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Epilogue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 18px;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
  font-size: 18px;
}

/* Section labels / eyebrows — centralized 13px for all pages */
.eyebrow,
.section-tag,
.service-tag,
.who-label, .values-label, .diff-label, .jon-label,
.team-label-tag, .about-cta-label,
.hero-pretag, .process-label, .faq-label, .sf-eyebrow, .calendly-label,
.clients-label,
.hero-breadcrumb, .a-eye {
  font-size: 18px !important;
}

.service-tag {
  font-family: 'Inconsolata', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow,
.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Section headlines */
.section-title,
.section-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title em,
.section-headline em {
  font-style: normal;
  color: var(--teal);
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--red);
  color: white;
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 16px rgba(196, 48, 64, 0.30);
  transition: background 0.2s, transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 48, 64, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--red);
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: 1.5px solid rgba(196, 48, 64, 0.45);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s cubic-bezier(.34,1.56,.64,1);
}
.btn-secondary:hover {
  border-color: var(--red);
  background: rgba(196, 48, 64, 0.06);
  transform: translateY(-1px);
}

/* ── LEGACY BUTTON ALIASES (.btn + modifiers) ────────────────────── */
/* Used across about, approach, case-studies, index                   */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
/* Solid coral — primary action */
.btn-blue {
  background: var(--red);
  color: white;
  box-shadow: 0 3px 16px rgba(196, 48, 64, 0.30);
}
.btn-blue:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 48, 64, 0.38);
}
/* Coral outline on light bg — secondary/mid-page */
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(196, 48, 64, 0.45);
}
.btn-outline:hover {
  border-color: var(--red);
  background: rgba(196, 48, 64, 0.06);
  transform: translateY(-1px);
}
/* Coral outline on dark bg — secondary on navy sections */
.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
  transform: translateY(-1px);
}
/* Coral outline on light bg (alias) */
.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(196, 48, 64, 0.45);
}
.btn-outline-dark:hover {
  border-color: var(--red);
  background: rgba(196, 48, 64, 0.06);
  transform: translateY(-1px);
}
/* Coral outline on dark bg (health banner context) */
.btn-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.60);
  color: white;
  transform: translateY(-1px);
}

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 246, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img { height: 34px; width: auto; }

.nav-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-cta {
  padding: 9px 20px !important;
  background: var(--red) !important;
  color: white !important;
  font-family: 'Epilogue', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 100px !important;
  box-shadow: 0 2px 12px rgba(196, 48, 64, 0.28) !important;
  transition: background 0.2s, transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--red-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 18px rgba(196, 48, 64, 0.35) !important;
}

/* ── UTILITIES ───────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
