﻿/* =========================================================
   AI Workforce Solutions — Base Styles (cleaned & deduped)
   ========================================================= */

/* Palette */
:root {
    --brand-1: #337ab7; /* primary blue (was --blue-med) */
    --brand-1-light: #5aa1dd; /* hover/accents (was --blue-light) */
    --brand-1-dark: #275a86;
    --brand-2: #0b2a4a; /* deep navy accent for headers */
    --gray-med: #cccccc;
    --gray-light: #f5f5f5;
    --text-dark: #333333;
    --bg-page: #f0f2f5; /* lighter neutral than #808080 */
}

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding-top: 44px; /* room for fixed contact bar */
    background: var(--bg-page);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand-1);
    text-decoration: none;
}

    a:hover, a:focus {
        text-decoration: underline;
    }

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================================
   Contact Bar (fixed)
   ========================================================= */
.contact-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--brand-1);
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 1rem;
    z-index: 1040; /* above header/hero but below Bootstrap modals (1050+) */
}

    .contact-fixed h2.contact-title {
        margin: 0;
        font-weight: bold;
    }
        /* Optional branding for the two spans in the title */
        .contact-fixed h2.contact-title span:nth-child(1) {
            color: #eaf4ff;
        }
        /* “AI Workforce Solutions” tint */
        .contact-fixed h2.contact-title span:nth-child(2) {
            color: #fff;
        }
/* “AI” */

/* =========================================================
   Header
   ========================================================= */
header,
.header-flex {
    background: var(--brand-1);
    color: #fff;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

    .header-flex .logo img {
        height: 120px; /* big logo per your style */
        max-height: 150px; /* ceiling */
        width: auto;
    }

    /* Title */
    .header-flex .title {
        flex: 1;
        text-align: center;
    }

        .header-flex .title h1 {
            margin: 0;
            font-weight: 800;
            font-size: 2.5rem;
            line-height: 1;
            letter-spacing: .2px;
        }

            .header-flex .title h1 span:nth-child(1) {
                color: #eaf4ff;
            }
            /* AI Workforce Solutions */
            .header-flex .title h1 span:nth-child(2) {
                color: #ffffff;
            }
        /* AI */
        .header-flex .title p {
            margin: 4px 0 0;
            font-style: italic;
            font-size: 1.1rem;
            opacity: .95;
        }

    /* User area (login/welcome) */
    .header-flex .user-area {
        flex: 1;
        text-align: right;
        font-size: 0.95rem;
    }

.login-error {
    margin-left: 10px;
    color: #ffd2d2;
}

/* =========================================================
   Nav (Dropdown)
   ========================================================= */
nav.main-menu {
    background: var(--gray-light);
    border-top: 4px solid var(--brand-1);
    position: relative;
    z-index: 1000; /* under contact bar; above hero */
}

    nav.main-menu > ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

        nav.main-menu > ul > li {
            position: relative;
            flex: 1;
            text-align: center;
        }

    nav.main-menu a {
        display: block;
        padding: 10px 15px;
        color: var(--text-dark);
    }

        nav.main-menu a:hover,
        nav.main-menu a:focus {
            background: var(--brand-1-light);
            color: #fff;
        }

    /* Dropdown */
    nav.main-menu li ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        min-width: 180px;
        list-style: none;
        margin: 0;
        padding: 8px 0;
        border: 1px solid var(--gray-med);
        border-radius: 8px;
        box-shadow: 0 10px 22px rgba(0,0,0,.12);
        z-index: 1050; /* above hero and content */
    }

    nav.main-menu li:hover > ul,
    nav.main-menu li:focus-within > ul {
        display: block;
    }

    nav.main-menu li ul li {
        text-align: left;
    }

    nav.main-menu li ul a {
        padding: 8px 12px;
        color: var(--text-dark);
    }

        nav.main-menu li ul a:hover {
            background: var(--brand-1-light);
            color: #fff;
        }

/* =========================================================
   Form + Page content wrapper
   ========================================================= */
form {
    background: #fff;
    margin: 20px auto;
    max-width: 100%;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.page-content,
.home-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 100%;
    margin: 20px auto;
    color: var(--text-dark);
}

    .home-content h2 {
        color: var(--brand-1);
        margin-top: 0;
    }

.inquiry-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-med);
    border-radius: 6px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-1);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--brand-1-dark);
    }

.btn-secondary {
    background: #fff;
    color: var(--brand-1);
    border: 1px solid var(--brand-1);
}

    .btn-secondary:hover {
        background: var(--brand-1-light);
        color: #fff;
        border-color: var(--brand-1-light);
    }

