/* =========================================
   MILSERVE PORTAL
   COMMAND PAGE
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@400;500;600&display=swap');


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f4f6f2;
    color: #182018;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    padding: 22px 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.97),
            rgba(255,255,255,.88)
        );

    border-bottom: 1px solid rgba(30,45,30,.10);

    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3d5135;
    color: white;

    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 600;

    clip-path: polygon(
        50% 0%,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text span {
    font-family: "Oswald", sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-text small {
    margin-top: 5px;

    color: #6c756b;

    font-size: 8px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    position: relative;

    color: #344034;

    font-size: 13px;
    font-weight: 600;

    transition: .3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #687d55;

    transition: width .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3d5135;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-button {
    padding: 11px 19px;

    border: 1px solid #536a48;

    color: #3d5135 !important;
}

.nav-button::after {
    display: none;
}

.nav-button:hover {
    background: #3d5135;
    color: white !important;
}

.menu-toggle {
    display: none;

    border: none;
    background: none;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================
   COMMAND HERO
========================================= */

.command-hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #263425;
}

.command-hero-image {
    position: absolute;
    inset: 0;

    background-image:
        url("../img/military-bg.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.02);
}

.command-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12,20,13,.86),
            rgba(18,28,18,.52),
            rgba(20,30,20,.22)
        ),
        linear-gradient(
            180deg,
            rgba(10,17,11,.20),
            rgba(10,17,11,.50)
        );
}

.command-grid {
    position: absolute;
    inset: 0;

    opacity: .10;

    background-image:
        linear-gradient(
            rgba(210,220,195,.20) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(210,220,195,.20) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to right,
            black,
            transparent 90%
        );
}

.command-hero-content {
    position: relative;

    z-index: 5;

    padding-top: 100px;

    max-width: 800px;
}

.hero-label {
    display: inline-block;

    margin-bottom: 20px;

    color: #d8c875;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.command-hero h1 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(60px, 8vw, 105px);

    font-weight: 500;

    line-height: .95;

    text-transform: uppercase;

    color: white;
}

.command-hero h1 span {
    color: #d8c875;
}

.command-hero-content p {
    max-width: 600px;

    margin-top: 28px;

    color: rgba(255,255,255,.85);

    font-size: 15px;

    line-height: 1.8;
}

.hero-line {
    width: 90px;
    height: 2px;

    margin-top: 30px;

    background: #d8c875;
}

.hero-reference {
    display: block;

    margin-top: 15px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}

.hero-corner {
    position: absolute;

    width: 100px;
    height: 100px;

    border-color: rgba(216,200,117,.45);
}

.top-left {
    top: 120px;
    left: 5%;

    border-top: 1px solid;
    border-left: 1px solid;
}

.bottom-right {
    right: 5%;
    bottom: 40px;

    border-right: 1px solid;
    border-bottom: 1px solid;
}


/* =========================================
   GENERAL
========================================= */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.section-label {
    display: block;

    margin-bottom: 15px;

    color: #65794f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.section-heading h2,
.values-header h2 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(42px, 5vw, 64px);

    font-weight: 500;

    line-height: 1.05;

    text-transform: uppercase;

    color: #202920;
}

.section-heading h2 span,
.values-header h2 span {
    color: #65794f;
}

.section-heading p {
    margin-top: 18px;

    color: #697269;

    font-size: 15px;
}


/* =========================================
   INTRO
========================================= */

.command-intro {
    background: white;
}

.intro-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.intro-text {
    border-left: 2px solid #687d55;

    padding-left: 35px;
}

.intro-text p {
    margin-bottom: 20px;

    color: #687168;

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================
   COMMANDER
========================================= */

.commander-section {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            #eef1eb,
            #e4e9e1
        );
}

.commander-card {
    display: grid;

    grid-template-columns: 1.1fr 1fr;

    min-height: 570px;

    background: white;

    border: 1px solid rgba(45,65,45,.12);

    box-shadow:
        0 25px 70px rgba(30,45,30,.10);
}

.commander-image {
    position: relative;

    min-height: 570px;

    overflow: hidden;

    background: #263425;
}

.commander-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;
}

.commander-card:hover .commander-image img {
    transform: scale(1.04);
}

.image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(10,17,11,.55)
        );
}

.image-mark {
    position: absolute;

    left: 30px;
    bottom: 30px;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.65);

    color: white;

    font-family: "Oswald", sans-serif;

    font-size: 23px;
}

.commander-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 65px;
}

.profile-number {
    color: #65794f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 3px;
}

.commander-content h3 {
    margin-top: 15px;

    font-family: "Oswald", sans-serif;

    font-size: 45px;

    font-weight: 500;

    line-height: 1.05;

    text-transform: uppercase;

    color: #263026;
}

.gold-line {
    width: 65px;
    height: 2px;

    margin: 25px 0;

    background: #d0bd63;
}

.commander-content p {
    margin-bottom: 18px;

    color: #687168;

    font-size: 14px;

    line-height: 1.9;
}

.profile-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid rgba(40,60,40,.10);
}

.profile-details span {
    display: block;

    margin-bottom: 5px;

    color: #65794f;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.profile-details strong {
    color: #303930;

    font-size: 12px;
}


/* =========================================
   PERSONNEL
========================================= */

.personnel-section {
    background: #f7f8f5;
}

.personnel-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.personnel-card {
    background: white;

    border: 1px solid rgba(50,70,50,.12);

    box-shadow:
        0 15px 40px rgba(35,50,35,.07);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.personnel-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(35,50,35,.13);
}

.personnel-image {
    position: relative;

    height: 310px;

    overflow: hidden;

    background: #263425;
}

.personnel-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.personnel-card:hover .personnel-image img {
    transform: scale(1.06);
}

.personnel-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(10,17,11,.65)
        );
}

.personnel-image > span {
    position: absolute;

    left: 20px;
    bottom: 20px;

    z-index: 2;

    color: #d8c875;

    font-family: "Oswald", sans-serif;

    font-size: 18px;
}

.personnel-content {
    padding: 28px;
}

.personnel-content small {
    color: #65794f;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 2px;
}

.personnel-content h3 {
    margin: 10px 0;

    font-family: "Oswald", sans-serif;

    font-size: 27px;

    font-weight: 500;

    text-transform: uppercase;
}

.personnel-content p {
    color: #697269;

    font-size: 13px;
}


/* =========================================
   VALUES
========================================= */

.values-section {
    padding: 110px 0;

    background: #263425;

    color: white;
}

.values-header {
    max-width: 700px;

    margin-bottom: 60px;
}

.values-header h2 {
    color: white;
}

.values-header h2 span {
    color: #d8c875;
}

.values-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid rgba(255,255,255,.14);
}

.value-item {
    display: flex;

    gap: 25px;

    padding: 35px 30px;

    border-bottom: 1px solid rgba(255,255,255,.14);
}

.value-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.14);
}

.value-item > span {
    color: #d8c875;

    font-family: "Oswald", sans-serif;

    font-size: 14px;
}

.value-item h3 {
    font-family: "Oswald", sans-serif;

    font-size: 25px;

    font-weight: 500;

    text-transform: uppercase;
}

.value-item p {
    margin-top: 8px;

    color: rgba(255,255,255,.62);

    font-size: 13px;
}


/* =========================================
   GALLERY
========================================= */

.gallery-section {
    background: #e9ede7;
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    grid-template-rows: 300px 300px;

    gap: 18px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    background: #263425;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(10,17,11,.75)
        );
}

.gallery-caption {
    position: absolute;

    left: 25px;
    bottom: 22px;

    z-index: 2;

    color: white;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.gallery-caption span {
    margin-right: 12px;

    color: #d8c875;
}


/* =========================================
   NOTICE
========================================= */

.notice {
    padding: 30px 0;

    background:
        linear-gradient(
            90deg,
            #dfe5da,
            #e8ece5,
            #dfe5da
        );

    border-top: 1px solid rgba(50,70,50,.10);
    border-bottom: 1px solid rgba(50,70,50,.10);
}

.notice-content {
    display: flex;

    align-items: center;

    gap: 25px;
}

.notice-content strong {
    white-space: nowrap;

    color: #526645;

    font-size: 10px;

    letter-spacing: 2px;
}

.notice-content p {
    color: #697269;

    font-size: 11px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background:
        linear-gradient(
            180deg,
            #20291f,
            #151c15
        );

    padding-top: 80px;

    color: white;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 280px;

    margin-top: 20px;

    color: #a0aaa0;

    font-size: 13px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 10px;

    color: #d2c37c;

    font-family: "Oswald", sans-serif;

    font-size: 16px;

    text-transform: uppercase;
}

.footer-column a {
    color: #a0aaa0;

    font-size: 12px;

    transition: .3s ease;
}

.footer-column a:hover {
    color: #d8c875;

    transform: translateX(3px);
}

.footer-bottom {
    padding: 22px 0;

    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom .container {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer-bottom p,
.footer-bottom span {
    color: #788078;

    font-size: 10px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;

        top: 88px;
        left: 5%;
        right: 5%;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 25px;

        background: white;

        border: 1px solid rgba(40,60,40,.12);

        box-shadow:
            0 25px 60px rgba(30,45,30,.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .commander-card {
        grid-template-columns: 1fr;
    }

    .commander-image {
        min-height: 500px;
    }

    .personnel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .navbar {
        padding: 18px 0;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .brand-text span {
        font-size: 18px;
    }

    .command-hero {
        min-height: 600px;
    }

    .command-hero h1 {
        font-size: 55px;
    }

    .command-hero-content {
        padding-top: 90px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2,
    .values-header h2 {
        font-size: 42px;
    }

    .commander-section {
        padding: 80px 0;
    }

    .commander-image {
        min-height: 400px;
    }

    .commander-content {
        padding: 35px 25px;
    }

    .commander-content h3 {
        font-size: 36px;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .personnel-grid {
        grid-template-columns: 1fr;
    }

    .personnel-image {
        height: 280px;
    }

    .values-section {
        padding: 80px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item:nth-child(odd) {
        border-right: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-template-rows: 300px 250px 250px;
    }

    .gallery-item.large {
        grid-row: auto;
    }

    .notice-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom .container {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}