/* =========================================
   MILSERVE PORTAL
   ABOUT PAGE
   LIGHT MILITARY DESIGN
========================================= */

@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;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.15) 4px
        );
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.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, 0.97),
            rgba(255, 255, 255, 0.88)
        );

    border-bottom: 1px solid rgba(30, 45, 30, 0.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: #ffffff;

    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%
    );

    box-shadow:
        0 6px 20px rgba(45, 65, 45, 0.18);
}

.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;
    color: #172018;
}

.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: 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #687d55;
    transition: width 0.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;

    transition: 0.3s ease;
}

.nav-button::after {
    display: none !important;
}

.nav-button:hover {
    background: #3d5135;
    color: #ffffff !important;

    box-shadow:
        0 8px 22px rgba(61, 81, 53, 0.18);
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #263126;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================
   ABOUT HERO
========================================= */

.about-hero {
    min-height: 650px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #263425;
}

.about-hero-bg {
    position: absolute;
    inset: 0;

    background-image:
        url("../img/leave\ pic.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.03);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(14, 22, 15, 0.84),
            rgba(20, 31, 20, 0.58) 50%,
            rgba(20, 30, 20, 0.30)
        ),
        linear-gradient(
            180deg,
            rgba(10, 17, 11, 0.20),
            rgba(10, 17, 11, 0.55)
        );
}

.about-grid-overlay {
    position: absolute;
    inset: 0;

    opacity: 0.10;

    background-image:
        linear-gradient(
            rgba(220, 225, 200, 0.20) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(220, 225, 200, 0.20) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to right,
            black,
            transparent 85%
        );
}

.about-hero-content {
    position: relative;
    z-index: 5;

    padding-top: 100px;

    max-width: 800px;
}

.hero-label {
    display: block;

    margin-bottom: 18px;

    color: #d8c875;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.about-hero h1 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(60px, 8vw, 105px);

    font-weight: 500;

    line-height: 0.95;

    text-transform: uppercase;

    color: #ffffff;
}

.about-hero h1 span {
    color: #d8c875;
}

.about-hero-content p {
    max-width: 650px;

    margin-top: 28px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 15px;

    line-height: 1.8;
}

.hero-line {
    width: 100px;
    height: 2px;

    margin-top: 30px;

    background: #d8c875;
}

.hero-index {
    position: absolute;

    right: 5%;
    bottom: 35px;

    z-index: 5;

    color: rgba(255, 255, 255, 0.60);

    font-family: "Oswald", sans-serif;

    font-size: 11px;

    letter-spacing: 3px;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    position: relative;

    padding: 110px 0;

    overflow: hidden;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 60px;
}

.section-label {
    display: block;

    margin-bottom: 15px;

    color: #65794f;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;
}

.section-heading h2,
.intro-heading h2,
.mission-content h2,
.process-heading h2,
.about-cta h2 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(42px, 5vw, 64px);

    font-weight: 500;

    line-height: 1.03;

    text-transform: uppercase;

    color: #202920;
}

.section-heading h2 span,
.intro-heading h2 span,
.mission-content h2 span,
.process-heading h2 span,
.about-cta h2 span {
    color: #65794f;
}

.section-heading p {
    margin-top: 18px;

    color: #697269;

    font-size: 15px;
}


/* =========================================
   INTRO
========================================= */

.intro {
    background: #ffffff;
}

.intro-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;

    align-items: start;
}

.intro-heading {
    position: relative;
}

.intro-heading::before {
    content: "";

    position: absolute;

    left: -25px;
    top: 10px;

    width: 2px;
    height: 120px;

    background:
        linear-gradient(
            to bottom,
            #65794f,
            transparent
        );
}

.intro-content {
    padding-top: 8px;
}

.intro-content p {
    margin-bottom: 22px;

    color: #687168;

    font-size: 15px;

    line-height: 1.9;
}

.intro-content .intro-lead {
    color: #2e392e;

    font-size: 21px;

    line-height: 1.7;

    font-weight: 500;
}


/* =========================================
   MISSION
========================================= */

.mission {
    background:
        linear-gradient(
            180deg,
            #eef1eb,
            #e5e9e2
        );
}

