/* =====================================================
   BridgeStack — Shared Design System
   =====================================================
   This is the single source of truth for BridgeStack's
   typography, colors, navigation, footer, and shared
   components across all pages.

   Page-specific styles live in inline <style> blocks
   on each page. Anything that appears on more than
   one page belongs here.

   Last updated: 2026 — see git history for changes.
   ===================================================== */


/* =====================================================
   1. DESIGN TOKENS
   ===================================================== */

:root {
    /* Brand Colors */
    --primary: #0052CC;
    --primary-dark: #003D99;
    --primary-light: #E6F0FF;
    --secondary: #00C2FF;

    /* Accent Colors */
    --accent-green: #00B37E;
    --accent-purple: #7B61FF;
    --accent-orange: #FF8B3D;
    --accent-pink: #FF6B9D;

    /* Neutrals */
    --dark: #0A1628;
    --dark-800: #152238;
    --dark-700: #1E3A5F;
    --text: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;

    /* Product Category Colors */
    --cat-data: #0052CC;
    --cat-powerbi: #F2C811;
    --cat-accounting: #00B37E;
    --cat-productivity: #7B61FF;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 14px rgba(0, 82, 204, 0.35);

    /* Layout */
    --nav-height: 80px;
    --max-width: 1280px;
    --container-padding: 32px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 100px;
}


/* =====================================================
   2. RESET & BASE
   ===================================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Push content below fixed nav */
body { padding-top: 0; }


/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { color: var(--text-light); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

code, pre {
    font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
}


/* =====================================================
   4. LAYOUT UTILITIES
   ===================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* =====================================================
   5. NAVIGATION
   ===================================================== */

nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}

.logo:hover { text-decoration: none !important; }

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo-text span { color: var(--primary); }

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

.nav-links li { position: relative; }

.nav-links > li > a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-links > li > a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-links > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown menus */
.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s;
}

.nav-links li:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.dropdown a:hover {
    background: var(--gray-50);
    color: var(--text);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dropdown-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.dropdown-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s;
}


/* =====================================================
   6. BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
    color: white !important;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}


/* =====================================================
   7. SHARED COMPONENTS
   ===================================================== */

/* Section base */
.section {
    padding: 100px 0;
}

.section-narrow {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Card base */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}


/* =====================================================
   8. FOOTER
   ===================================================== */

.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 80px 0 32px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: var(--secondary); }

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-column h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--dark-700);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: white;
}

.footer-parent-link {
    color: var(--secondary) !important;
    font-weight: 600;
}

.footer-parent-link:hover {
    color: white !important;
}


/* =====================================================
   9. RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root { --container-padding: 20px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active { display: flex; }

    .mobile-menu-toggle { display: block; }

    .nav-links > li > a {
        display: block;
        padding: 14px 16px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 8px 0 8px 16px;
        min-width: 0;
    }

    .section { padding: 60px 0; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* =====================================================
   10. UTILITIES
   ===================================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-primary { color: var(--primary); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
