﻿body {
}
/* ================================
   AHP Careers - Master Theme CSS
   Combines CS2Home + Test.css
   ================================ */

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDrgCcqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDr3icqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 500;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDr7CcqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 600;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDrACAqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDrOSAqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 900;
    font-stretch: normal;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDrdyAqEw.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCs16Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
}

/* ----------------
   Brand Tokens
   ---------------- */
:root {
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Merriweather', serif;
    --primary: #231f20;
    --secondary: #434142;
    --gray-dark: #696969;
    --gray-medium: #939393;
    --gray-light: #d9d9d9;
    --gray: #e1e1e1;
    --gray-55: #efefef;
    --gray-25: #f7f7f7;
    --beige: #fffaed;
    /* Brand Accent (AHP Red) */
    --accent: #be1e2d;
    --accent-dark: #9b2421;
    --accent-light: #ca616b;
    /* Semantic aliases (prevents “random new variables”) */
    --ahp-red: var(--accent);
    --ahp-red-dark: var(--accent-dark);
    --ahp-ink: var(--primary);
    --ahp-muted: var(--gray-dark);
    --ahp-bg: var(--gray-25);
    /* Typography scale */
    --h1: 3.125rem;
    --h2: 2.25rem;
    --h3: 1.75rem;
    --h4: 1.25rem;
    --p: 1rem;
    /* Layout constants */
    --fpbBannerHeight: 37px;
    --menuBannerHeightDesktop: 58px;
    --menuBannerHeightMobile: 59px;
    /* Focus ring (accessible + on brand) */
    --focus-ring: 0 0 0 .25rem rgba(190, 30, 45, .20);
}

@media (max-width: 768px) {
    :root {
        --h1: 2.375rem;
        --h2: 1.875rem;
        --h4: 1.063rem;
    }
}

/* ----------------
   Base + Typography
   ---------------- */
body {
    font-family: var(--font-sans);
    color: var(--primary);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--ahp-bg);
}

main {
    padding-top: 92px;
}

.has-hero main {
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: var(--h1);
    font-weight: 700;
}

h2 {
    font-size: var(--h2);
    font-weight: 600;
    line-height: 1.3;
    font-family: var(--font-serif);
    color: var(--secondary);
}

h3 {
    font-size: var(--h3);
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    font-size: var(--h4);
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: var(--p);
    font-weight: 500;
    line-height: 1.5;
    color: var(--primary);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-serif {
    font-family: var(--font-serif);
}

.sanSerif {
    font-family: var(--font-sans);
}

.serif {
    font-family: var(--font-serif);
}

/* ----------------
   Accessibility
   ---------------- */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: .5rem;
}

/* ----------------
   Bootstrap Component Overrides (Global)
   Keep these consistent everywhere.
   ---------------- */

/* Buttons: align Bootstrap to AHP brand */
.btn {
    padding: .8rem 2.2rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--accent-dark) !important;
        border-color: var(--accent-dark) !important;
        color: #fff !important;
    }

.btn-outline-secondary {
    background-color: transparent !important;
    border: 2px solid var(--secondary) !important;
    color: var(--secondary) !important;
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus {
        background-color: var(--secondary) !important;
        border-color: var(--secondary) !important;
        color: #fff !important;
    }

/* Forms */
.form-control, .form-select {
    border-radius: .85rem;
    border-color: rgba(35, 31, 32, .15);
}

    .form-control:focus, .form-select:focus {
        border-color: rgba(190, 30, 45, .55);
        box-shadow: var(--focus-ring);
    }

/* Cards */
.card {
    border-radius: 1rem;
}

    .card.shadow-soft {
        box-shadow: 0 10px 30px rgba(0,0,0,.06);
        border: 1px solid rgba(0,0,0,.06);
    }

/* ----------------
   Navbar
   ---------------- */
.navbar .nav-link {
    color: var(--ahp-ink) !important;
    opacity: .85;
    font-weight: 700;
    letter-spacing: .2px;
}

    .navbar .nav-link:hover {
        opacity: 1;
        color: var(--ahp-red) !important;
    }

    .navbar .nav-link.active {
        opacity: 1;
        color: var(--ahp-red) !important;
    }

/* Header shell: minimal “overlay” on top of hero */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 92px;
}



