:root {
    --navy: #102b41;
    --deep: #0a1c2b;
    --gold: #edb650;
    --ink: #182f40;
    --muted: #5e6e7b;
    --pale: #f1f5f7;
    --border: #dae2e7
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px
}

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

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    line-height: 1.13;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.4rem);
    font-weight: 700;
    margin-bottom: 24px
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    margin-bottom: 24px
}

h3 {
    font-size: 1.35rem
}

p {
    color: var(--muted);
    margin-bottom: 22px
}

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

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

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
textarea,
select,
summary {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px
}

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

.topbar {
    background: var(--deep);
    color: #d9e3ea;
    font-size: 14px;
    padding: 9px 0
}

.topbar .container {
    display: flex;
    justify-content: space-between
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    box-shadow: 0 3px 15px #102b410a
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 22px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .035em
}

.brand-logo {
    height: 80px;
    width: auto;
    display: block;
}

.brand small {
    display: block;
    font-size: 11px;
    letter-spacing: .17em;
    margin-top: 5px
}

.mark {
    border: 2px solid var(--gold);
    padding: 11px 7px;
    color: var(--navy);
    font-size: 24px;
    letter-spacing: -2px
}

.mark span {
    color: #bc842d
}

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

nav>a {
    font-size: 15px;
    font-weight: 600
}

nav a[aria-current] {
    color: #aa7118;
    border-bottom: 2px solid var(--gold)
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 24px;
    background: var(--gold);
    color: var(--deep);
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #ffd37b;
    transform: translateY(-2px)
}

.button.small {
    padding: 12px 18px
}

.button.navy {
    background: var(--navy);
    color: white
}

.button.navy:hover {
    background: #234f6e
}

.button.outline {
    background: transparent;
    border-color: #ffffff75;
    color: white
}

.menu {
    display: none
}

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: .16em;
    font-weight: 700;
    color: #a77220;
    margin-bottom: 17px
}

.ceo-profile {
    grid-column: 1 / -1;
    /* span both columns of .split */
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: start;
    max-width: 900px;
    /* stops text lines getting too long */
    margin: 32px auto 0;
    /* use "32px 0 0" for left-aligned */
    padding: 28px;
    border-left: 4px solid var(--gold);
    background: var(--surface-soft, #f7f5f0);
    border-radius: 0 12px 12px 0;
}

.ceo-profile img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
}

.ceo-details h3 {
    margin: 6px 0 4px;
    color: var(--navy);
}

.ceo-role {
    margin: 0 0 14px;
    color: #9a6a0a;
    /* darker gold for readable text */
    font-weight: 700;
}

.ceo-contact {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ceo-profile {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .ceo-profile img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .ceo-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ceo-profile img {
        margin: 0 auto;
    }
}


.homehero,
.pagehero {
    position: relative;
    isolation: isolate;
    color: white;
    background: var(--deep);
    overflow: hidden
}

.homehero>img,
.pagehero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2
}

.homehero:after,
.pagehero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0a1c2bf2 0%, #0a1c2bb0 52%, #0a1c2b25);
    z-index: -1
}

.homehero {
    min-height: 690px;
    display: flex;
    align-items: center
}

.homehero .container {
    padding-top: 90px;
    padding-bottom: 50px
}

.homehero h1 {
    max-width: 900px
}

.homehero em {
    font-style: normal;
    color: var(--gold)
}

.homehero p,
.pagehero p {
    color: #d7e3eb;
    max-width: 560px;
    font-size: 18px
}

.homehero .eyebrow,
.pagehero .eyebrow,
.cta .eyebrow,
.trainingbanner .eyebrow {
    color: var(--gold)
}

.actions {
    display: flex;
    gap: 14px;
    margin: 30px 0 70px
}

.herofoot {
    display: flex;
    gap: 50px;
    border-top: 1px solid #ffffff30;
    padding-top: 23px;
    font-size: 12px;
    letter-spacing: .18em
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footergrid .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footergrid .social a:hover,
.footergrid .social a:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.social svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social svg.filled {
    fill: currentColor;
    stroke: none;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    gap: 25px
}

.facts>div {
    display: flex;
    gap: 20px;
    align-items: center
}

.facts b {
    font-size: 28px;
    color: #bc842d
}

.facts span {
    font-weight: 600
}

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

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

.imageframe {
    position: relative;
    padding: 0 24px 28px 0
}

.imageframe:before {
    content: '';
    position: absolute;
    inset: 24px 0 0 24px;
    background: var(--pale);
    z-index: -1
}

.imageframe img {
    width: 100%;
    height: 530px;
    object-fit: cover
}

.imagecaption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--navy);
    color: white;
    padding: 25px 35px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 600
}

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    margin-top: 28px
}

.values h3 {
    font-size: 19px
}

.values p {
    font-size: 15px
}

