* {
    box-sizing: border-box;
}

:root {
    --blue: #0d4288;
    --deep-blue: #092f68;
    --navy: #071f43;
    --green: #4c872f;
    --dark-green: #376b22;
    --ink: #14233b;
    --muted: #526174;
    --white: #ffffff;
    --soft-green: #edf5e9;
    --soft-blue: #eaf3fb;
    --cream: #fafbf8;
}

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    box-shadow: 0 3px 18px rgba(0,0,0,.07);
}

.nav-wrap {
    width: min(1460px, 94%);
    min-height: 104px;
    margin: auto;
    display: grid;
    grid-template-columns: 370px 1fr auto;
    align-items: center;
    gap: 35px;
}

.brand img {
    width: 315px;
    max-height: 88px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 34px;
    font-size: 15px;
    font-weight: 600;
}

.main-nav a {
    padding: 38px 0 31px;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
    border-color: var(--green);
}

.nav-button {
    display: inline-block;
    background: var(--blue);
    color: white;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(13,66,136,.18);
}


/* HERO */

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(4,19,39,.92) 0%,
            rgba(5,27,54,.80) 30%,
            rgba(5,27,54,.38) 55%,
            rgba(5,27,54,.05) 78%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1460px, 90%);
    margin: auto;
    color: white;
    padding: 72px 0;
}

.hero-content > * {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #dce9fa;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 5vw, 82px);
    line-height: .98;
    letter-spacing: -.035em;
    text-shadow: 0 2px 15px rgba(0,0,0,.25);
}

.hero-lead {
    margin: 26px 0 18px;
    font-size: 21px;
    line-height: 1.45;
}

.hero-rule {
    width: 120px;
    height: 4px;
    background: var(--green);
    margin: 25px 0;
}

.hero-status {
    font-size: 16px;
    line-height: 1.65;
    color: #f0f4f8;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    padding: 15px 25px;
    background: var(--blue);
    color: white;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
}

.hero-button:hover {
    background: #1260b9;
}


/* MISSION / VISION */

.mission-vision {
    padding: 58px 4% 35px;
    background: white;
}

