@import url("../components/header.css");

/* =========================================================
   EXAM HEADER
========================================================= */

.exam-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    border-bottom:
        1px solid rgba(16,45,86,.07);

    background:
        rgba(255,255,255,.88);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


.exam-header-inner {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.exam-brand {
    display: flex;

    align-items: center;

    gap: 18px;

    color: var(--navy);
}

.exam-brand-logo {
    width: 124px;
    height: auto;
    aspect-ratio: 278 / 97;
    flex: 0 0 auto;
}


.exam-brand-main {
    display: flex;

    flex-direction: column;

    line-height: .92;
}


.exam-brand-main strong {
    color: var(--red);
    font-size: 19px;
    font-weight: var(--font-weight-black);

    letter-spacing: -1px;
}


.exam-brand-main small {
    margin-top: 4px;

    color: var(--navy);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 2.1px;
}


.exam-brand-divider {
    width: 1px;
    height: 34px;

    background:
        rgba(16,45,86,.13);
}


.exam-brand-section {
    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--exam-primary);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .7px;
}


.exam-brand-section::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--exam-primary);

    box-shadow:
        0 0 0 5px
        rgba(var(--exam-primary-rgb), .10);
}


/* =========================================================
   NAVIGATION
========================================================= */

.exam-nav {
    display: flex;

    align-items: center;

    gap: 31px;
}


.exam-nav a {
    position: relative;

    color: #66758a;

    font-size: 11px;
    font-weight: 800;

    transition:
        color 220ms ease;
}


.exam-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -10px;

    width: 100%;
    height: 2px;

    border-radius: 100px;

    background: var(--exam-primary);

    transform: scaleX(0);

    transform-origin: right;

    transition:
        transform 250ms cubic-bezier(.2,.8,.2,1);
}


.exam-nav a:hover {
    color: var(--exam-primary);
}


.exam-nav a:hover::after {
    transform: scaleX(1);

    transform-origin: left;
}


/* =========================================================
   ACTIONS
========================================================= */

.exam-header-actions {
    display: flex;

    align-items: center;

    gap: 11px;
}


.exam-home {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(16,45,86,.10);

    border-radius: 50%;

    color: var(--navy);

    font-size: 12px;

    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}


.exam-home:hover {
    background: var(--navy);

    color: #ffffff;

    transform: translateY(-2px);
}


.exam-contact {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 19px;

    border-radius: 100px;

    background: var(--exam-primary);

    color: #ffffff;

    font-size: var(--text-sm);
    font-weight: var(--font-weight-extrabold);

    letter-spacing: .3px;

    box-shadow:
        0 10px 25px
        rgba(var(--exam-primary-rgb), .18);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}


.exam-contact:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px
        rgba(var(--exam-primary-rgb), .28);
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.exam-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: var(--navy);

    color: #ffffff;

    cursor: pointer;
}

.exam-home:focus-visible,
.exam-contact:focus-visible,
.exam-menu-button:focus-visible,
.exam-nav a:focus-visible { outline-color: var(--exam-primary); }

@media (max-width: 1050px) {
    .exam-nav {
        position: fixed;
        top: var(--header-height);
        right: 16px;
        left: 16px;
        z-index: 1001;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border-neutral);
        border-radius: var(--radius-lg);
        background: var(--white);
        box-shadow: var(--shadow-md);
    }

    .exam-nav.is-open { display: flex; }
    .exam-nav a { padding: 14px 12px; font-size: var(--text-sm); }
    .exam-nav a::after { display: none; }
}

@media (max-width: 820px) {
    .exam-header { height: var(--header-height-mobile); }
    .exam-nav { top: var(--header-height-mobile); }
}
