/*
CHANGE LOG
File: /var/www/html/prohrhq.com/static/css/switchboard.css
Document Type: CSS
Purpose: Central shared design switchboard — tokens, typography, components
Main App: app.py
Context: Prevents visual drift across ProHRHQ templates. Uses visual language
         from recruit-a-driver (EB Garamond, Barlow Condensed, navy/gold/cream).
         All new internal pages should use these classes.
Dependencies: Google Fonts loaded in base.html, loaded after afh_main.css
Version History:
2026-04-02 v1.0 - Initial creation: tokens, typography, cards, accordions,
                   jump-nav, highlight boxes, checklists, helper text, page intro
*/

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
    --sw-navy:        #1a2744;
    --sw-navy-deep:   #0f1a30;
    --sw-gold:        #b8922a;
    --sw-gold-light:  #d4aa45;
    --sw-cream:       #f9f6ef;
    --sw-ink:         #2c2c2c;
    --sw-rule:        #c8b89a;
    --sw-light:       #ede8dc;
    --sw-green:       #2a6e3f;
    --sw-red:         #8b3a3a;
    --sw-muted:       #888;
    --sw-mid:         #555;
    --sw-white:       #fff;
    --sw-bg:          #ddd8cc;

    --sw-font-body:   'EB Garamond', Georgia, serif;
    --sw-font-label:  'Barlow Condensed', sans-serif;

    --sw-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --sw-section-gap: 1.4rem;
    --sw-card-pad:    2rem 2.2rem;
}


/* ── TYPOGRAPHY ────────────────────────────────────── */
.sw-body {
    font-family: var(--sw-font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sw-ink);
}

.sw-page-title {
    font-family: var(--sw-font-label);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sw-navy);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.sw-page-subtitle {
    font-size: 0.85rem;
    color: var(--sw-muted);
    font-style: italic;
}

/* Section heading with trailing rule — matches .sec-heading from recruit-a-driver */
.sw-sec-heading {
    font-family: var(--sw-font-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sw-gold);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sw-sec-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sw-rule);
}

.sw-subsection-title {
    font-family: var(--sw-font-label);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sw-navy);
    margin-bottom: 0.5rem;
}

.sw-label {
    font-family: var(--sw-font-label);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sw-muted);
    margin-bottom: 0.3rem;
}

.sw-muted {
    color: var(--sw-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.sw-helper {
    color: var(--sw-mid);
    font-size: 0.88rem;
    line-height: 1.6;
}

p.sw-body-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--sw-ink);
    margin-bottom: 0.8rem;
}


/* ── PAGE SHELL ────────────────────────────────────── */
.sw-page-shell {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--sw-font-body);
    color: var(--sw-ink);
}


/* ── CARD / SECTION CONTAINER ──────────────────────── */
.sw-card {
    background: var(--sw-cream);
    padding: var(--sw-card-pad);
    margin-bottom: var(--sw-section-gap);
    box-shadow: var(--sw-card-shadow);
    position: relative;
}

.sw-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--sw-navy) 0%, var(--sw-navy) 70%, var(--sw-gold) 70%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.sw-card--plain {
    background: var(--sw-cream);
    padding: var(--sw-card-pad);
    margin-bottom: var(--sw-section-gap);
    box-shadow: var(--sw-card-shadow);
}

.sw-card--plain::before {
    display: none;
}

.sw-card--bordered {
    border-left: 3px solid var(--sw-navy);
}

.sw-card--gold {
    border-left: 3px solid var(--sw-gold);
}

.sw-card--green {
    border-left: 3px solid var(--sw-green);
}


/* ── PAGE INTRO / HERO ─────────────────────────────── */
.sw-page-intro {
    background: var(--sw-navy);
    color: var(--sw-white);
    padding: 2rem 2.2rem 1.6rem;
    margin-bottom: var(--sw-section-gap);
    position: relative;
}

.sw-page-intro::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--sw-gold);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.sw-page-intro .sw-page-title {
    color: var(--sw-white);
}

.sw-page-intro .sw-page-subtitle {
    color: rgba(255,255,255,0.65);
}

