/* =========================================
   MILSERVE PORTAL
   CONTACT 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,
input,
select,
textarea {
    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,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;
}

.nav-button::after {
    display: none;
}

.nav-button:hover {
    background: #3d5135;
    color: #ffffff !important;
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #263126;
    font-size: 28px;

    cursor: pointer;
}


/* =========================================
   CONTACT HERO
========================================= */

.contact-hero {
    position: relative;

    min-height: 600px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #1e291e,
            #34452f 55%,
            #202b20
        );

    color: #ffffff;
}

.contact-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255,255,255,0.05) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.35;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(216,200,117,0.15),
            transparent 35%
        ),
        linear-gradient(
            90deg,
            rgba(10,17,11,0.45),
            transparent
        );
}

.contact-grid {
    position: absolute;
    right: 8%;
    top: 25%;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(216,200,117,0.30);

    transform: rotate(45deg);
}

.contact-grid::before,
.contact-grid::after {
    content: "";

    position: absolute;
    inset: 30px;

    border: 1px solid rgba(216,200,117,0.20);
}

.contact-grid::after {
    inset: 60px;
}

.contact-hero-content {
    position: relative;
    z-index: 3;

    padding-top: 80px;
}

.hero-label {
    display: block;

    margin-bottom: 20px;

    color: #d8c875;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.contact-hero h1 {
    max-width: 800px;

    font-family: "Oswald", sans-serif;

    font-size: clamp(60px, 8vw, 100px);

    font-weight: 500;

    line-height: 0.95;

    text-transform: uppercase;
}

.contact-hero h1 span {
    color: #d8c875;
}

.contact-hero p {
    max-width: 650px;

    margin-top: 28px;

    color: rgba(255,255,255,0.78);

    font-size: 15px;

    line-height: 1.9;
}

.hero-line {
    width: 90px;
    height: 2px;

    margin-top: 35px;

    background: #d8c875;
}

.hero-corner {
    position: absolute;

    right: 5%;
    bottom: 30px;

    color: rgba(255,255,255,0.35);

    font-size: 9px;
    letter-spacing: 3px;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    position: relative;
    padding: 110px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-label {
    display: block;

    margin-bottom: 15px;

    color: #65794f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.section-heading h2,
.contact-intro h2,
.office-content h2,
.help-inner h2 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(42px, 5vw, 62px);

    font-weight: 500;

    line-height: 1.05;

    text-transform: uppercase;

    color: #202920;
}

.section-heading h2 span,
.contact-intro h2 span,
.office-content h2 span,
.help-inner h2 span {
    color: #65794f;
}

.section-heading p {
    margin-top: 18px;

    color: #697269;

    font-size: 15px;
}


/* =========================================
   CONTACT CARDS
========================================= */

.contact-info {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1f4ef
        );
}

.contact-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.contact-card {
    position: relative;

    padding: 35px;

    background: #ffffff;

    border: 1px solid rgba(50,70,50,0.12);

    box-shadow:
        0 18px 45px rgba(35,50,35,0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    overflow: hidden;
}

.contact-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background: #65794f;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-7px);

    border-color: rgba(86,108,71,0.30);

    box-shadow:
        0 25px 55px rgba(35,50,35,0.12);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-number {
    color: #687d54;

    font-family: "Oswald", sans-serif;

    font-size: 13px;

    letter-spacing: 2px;
}

.contact-icon {
    width: 50px;
    height: 50px;

    margin: 25px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(86,108,71,0.25);

    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 22px;
}

.contact-card h3 {
    font-family: "Oswald", sans-serif;

    font-size: 27px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.contact-card p {
    min-height: 72px;

    margin-top: 12px;

    color: #697269;

    font-size: 13px;
}

.contact-card a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid rgba(40,60,40,0.10);

    color: #5f744d;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.contact-card a span {
    font-size: 20px;

    transition: transform 0.3s ease;
}

.contact-card a:hover span {
    transform: translateX(5px);
}


/* =========================================
   CONTACT FORM SECTION
========================================= */

.contact-form-section {
    background: #e9ede7;
}

.contact-layout {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: start;
}

.contact-intro {
    padding-top: 20px;
}

.contact-intro > p {
    margin-top: 25px;

    color: #687168;

    font-size: 15px;

    line-height: 1.9;
}

.contact-details {
    margin-top: 45px;
}

.detail-row {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px 0;

    border-top: 1px solid rgba(40,60,40,0.10);
}

.detail-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(86,108,71,0.25);

    color: #65794f;

    font-family: "Oswald", sans-serif;

    font-size: 11px;
}

.detail-row div:last-child {
    display: flex;

    flex-direction: column;
}