.validator,
.validation-summary {
    color: #c62828;
}

/* Success */
.success-message {
    background: #dff0d8;
    color: #2e7d32;
    padding: 12px 14px;
    border-radius: 6px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero-banner {
    position: relative;
    z-index: 0; /* ensure dropdown appears above */
    background: url('/images/AIWS-hero.jpg') no-repeat center/cover;
    height: 420px;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,42,74,.72), rgba(11,42,74,.28));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

    .hero-content h1 {
        font-size: 2.4rem;
        margin: 0 0 10px;
    }

    .hero-content p {
        font-size: 1.15rem;
        margin: 0 0 14px;
    }

/* =========================================================
   Intro, Features, Benefits, Testimonials, CTA
   ========================================================= */
.intro-section {
    padding: 32px 0;
    background: #fff;
}

.intro-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.intro-text, .intro-image {
    flex: 1 1 45%;
    min-width: 280px;
    box-sizing: border-box;
}

.intro-image {
    text-align: right;
}

    .intro-image img {
        height: 300px; /* unified (was conflicting 200/300) */
        width: auto;
        object-fit: cover;
        display: inline-block;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

.why-us-section {
    padding: 28px 0;
    background: #f7f9fc;
}

    .why-us-section h2 {
        text-align: center;
        font-size: 2rem;
        margin: 0 0 10px;
    }

.brand-highlight {
    color: var(--brand-1);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px;
    flex: 1 1 calc(25% - 24px);
    min-width: 240px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

    .feature-card img {
        max-height: 60px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin: 6px 0 8px;
        color: var(--brand-1);
    }

    .feature-card p {
        color: #555;
    }

.benefits-section {
    padding: 24px 0;
    background: #fff;
}

    .benefits-section h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 20px;
    }

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

    .benefits-list li {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        position: relative;
        padding-left: 1.5rem;
    }

        .benefits-list li::before {
            content: '✔';
            position: absolute;
            left: 0;
            top: 0.25rem;
            color: var(--brand-1);
            font-weight: bold;
        }

.testimonials-section {
    padding: 40px 0;
}

    .testimonials-section h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 18px;
    }

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(45% - 24px);
    min-width: 300px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

    .testimonial-card .quote {
        font-style: italic;
        color: #555;
        margin-bottom: 10px;
    }

    .testimonial-card .client-name {
        text-align: right;
        font-weight: 600;
        color: #333;
    }

.cta-footer {
    background: var(--brand-2);
    color: #fff;
    padding: 26px 0;
    text-align: center;
    border-radius: 8px;
}

    .cta-footer h2 {
        font-size: 2rem;
        margin: 0 0 14px;
    }

/* =========================================================
   Footer (from your master)
   ========================================================= */
footer .footer-container h4 {
    margin: 0 0 10px;
}

footer table td {
    padding: 2px 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .header-flex .logo img {
        height: 100px;
    }
}

@media (max-width: 992px) {
    .feature-card {
        flex: 1 1 calc(50% - 24px);
    }

    .header-flex {
        flex-wrap: wrap;
    }

        .header-flex .title {
            order: 3;
            width: 100%;
            margin-top: 8px;
        }

        .header-flex .user-area {
            order: 2;
        }

        .header-flex .logo {
            order: 1;
        }
}