.sw-page-intro p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ── HIGHLIGHT / CALLOUT BOX ──────────────────────── */
.sw-highlight {
    background: var(--sw-light);
    border-left: 3px solid var(--sw-gold);
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.sw-highlight--urgent {
    border-left-color: var(--sw-red);
    background: #f9f2f2;
}

.sw-highlight--success {
    border-left-color: var(--sw-green);
    background: #f2f8f4;
}


/* ── ACCORDION ─────────────────────────────────────── */
.sw-accordion-group {
    margin-bottom: var(--sw-section-gap);
}

.sw-accordion-item {
    background: var(--sw-cream);
    margin-bottom: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sw-accordion-trigger {
    font-family: var(--sw-font-label);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sw-navy);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sw-accordion-trigger:hover {
    background: var(--sw-light);
}

.sw-accordion-trigger[aria-expanded="true"] {
    background: var(--sw-navy);
    color: var(--sw-white);
    border-left-color: var(--sw-gold);
}

.sw-accordion-trigger::after {
    content: '\25B8';
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sw-accordion-trigger[aria-expanded="true"]::after {
    transform: rotate(90deg);
    color: var(--sw-gold);
}

.sw-accordion-panel {
    display: none;
    padding: 1.2rem 1.4rem 1.4rem;
    font-family: var(--sw-font-body);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--sw-ink);
    border-left: 3px solid var(--sw-gold);
    background: var(--sw-cream);
}

.sw-accordion-panel[aria-hidden="false"] {
    display: block;
}

.sw-accordion-panel p {
    margin-bottom: 0.7rem;
}

.sw-accordion-panel ul,
.sw-accordion-panel ol {
    margin: 0.4rem 0 0.8rem 1.4rem;
    font-size: 0.9rem;
}

.sw-accordion-panel li {
    margin-bottom: 0.35rem;
}


/* ── JUMP NAV / SECTION NAV ────────────────────────── */
.sw-jump-nav {
    position: sticky;
    top: 1rem;
    background: var(--sw-navy);
    padding: 1.2rem 1rem;
    min-width: 180px;
    max-width: 210px;
    align-self: flex-start;
    flex-shrink: 0;
}

.sw-jump-nav__label {
    font-family: var(--sw-font-label);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.6rem;
}

.sw-jump-nav__link {
    font-family: var(--sw-font-label);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0.5rem;
    transition: color 0.15s, background 0.15s;
    border-left: 2px solid transparent;
}

.sw-jump-nav__link:hover {
    color: rgba(255,255,255,0.9);
}

.sw-jump-nav__link.active {
    color: var(--sw-white);
    font-weight: 700;
    border-left-color: var(--sw-gold);
    background: rgba(255,255,255,0.06);
}

.sw-jump-nav__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.6rem 0;
}

/* Two-column layout: jump-nav + content */
.sw-two-col {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
}

.sw-two-col__content {
    flex: 1;
    min-width: 0;
}


/* ── CHECKLIST BLOCK ───────────────────────────────── */
.sw-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-checklist li {
    padding: 0.5rem 0.6rem 0.5rem 1.6rem;
    position: relative;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--sw-rule);
    line-height: 1.5;
}

.sw-checklist li:last-child {
    border-bottom: none;
}

.sw-checklist li::before {
    content: '\2610';
    position: absolute;
    left: 0.2rem;
    top: 0.5rem;
    font-size: 0.85rem;
    color: var(--sw-navy);
}


/* ── STAGE LIST (numbered steps) ───────────────────── */
.sw-stage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-stage-list li {
    padding: 0.7rem 1rem;
    margin-bottom: 0.4rem;
    background: var(--sw-light);
    border-left: 3px solid var(--sw-navy);
}

.sw-stage-list li strong {
    color: var(--sw-navy);
    display: block;
    font-family: var(--sw-font-label);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}


/* ── SCRIPT BLOCK (recruiter read-aloud) ───────────── */
.sw-script {
    background: var(--sw-white);
    border: 1.5px solid var(--sw-rule);
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
    font-size: 0.95rem;
    line-height: 1.75;
    font-style: italic;
    color: var(--sw-ink);
}

.sw-script--voicemail {
    border-left: 3px solid var(--sw-muted);
}

.sw-script--callback {
    border-left: 3px solid var(--sw-green);
}


/* ── NOTE FORMAT ───────────────────────────────────── */
.sw-note-format {
    background: var(--sw-light);
    padding: 0.8rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--sw-ink);
    white-space: pre-line;
    border-left: 3px solid var(--sw-muted);
}


/* ── BUTTONS ───────────────────────────────────────── */
.sw-btn {
    font-family: var(--sw-font-label);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--sw-white);
    background: var(--sw-navy);
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(26,39,68,0.22);
}

.sw-btn:hover {
    background: #263660;
    transform: translateY(-1px);
}

.sw-btn--gold {
    background: var(--sw-gold);
    color: var(--sw-navy);
}

.sw-btn--gold:hover {
    background: var(--sw-gold-light);
}

.sw-btn--green {
    background: var(--sw-green);
}

.sw-btn--green:hover {
    background: #348a4e;
}


/* ── HORIZONTAL RULE ───────────────────────────────── */
.sw-rule {
    border: none;
    border-top: 1px solid var(--sw-rule);
    margin: 1.2rem 0;
}

.sw-rule--heavy {
    border-top: 2px solid var(--sw-navy);
}


/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    .sw-two-col {
        flex-direction: column;
    }

    .sw-jump-nav {
        position: relative;
        top: 0;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.8rem;
    }

    .sw-jump-nav__label {
        width: 100%;
    }

    .sw-jump-nav__link {
        padding: 0.3rem 0.6rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .sw-jump-nav__link.active {
        border-left: none;
        border-bottom-color: var(--sw-gold);
    }

    .sw-jump-nav__divider {
        display: none;
    }
}

@media print {
    .sw-jump-nav {
        display: none !important;
    }

    .sw-accordion-panel {
        display: block !important;
        border-left: 1px solid #ccc;
    }

    .sw-accordion-trigger[aria-expanded="true"] {
        background: transparent;
        color: var(--sw-navy);
    }

    .sw-card,
    .sw-card--plain {
        box-shadow: none;
        break-inside: avoid;
    }
}
