﻿

:root {
    --tc-navy: #12305a;
    --tc-navy-900: #0c2244;
    --tc-blue: #1b5ea8;
    --tc-red: #c1272d;
    --tc-red-700: #9e1f24;
    --tc-green: #1e7a4c;
    --tc-purple: #5a3aa6;
    --tc-ink: #12305a;
    --tc-text: #3f4a59;
    --tc-muted: #5b6676;
    --tc-band: #f2f6fb;
    --tc-line: #dbe3ee;
    --tc-focus: #ffbf47;
    --tc-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --tc-sans: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
body.home-page {
    background-color: #fff !important;
    color: var(--tc-text);
    font-size: 16px;
    line-height: 1.55;
}

.home-page h1, .home-page h2, .home-page h3,
.home-page .h3, .home-page .h4 {
    font-family: var(--tc-serif);
    color: var(--tc-ink);
    line-height: 1.25;
}

.home-page .app-safety-info h3 {
    font-family: var(--tc-sans);
    color: #12305a;
}
.home-page p {
    color: #12305a;
}
.home-page a {
    color: var(--tc-blue);
}
.home-page .btn-dark {
    background-color: #12305a;
    border-color: #12305a;
}
    .home-page a:focus-visible,
    .home-page button:focus-visible,
    .home-page select:focus-visible,
    .home-page input:focus-visible,
    .home-page summary:focus-visible {
        outline: 3px solid var(--tc-focus);
        outline-offset: 2px;
        box-shadow: none;
    }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#main-content {
    scroll-margin-top: 0;
    outline: none;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--tc-navy);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

    .site-header .navbar {
        padding: 14px 0;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff !important;
    text-decoration: none !important;
}

.brand-seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.brand-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, .55);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--tc-serif);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}

.brand-sub {
    font-size: 12.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
    margin-top: 6px;
}

.site-header .nav-link {
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 16px !important;
    position: relative;
}

    .site-header .nav-link.active::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: -2px;
        height: 3px;
        background: var(--tc-red);
    }

.site-header .dropdown-menu {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(12, 34, 68, .2);
    padding: 8px 0;
    min-width: 280px;
}

.site-header .dropdown-item {
    color: var(--tc-ink);
    padding: 8px 18px;
    font-size: 15px;
}

    .site-header .dropdown-item:hover,
    .site-header .dropdown-item:focus {
        background: var(--tc-band);
        color: var(--tc-ink);
    }

.btn-header-search {
    background: var(--tc-red);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 22px;
    border-radius: 3px;
    margin-left: 16px;
}

    .btn-header-search:hover {
        background: var(--tc-red-700);
    }

    .btn-header-search .fa {
        margin-right: 8px;
    }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 56px 0 56px;
    background: linear-gradient(90deg, rgba(246, 249, 253, .98) 0%, rgba(246, 249, 253, .92) 48%, rgba(246, 249, 253, .1) 78%), 
        url('../images/hero-capitol.png') right bottom / auto 100% no-repeat, linear-gradient(180deg, #afd4fa 0%, #c0def7 50%, #bddae8 100%);
}

.hero-copy {
    max-width: 620px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--tc-ink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

    .hero-eyebrow::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 48px;
        height: 3px;
        background: var(--tc-red);
    }

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 18px;
    color: #2f3b4c;
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-search {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(12, 34, 68, .16);
    max-width: 940px;
}

.hs-field {
    position: relative;
    flex: 0 0 160px;
}

.hs-keyword {
    flex: 1 1 auto;
}

    .hs-keyword .fa {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--tc-ink);
        font-size: 18px;
        pointer-events: none;
    }

.hero-search .form-control {
    height: 48px;
    border: 1px solid var(--tc-line);
    border-radius: 3px;
    font-size: 15px;
    color: var(--tc-ink);
}

.hs-keyword .form-control {
    padding-left: 46px;
}

