/* ════════════════════════════════════════════════════════
   JOD Shared Stylesheet
   Applies to: index.html, beyond-kpis.html, comparison.html,
               decision-path.html, brand-guidelines.html
   Page-specific styles remain inline in each HTML file.
   ════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─── */
:root {
    --primary: #6B4080;
    --primary-dark: #5a3569;
    --primary-light: #8B5FA0;
    --primary-pale: #f4f0f7;
    --secondary: #F4BB44;
    --tertiary: #5D79A1;
    --quaternary: #5DA187;
    --heading: #3B3B3B;
    --body: #505050;
    --light: #f9f8fb;
    --white: #ffffff;
    --border: #e8e4ec;
    --dark-bg: #6B4080;
    --dark-surface: #7a4f94;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--body);
    line-height: 1.7;
    font-size: 17px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── NAV ─── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.site-nav.scrolled {
    padding: 10px 40px;
    box-shadow: 0 2px 20px rgba(107,64,128,0.06);
}

.logo-text {
    font-family: 'Barlow', sans-serif;
    font-weight: 200;
    font-size: 22px;
    color: var(--primary);
    text-decoration: none;
}

.nav-back {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-back:hover { color: var(--primary); }

/* ─── PROGRESS BAR ─── */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 300;
    width: 0%;
    transition: width 0.1s linear;
}

/* ─── FOOTER ─── */
.site-footer {
    padding: 32px 40px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .site-nav { padding: 12px 20px; }
    .site-nav.scrolled { padding: 8px 20px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
}