@media (max-width: 768px) {
    .intro-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .intro-image {
        text-align: center;
        margin-top: 10px;
    }

    .hero-banner {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .feature-card, .testimonial-card {
        flex: 1 1 100%;
    }

    .header-flex .logo img {
        height: 80px;
    }
}
/* =======================
   AI Workforce Solutions "Crisp" Overrides
   Put this at the very end of site.css
   ======================= */

/* 1) Global tone: sharper contrast, crisper type */
body {
    background: #e6e9ed; /* brighter page background than #808080 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2) Remove soft card look from the main wrapper */
form {
    border-radius: 0; /* was 8px */
    box-shadow: none; /* remove blur */
    border: 1px solid #d7d7d7; /* crisp edge like US-TPO */
    max-width: 100%; /* full width to fit wide tables */
}

/* 3) Header bar: tighten spacing and edges */
.header-flex {
    padding: 10px 16px; /* slightly tighter */
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .header-flex .logo img {
        height: 100px; /* dial back from 120–150 for crisper balance */
    }

    .header-flex .title h1 {
        letter-spacing: 0; /* tighter */
        text-shadow: none; /* ensure no blur anywhere */
    }

    .header-flex .title p {
        opacity: 1; /* stronger tagline */
        color: rgba(255,255,255,.95);
    }

/* 4) Fixed contact bar: slightly smaller + tighter */
.contact-fixed {
    padding: 6px 8px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* 5) Navigation: crisp borders & high-contrast hover */
nav.main-menu {
    background: #f4f6f8; /* slightly brighter than #f5f5f5 */
    border-top: 4px solid var(--brand-1);
    border-bottom: 1px solid #dcdcdc;
}

    nav.main-menu a {
        padding: 10px 14px;
        font-weight: 600;
    }

        nav.main-menu a:hover,
        nav.main-menu a:focus {
            background: var(--brand-1); /* solid brand blue on hover */
            color: #fff;
        }

    nav.main-menu li ul {
        border-radius: 0; /* square dropdown */
        border: 1px solid #d0d0d0;
        box-shadow: 0 6px 14px rgba(0,0,0,.10); /* tighter shadow */
    }

        nav.main-menu li ul a {
            padding: 9px 12px;
        }

/* 7) Hero: make the overlay cleaner and text sharper */
.hero-banner {
    border-radius: 0; /* remove rounding */
    box-shadow: none;
    border: 1px solid #d7d7d7; /* match wrapper */
}

.hero-overlay {
    background: rgba(0,0,0,.35); /* simple dark glaze (crisper than gradient) */
}

.hero-content h1 {
    font-size: 2.25rem; /* slightly smaller feels sharper */
    text-shadow: none;
}

.hero-content p {
    font-size: 1.05rem;
}

/* 8) Buttons: flat and snappy */
.btn-primary, .btn-secondary {
    border-radius: 3px;
    box-shadow: none;
    transition: transform .05s ease, background-color .15s ease;
}

    .btn-primary:hover, .btn-secondary:hover {
        transform: translateY(-1px);
    }

/* 9) Cards/sections: lose softness */
.feature-card,
.testimonial-card,
.page-content,
.home-content {
    border-radius: 4px; /* small radius only */
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e1e1e1;
}

/* 10) Intro image: consistent, non-blurry framing */
.intro-image img {
    height: 260px; /* pick one size; 260 is a nice middle */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.10);
}

/* 11) Footer: crisp separators */
footer .footer-container h4 {
    font-weight: 700;
}

footer table td {
    border-bottom: 1px dotted #e1e1e1;
}
/* stronger gray slab behind the white form */
body {
    background: #999999;
}
/* ---- AI Workforce Solutions Home (crisp, content-first) ---- */
.hero-compact {
    padding-top: 1.25rem !important;
    padding-bottom: 0.75rem !important;
}

.feature-card-crisp {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

    .feature-card-crisp .card-body {
        padding: 1.25rem 1rem;
    }

.value-list li {
    margin: .35rem 0;
    padding-left: .9rem;
    position: relative;
}

    .value-list li::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--brand-1, #337ab7);
        font-weight: 700;
    }

/* Ensure feature cards stay readable if Font Awesome isn't loaded */
.feature-card-crisp i {
    opacity: .95;
}

/* ===== Header login: compact & aligned (drop this at end of site.css) ===== */
.header-flex .user-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 420px; /* keeps inputs from wrapping on desktop */
}

.login-panel {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .login-panel .login-input {
        width: 170px;
        height: 30px;
        padding: 4px 8px;
        font-size: .9rem;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(255,255,255,.75);
        border-radius: 4px;
        box-shadow: none;
    }

        .login-panel .login-input::placeholder {
            color: #5c7ea6;
        }

    .login-panel .login-button {
        height: 30px;
        padding: 4px 10px;
        font-size: .9rem;
        background: #fff;
        color: var(--brand-1);
        border: 1px solid rgba(255,255,255,.75);
        border-radius: 4px;
    }

        .login-panel .login-button:hover {
            background: #f7fbff;
            border-color: #e6eef9;
            color: #1f5fa0;
        }

/* On smaller screens, hide the inline fields and show just a link if you want */
@media (max-width: 992px) {
    .header-flex .user-area {
        min-width: unset;
    }
    /* Uncomment to fully hide compact login on tablets/phones
  .login-panel { display:none; }
  */
}

/* Value strip under nav */
.value-strip {
    background: #f7fbff;
    border-top: 1px solid #d9e7fb;
    border-bottom: 1px solid #d9e7fb;
    padding: 8px 0;
}

/* Header user area layout */
.header-flex .user-area {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Dropdown styling */
.login-compact .login-toggle {
    line-height: 1;
}

.login-dropdown {
    min-width: 280px;
    z-index: 1200;
}
    /* above nav */
    .login-dropdown .form-control {
        box-shadow: none;
    }

/* Keep the welcome panel tidy */
.welcome-panel .btn {
    line-height: 1;
}

:root {
    --accent: #c62828;
}
/* dark red */

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

    .btn-outline-accent:hover {
        color: #fff;
        background: var(--accent);
        border-color: var(--accent);
    }

.link-accent {
    color: var(--accent) !important;
    font-weight: 700;
}

    .link-accent:hover {
        text-decoration: underline;
    }

/* Featured card highlight (AI Automation) */
.feature-card-crisp.is-featured {
    position: relative;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(198,40,40,.12), 0 .25rem .75rem rgba(0,0,0,.12) !important;
    transform: translateY(-2px);
}

    .feature-card-crisp.is-featured::after {
        content: "Most impact";
        position: absolute;
        top: -10px;
        right: -10px;
        background: var(--accent);
        color: #fff;
        font-size: .7rem;
        padding: 3px 6px;
        border-radius: 4px;
    }

/* Tighter spacing inside feature cards */
.feature-card-crisp .mb-3 {
    margin-bottom: .5rem !important;
}
/* downgrade any mb-3 to mb-2 feel */
.feature-card-crisp .card-title {
    margin-bottom: .35rem;
}

.feature-card-crisp .card-text {
    margin-bottom: .5rem;
}

.feature-card-crisp i {
    margin-bottom: .5rem !important;
}
/* icon gap */

/* make the combined card a touch tighter */
#cvCombined.card {
    padding: 14px
}

#cvCombined .title {
    margin-bottom: 4px
}

#cvCombined.card{ padding:14px }
.chart-card canvas {
    width: 100%;
    height: 320px;
    display: block
}

.hero .right.two-rows {
    display: grid;
    gap: 6px
}

    .hero .right.two-rows .row {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end
    }

/* keep hero KPIs on two rows, side-by-side */
.hero .metrics-right {
    display: grid;
    gap: 6px
}

    .hero .metrics-right .metrics-row {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end
    }

.hero .metrics-right {
    max-width: 540px;
    display: grid;
    gap: 6px
}
/* tweak to taste */

    .hero .metrics-right .metrics-row {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end
    }

/* === Header: grid layout for true centering + safe dropdown === */
.header-flex {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr; /* equal side gutters, auto center */
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--brand-1);
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    position: relative; /* anchor dropdowns */
    overflow: visible; /* allow dropdown to extend */
    z-index: 1200; /* above the nav */
}

    /* place items */
    .header-flex .logo {
        justify-self: start;
    }

    .header-flex .title {
        grid-column: 2;
        text-align: center;
    }

    .header-flex .user-area {
        justify-self: end;
    }

    /* keep logo sane */
    .header-flex .logo img {
        height: 100px;
        max-height: 150px;
        width: auto;
    }

    /* title typography */
    .header-flex .title h1 {
        margin: 0;
        font-weight: 800;
        font-size: 2.5rem;
        line-height: 1;
    }

    /* login dropdown should float above nav */
    .login-dropdown {
        z-index: 1300;
    }

    /* responsive: stack neatly on tablets/phones */
    @media (max-width: 992px) {
        .header-flex {
            grid-template-columns: 1fr;
            grid-auto-rows: auto;
            row-gap: 8px;
        }

            .header-flex .title {
                grid-column: 1;
                order: 2;
            }

            .header-flex .logo {
                order: 1;
                justify-self: center;
            }

            .header-flex .user-area {
                order: 3;
                justify-self: center;
            }
    }

