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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #01296E;
    color: #fff;
    opacity: 0;
    transition: opacity .35s ease;
}

body.page-loaded {
    opacity: 1;
}

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


/* =========================================================
   SERVICES NAVBAR
   ========================================================= */

.services-navbar {
    width: 100%;
    height: 85px;
    background: linear-gradient(90deg, #205aa2 0%, #01296E 100%);
    border-bottom: 1px solid rgba(255,255,255,.15);
    position: relative;
    z-index: 20;
}

.services-nav-container {
    width: 86%;
    max-width: 1250px;
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-logo img {
    width: 225px;
    height: auto;
    display: block;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.services-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.services-nav-links a {
    transition: opacity .2s ease;
}

.services-nav-links a:hover {
    opacity: .75;
}


/* =========================================================
   NAVBAR SEPARATORS
   ========================================================= */

.services-nav-links .nav-separator {
    color: #ffffff;
    margin: 0 2px;
}


/* =========================================================
   SERVICES DROPDOWN WRAPPER
   ========================================================= */

.services-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* =========================================================
   SERVICES BUTTON
   ========================================================= */

.services-trigger,
.services-trigger:visited,
.services-trigger:hover,
.services-trigger:active {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}


/* =========================================================
   SERVICES ARROW
   ========================================================= */

.services-arrow {
    color: #ffffff;
    font-size: 10px;
    margin-left: 4px;
    transition: transform .2s ease;
}


/* =========================================================
   DROPDOWN BOX
   ========================================================= */

.services-dropdown {
    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    width: 280px;

    background: #ffffff;

    border: 1px solid #dddddd;

    box-shadow: 0 6px 18px rgba(0,0,0,.18);

    padding: 6px 0;

    display: none;

    flex-direction: column;

    z-index: 99999;
}


/* =========================================================
   INVISIBLE HOVER BRIDGE
   Keeps dropdown open while moving mouse down
   ========================================================= */

.services-dropdown-wrapper::after {
    content: "";

    position: absolute;

    left: -10px;
    right: -10px;

    top: 100%;

    height: 10px;
}


/* =========================================================
   DROPDOWN LINKS
   ========================================================= */

.services-dropdown a,
.services-dropdown a:visited {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 13px 18px;

    margin: 0;

    color: #26364a !important;

    background: #ffffff;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    white-space: normal;
}

.services-dropdown a:hover {
    color: #002454 !important;
    background: #f2f5f9;
}


/* =========================================================
   SHOW DROPDOWN ON HOVER
   ========================================================= */

.services-dropdown-wrapper:hover .services-dropdown,
.services-dropdown-wrapper:focus-within .services-dropdown {
    display: flex;
}

.services-dropdown-wrapper:hover .services-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   SERVICES HERO
   ========================================================= */

.services-hero {
    position: relative;
    width: 100%;
    height: 420px;

    overflow: hidden;

    background: #01296E;
}

.services-hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

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

    z-index: 1;
}

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

    background:
        linear-gradient(
            90deg,
            rgba(1,41,110,.98) 0%,
            rgba(1,41,110,.90) 32%,
            rgba(1,41,110,.45) 58%,
            rgba(1,41,110,.05) 100%
        );

    z-index: 2;
}

.services-hero-content {
    position: relative;
    z-index: 5;

    width: 86%;
    max-width: 1250px;

    margin: auto;

    height: 100%;

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

    padding-bottom: 10px;
}

.services-hero-content h1 {
    font-size: 36px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 18px;
}

.services-hero-content p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 430px;
}


/* =========================================================
   SERVICES SECTION
   ========================================================= */

.services-section {
    background: #01296E;
    padding: 55px 0 70px;
}

.services-container {
    width: 86%;
    max-width: 1250px;
    margin: auto;
}

.services-container > h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    max-width: 850px;

    margin: 0 auto;
}


/* =========================================================
   SERVICE CARDS
   ========================================================= */

.service-card {
    background: #07579C;

    border-radius: 9px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,.15);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0,0,0,.22);
}