.textlink {
    font-size: 15px;
    font-weight: 700;
    color: #a57020;
    border-bottom: 1px solid #bf9149;
    padding-bottom: 4px
}

.pale {
    background: var(--pale)
}

.sectionhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 42px
}

.sectionhead h2 {
    margin: 0
}

.sectionhead>p {
    max-width: 400px;
    margin-bottom: 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 36px
}

.servicecard {
    background: white;
    box-shadow: 0 5px 30px #102b4105;
    transition: transform .2s
}

.servicecard:hover {
    transform: translateY(-6px)
}

.servicecard img {
    height: 240px;
    width: 100%;
    object-fit: cover
}

.servicecard>div {
    padding: 30px
}

.servicecard h3 {
    font-size: 24px
}

.servicecard p {
    font-size: 15px
}


/* Service image carousel */
.service-image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #101c2b;
    isolation: isolate;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity 700ms ease,
        transform 1800ms ease;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Dark gradient for visual depth */
.service-image-carousel::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom,
            transparent,
            rgba(5, 14, 26, 0.78));
}

/* Previous and next buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(10, 20, 35, 0.62);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 250ms ease,
        border-color 250ms ease,
        transform 250ms ease;
}

.carousel-arrow.prev {
    left: 14px;
}

.carousel-arrow.next {
    right: 14px;
}

.carousel-arrow:hover {
    background: #d5ad65;
    border-color: #d5ad65;
    color: #101c2b;
}

.carousel-arrow:focus-visible,
.carousel-dot:focus-visible {
    outline: 3px solid #e8c781;
    outline-offset: 3px;
}

/* Bottom image indicators */
.carousel-footer {
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 250ms ease,
        background 250ms ease;
}

.carousel-dot.active {
    width: 25px;
    background: #e5bd73;
}

.carousel-counter {
    color: #fff;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
}


@media (max-width: 600px) {
    .service-image-carousel {
        height: 240px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .detailbody {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .carousel-image,
    .carousel-arrow,
    .carousel-dot,
    .detailcard {
        transition: none;
    }
}


.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 42px
}

.principles article {
    border-top: 2px solid var(--gold);
    padding-top: 25px
}

.principles span {
    font-size: 13px;
    letter-spacing: .12em;
    color: #a77220
}

.principles h3 {
    margin-top: 20px
}

.trainingbanner {
    background: var(--navy);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 100px;
    color: white
}

.trainingbanner>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px
}

.trainingbanner>div {
    padding: 55px
}

.trainingbanner p {
    color: #d8e4ed
}

.cta {
    background: var(--navy);
    color: white;
    padding: 65px 0;
    border-bottom: 1px solid #ffffff25
}

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

.cta h2 {
    font-size: 36px;
    margin-bottom: 12px
}

.cta p {
    color: #d8e4ed;
    margin: 0
}

.cta .button {
    flex-shrink: 0
}

footer {
    background: var(--deep);
    color: #e0e8ee;
    padding: 65px 0 25px
}

footer p {
    color: #aebfcc;
    font-size: 15px;
    margin-top: 20px
}

footer .mark {
    color: white
}

.footergrid {
    display: grid;
    grid-template-columns: 1.3fr .7fr 1fr;
    gap: 70px
}

footer h3 {
    font-size: 17px;
    letter-spacing: 0;
    margin-bottom: 20px
}

footer a:not(.brand) {
    display: block;
    font-size: 15px;
    margin-bottom: 10px
}

.copyright {
    border-top: 1px solid #ffffff20;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aebfcc;
    margin-top: 40px;
    padding-top: 23px
}

.pagehero .container {
    padding: 75px 0 80px
}

.pagehero h1 {
    font-size: clamp(2.7rem, 4.8vw, 4.6rem)
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.filters button {
    padding: 12px 22px;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 15px
}

.filters .selected {
    background: var(--navy);
    color: white;
    border-color: var(--navy)
}

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

/* Card polish */
.detailcard {
    overflow: hidden;
    border-radius: 14px;
    transition: transform 300ms ease,
        box-shadow 300ms ease;
}

.detailcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.13);
}

.detailbody {
    padding: 26px;
}

.traininggrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.course {
    padding: 42px;
    background: var(--pale);
    border-top: 4px solid var(--gold)
}

.coursecode {
    font-size: 13px;
    letter-spacing: .12em;
    color: #986a20
}

.course h2 {
    font-size: 32px;
    margin-top: 28px
}

.course h3 {
    font-size: 18px;
    letter-spacing: 0
}

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 20px 0
}

.faq summary {
    font-weight: 700;
    cursor: pointer
}

.faq p {
    margin: 15px 0 0
}

.contactgrid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px
}

.contactitem {
    border-bottom: 1px solid var(--border);
    padding: 21px 0
}

