/* ═══════════════════════════════════════════════════════════════
   eXpressLLC — Shared Styles (header, footer, nav, variables)
   Included on all pages via <link rel="stylesheet" href="/include/styles.css">
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --bg-dark: #0a0f1e;
    --bg-dark-2: #0d1225;
    --bg-dark-card: rgba(255,255,255,0.04);
    --navy: #0a1628;
    --navy-light: #0f1d32;
    --navy-mid: #162340;
    --primary: #4f6ef7;
    --primary-hover: #6b85ff;
    --primary-soft: rgba(79,110,247,0.08);
    --red: #e5423a;
    --red-hover: #d13630;
    --red-dark: #b91c1c;
    --gold: #b89d4f;
    --gold-soft: rgba(184,157,79,0.12);
    --gold-light: #e2c66d;
    --green: #34d399;
    --blue: #2563eb;
    --slate: #475569;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── AUTHORITY BAR ─── */
.authority-bar {
    background: var(--bg-dark-2); padding: 8px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 11px; color: var(--gray-500);
    text-align: center; letter-spacing: 0.3px;
}

/* ═══════════ HEADER ═══════════ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.3s;
}
.header-scrolled {
    background: rgba(10,15,30,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--white);
}
.logo img { height: 32px; }
.logo-full { height: 36px; width: auto; }
.logo-stack {
    display: flex; flex-direction: column;
}
.logo-stack img { height: 32px; width: auto; }
.logo-divider {
    width: 1px; height: 20px; background: rgba(255,255,255,0.15);
    margin: 0 4px;
}
.logo-tagline {
    font-size: 10px; color: var(--gray-500); font-weight: 500;
    letter-spacing: 0.5px; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
    font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none;
    font-weight: 500; padding: 8px 16px; border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
    font-size: 14px; color: var(--white);
    background: var(--red);
    padding: 10px 24px; text-decoration: none; font-weight: 600;
    border-radius: var(--radius-sm); transition: all 0.2s;
    margin-left: 8px; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.nav-cta:hover { background: var(--red-hover); }

.hamburger {
    display: none; background: none; border: none;
    color: var(--white); cursor: pointer; padding: 4px;
}

.mobile-nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(10,15,30,0.98); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 24px; z-index: 99;
    flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
    display: block; padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 15px; border-radius: 0;
}
.mobile-nav .nav-link:last-child { border-bottom: none; }
.mobile-nav .nav-cta {
    display: block; text-align: center;
    margin-top: 12px; padding: 14px 20px;
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    font-family: 'Inter', sans-serif; transition: all 0.25s;
    text-decoration: none; border: none;
}
.btn-red, a.btn-red, a.btn-red:visited {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    font-family: 'Inter', sans-serif; transition: all 0.25s;
    text-decoration: none; border: none;
    background: var(--red); color: var(--white);
    box-shadow: 0 4px 16px rgba(229,66,58,0.25);
}
.btn-red:hover, a.btn-red:hover {
    background: var(--red-hover); color: var(--white);
    box-shadow: 0 6px 24px rgba(229,66,58,0.35);
    transform: translateY(-1px);
}
.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}
.btn-white {
    background: var(--white); color: var(--gray-900);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.btn svg { flex-shrink: 0; }

/* ═══════════ SECTION TITLES ═══════════ */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--primary); font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 20px;
}
.eyebrow::before {
    content: ''; width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.s-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 800; color: var(--gray-900);
    line-height: 1.15; margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.s-desc {
    font-size: 17px; color: var(--gray-500);
    max-width: 540px; line-height: 1.7; margin-bottom: 28px;
}
.s-desc.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ═══════════ FOOTER ═══════════ */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,0.5);
}
.footer-inner {
    max-width: 1240px; margin: 0 auto; padding: 40px 40px 24px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand p {
    font-size: 14px; line-height: 1.7; margin-top: 20px;
    color: rgba(255,255,255,0.35); max-width: 280px;
}
.footer-col-title {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.25);
    margin-bottom: 24px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 14px; }
.footer-links a {
    font-size: 14px; color: rgba(255,255,255,0.4);
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
    padding: 12px 24px; border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm); font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.footer-contact-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white); border-color: rgba(255,255,255,0.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 32px 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a {
    font-size: 13px; color: rgba(255,255,255,0.25);
    text-decoration: none; transition: color 0.2s; cursor: pointer;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.5); }
.footer-disclaimer {
    font-size: 12px; color: rgba(255,255,255,0.2);
    line-height: 1.7; text-align: center;
    width: 100%; margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-made {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,0.25);
}
.footer-made a {
    color: rgba(255,255,255,0.25); text-decoration: none;
    font-size: 11px; letter-spacing: 0.5px; transition: color 0.2s;
}
.footer-made a:hover { color: rgba(255,255,255,0.4); }

/* ═══════════ MID-ARTICLE CTA ═══════════ */
.article-mid-cta {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 32px 0;
}
.article-mid-cta p {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

/* ═══════════ TABLE OF CONTENTS SIDEBAR ═══════════ */
.article-with-toc {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: start;
}
.article-with-toc .article-body {
    min-width: 0;
}
.toc-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    padding-top: 48px;
}
.toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.toc-list a {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    padding: 8px 0 8px 12px;
    border-left: 2px solid var(--gray-200);
    transition: all 0.2s;
    line-height: 1.4;
}
.toc-list a:hover {
    color: var(--gray-800);
    border-left-color: var(--gray-400);
}
.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* ═══════════ RESPONSIVE — SHARED ═══════════ */
@media (max-width: 768px) {
    .header-inner { padding: 0 24px; height: 64px; }
    .mobile-nav { top: 64px; }
    .nav { display: none; }
    .hamburger { display: block; }
    .logo-divider, .logo-tagline { display: none; }
    .logo img { height: 28px; }
    .authority-bar { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { padding: 32px 24px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .toc-sidebar { display: none; }
    .article-with-toc { grid-template-columns: 1fr; gap: 0; }
}