.btn-hero-search {
    background: var(--tc-navy);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 0 32px;
    height: 48px;
    border-radius: 3px;
}

    .btn-hero-search:hover {
        background: var(--tc-navy-900);
        color: #fff;
    }

/* ---------- Section heads ---------- */
.section-head {
    margin-bottom: 28px;
}

    .section-head h2 {
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 4px;
        position: relative;
        padding-left: 40px;
    }

        .section-head h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 22px;
            height: 3px;
            background: var(--tc-red);
        }

    .section-head p {
        color: var(--tc-muted);
        margin: 0 0 0 40px;
        font-size: 16px;
    }

/* ---------- Quick access ---------- */
.quick-access {
    padding: 48px 0 40px;
    background: #fbfcfe;
}

.qa-card {
    --accent: var(--tc-blue);
    --tint: #f1f6fd;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 24px;
    padding: 24px 22px 20px;
    background: var(--tint);
    border: 1px solid var(--tc-line);
    border-bottom: 4px solid var(--accent);
    border-radius: 4px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.qa-blue {
    --accent: var(--tc-blue);
    --tint: #f1f6fd;
}

.qa-red {
    --accent: var(--tc-red);
    --tint: #fdf3f3;
}

.qa-green {
    --accent: var(--tc-green);
    --tint: #f0f8f4;
}

.qa-purple {
    --accent: var(--tc-purple);
    --tint: #f5f2fc;
}

.qa-card:hover,
.qa-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(12, 34, 68, .12);
}

.qa-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.qa-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--tc-ink);
    margin-bottom: 12px;
}

.qa-card p {
    font-size: 15px;
    color: var(--tc-muted);
    flex: 1 1 auto;
    margin-bottom: 20px;
}

.qa-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--tc-blue) !important;
    text-decoration: none !important;
}

    .qa-link .fa {
        margin-left: 6px;
        transition: transform .2s ease;
        display: inline-block;
    }

.qa-link {
    text-wrap: balance;
}

.qa-card:hover .qa-link .fa {
    transform: translateX(3px);
}

/* Whole card is clickable via the link */
.qa-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* ---------- Helpful info band ---------- */
.info-band {
    background: var(--tc-band);
    padding: 48px 0;
}

.info-main {
    padding-right: 32px;
}

.info-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.info-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--tc-blue);
    color: #fff;
    font-family: var(--tc-serif);
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-head h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
}

.info-sub {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tc-blue);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .info-list li {
        display: flex;
        gap: 22px;
        padding: 20px 0;
        border-bottom: 1px solid var(--tc-line);
    }

        .info-list li:last-child {
            border-bottom: 0;
        }

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e3ecf8;
    color: var(--tc-blue);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-list h3 {
    font-family: var(--tc-sans);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-list p {
    font-size: 15px;
    margin: 0;
}

.info-aside {
    border-left: 6px solid #fff;
    padding-left: 28px;
}

.exit-card,
.support-card {
    display: flex;
    gap: 18px;
}

.exit-card {
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 28px;
}

.exit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--tc-red);
    color: #fff;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exit-card h2,
.support-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.exit-card p,
.support-card p {
    font-size: 15px;
    margin-bottom: 14px;
}

.btn-quick-exit {
    width: 100%;
    max-width: 240px;
    border: 1.5px solid var(--tc-red);
    color: var(--tc-red);
    background: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 3px;
}

    .btn-quick-exit:hover {
        background: var(--tc-red);
        color: #fff;
    }

    .btn-quick-exit .fa {
        margin-right: 6px;
    }

