:root {
    --brand: #1a4f8a;
    --ink: #1a2a36;
    --paper: #f7f8fa;
    --text: #243140;
    --muted: #5c6b7a;
    --rule: #d5dee8;
    --white: #ffffff;
    --header-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.has-cookie-banner {
    padding-bottom: 140px;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

header :focus-visible,
footer :focus-visible,
.hero :focus-visible,
.cookie-banner :focus-visible {
    outline-color: var(--white);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 1200;
    background: var(--white);
    color: var(--ink);
    padding: 8px 12px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--ink);
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero {
    background-color: var(--brand);
    background-image:
        linear-gradient(100deg, rgba(26, 79, 138, 0.94) 0%, rgba(26, 79, 138, 0.86) 38%, rgba(26, 42, 54, 0.55) 100%),
        url("images/hero.jpg");
    background-size: cover;
    background-position: center right;
    color: var(--white);
    padding: 160px 0 96px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 40rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
}

.button {
    display: inline-block;
    background: var(--white);
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 2px;
}

.button:hover {
    background: var(--paper);
}

.photo-band {
    margin: 0;
    height: 300px;
    overflow: hidden;
}

.photo-band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.band {
    padding: 88px 0;
}

.band-paper {
    background: var(--paper);
}

.section-header {
    max-width: 40rem;
    margin-bottom: 36px;
}

.section-header h2,
.about-text h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header p,
.about-text p,
.member-bio {
    margin: 0;
    color: var(--muted);
}

.about-text p + p {
    margin-top: 14px;
}

.services-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card,
.team-member {
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 24px;
}

.service-card h3,
.member-info h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.15rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.about-text p {
    text-align: justify;
    hyphens: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.expertise-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
}

.expertise-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 1px;
    background: var(--brand);
}

.member-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.member-role {
    display: block;
    margin-bottom: 12px;
    color: var(--brand);
    font-weight: 700;
}

.experience-highlight {
    margin: 16px 0 0;
    padding-left: 14px;
    border-left: 2px solid var(--brand);
    color: var(--text);
}

.org-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.org-list li {
    color: var(--ink);
    font-weight: 700;
}

.contact-detail {
    margin-bottom: 18px;
}

.contact-detail h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1rem;
}

.contact-detail p,
.contact-detail a {
    margin: 0;
    color: var(--muted);
}

.contact-detail a:hover {
    color: var(--brand);
}

.contact-form {
    border: 1px solid var(--rule);
    background: var(--white);
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c5d0db;
    border-radius: 2px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

.form-control:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: var(--brand);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn,
.cookie-accept,
.cookie-reject {
    border-radius: 2px;
    font: inherit;
    cursor: pointer;
}

.submit-btn,
.cookie-accept {
    background: var(--brand);
    color: var(--white);
    border: 0;
    padding: 12px 18px;
    font-weight: 700;
}

.submit-btn:hover {
    background: var(--ink);
}

.cookie-accept {
    background: var(--white);
    color: var(--ink);
}

.cookie-accept:hover {
    background: var(--paper);
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.prose {
    width: min(42rem, calc(100% - 40px));
    margin-inline: auto;
    padding: calc(var(--header-height) + 48px) 0 80px;
}

.prose h1 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.prose .updated {
    margin: 0 0 28px;
    color: var(--muted);
}

.prose h2 {
    margin: 32px 0 8px;
    color: var(--ink);
    font-size: 1.25rem;
}

.prose p,
.prose li {
    color: var(--text);
}

.prose ul {
    margin: 8px 0 0;
    padding-left: 1.2rem;
}

footer {
    background: var(--ink);
    color: #d5dee6;
    padding: 56px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.footer-heading {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1rem;
}

.footer-col p {
    margin: 0 0 12px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 8px;
}

footer a,
.footer-links button {
    color: #d5dee6;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

footer a:hover,
.footer-links button:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 18px;
    color: #b7c3ce;
    font-size: 0.875rem;
}

.legal p {
    margin: 0;
}

.legal p + p {
    margin-top: 8px;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--ink);
    color: var(--white);
    border-top: 3px solid var(--brand);
    padding: 16px 0;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner p {
    margin: 0;
    max-width: 44rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-reject {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 11px 16px;
}

.cookie-actions a {
    color: var(--white);
    white-space: nowrap;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
        background: var(--ink);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    header.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .cookie-inner,
    .cookie-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .expertise-list {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 128px 0 72px;
        background-position: center;
    }

    .photo-band {
        height: 180px;
    }

    .band {
        padding: 64px 0;
    }
}