.mv-grid {
    width: min(1380px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.mv-card {
    padding: 40px 44px;
    border-radius: 22px;
    min-height: 285px;
}

.mission-card {
    background: linear-gradient(135deg, #f4f8f1, #eaf3e5);
}

.vision-card {
    background: linear-gradient(135deg, #f3f8fc, #e4f0fa);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.card-heading h2,
.values-section h2,
.preparing h2,
.contact-section h2 {
    margin: 0;
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.08;
}

.icon-circle {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 50%;
    color: white;
    display: grid;
    place-items: center;
    font-size: 37px;
    font-weight: 700;
}

.icon-circle.green {
    background: var(--green);
}

.icon-circle.blue {
    background: var(--blue);
}

.mv-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}


/* VALUES */

.values-section {
    text-align: center;
    padding: 58px 4% 68px;
}

.values-section > h2 {
    margin-bottom: 40px;
}

.values-grid {
    width: min(1250px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.value-icon {
    width: 92px;
    height: 92px;
    margin: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 37px;
    font-weight: 800;
}

.value-icon.green-soft {
    background: #e3efdc;
    color: var(--green);
}

.value-icon.blue-soft {
    background: #e2f0fb;
    color: var(--blue);
}

.value h3 {
    color: var(--deep-blue);
    margin: 13px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.legacy {
    margin-top: 45px;
}

.legacy-line {
    width: 120px;
    height: 3px;
    margin: auto auto 18px;
    background: var(--green);
}

.legacy blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-style: italic;
    color: #28364a;
}

.legacy p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--muted);
}


/* PREPARING */

.preparing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: linear-gradient(135deg, #edf5fb, #f7fafc);
}

.preparing-image {
    min-height: 520px;
    overflow: hidden;
}

.preparing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preparing-copy {
    align-self: center;
    padding: 70px clamp(45px, 7vw, 115px);
}

.preparing-copy h2 {
    margin-bottom: 20px;
}

.preparing-copy p {
    font-size: 17px;
    max-width: 650px;
}

.preparing-copy .large-copy {
    font-size: 20px;
    line-height: 1.55;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--blue);
    font-weight: 800;
}

.text-link span {
    margin-left: 10px;
}


/* CONTACT */

.contact-section {
    background: var(--deep-blue);
    color: white;
    padding: 65px max(5%, calc((100% - 1380px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.contact-section h2 {
    color: white;
}

.contact-details {
    display: grid;
    gap: 18px;
}

.contact-details a {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    padding: 17px 22px;
    border-radius: 10px;
    font-size: 18px;
}

.contact-details span {
    display: block;
    margin-bottom: 3px;
    color: #bcd4ee;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}


/* FOOTER */

.site-footer {
    background: #061d3e;
    color: white;
    padding: 55px 5% 25px;
}

.footer-grid {
    width: min(1380px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr .8fr 1fr;
    gap: 70px;
    align-items: center;
}

.footer-brand img {
    width: 320px;
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
}

.footer-brand p {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #d8e5f5;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    color: #d8e5f5;
}

.footer-links a:hover {
    color: white;
}

.footer-message {
    text-align: right;
}

.footer-message strong {
    display: block;
    font-size: 17px;
}

.footer-message p {
    color: #b8cae1;
    margin-top: 18px;
}

.footer-bottom {
    width: min(1380px, 100%);
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.13);
    color: #aebed1;
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 1050px) {
    .nav-wrap {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: 610px;
    }

    .mv-grid,
    .preparing,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .preparing-image {
        min-height: 400px;
    }
}

@media (max-width: 700px) {
    .nav-wrap {
        min-height: 84px;
        grid-template-columns: 1fr;
    }

    .brand img {
        width: 250px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: 650px;
    }

    .hero-overlay {
        background: rgba(5,24,48,.73);
    }

    .hero-content {
        width: 88%;
    }

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

    .hero-lead {
        font-size: 18px;
    }

    .mv-card {
        padding: 30px 25px;
    }

    .card-heading {
        align-items: flex-start;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .preparing-copy {
        padding: 50px 7%;
    }

    .contact-section {
        padding: 50px 7%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-message {
        text-align: left;
    }

    .footer-brand img {
        width: min(100%, 320px);
    }
}


/* =========================================================
   MHCS REFINEMENT PASS
   ========================================================= */

/*
   Sticky-header anchor correction.
   When navigation links jump to a section, leave enough
   space above the section so its heading isn't hidden.
*/
#home,
#mission,
#preparing,
#values,
#contact {
    scroll-margin-top: 125px;
}

/*
   Home is the top of the page. Give the hero's content
   comfortable clearance below the sticky header.
*/
#home {
    scroll-margin-top: 104px;
}

/* Slightly strengthen the logo presence in the header. */
.brand img {
    width: 340px;
    max-height: 92px;
}

/* ---------------------------------------------------------
   WHITE FOOTER
   --------------------------------------------------------- */

.site-footer {
    background: #ffffff;
    color: var(--ink);
    padding: 42px 5% 20px;
    border-top: 1px solid #dfe5e8;
}

.footer-grid {
    align-items: center;
    gap: 60px;
}

.footer-brand img {
    width: 340px;
    max-width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* The official logo already includes the tagline. */
.footer-brand p {
    display: none;
}

/* Make footer navigation feel intentional rather than tiny. */
.footer-links {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--deep-blue);
    gap: 12px 28px;
}

.footer-links a {
    color: var(--deep-blue);
}

.footer-links a:hover {
    color: var(--green);
}

/* Preserve the closing statement, but make it work on white. */
.footer-message {
    color: var(--deep-blue);
}

.footer-message strong {
    color: var(--deep-blue);
    font-size: 18px;
    line-height: 1.45;
}

.footer-message p {
    color: var(--muted);
    margin-top: 14px;
}

/* Copyright row on white instead of dark blue. */
.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #dfe5e8;
    color: var(--muted);
    font-size: 14px;
}

/* Mobile anchor offset follows the shorter mobile header. */
@media (max-width: 700px) {
    #home,
    #mission,
    #preparing,
    #values,
    #contact {
        scroll-margin-top: 100px;
    }

    .brand img {
        width: 270px;
    }

    .site-footer {
        padding: 38px 7% 20px;
    }

    .footer-links {
        font-size: 16px;
    }
}


/* =========================================================
   PRECISE NAVIGATION LANDING
   JavaScript now accounts for the actual sticky-header
   height. Home keeps its existing behavior.
   ========================================================= */

#mission,
#preparing,
#values,
#contact {
    scroll-margin-top: 0;
}