.service-card > img {
    display: block;

    width: 100%;
    height: 155px;

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

.service-card-content {
    text-align: center;

    padding: 15px 18px 18px;
}

.service-card-content h3 {
    font-size: 15px;
    line-height: 1.35;

    margin-bottom: 9px;

    color: #fff;
}

.service-card-content p {
    font-size: 12px;
    line-height: 1.55;

    color: #fff;

    max-width: 300px;

    margin: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.services-footer {
    background: linear-gradient(
        90deg,
        #205aa2 0%,
        #01296E 100%
    );

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

    padding: 45px 0;
}

.services-footer-container {
    width: 86%;
    max-width: 1250px;

    margin: auto;

    display: grid;

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

    gap: 35px;
}

.services-footer-logo img {
    width: 190px;
    display: block;
}

.services-footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.services-footer-column h4 {
    font-size: 15px;
    margin-bottom: 7px;
}

.services-footer-column a {
    font-size: 12px;
    color: #fff;

    opacity: .9;

    transition: opacity .2s ease;
}

.services-footer-column a:hover {
    opacity: .65;
}

.social-column a {
    font-size: 18px;
}


/* =========================================================
   SERVICE CARDS SCROLL ANIMATION
   ========================================================= */

.service-card.scroll-bottom {
    opacity: 0;

    transform: translateY(60px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.service-card.scroll-bottom.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   LEARN MORE BUTTONS
   ========================================================= */

.learn-more {
    display: inline-block;

    margin-top: 8px;

    color: #002454;

    font-size: 14px;

    font-weight: 600;

    text-decoration: underline;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.learn-more:hover {
    opacity: .75;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .services-nav-container {
        width: 90%;
    }

    .services-logo img {
        width: 190px;
    }

    .services-nav-links {
        font-size: 14px;
    }

        .services-hero-content {
        width: 90%;
    }

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .services-navbar {
        height: 65px;
    }

    .services-nav-container {
        width: 92%;
    }

    .services-logo img {
        width: 125px;
    }

    .services-nav-links {
        gap: 5px;
        font-size: 8px;
    }

    .services-nav-links .nav-separator {
        font-size: 8px;
        margin: 0 1px;
    }

    .services-arrow {
        font-size: 7px;
        margin-left: 2px;
    }

    /* Mobile dropdown */
    .services-dropdown {
        width: 220px;

        top: calc(100% + 5px);

        left: 50%;

        transform: translateX(-50%);

        padding: 4px 0;
    }

    .services-dropdown a {
        padding: 10px 12px;

        font-size: 11px;
    }


    .services-hero {
        height: 310px;
    }

    .services-hero-content {
        width: 88%;
        padding-bottom: 0;
    }

    .services-hero-content h1 {
        font-size: 23px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .services-hero-content p {
        font-size: 10px;
        line-height: 1.5;
        max-width: 210px;
    }


    .services-section {
        padding: 25px 0 40px;
    }

    .services-container {
        width: 88%;
    }

    .services-container > h2 {
        font-size: 21px;
        margin-bottom: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

        width: 100%;
    }

    .service-card {
        border-radius: 7px;
    }

    .service-card > img {
        height: 95px;
    }

    .service-card-content {
        padding: 8px 7px 10px;
    }

    .service-card-content h3 {
        font-size: 9px;
        line-height: 1.35;
        margin-bottom: 5px;
    }

    .service-card-content p {
        font-size: 7px;
        line-height: 1.45;
    }


    .services-footer {
        padding: 25px 0;
    }

    .services-footer-container {
        width: 88%;

        grid-template-columns: 1fr 1fr;

        gap: 20px;
    }

    .services-footer-logo img {
        width: 125px;
    }

    .services-footer-column h4 {
        font-size: 10px;
    }

    .services-footer-column a {
        font-size: 8px;
    }

    .social-column a {
        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .services-nav-links {
        font-size: 7px;
        gap: 4px;
    }

    .services-nav-links .nav-separator {
        font-size: 7px;
    }

    .services-logo img {
        width: 110px;
    }

    .services-dropdown {
        width: 200px;
    }

    .services-dropdown a {
        font-size: 10px;
        padding: 9px 10px;
    }

    .services-hero {
        height: 285px;
    }

    .services-hero-content h1 {
        font-size: 21px;
    }

    .service-card > img {
        height: 85px;
    }

    .service-card-content h3 {
        font-size: 8px;
    }

    .service-card-content p {
        font-size: 6.5px;
    }
}