.detail-row strong {
    color: #344034;

    font-size: 12px;
}

.detail-row span {
    margin-top: 3px;

    color: #7a8279;

    font-size: 11px;
}


/* =========================================
   FORM WRAPPER
========================================= */

.form-wrapper {
    background: #ffffff;

    border: 1px solid rgba(50,70,50,0.12);

    box-shadow:
        0 25px 65px rgba(35,50,35,0.09);
}

.form-header {
    padding: 25px 35px;

    border-bottom: 1px solid rgba(40,60,40,0.10);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.form-header span {
    color: #65794f;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.form-header strong {
    font-family: "Oswald", sans-serif;

    font-size: 18px;

    font-weight: 500;

    text-transform: uppercase;

    color: #293329;
}

.contact-form {
    padding: 35px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;

    color: #465046;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.form-group label span {
    color: #9ba19a;

    font-weight: 500;

    text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid rgba(45,65,45,0.15);

    outline: none;

    background: #f9faf8;

    color: #263026;

    font-size: 13px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.form-group input,
.form-group select {
    height: 50px;

    padding: 0 15px;
}

.form-group textarea {
    padding: 14px 15px;

    resize: vertical;

    min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #65794f;

    background: #ffffff;

    box-shadow:
        0 0 20px rgba(100,120,80,0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a69f;
}

.form-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding-top: 10px;
}

.form-footer p {
    max-width: 300px;

    color: #8a9189;

    font-size: 10px;

    line-height: 1.6;
}

.submit-button {
    min-height: 52px;

    padding: 0 25px;

    border: none;

    background: #3d5135;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 18px;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.submit-button span {
    font-size: 18px;
}

.submit-button:hover {
    background: #506844;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(61,81,53,0.18);
}

.form-message {
    margin-top: 18px;

    font-size: 12px;
}


/* =========================================
   OFFICE SECTION
========================================= */

.office-section {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            #20291f,
            #2d3b29
        );

    color: #ffffff;
}

.office-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.office-content .section-label {
    color: #d8c875;
}

.office-content h2 {
    color: #ffffff;
}

.office-content > p {
    max-width: 550px;

    margin-top: 25px;

    color: rgba(255,255,255,0.65);

    font-size: 14px;

    line-height: 1.9;
}

.office-status {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;

    padding: 10px 14px;

    border: 1px solid rgba(216,200,117,0.25);

    color: #d8c875;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #a7bd83;

    box-shadow:
        0 0 10px rgba(167,189,131,0.60);
}

.office-panel {
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.035);
}

.panel-heading {
    padding: 20px 25px;

    color: #d8c875;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.panel-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.panel-row:last-child {
    border-bottom: none;
}

.panel-row span {
    color: rgba(255,255,255,0.50);

    font-size: 11px;
}

.panel-row strong {
    color: #ffffff;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================
   HELP SECTION
========================================= */

.help-section {
    padding: 75px 0;

    background: #ffffff;
}

.help-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.help-inner h2 {
    font-size: 42px;
}

.help-button {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    padding: 15px 22px;

    border: 1px solid #526645;

    color: #526645;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: 0.3s ease;
}

.help-button span {
    font-size: 18px;
}

.help-button:hover {
    background: #3d5135;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================
   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: 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: 1000px) {

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .office-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }
}


/* =========================================
   MOBILE NAV
========================================= */

@media (max-width: 900px) {

    .navbar {
        background: rgba(255,255,255,0.96);
    }

    .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;
    }
}


/* =========================================
   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;
    }

    .contact-hero {
        min-height: 560px;
    }

    .contact-hero h1 {
        font-size: 58px;
    }

    .contact-hero p {
        font-size: 14px;
    }

    .contact-grid {
        right: -90px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2,
    .contact-intro h2,
    .office-content h2 {
        font-size: 42px;
    }

    .contact-card {
        padding: 28px;
    }

    .form-header {
        flex-direction: column;

        align-items: flex-start;

        padding: 22px 25px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;

        align-items: stretch;
    }

    .form-footer p {
        max-width: none;
    }

    .submit-button {
        width: 100%;

        justify-content: center;
    }

    .office-section {
        padding: 80px 0;
    }

    .panel-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .help-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .notice-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom .container {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .contact-hero h1 {
        font-size: 48px;
    }

    .section-heading h2,
    .contact-intro h2,
    .office-content h2 {
        font-size: 36px;
    }

    .brand-text small {
        font-size: 7px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .contact-card,
    .contact-card::before,
    .submit-button,
    .help-button,
    .contact-card a span,
    .nav-links a {
        transition: none;
    }
}