.contactitem h3 {
    font-size: 16px;
    letter-spacing: 0;
    margin-bottom: 10px
}

.contactitem p {
    margin: 0
}

.contactitem a {
    color: #9b6a22
}

form {
    background: var(--pale);
    padding: 42px
}

form h2 {
    font-size: 30px
}

.formrow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 22px
}

input,
select,
textarea {
    width: 100%;
    display: block;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid #c7d2da;
    border-radius: 0;
    background: white;
    color: var(--ink);
    font-size: 16px
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ac7b2d;
    outline-offset: 2px
}

textarea {
    resize: vertical
}

.consent {
    display: flex;
    gap: 12px;
    align-items: start;
    font-weight: 400
}

.consent input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px
}

.formnote {
    font-size: 13px;
    margin-top: 17px
}

.honeypot {
    position: absolute;
    left: -9999px
}

.skip {
    position: absolute;
    left: 10px;
    top: -100px;
    z-index: 100;
    background: white;
    padding: 10px
}

.skip:focus {
    top: 10px
}

#form-status {
    font-size: 15px;
    margin: 20px 0 0
}

@media(max-width:1000px) {
    .container {
        width: calc(100% - 48px)
    }

    nav {
        gap: 18px
    }

    nav .button {
        display: none
    }

    .split {
        gap: 35px
    }

    .cards {
        gap: 16px
    }

    .servicecard>div {
        padding: 22px
    }

    .footergrid {
        gap: 35px
    }

    .contactgrid {
        gap: 40px
    }

    .trainingbanner>div {
        padding: 35px
    }
}

@media(max-width:720px) {
    .container {
        width: calc(100% - 36px)
    }

    .topbar span {
        font-size: 11px
    }

    .topbar a {
        font-size: 12px
    }

    .nav {
        min-height: 82px
    }

    .brand {
        font-size: 14px;
        gap: 10px
    }

    .brand small {
        font-size: 9px
    }

    .mark {
        font-size: 21px;
        padding: 9px 6px
    }

    .menu {
        display: block;
        border: 1px solid var(--border);
        background: white;
        padding: 7px 12px;
        font-size: 23px;
        color: var(--navy)
    }

    nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 12px 15px #102b4115;
        padding: 25px;
        align-items: stretch
    }

    nav.open {
        display: flex;
        flex-direction: column
    }

    nav a {
        padding: 8px
    }

    nav a[aria-current] {
        border: none
    }

    nav .button {
        display: block
    }

    .homehero {
        min-height: 620px
    }

    .homehero .container {
        padding-top: 70px;
        padding-bottom: 40px
    }

    .homehero h1 {
        font-size: 43px
    }

    .homehero p,
    .pagehero p {
        font-size: 16px
    }

    .actions {
        flex-wrap: wrap;
        margin-bottom: 45px
    }

    .herofoot {
        gap: 20px;
        font-size: 10px;
        justify-content: space-between
    }

    .facts {
        grid-template-columns: 1fr;
        padding: 22px 0;
        gap: 10px
    }

    .facts>div {
        gap: 16px
    }

    .facts b {
        font-size: 20px
    }

    .facts span {
        font-size: 14px
    }

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

    .split,
    .cards,
    .servicegrid,
    .traininggrid,
    .contactgrid,
    .trainingbanner {
        grid-template-columns: 1fr
    }

    .split {
        gap: 38px
    }

    .imageframe img {
        height: 360px
    }

    .values {
        gap: 20px
    }

    .sectionhead {
        display: block;
        margin-bottom: 32px
    }

    .sectionhead>p {
        margin-top: 24px
    }

    .cards {
        gap: 25px
    }

    .servicecard img {
        height: 240px
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .principles h3 {
        margin-top: 14px
    }

    .trainingbanner {
        margin-bottom: 60px
    }

    .trainingbanner>img {
        min-height: 0;
        height: 260px
    }

    .trainingbanner>div {
        padding: 32px
    }

    .cta .container {
        display: block
    }

    .cta h2 {
        font-size: 30px
    }

    .cta .button {
        margin-top: 25px
    }

    .footergrid {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .copyright {
        display: block
    }

    .copyright span {
        display: block;
        margin-bottom: 8px
    }

    .pagehero .container {
        padding: 55px 0
    }

    .filters {
        gap: 8px
    }

    .filters button {
        font-size: 14px;
        padding: 10px 14px
    }

    .detailcard>img {
        height: 230px
    }

    .detailbody {
        padding: 25px
    }

    .detailbody h2 {
        font-size: 27px
    }

    .course {
        padding: 28px
    }

    .contactgrid {
        gap: 40px
    }

    form {
        padding: 25px
    }

    .formrow {
        grid-template-columns: 1fr;
        gap: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

@media (max-width: 600px) {
    .brand-logo {
        height: 56px;
    }
}