:root {
    --navy: #07152f;
    --blue: #1f3f9c;
    --green: #4e7f2a;
    --gold: #f2c94c;
    --text: #18243a;
    --muted: #4b5563;
    --page: #f7f9fc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 116px;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* Full-width white header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #dce3ed;
    background: white;
}

.home-page .site-header {
    transition: transform 220ms ease;
}

.home-page .site-header.header-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.home-page .site-header.header-hidden:focus-within {
    transform: translateY(0);
    pointer-events: auto;
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 12px clamp(24px, 4vw, 80px);
}

.logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    width: auto;
    height: 76px;
    object-fit: contain;
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2vw, 36px);
    margin-left: auto;
}

.main-navigation > a,
.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 4px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.main-navigation > a:hover,
.main-navigation > a.active,
.main-navigation > a[aria-current="page"],
.nav-dropdown-link:hover,
.nav-dropdown-link[aria-expanded="true"] {
    border-bottom-color: var(--green);
    color: var(--green);
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.78em;
}

.nav-dropdown-link[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    display: none;
    min-width: 160px;
    padding: 6px;
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 22px rgba(7, 21, 47, 0.16);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: #eef3ff;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c9d2df;
    border-radius: 8px;
    background: white;
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
}

/* Shared headings and buttons */

.section-heading {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading > p:first-child {
    margin: 0 0 8px;
    color: #b82929;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    text-wrap: balance;
}

.section-description {
    max-width: 720px;
    margin: 16px auto 0;
    color: var(--muted);
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.primary-button {
    background: var(--blue);
    color: white;
}

.primary-button:hover {
    background: #163379;
}

/* Mobile header */

@media (max-width: 768px) {
    html {
        scroll-padding-top: 94px;
    }

    .header-container {
        padding: 10px 16px;
    }

    .logo img {
        height: 60px;
    }

    .menu-button {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: 75vh;
        margin: 0;
        padding: 12px 20px 18px;
        overflow-y: auto;
        background: white;
        box-shadow: 0 10px 18px rgba(7, 21, 47, 0.16);
    }

    .main-navigation.open,
    .main-navigation.show {
        display: flex;
    }

    .main-navigation > a,
    .nav-dropdown-link {
        width: 100%;
    }

    .nav-dropdown-link {
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        margin: 4px 0 8px;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-page .site-header {
        transition: none;
    }
}