.mission-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.mission-image {
    min-height: 650px;

    position: relative;

    overflow: hidden;

    background:
        url("../img/military formation.jpg")
        center / cover no-repeat;

    border: 1px solid rgba(50, 70, 50, 0.15);

    box-shadow:
        0 25px 65px rgba(30, 45, 30, 0.12);
}

.mission-image::before {
    content: "";

    position: absolute;

    inset: 18px;

    border: 1px solid rgba(255, 255, 255, 0.55);

    z-index: 2;
}

.mission-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(15, 24, 16, 0.05),
            rgba(15, 24, 16, 0.70)
        );
}

.mission-marker {
    position: absolute;

    left: 38px;
    bottom: 45px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 15px;
}

.mission-marker span {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.70);

    color: #ffffff;

    font-family: "Oswald", sans-serif;

    font-size: 21px;
}

.mission-marker small {
    color: #d8c875;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.image-caption {
    position: absolute;

    top: 35px;
    left: 38px;

    z-index: 3;

    color: rgba(255, 255, 255, 0.80);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}

.mission-content > p {
    margin-top: 25px;

    color: #687168;

    font-size: 15px;

    line-height: 1.9;
}

.mission-points {
    margin-top: 35px;
}

.mission-point {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid rgba(40, 60, 40, 0.12);
}

.mission-point strong {
    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 14px;

    letter-spacing: 2px;
}