/* === True centered title, login not clipped === */
.header-flex {
    display: grid !important;
    grid-template-columns: auto 1fr auto; /* logo | flexible space | login */
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: visible;
    z-index: 1200;
}

    /* place logo and user area in columns 1 and 3 */
    .header-flex .logo {
        grid-column: 1;
        justify-self: start;
    }

    .header-flex .user-area {
        grid-column: 3;
        justify-self: end;
        min-width: unset !important; /* override 420px */
        position: relative; /* anchor dropdown */
        z-index: 3; /* over the title */
    }

    /* make the title span the FULL header and center it */
    .header-flex .title {
        grid-column: 1 / 4; /* span all three columns */
        text-align: center;
        pointer-events: none; /* let login dropdown clicks pass */
        z-index: 1;
    }

    /* keep dropdown above everything */
    .login-dropdown {
        z-index: 5;
    }

    /* sizing (feel free to keep your current numbers) */
    .header-flex .logo img {
        height: 100px;
        width: auto;
    }

    .header-flex .title h1 {
        margin: 0;
        font-weight: 800;
        font-size: 2.5rem;
        line-height: 1;
    }

    .header-flex .title p {
        margin: 4px 0 0;
        font-style: italic;
    }

    /* responsive: stack cleanly */
    @media (max-width: 992px) {
        .header-flex {
            grid-template-columns: 1fr;
            row-gap: 8px;
        }

            .header-flex .title {
                grid-column: 1;
                pointer-events: auto;
            }

            .header-flex .logo {
                justify-self: center;
            }

            .header-flex .user-area {
                justify-self: center;
            }
    }

