/* =========================================================
   1. FONTS
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");


/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {
    --navy: #061b2d;
    --navy2: #0b2d48;
    --blue: #1679b7;
    --sky: #8ed0f1;

    --white: #fff;
    --off: #f3f7fa;

    --text: #263a4d;
    --muted: #687b8c;
    --line: #dce5ec;

    --shadow: 0 22px 60px rgba(6, 27, 45, 0.14);
}


/* =========================================================
   3. RESET & BASE STYLES
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
}

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

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


/* =========================================================
   4. GLOBAL LAYOUT & TYPOGRAPHY
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 44px));
    margin: auto;
}

.section {
    padding: 110px 0;
}

h1,
h2,
h3,
h4 {
    color: var(--navy);
    font-family: Manrope, sans-serif;
    line-height: 1.08;
}

h2 {
    font-size: clamp(36px, 4.3vw, 56px);
    letter-spacing: -0.045em;
}


/* =========================================================
   5. EYEBROWS / LABELS
   ========================================================= */

.eyebrow {
    color: #b8dced;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.eyebrow span {
    display: inline-block;
    width: 28px;
    height: 2px;
    margin-right: 8px;

    background: var(--sky);

    vertical-align: middle;
}

.eyebrow.dark {
    color: var(--blue);
}

.eyebrow.dark span {
    background: var(--blue);
}


/* =========================================================
   6. HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    height: 82px;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    background: var(--navy);
    border-radius: 9px;

    color: #fff;
    font: 800 15px Manrope;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--navy);
    font: 700 15px Manrope;
}

.brand-copy small {
    margin-top: 6px;

    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.17em;
}


/* Navigation */

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav > a {
    position: relative;

    padding: 31px 0;

    color: #506274;
    font-size: 12px;
    font-weight: 600;
}

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

.nav > a.active::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 23px;
    left: 0;

    height: 2px;

    background: var(--blue);
}


/* Navigation CTA */

.nav .nav-cta {
    padding: 12px 17px;

    background: var(--navy);
    border-radius: 5px;

    color: #fff;
}

.nav .nav-cta:hover {
    background: var(--blue);
}

.nav .nav-cta::after {
    display: none;
}


/* Mobile navigation toggle */

.nav-toggle {
    display: none;

    border: 0;
    background: none;

    color: var(--navy);
    font-size: 25px;
}


/* =========================================================
   7. HERO
   ========================================================= */

.hero {
    position: relative;

    height: calc(100vh - 82px);
    min-height: 670px;

    overflow: hidden;

    color: #fff;
}

.hero-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 18, 31, 0.95) 0%,
            rgba(3, 18, 31, 0.7) 46%,
            rgba(3, 18, 31, 0.12) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    height: 100%;
}

.hero-copy {
    max-width: 750px;
    margin-top: -20px;
}

.hero h1,
.page-hero h1 {
    color: #fff;
    font-size: clamp(50px, 7.2vw, 86px);
    letter-spacing: -0.06em;
}

.hero h1 em,
.page-hero h1 em {
    color: var(--sky);
    font-style: normal;
}

.hero-text {
    max-width: 610px;
    margin: 28px 0 35px;

    color: #d8e5ed;
    font-size: 17px;
}


/* Hero buttons */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;

    transition: 0.2s;
}

.btn b {
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-blue {
    background: #167fbe;
    color: #fff;
}

.btn-blue:hover {
    background: #106a9f;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-white {
    background: #fff;
    color: var(--navy);
}


/* Hero statistics */

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 3;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    width: auto;
    max-width: 760px;
    margin: 0;

    transform: translateX(-50%);
}

.hero-bottom div {
    padding: 20px 30px;

    background: rgba(3, 18, 31, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.2);

    backdrop-filter: blur(8px);
}

.hero-bottom div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bottom b {
    display: block;

    color: #9bd4f2;
    font: 700 23px Manrope;
}

.hero-bottom span {
    color: #d5e3ec;
    font-size: 8px;
    letter-spacing: 0.13em;
}


/* =========================================================
   8. INTRO / TWO-COLUMN SECTIONS
   ========================================================= */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 110px;
    align-items: end;
}

.intro h2 {
    max-width: 600px;
}

