﻿/* ─── CSS Variables (BRO-Inspired Color Scheme) ─── */
:root {
    --color-blue: #0066CC;
    --color-navy: #0d1e35;
    --color-navy-mid: #162845;
    --color-navy-light: #1e3a5f;
    --color-teal: #1a7f75;
    --color-teal-light: #22a99c;
    --color-orange: #e87722;
    --color-orange-dark: #c9610f;
    --color-gold: #f0a500;
    --color-white: #ffffff;
    --color-off-white: #f5f7fa;
    --color-gray-light: #e4e8ef;
    --color-gray: #8a96a8;
    --color-text: #1a2535;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --shadow-card: 0 4px 24px rgba(13, 30, 53, 0.12);
    --transition: 0.25s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition);
}

    a:hover {
        color: var(--color-teal-light);
    }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-navy);
    line-height: 1.25;
}

/* ─── Buttons ─── */
.btn-primary-cta {
    display: inline-block;
    background: var(--color-orange);
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

    .btn-primary-cta:hover {
        background: var(--color-orange-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(232, 119, 34, 0.35);
    }

.btn-outline-cta {
    display: inline-block;
    background: transparent;
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.55);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

    .btn-outline-cta:hover {
        border-color: var(--color-white);
        background: rgba(255,255,255,0.08);
    }

/* ─── Skip Link (Accessibility) ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}

    .skip-link:focus {
        top: 0;
    }

/* ─── Top Bar (optional announcement strip) ─── */
.topbar {
    background: var(--color-navy);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.4rem 1rem;
    letter-spacing: 0.03em;
}

    .topbar a {
        color: var(--color-gold);
        font-weight: 600;
    }

        .topbar a:hover {
            color: var(--color-orange);
        }

/* ─── Navigation ─── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f0f2f5;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(13, 30, 53, 0.08);
    height: var(--nav-height);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-navy) !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

    .nav-logo span {
        color: var(--color-orange);
    }

.nav-logo-bottom {
    color: var(--color-off-white) !important;
}
    .nav-logo-bottom span {
        color: var(--color-orange);
    }

/* ─── Footer Logo ─── */
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-off-white) !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

    .footer-logo span {
        color: var(--color-orange);
    }

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    height: 100%;
    margin-bottom: 0;
}

    .nav-links li {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-links a {
        color: var(--color-navy);
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.4rem 0.75rem;
        border-radius: var(--radius-sm);
        transition: color var(--transition), background var(--transition);
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--color-navy);
            background: rgba(13, 30, 53, 0.07);
        }

        .nav-links a.active {
            border-bottom: 2px solid var(--color-orange);
            border-radius: 0;
        }

.nav-cta {
    margin-left: 0.75rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-navy);
        border-radius: 2px;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile Drawer */
.nav-drawer {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(13,30,53,0.5);
    z-index: 999;
}

    .nav-drawer.open {
        display: block;
    }

    .nav-drawer ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-drawer a {
        display: block;
        color: rgba(255,255,255,0.85);
        padding: 0.6rem 0.5rem;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

        .nav-drawer a:hover {
            color: var(--color-orange);
        }

    .nav-drawer .drawer-cta {
        margin-top: 1rem;
    }

/* ─── Progress Bar (for multi-step flows) ─── */
.progress-bar-container {
    background: var(--color-gray-light);
    height: 4px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-teal), var(--color-orange));
    transition: width 0.4s ease;
}

/* ─── Nav Accent Bar ─── */
.nav-accent-bar {
    background: var(--color-orange);
    height: 6px;
    position: sticky;
    top: var(--nav-height);
    z-index: 999;
}

.nav-accent-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--color-teal) 10%, var(--color-orange) 90%);
}

/* ─── Page Content Wrapper ─── */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ─── Section Styles ─── */
.section-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-white);
    padding: 5rem 1.5rem;
    text-align: center;
}

    .section-hero h1 {
        color: var(--color-white);
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 1rem;
    }

    .section-hero p {
        color: rgba(255,255,255,0.8);
        font-size: 1.1rem;
        max-width: 640px;
        margin: 0 auto 2rem;
    }

.section-light {
    background: var(--color-off-white);
    padding: 4rem 1.5rem;
}

.section-white {
    background: var(--color-white);
    padding: 4rem 1.5rem;
}

.section-dark {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 4rem 1.5rem;
}

.section-teal {
    background: var(--color-teal);
    color: var(--color-white);
    padding: 3rem 1.5rem;
    text-align: center;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Cards ─── */
.card-base {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    border-top: 4px solid var(--color-teal);
    height: 100%;
}

    .card-base .card-icon {
        width: 48px;
        height: 48px;
        background: rgba(26,127,117,0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }

    .card-base h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .card-base p {
        font-size: 0.9rem;
        color: var(--color-gray);
        line-height: 1.6;
    }

/* ─── Steps ─── */
.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

    .step-item:last-child {
        border-bottom: none;
    }

    .step-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .step-item p {
        font-size: 0.9rem;
        color: var(--color-gray);
        margin: 0;
    }

/* ─── Alerts / Validation ─── */
.alert {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
}

.alert-info {
    background: #e0f4f3;
    color: var(--color-teal);
    border-left: 4px solid var(--color-teal);
}

.alert-warning {
    background: #fff3e0;
    color: #b45309;
    border-left: 4px solid var(--color-orange);
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.65);
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color var(--transition);
}

    .footer-col a:hover {
        color: var(--color-orange);
    }

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
}

.footer-disclosure {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    max-width: 700px;
    line-height: 1.55;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
.nav-logout-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

    .nav-logout-btn:hover {
        color: var(--color-teal);
    }
.dropdown-submenu > .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

/* layout.css makes every ".nav-links li" a full-height flex row, which put the group's links beside its label. Inside dropdowns, stack normally. */
.nav-links .dropdown-menu li,
.nav-drawer .dropdown-menu li {
    display: block;
    height: auto;
}

/* Mobile drawer: show the Admin links inline on the navy background */
.nav-drawer .dropdown-menu {
    position: static;
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.nav-drawer .dropdown-item:hover,
.nav-drawer .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
}

.site-nav .dropdown-menu .dropdown-submenu > .dropdown-menu {
    position: static;
    display: none;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
}

    .site-nav .dropdown-menu .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }
