:root {
    --navy: #121d2b;
    --navy-soft: #1c2a3b;
    --steel: #334155;
    --text: #0f172a;
    --muted: #5d6b7c;
    --line: #d7dee8;
    --paper: #ffffff;
    --wash: #f3f6fa;
    --gold: #c79a2b;
    --gold-soft: #fff4d6;
    --green: #173f2a;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--wash);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.site-header {
    background: var(--navy);
    color: #fff;
    min-height: 74px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.portal-link {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 9px 12px;
}

.linkedin-link {
    background: #0a66c2;
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
}

.linkedin-link:hover {
    background: #08569f;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: var(--gold);
    color: #111827;
}

.button.dark {
    background: var(--navy);
    color: #fff;
}

.button.light {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
}

.hero {
    min-height: calc(100vh - 74px);
    background-image: linear-gradient(90deg, rgba(9,16,28,0.92), rgba(9,16,28,0.68), rgba(9,16,28,0.18)), url('/static/images/ncda-patrol-vehicle.jpg');
    background-size: cover;
    background-position: center 52%;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 10px 0;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.02;
    max-width: 760px;
    margin: 0;
}

.hero p {
    max-width: 680px;
    font-size: 18px;
    color: #e7edf5;
    margin: 18px 0 0 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 170px));
    gap: 12px;
    margin-top: 36px;
}

.proof-card {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.proof-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
}

.proof-card strong {
    display: block;
    font-size: 24px;
}

.proof-card span {
    display: block;
    color: #d8e1ec;
    font-size: 13px;
}

.section {
    padding: 64px 24px;
}

.section.white {
    background: #fff;
}

.section.dark {
    background: var(--navy);
    color: #fff;
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header h2,
.page-hero h1,
.message-card h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
}

.section-header p,
.page-hero p {
    color: var(--muted);
    max-width: 680px;
    margin: 8px 0 0 0;
}

.dark .section-header p {
    color: #cbd5e1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.dark .card {
    background: var(--navy-soft);
    border-color: rgba(255,255,255,0.12);
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.card p {
    color: var(--muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.dark .card p {
    color: #cbd5e1;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.image-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.image-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.image-panel img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
    object-position: center top;
}

.photo-feature {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.photo-frame {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #0b1220;
}

.photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.leadership-feature .photo-frame img {
    aspect-ratio: 4 / 3;
}

.photo-caption {
    padding: 14px 16px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line);
}

.about-photo-panel {
    display: grid;
    gap: 14px;
}

.about-photo-panel .photo-frame:first-child img {
    aspect-ratio: 16 / 10;
}

.about-photo-panel .photo-frame:last-child img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.leadership-heading {
    margin-bottom: 28px;
}

.leadership-profiles {
    display: grid;
    gap: 18px;
}

.leader-profile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 0;
    overflow: hidden;
}

.leader-profile-feature {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
}

.leader-photo {
    margin: 0;
    background: #0b1220;
    min-height: 100%;
}

.leader-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.leader-profile-feature .leader-photo img {
    object-position: center;
}

.leader-photo-portrait img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-position: center;
}

.leader-copy {
    padding: 28px;
}

.leader-copy h3 {
    margin: 0 0 12px 0;
    font-size: 30px;
    line-height: 1.1;
}

.leader-copy p {
    color: var(--muted);
    margin: 0 0 14px 0;
}

.leader-copy p:last-child {
    margin-bottom: 0;
}

.testimonial-section {
    background: var(--navy);
    color: #fff;
}

.testimonial-card {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
    align-items: start;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 30px;
    background: var(--navy-soft);
}

.testimonial-card h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.12;
}

.testimonial-card blockquote {
    margin: 0;
    color: #e5edf7;
    font-size: 18px;
}

.testimonial-card blockquote p {
    margin: 0 0 14px 0;
}

.testimonial-card blockquote p:last-child {
    margin-bottom: 0;
}

.testimonial-attribution {
    grid-column: 2;
    border-top: 1px solid rgba(255,255,255,0.16);
    padding-top: 16px;
    color: #fff;
}

.testimonial-attribution strong,
.testimonial-attribution span {
    display: block;
}

.testimonial-attribution span {
    color: #cbd5e1;
}

.media-feature {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
    align-items: center;
}

.about-video-panel {
    display: grid;
    gap: 16px;
}

.video-frame {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #0b1220;
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cta-band {
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0;
    font-size: 28px;
}

.cta-band p {
    margin: 6px 0 0 0;
    color: #d7eadf;
}

.page-hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 52px 24px;
}

.page-hero.compact {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 22px;
}

.page-hero > div,
.form-shell,
.admin-shell {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.form-shell {
    padding: 34px 24px 70px;
}

.notice-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: center;
}

.notice-panel h2,
.form-intro h2 {
    margin: 0 0 6px 0;
}

.notice-panel p,
.form-intro p {
    margin: 0;
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 8px;
}

.mini-list span {
    display: block;
    background: var(--gold-soft);
    border: 1px solid #f1d78b;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

.form-intro {
    margin-bottom: 18px;
    max-width: 760px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    font-weight: 800;
    color: var(--steel);
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

input[type="file"] {
    padding: 9px 12px;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.field-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.full {
    grid-column: 1 / -1;
}

.site-footer {
    background: #0b1220;
    color: #dbe4ef;
    padding: 34px 24px;
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner strong {
    color: #fff;
}

.footer-inner div {
    overflow-wrap: anywhere;
}

.footer-social {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.footer-social span {
    color: #fff;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.message-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.message-card {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
}

.message-card img {
    width: 92px;
}

.admin-shell {
    padding: 30px 18px 70px;
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-section {
    margin-top: 20px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.admin-card h3 {
    margin-top: 0;
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        padding: 14px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .site-header nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-header nav::-webkit-scrollbar {
        display: none;
    }

    .site-header nav a {
        flex: 0 0 auto;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.08);
        border-radius: 8px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .hero {
        min-height: auto;
        background-position: center right;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-proof,
    .card-grid,
    .split,
    .testimonial-card,
    .media-feature,
    .photo-feature,
    .leader-profile,
    .leader-profile-feature,
    .notice-panel,
    .form-grid,
    .admin-columns {
        grid-template-columns: 1fr;
    }

    .leader-photo img {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .section-header {
        display: block;
    }

    .image-panel {
        grid-template-columns: 1fr;
    }

    .image-panel img:first-child {
        aspect-ratio: 4 / 3;
    }

    .testimonial-attribution {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 12px;
    }

    .brand {
        font-size: 16px;
        justify-content: flex-start;
        min-width: 0;
    }

    .brand span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .site-header nav a {
        font-size: 13px;
        min-height: 38px;
        padding: 8px 10px;
    }

    .hero-inner {
        width: min(100% - 28px, 1180px);
        padding: 44px 0;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .hero p {
        font-size: 16px;
    }

    .section,
    .page-hero,
    .form-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .page-hero {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .page-hero h1,
    .section-header h2,
    .message-card h1 {
        font-size: 29px;
    }

    .form-shell {
        padding-top: 24px;
        padding-bottom: 52px;
    }

    .form-card,
    .notice-panel,
    .card,
    .cta-band {
        padding: 16px;
    }

    .proof-card strong {
        font-size: 22px;
    }

    .proof-card span {
        font-size: 12px;
    }

    .form-grid {
        gap: 12px;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}