/* Floating logo that bleeds into content */
.site-logo {
    position: absolute;
    left: 18px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

    .site-logo img {
        height: 100px; /* slightly smaller than before so it feels deliberate */
        width: auto;
        display: block;
    }

@media (max-width: 576px) {
    .site-logo {
        left: 14px;
        top: 12px;
    }

        .site-logo img {
            height: 54px;
        }
}

.hero {
    position: relative;
    min-height: 72vh;
    max-height: 920px;
    overflow: hidden;
    background: #111;
}

.hero-slide img {
    width: 100%;
    height: 72vh;
    max-height: 920px;
    object-fit: cover;
    object-position: center 25%;
    filter: saturate(1.02) contrast(1.02);
}

@media (max-width: 992px) {
    .hero {
        min-height: 52vh;
    }

    .hero-slide img {
        height: 52vh;
    }
}

/* Brand overlay (not “generic dark”) */


.hero-ctas .btn {
    padding-inline: 1.4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(1.25rem, 3vw, 3rem);
    background: radial-gradient(900px 520px at 18% 86%, rgba(0,0,0,.70), rgba(0,0,0,0) 60%), linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.08));
}

.hero-panel {
    padding: clamp(.75rem, 1.2vw, 1.25rem);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(125,125,125,.5), rgba(125,125,125,.7));
    backdrop-filter: blur(6px);
}

.hero-subtitle {
    opacity: 1;
    color: rgba(255,255,255,.95);
    text-shadow: 0 2px 2px rgba(0,0,0,.55), 0 12px 28px rgba(0,0,0,.45);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    opacity: .92;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.02;
    margin: .45rem 0 .75rem;
    text-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.hero-subtitle {
    max-width: 46ch;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: .92;
    margin: 0 0 1.25rem;
    text-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* CTA styling so "Login" doesn't look disabled */
.hero-ctas .btn {
    border-radius: 999px;
    padding: .85rem 1.4rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.hero-ctas .btn-outline-secondary {
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,255,255,.60) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

    .hero-ctas .btn-outline-secondary:hover {
        background: rgba(255,255,255,.22) !important;
        border-color: rgba(255,255,255,.85) !important;
    }

/* Burger */
.site-controls {
    position: absolute;
    right: 18px;
    top: 18px;
    display: flex;
    gap: .5rem;
}

/* Icon button (kept for any future use, but not used for the menu button) */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
}

    .btn-icon i {
        font-size: 1.6rem;
        color: var(--primary);
    }

/* Burger overlays content with no pill */
.burger-overlay {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2010;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: transparent; /* no pill */
    cursor: pointer;
    pointer-events: auto;
    display: grid;
    place-items: center;
    /* better tap behavior */
    -webkit-tap-highlight-color: transparent;
}

    .burger-overlay i {
        font-size: 1.9rem;
        color: #fff; /* visible on hero */
        /* shadow makes it readable on light areas */
        filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)) drop-shadow(0 10px 20px rgba(0,0,0,.40));
    }

/* On non-hero pages (white background), flip to dark */
body:not(.has-hero) .burger-overlay i {
    color: var(--primary);
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.35)) drop-shadow(0 10px 20px rgba(0,0,0,.14));
}

/* Optional: on hover/focus, show a faint halo (still not a pill) */
.burger-overlay:focus-visible {
    outline: none;
}

    .burger-overlay:focus-visible::after {
        content: '';
        position: absolute;
        inset: 6px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
    }
/* Optional desktop inline nav */
.site-nav {
    position: absolute;
    left: 140px; /* leaves space for burger */
    top: 30px;
    gap: 22px;
    align-items: center;
}

.site-nav-link {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    color: var(--accent);
    opacity: .95;
    padding: .25rem .15rem;
}

    .site-nav-link:hover {
        color: var(--accent-dark);
        opacity: 1;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }

.offcanvas {
    background: #fff;
    z-index: 2000;
}

.offcanvas-backdrop {
    z-index: 1990;
}

.offcanvas .list-group-item {
    border-color: rgba(0,0,0,.06);
    padding: .9rem 1rem;
    font-weight: 700;
}

    .offcanvas .list-group-item:hover {
        background: rgba(190,30,45,.06);
    }

    .offcanvas .list-group-item i {
        color: var(--ahp-red);
    }

