/* ═══════════════════════════════════════════════════════════════════════════
   Critical Path Partners — Shared Brand Stylesheet
   Canonical version 1.0 — 2026-05-10
   ───────────────────────────────────────────────────────────────────────────
   Brand canonical: Navy #0F2540, Red #C8392F, Inter (sans), JetBrains Mono.
   System-font fallbacks only — no CDN imports. Per archival certification
   discipline, the brand pages must render correctly on a network-isolated
   client. Pages that want web fonts may keep a per-page <link> to a CDN
   in addition to this stylesheet; the cascade preserves visual parity.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ RESET ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ═══ COLOR + TYPE TOKENS ═══ */
:root {
    /* Brand */
    --navy: #0F2540;
    --navy-mid: #1a3a52;
    --navy-light: #2c4d68;
    --red: #C8392F;
    --red-dark: #A32D24;
    --white: #FFFFFF;
    --off-white: #F8FAFC;

    /* Slate gray scale */
    --slate-50: #f1f5f9;
    --slate-100: #e2e8f0;
    --slate-200: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Code surfaces (used by connect.html + lawyers/contractors code blocks) */
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
    --code-accent: #67e8f9;

    /* Type stacks — system fallbacks only */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
}

/* ═══ BASE TYPE ═══ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--slate-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ═══ LAYOUT CONTAINER ═══ */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══ TOP ACCENT STRIP ═══ */
.accent-strip {
    height: 4px;
    background: var(--red);
}

/* ═══ NAV ═══ */
.nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-100);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav .container { display: flex; justify-content: space-between; align-items: center; max-width: 1340px; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}
.nav-brand-mark {
    width: 36px; height: 36px;
    background: var(--navy);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--red);
}
.nav-brand-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
    color: var(--slate-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    border-left: 3px solid var(--red);
    transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-mid); }

.nav-live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: cpp-live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(200,57,47,0.5);
}
@keyframes cpp-live-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.55; transform: scale(0.82); }
}

/* ═══ HERO ═══ */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(200,57,47,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(44,77,104,0.5) 0%, transparent 50%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--slate-200);
    margin-bottom: 24px;
    font-weight: 600;
}
.hero-eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--red);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--white);
    max-width: 920px;
}

.hero-tagline {
    font-size: clamp(17px, 1.8vw, 19px);
    color: var(--slate-200);
    font-weight: 400;
    max-width: 800px;
    line-height: 1.65;
    margin-bottom: 12px;
}
.hero-tagline strong { color: var(--white); font-weight: 600; }

.breadcrumb {
    font-size: 13px;
    color: var(--slate-400);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--slate-200); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ═══ SECTION ═══ */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 16px;
}
.section-eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--red);
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 720px;
}

.section-lede {
    font-size: 17px;
    color: var(--slate-700);
    max-width: 740px;
    margin-bottom: 48px;
    line-height: 1.65;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    border-left: 3px solid var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--slate-400);
    transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.btn-tertiary:hover { border-bottom-color: var(--red); }

/* ═══ STAT CARD (stat-bar component) ═══ */
.stats-bar {
    background: var(--off-white);
    border-bottom: 1px solid var(--slate-100);
    padding: 36px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.stat-item {
    padding: 8px 16px;
    border-right: 1px solid var(--slate-200);
}
.stat-item:last-child { border-right: none; }
.stat-card {
    /* alias for stat-item in pages that use this name */
    padding: 8px 16px;
    border-right: 1px solid var(--slate-200);
}
.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: var(--slate-700);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ═══ CTA BAND ═══ */
.cta-band {
    background: var(--navy);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
}
.cta-band::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
}
.cta-band h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.cta-band p {
    font-size: 17px;
    color: var(--slate-200);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ═══ FOOTER ═══ */
.footer {
    background: #0a1a2e;
    color: var(--slate-400);
    padding: 48px 0 32px;
    border-top: 3px solid var(--red);
}
.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.footer-tag {
    font-size: 13px;
    color: var(--slate-400);
    line-height: 1.55;
    max-width: 380px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--slate-400);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--slate-500);
    flex-wrap: wrap;
    gap: 12px;
}

/* ═══ RESPONSIVE — global breakpoints ═══ */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .nav-links { gap: 18px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding: 56px 0 48px; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stat-item,
    .stat-card { border-right: none; border-bottom: 1px solid var(--slate-200); padding-bottom: 24px; }
    .stat-item:last-child,
    .stat-card:last-child { border-bottom: none; padding-bottom: 0; }
    .footer-row { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 56px 0; }
}