.support-icon {
    font-size: 34px;
    color: var(--tc-navy);
    width: 40px;
    flex-shrink: 0;
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

    .support-list li {
        margin-bottom: 8px;
        color: var(--tc-ink);
    }

    .support-list .fa {
        width: 22px;
        color: var(--tc-navy);
    }

/* ---------- About these records ---------- */
.about-records {
    padding: 48px 0 64px;
}

.about-item {
    border: 1px solid var(--tc-line);
    border-left: 4px solid var(--tc-navy);
    border-radius: 4px;
    margin-bottom: 14px;
    background: #fff;
}

    .about-item summary {
        cursor: pointer;
        padding: 16px 20px;
        font-family: var(--tc-serif);
        font-weight: 700;
        font-size: 18px;
        color: var(--tc-ink);
        list-style: none;
        position: relative;
        padding-right: 48px;
    }

        .about-item summary::-webkit-details-marker {
            display: none;
        }

        .about-item summary .fa {
            margin-right: 8px;
            color: var(--tc-blue);
        }

        .about-item summary::after {
            content: "\f107"; /* fa-angle-down */
            font-family: FontAwesome;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform .2s ease;
        }

    .about-item[open] summary::after {
        transform: translateY(-50%) rotate(180deg);
    }

.about-body {
    padding: 0 20px 8px;
    max-width: 100ch;
}

    .about-body p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .about-body a {
        font-weight: 600;
        text-decoration: underline;
    }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--tc-navy);
    color: #fff;
    padding-top: 28px;
    margin-top: 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff !important;
    text-decoration: none !important;
}

    .footer-brand > .fa {
        font-size: 40px;
    }

    .footer-brand .brand-divider {
        height: 36px;
    }

    .footer-brand .brand-title {
        font-size: 20px;
    }

    .footer-brand .brand-sub {
        font-size: 11px;
        margin-top: 4px;
    }

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

    .footer-links li + li {
        border-left: 1px solid rgba(255, 255, 255, .45);
    }

    .footer-links a {
        color: #fff !important;
        font-size: 13.5px;
        padding: 0 14px;
    }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 0 20px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
}

.footer-tagline {
    font-style: italic;
}

.footer-flag {
    height: 12px;
    background: linear-gradient(90deg, var(--tc-blue) 0 64%, var(--tc-red) 64% 100%);
}

/* ---------- Floating exit button (existing element, restyled) ---------- */
.home-page #safe-close {
    background: var(--tc-red);
    border: 0;
    color: #fff;
    border-radius: 6px 0 0 6px;
    padding: 10px 12px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

    .home-page #safe-close:hover {
        background: var(--tc-red-700);
    }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .brand-title {
        font-size: 20px;
    }

    .brand-sub {
        font-size: 11px;
        letter-spacing: .14em;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        padding: 12px 0;
    }

    .site-header .nav-link.active::after {
        display: none;
    }

    .btn-header-search {
        margin: 8px 0 0;
        display: inline-block;
    }

    .site-header .dropdown-menu {
        box-shadow: none;
    }

    .hero {
        background: linear-gradient(180deg, rgba(246, 249, 253, .95), rgba(246, 249, 253, .95)), url('../images/hero-capitol.jpg') center / cover no-repeat, #e9f0f9;
    }

    .hero-search {
        flex-wrap: wrap;
    }

    .hs-keyword {
        flex: 1 1 100%;
    }

    .hs-field:not(.hs-keyword) {
        flex: 1 1 45%;
    }

    .btn-hero-search {
        flex: 1 1 100%;
    }

    .info-main {
        padding-right: 15px;
    }

    .info-aside {
        border-left: 0;
        padding-left: 15px;
        margin-top: 24px;
    }
}

@media (max-width: 575.98px) {
    .brand {
        gap: 10px;
    }

    .brand-seal {
        width: 44px;
        height: 44px;
    }

    .brand-divider {
        height: 36px;
    }

    .brand-title {
        font-size: 19px;
    }

    .brand-sub {
        font-size: 9.5px;
        letter-spacing: .08em;
    }

    .hero {
        padding: 36px 0;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hs-field:not(.hs-keyword) {
        flex: 1 1 100%;
    }

    .section-head h2, .info-head h2 {
        font-size: 26px;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links a {
        padding: 0 10px 0 0;
    }

    .footer-links li + li {
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qa-card, .qa-link .fa, .about-item summary::after {
        transition: none;
    }

        .qa-card:hover, .qa-card:focus-within {
            transform: none;
        }
}