.intro-text p {
    max-width: 590px;
    margin-bottom: 18px;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-top: 16px;

    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.arrow-link span {
    font-size: 17px;
}


/* =========================================================
   9. TRAINING PREVIEW
   ========================================================= */

.training-preview {
    background: var(--off);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 45px;
}

.section-head h2 {
    margin-top: 8px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.preview-card {
    position: relative;

    height: 460px;

    overflow: hidden;

    border-radius: 12px;
}

.preview-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s;
}

.preview-card:hover img {
    transform: scale(1.05);
}

.card-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3, 17, 29, 0.05),
            rgba(3, 17, 29, 0.9)
        );
}

.card-info {
    position: absolute;
    right: 25px;
    bottom: 30px;
    left: 30px;

    color: #fff;
}

.card-info small {
    color: #9ed5f3;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.card-info h3 {
    margin: 8px 0;

    color: #fff;
    font-size: 30px;
}

.card-info span {
    color: #d4e3eb;
    font-size: 11px;
}


/* =========================================================
   10. EXPERIENCE SECTION
   ========================================================= */

.experience {
    background: #fff;
}

.experience-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 100px;
    align-items: center;
}


/* Portrait */

.portrait {
    position: relative;

    padding: 12px;

    background: var(--navy);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.portrait img {
    width: 100%;
    height: 570px;

    border-radius: 7px;

    object-fit: cover;
    object-position: center top;
}

.portrait-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;

    padding: 18px 20px;

    background: rgba(6, 27, 45, 0.94);

    color: #fff;
}

.portrait-label b,
.portrait-label span {
    display: block;
}

.portrait-label b {
    color: #fff;
    font: 700 13px Manrope;
}

.portrait-label span {
    margin-top: 5px;

    color: #a8c9dc;
    font-size: 8px;
    letter-spacing: 0.13em;
}


/* Experience content */

.experience-copy h2 {
    max-width: 680px;
}

.experience-copy > p {
    max-width: 640px;
    margin-top: 21px;
}


/* Credentials */

.credential-row {
    display: flex;

    margin: 35px 0;
}

.credential-row div {
    padding: 0 27px;

    border-left: 1px solid var(--line);
}

.credential-row div:first-child {
    padding-left: 0;
    border-left: 0;
}

.credential-row b {
    display: block;

    color: var(--blue);
    font: 800 23px Manrope;
}

.credential-row span {
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}


/* =========================================================
   11. EDUCATION
   ========================================================= */

.education {
    padding: 85px 0;

    background: var(--navy2);

    color: #fff;
}

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

.education h2 {
    color: #fff;
}

.education p {
    max-width: 570px;
    margin-top: 20px;

    color: #c6d6e1;
}


/* University card */

.university-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 250px;
    padding: 35px;

    background: #fff;
    border-radius: 12px;

    text-align: center;
}

.university-card img {
    width: auto;
    max-height: 125px;
    margin-bottom: 25px;
}

.university-card b {
    display: block;

    color: var(--navy);
    font: 700 14px Manrope;
}

.university-card span {
    display: block;

    margin-top: 6px;

    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.12em;
}


/* =========================================================
   12. FINAL CTA
   ========================================================= */

.final-cta {
    padding: 72px 0;

    background: #1478b5;
}

.final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.final-cta h2 {
    max-width: 780px;

    color: #fff;
}

.final-cta .eyebrow {
    color: #bde2f5;
}


/* =========================================================
   13. FOOTER
   ========================================================= */

.footer {
    padding-top: 65px;

    background: #061522;

    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.75fr;
    gap: 75px;

    padding-bottom: 55px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: Manrope;
}

.footer p {
    max-width: 390px;
    margin-top: 17px;

    color: #8ea4b5;
    font-size: 12px;
}

.footer h3 {
    margin-bottom: 14px;

    color: #fff;
    font-size: 13px;
}

.footer a:not(.footer-brand) {
    display: block;

    margin-top: 8px;

    color: #b6c8d4;
    font-size: 12px;
}


/* Footer bottom */

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #6f8595;
    font-size: 8px;
    letter-spacing: 0.13em;
}


/* =========================================================
   14. PAGE HERO
   ========================================================= */

.page-hero {
    display: flex;
    align-items: center;

    min-height: 440px;

    background:
        linear-gradient(
            120deg,
            var(--navy),
            #0e456b
        );
}