.mission-point h3 {
    margin-bottom: 5px;

    font-family: "Oswald", sans-serif;

    font-size: 22px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.mission-point p {
    color: #697269;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================
   CAPABILITIES
========================================= */

.capabilities {
    background: #ffffff;
}

.capability-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.capability-card {
    position: relative;

    min-height: 360px;

    padding: 32px 27px;

    overflow: hidden;

    background: #f5f7f3;

    border: 1px solid rgba(50, 70, 50, 0.12);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.capability-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 45%;
    height: 3px;

    background: #65794f;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}

.capability-card:hover {
    transform: translateY(-8px);

    border-color: rgba(86, 108, 71, 0.30);

    box-shadow:
        0 20px 45px rgba(35, 50, 35, 0.10);
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.card-number {
    position: absolute;

    top: 20px;
    right: 22px;

    color: #b1b9ae;

    font-family: "Oswald", sans-serif;

    font-size: 11px;

    letter-spacing: 2px;
}

.card-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 35px;

    border: 1px solid #687d54;

    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 18px;
}

.capability-card h3 {
    margin-bottom: 14px;

    font-family: "Oswald", sans-serif;

    font-size: 25px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.capability-card p {
    color: #697269;

    font-size: 13px;

    line-height: 1.8;
}

.capability-card a {
    position: absolute;

    left: 27px;
    right: 27px;
    bottom: 25px;

    display: flex;

    justify-content: space-between;

    padding-top: 17px;

    border-top: 1px solid rgba(40, 60, 40, 0.10);

    color: #5f744d;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.capability-card a span {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.capability-card a:hover span {
    transform: translateX(5px);
}


/* =========================================
   PROCESS
========================================= */

.process {
    background:
        linear-gradient(
            180deg,
            #f0f3ed,
            #e6ebe3
        );
}

.process-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 70px;
}

.process-heading p {
    max-width: 420px;

    color: #697269;

    font-size: 14px;

    line-height: 1.8;
}

.process-line {
    width: 100%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #65794f,
            rgba(101, 121, 79, 0.12)
        );

    margin-bottom: 50px;
}

.process-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.process-step {
    position: relative;
}

.step-number {
    display: inline-flex;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border: 1px solid #65794f;

    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 12px;
}

.process-step h3 {
    margin-bottom: 10px;

    font-family: "Oswald", sans-serif;

    font-size: 24px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.process-step p {
    color: #697269;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================
   PRINCIPLES
========================================= */

.principles {
    background: #ffffff;
}

.principles-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 0;

    border-top: 1px solid rgba(40, 60, 40, 0.12);

    border-bottom: 1px solid rgba(40, 60, 40, 0.12);
}

.principles-grid article {
    min-height: 250px;

    padding: 35px 28px;

    border-right: 1px solid rgba(40, 60, 40, 0.12);
}

.principles-grid article:last-child {
    border-right: none;
}

.principles-grid article > span {
    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 12px;

    letter-spacing: 2px;
}

.principles-grid h3 {
    margin: 35px 0 12px;

    font-family: "Oswald", sans-serif;

    font-size: 25px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.principles-grid p {
    color: #697269;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================
   CTA
========================================= */

.about-cta {
    padding: 80px 0;

    background: #20291f;
}

.cta-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}

.about-cta .section-label {
    color: #d8c875;
}

.about-cta h2 {
    color: #ffffff;
}

.about-cta h2 span {
    color: #d8c875;
}

.about-cta p {
    max-width: 600px;

    margin-top: 18px;

    color: #a7afa5;

    font-size: 14px;
}

.cta-buttons {
    display: flex;

    gap: 12px;

    flex-shrink: 0;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 25px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #d0bd63;

    color: #20291e;
}

.btn-primary:hover {
    background: #e1d17e;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.45);

    color: #ffffff;

    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    border-color: #d8c875;

    background: rgba(216, 200, 117, 0.12);
}


/* =========================================
   NOTICE
========================================= */

.notice {
    padding: 30px 0;

    background:
        linear-gradient(
            90deg,
            #dfe5da,
            #e8ece5,
            #dfe5da
        );

    border-top: 1px solid rgba(50, 70, 50, 0.10);

    border-bottom: 1px solid rgba(50, 70, 50, 0.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 {
    position: relative;

    background:
        linear-gradient(
            180deg,
            #20291f,
            #151c15
        );

    padding-top: 80px;

    color: #ffffff;
}

footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(210, 190, 100, 0.45),
            transparent
        );
}

.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;

    font-weight: 500;

    text-transform: uppercase;
}

.footer-column a {
    color: #a0aaa0;

    font-size: 12px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-column a:hover {
    color: #d8c875;

    transform: translateX(3px);
}

.footer-bottom {
    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.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: 1100px) {

    .nav-links {
        gap: 20px;
    }

    .intro-grid,
    .mission-grid {
        gap: 50px;
    }

    .capability-grid,
    .principles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .principles-grid article:nth-child(2) {
        border-right: none;
    }

    .principles-grid article:nth-child(-n+2) {
        border-bottom: 1px solid rgba(40, 60, 40, 0.12);
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .process-line {
        display: none;
    }
}


/* =========================================
   900px
========================================= */

@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: #ffffff;

        border: 1px solid rgba(40, 60, 40, 0.12);

        box-shadow:
            0 25px 60px rgba(30, 45, 30, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .intro-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-image {
        min-height: 500px;
    }

    .process-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: min(92%, 1180px);
    }

    .navbar {
        padding: 18px 0;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .brand-text span {
        font-size: 18px;
    }

    .about-hero {
        min-height: 600px;
    }

    .about-hero-content {
        padding-top: 80px;
    }

    .about-hero h1 {
        font-size: 56px;
    }

    .about-hero-content p {
        font-size: 14px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2,
    .intro-heading h2,
    .mission-content h2,
    .process-heading h2 {
        font-size: 42px;
    }

    .intro-content .intro-lead {
        font-size: 18px;
    }

    .mission-image {
        min-height: 420px;
    }

    .mission-marker {
        left: 25px;
        bottom: 30px;
    }

    .image-caption {
        left: 25px;
        top: 28px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        min-height: 330px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid article {
        min-height: auto;

        border-right: none !important;

        border-bottom: 1px solid rgba(40, 60, 40, 0.12);
    }

    .principles-grid article:last-child {
        border-bottom: none;
    }

    .cta-buttons {
        width: 100%;

        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .notice-content {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom .container {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .about-hero h1 {
        font-size: 48px;
    }

    .section-heading h2,
    .intro-heading h2,
    .mission-content h2,
    .process-heading h2 {
        font-size: 36px;
    }

    .brand-text small {
        font-size: 7px;
    }
}

/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal {
        opacity: 1;
        transform: none;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .capability-card,
    .capability-card::before,
    .capability-card a span,
    .btn,
    .nav-links a {
        transition: none;
    }
}