/* When you scroll, we can darken links if you want on non-hero pages */
body.scrolled .site-nav-link {
    color: var(--primary);
}

body.scrolled .site-logo {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

body.scrolled .btn-icon {
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    border-color: rgba(0,0,0,.06);
}

.btn-menu .icon-close {
    display: none;
}

body.menu-open .btn-menu .icon-burger {
    display: none;
}

body.menu-open .btn-menu .icon-close {
    display: inline-block;
}

/* ----------------
   Utility color classes (from CS2Home)
   ---------------- */
.ahpDark100 {
    background-color: var(--primary);
}

.ahpDark75 {
    background-color: var(--gray-dark);
}

.ahpDark50 {
    background-color: var(--gray-medium);
}

.ahpDark25 {
    background-color: var(--gray-light);
}

.ahpMedium100 {
    background-color: var(--secondary);
}

.ahpRed100 {
    background-color: var(--accent-dark);
}

.ahpRed50 {
    background-color: var(--accent);
}

.ahpRed25 {
    background-color: var(--accent-light);
}

.ahpGrey100 {
    background-color: var(--gray);
}

.ahpGrey50 {
    background-color: var(--gray-55);
}

.ahpGrey25 {
    background-color: var(--gray-25);
}

.ahpBeige {
    background-color: var(--beige);
}

.ahpFontGrey25 {
    color: var(--gray-25);
}

.ahpFontGrey55 {
    color: var(--gray-55);
}

.ahpFontPrimary75 {
    color: var(--gray-dark);
}

.ahpFontPrimary55 {
    color: var(--gray-medium);
}

.ahpFontPrimary25 {
    color: var(--gray-light);
}

.ahpFontAccent {
    color: var(--accent) !important;
}

/* ----------------
   Candidate partial (from CS2Home)
   ---------------- */
#candidatePartial {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ----------------
   
   ---------------- */
footer {
    background: var(--primary);
    color: var(--gray-25);
}

    footer a.text-light {
        color: var(--gray-25) !important;
    }

        footer a.text-light:hover {
            color: #fff !important;
        }

    footer li {
        margin-bottom: 15px;
    }

        footer li a {
            font-size: 14px;
            line-height: 20px;
            letter-spacing: .32px;
            text-transform: capitalize;
        }

    footer span {
        font-size: 14px;
    }

    footer h6 {
        margin-bottom: 20px;
    }

    footer small {
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: .6px;
        text-transform: capitalize;
    }

    footer .container {
        padding-top: 69px;
        padding-bottom: 32px;
    }

.copyright, .footer-links {
    color: var(--gray-25);
    font-size: 14px;
    font-weight: 400;
}

/* ----------------
   TEST PORTAL STYLES (from Test.css, brand-aligned)
   ---------------- */
.test-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0,0,0,.06);
}

.test-question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.scale-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-sans);
    margin: 30px 0;
    max-width: 100%;
}

.scale-label {
    width: 100px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 700;
}

/* Radio line */
.radio-line {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
}

.radio-button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

    .radio-button-column label {
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
    }

.radio-line::before {
    content: '';
    position: absolute;
    top: 65%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.radio-line input[type="radio"] {
    display: none;
}

.radio-line label {
    position: relative;
    z-index: 1;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 800;
}

.radio-line input[type="radio"]:checked + label {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent-dark);
}

.radio-line label:hover {
    background-color: #f0f0f0;
}

/* Answer Options */
.form-check {
    margin-bottom: 2rem;
}
    /* 6rem was huge */
    .form-check input[type="radio"] {
        margin-right: 0.5rem;
        transform: scale(1.2);
    }

.form-check-label {
    font-size: 1rem;
    cursor: pointer;
}

/* Button Group */
.test-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .test-buttons .btn {
        min-width: 160px;
    }

/* ----------------
   Optional: soft show/hide helper (if you use it elsewhere)
   ---------------- */
.collapse-soft {
    display: none;
}

    .collapse-soft.is-open {
        display: block;
        animation: softIn .18s ease-out;
    }

@keyframes softIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Safety: if a Bootstrap close button exists in offcanvas, hide it (we use the burger/X button) */
.offcanvas .btn-close {
    display: none;
}
