:root {
    --primary: #004c8e;
    --primary-dark: #003763;
    --surface: #f4f7f9;
    --text: #1f2933;
    --white: #ffffff;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
}

.topbar-inner,
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-inner {
    min-height: 42px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid #dce3e8;
}

.header-inner {
    min-height: 90px;
}

.brand {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

nav a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}


.hero {
    position: relative;
    display: grid;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: var(--primary);
    isolation: isolate;
}

.hero-has-image {
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-fallback {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 34%),
        linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 24, 46, var(--hero-overlay-opacity, 0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding-block: 7rem;
}

.hero h1 {
    max-width: 800px;
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
}

.hero p {
    max-width: 720px;
}

.eyebrow {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.1rem;
    border-radius: 0.3rem;
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.page-banner {
    padding: 3rem 0;
    background: var(--surface);
    color: var(--primary);
}

.page-banner h1 {
    margin: 0;
}

.section {
    padding: 4rem 0;
}

.site-footer {
    padding: 3rem 0;
    background: var(--primary-dark);
    color: var(--white);
}

@media (max-width: 800px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1.25rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 0.5rem;
    }

    .hero {
        padding: 5rem 0;
    }
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.header-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.brand-name {
    line-height: 1.2;
}

.footer-inner {
    display: grid;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}

.footer-site-name {
    font-size: 1.15rem;
}

@media (max-width: 800px) {
    .header-logo {
        max-width: 180px;
        max-height: 60px;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }
}