.page-hero p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 20px;

    color: #cbdde8;
}


/* =========================================================
   15. TRAINING DETAIL
   ========================================================= */

.training-detail {
    background: var(--off);
}

.training-detail > .container {
    display: grid;
    gap: 25px;
}

.detail-card {
    position: relative;

    height: 610px;

    overflow: hidden;

    border-radius: 13px;
}

.detail-card > img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detail-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 17, 29, 0.94) 0%,
            rgba(3, 17, 29, 0.72) 48%,
            rgba(3, 17, 29, 0.18)
        );
}

.detail-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: min(650px, 70%);
    padding: 60px;
}

.detail-content small {
    color: #9ed5f3;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.detail-content h2 {
    margin: 12px 0 20px;

    color: #fff;
    font-size: 45px;
}

.detail-content p {
    max-width: 560px;

    color: #dce7ee;
}

.detail-content h4 {
    margin: 28px 0 6px;

    color: #9ed5f3;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.detail-content .btn {
    align-self: flex-start;

    margin-top: 28px;
}


/* =========================================================
   16. STANDARDS / MINI LIST
   ========================================================= */

.standards {
    background: #fff;
}

.mini-list {
    margin-top: 28px;

    border-top: 1px solid var(--line);
}

.mini-list div {
    display: flex;
    gap: 22px;

    padding: 16px 0;

    border-bottom: 1px solid var(--line);

    font-size: 12px;
}

.mini-list b {
    color: var(--blue);
}


/* =========================================================
   17. CONTACT PAGE
   ========================================================= */

.contact-hero {
    min-height: 430px;
}

.contact-main {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 100px;
    align-items: center;
}

.contact-copy h2 {
    margin-bottom: 18px;
}

.lead {
    max-width: 560px;
}


/* Contact information */

.contact-method {
    margin-top: 28px;
}

.contact-method span {
    display: block;

    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.contact-method a,
.contact-method b {
    display: block;

    margin-top: 3px;

    color: var(--navy);
    font: 700 18px Manrope;
}


/* Contact image */

.contact-side {
    padding: 12px;

    background: var(--navy);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.contact-side img {
    width: 100%;
    height: 500px;

    border-radius: 7px;

    object-fit: cover;
    object-position: center top;
}

.contact-side-caption {
    padding: 18px 8px 8px;
}

.contact-side-caption b,
.contact-side-caption span {
    display: block;
}

.contact-side-caption b {
    color: #fff;
    font: 700 15px Manrope;
}

.contact-side-caption span {
    margin-top: 4px;

    color: #9fb9ca;
    font-size: 8px;
    letter-spacing: 0.13em;
}


/* =========================================================
   18. TABLET / MOBILE
   ========================================================= */

@media (max-width: 850px) {

    /* Global */

    .container {
        width: min(100% - 32px, 650px);
    }

    .section {
        padding: 80px 0;
    }


    /* Header */

    .site-header {
        height: 76px;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 25px 22px;

        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .nav.open {
        display: flex;
    }

    .nav > a {
        padding: 12px 0;
    }

    .nav > a.active::after {
        display: none;
    }

    .nav .nav-cta {
        margin-top: 7px;

        text-align: center;
    }


    /* Hero */

    .hero {
        height: 720px;
    }

    .hero-bottom {
        width: 100%;
        max-width: none;

        grid-template-columns: 1fr 1fr;
    }

    .hero-bottom div:nth-child(3) {
        display: none;
    }

    .hero-bottom div {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }


    /* General grids */

    .two-col,
    .experience-grid,
    .education-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    /* Training preview */

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

    .preview-card {
        height: 400px;
    }

    .section-head {
        display: block;
    }

    .section-head .arrow-link {
        margin-top: 18px;
    }


    /* Experience */

    .experience-grid {
        gap: 55px;
    }

    .portrait img,
    .contact-side img {
        height: 480px;
    }

    .credential-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .credential-row div {
        padding: 0 18px;
    }


    /* Footer */

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }


    /* CTA */

    .final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Training detail */

    .detail-card {
        height: 650px;
    }

    .detail-content {
        width: 100%;
        padding: 35px;
    }

    .detail-content h2 {
        font-size: 37px;
    }

    .detail-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 17, 29, 0.93),
                rgba(3, 17, 29, 0.58)
            );
    }
}