/* --- Header: force all three regions onto a single grid row --- */
.header-flex {
    display: grid !important;
    grid-template-columns: auto 1fr auto; /* logo | center | login */
    grid-template-rows: auto; /* single row */
    align-items: center;
}

    .header-flex .logo,
    .header-flex .title,
    .header-flex .user-area {
        grid-row: 1; /* <— keep all in row 1 */
    }

    /* Title spans full width and is centered */
    .header-flex .title {
        grid-column: 1 / 4; /* span all columns */
        text-align: center;
        pointer-events: none; /* let clicks hit the login */
        z-index: 1;
    }

    /* Login sits on top so dropdown isn’t blocked */
    .header-flex .user-area {
        grid-column: 3;
        justify-self: end;
        min-width: unset !important; /* override old 420px */
        position: relative;
        z-index: 3;
    }

    /* Keep dropdown above everything */
    .login-dropdown {
        z-index: 5;
    }
    .text-muted-custom p {
        color: #adb5bd !important;
    }

    .text-muted-custom h5 {
        color: rgb(108,117,125) !important; /* #6c757d */
    }

    .text-muted-custom p {
        color: rgb(108,117,125) !important; /* #6c757d */
    }

/* =========================================================
   Modal z-index fix – force Bootstrap modals above all
   fixed site chrome (contact bar, header, nav)
   ========================================================= */
.modal-backdrop {
    z-index: 9998 !important;
}
.modal {
    z-index: 9999 !important;
}

/* =========================================================
   Mobile Responsive — hamburger nav, smaller chrome
   ========================================================= */

/* Hamburger button hidden by default on desktop */
nav.main-menu .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    width: 44px;
    height: 44px;
}
    nav.main-menu .menu-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        background: var(--brand-1-dark);
        margin: 4px 0;
        transition: transform .2s, opacity .2s;
    }
    nav.main-menu .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    nav.main-menu .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    nav.main-menu .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

@media (max-width: 768px) {
    /* Show hamburger and stack menu */
    nav.main-menu .menu-toggle {
        display: block;
    }

    nav.main-menu > ul {
        display: none;
        flex-direction: column;
    }

    nav.main-menu > ul.open {
        display: flex;
    }

    nav.main-menu > ul > li {
        flex: unset;
        text-align: left;
        border-bottom: 1px solid #dcdcdc;
    }

    /* Show sub-menus inline (no hover-only) on mobile */
    nav.main-menu li ul {
        position: static;
        display: block;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #fafcff;
        padding: 0;
    }

    nav.main-menu li ul li a {
        padding-left: 28px;
    }

    /* Contact bar is a bit tall for phones */
    .contact-fixed {
        font-size: .8rem;
        padding: 6px 8px;
    }
    .contact-fixed h2.contact-title {
        font-size: .85rem;
        line-height: 1.2;
    }
    body {
        padding-top: 38px;
    }

    /* Give the page wrapper breathing room, not tight padding */
    form {
        margin: 10px 0;
        padding: 10px;
    }

    /* Header stacks: keep logo modest so title fits */
    .header-flex .logo img {
        height: 60px !important;
    }
    .header-flex .title h1 {
        font-size: 1.2rem;
    }
    .header-flex .title p {
        font-size: .85rem;
    }
}

/* Tables always horizontal-scroll on small screens so they don't overflow */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .modal-body .table {
        display: table; /* keep tables inside modals as regular tables */
    }
}

/* Very small screens — trim padding further */
@media (max-width: 480px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    h2 {
        font-size: 1.35rem;
    }
    .btn-lg {
        padding: 8px 14px;
        font-size: 1rem;
    }
    .card-body {
        padding: .75rem;
    }
}