/* =========================================================
   MARCUS SCIENCE GROUP
   CONTACT PAGE
   ========================================================= */

:root {
    --contact-green: #42b96c;
    --contact-dark: #0a151b;
    --contact-ink: #17201e;
    --contact-muted: #687572;
    --contact-light: #f4f7f5;
    --contact-border: #e3ebe7;
    --contact-white: #ffffff;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--contact-ink);
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.contact-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.contact-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding-top: 18px;
}

.contact-nav {
    width: min(930px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;

    background: rgba(255,255,255,.97);

    border-radius: 0 0 24px 24px;

    box-shadow:
        0 14px 35px rgba(10,30,40,.14);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 30px;
}

.contact-nav-left,
.contact-nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.contact-nav-right {
    justify-content: flex-end;
}

.contact-nav a,
.contact-dropdown button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--contact-ink);
}

.contact-nav a {
    transition: color .25s ease, transform .25s ease;
}

.contact-nav a:hover,
.contact-nav a.active {
    color: var(--contact-green);
}

.contact-nav a:hover {
    transform: translateY(-1px);
}

.contact-dropdown {
    position: relative;
}

.contact-dropdown button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.contact-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: -18px;

    width: 220px;
    padding: 10px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 18px 40px rgba(10,30,40,.14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.contact-dropdown:hover .contact-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
}

.contact-dropdown-menu a:hover {
    background: #f1f7f3;
}


/* =========================================================
   BRAND
   ========================================================= */

.contact-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #10202d;

    overflow: hidden;
}

.contact-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.contact-brand-text strong {
    font-size: 15px;
    font-weight: 800;
}

.contact-brand-text small {
    margin-top: 5px;
    color: #8d9795;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    position: relative;
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 145px 24px 85px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #07161d 0%,
            #103a42 55%,
            #0b242d 100%
        );
}

.contact-hero::before {
    content: "";

    position: absolute;

    width: 560px;
    height: 560px;

    top: -240px;
    right: -130px;

    border-radius: 50%;

    background:
        rgba(66,185,108,.13);

    filter: blur(25px);

    animation:
        contactGlow 9s ease-in-out infinite alternate;
}

.contact-hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    bottom: -220px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(66,185,108,.08);

    filter: blur(20px);
}

@keyframes contactGlow {

    from {
        transform:
            translate3d(0,0,0)
            scale(1);
    }

    to {
        transform:
            translate3d(30px,20px,0)
            scale(1.08);
    }

}

.contact-hero-content {
    position: relative;
    z-index: 2;

    width: min(820px,100%);
}

.contact-eyebrow {
    display: inline-block;

    margin-bottom: 24px;

    padding: 9px 16px;

    border:
        1px solid
        rgba(255,255,255,.22);

    border-radius: 999px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.contact-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(48px,6vw,78px);

    line-height: .98;

    letter-spacing: -4px;

    font-weight: 800;
}

.contact-hero h1 span {
    display: block;
    color: var(--contact-green);
}

.contact-hero p {
    max-width: 680px;

    margin: 28px auto 0;

    color:
        rgba(255,255,255,.72);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   CONTACT MAIN
   ========================================================= */

.contact-main {
    padding: 105px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        .75fr 1.25fr;

    gap: 80px;

    align-items: start;
}

.contact-label {
    margin-bottom: 17px;

    color: var(--contact-green);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.contact-information h2 {
    margin: 0;

    font-size:
        clamp(38px,4.5vw,58px);

    line-height: 1;

    letter-spacing: -3px;
}

.contact-information h2 span {
    color: var(--contact-green);
}

.contact-description {
    max-width: 470px;

    margin: 24px 0 0;

    color: var(--contact-muted);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
    margin-top: 42px;
}

.contact-detail {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 18px 0;

    border-bottom:
        1px solid
        var(--contact-border);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: var(--contact-green);

    background: var(--contact-light);

    font-size: 19px;
    font-weight: 700;
}

.contact-detail small {
    display: block;

    margin-bottom: 6px;

    color: #8a9491;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.contact-detail a,
.contact-detail span {
    font-size: 13px;
    font-weight: 600;
}

.contact-detail a:hover {
    color: var(--contact-green);
}


/* =========================================================
   FORM CARD
   ========================================================= */

.contact-form-card {
    padding: 42px;

    border:
        1px solid
        var(--contact-border);

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 20px 55px
        rgba(10,30,40,.08);
}

.contact-form-heading {
    margin-bottom: 30px;
}

.contact-form-heading h3 {
    margin: 0;

    font-size: 34px;

    line-height: 1;

    letter-spacing: -1.8px;
}

.contact-form-heading h3 span {
    color: var(--contact-green);
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-field label {
    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {

    width: 100%;

    border:
        1px solid
        var(--contact-border);

    border-radius: 11px;

    padding: 13px 14px;

    outline: none;

    font-family: inherit;

    font-size: 13px;

    color: var(--contact-ink);

    background: #ffffff;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.contact-field input,
.contact-field select {
    height: 48px;
}

.contact-field textarea {
    min-height: 140px;

    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {

    border-color:
        var(--contact-green);

    box-shadow:
        0 0 0 4px
        rgba(66,185,108,.09);

}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #a4aeab;
}

.contact-submit {

    width: 100%;

    border: 0;

    border-radius: 12px;

    padding: 15px;

    color: #ffffff;

    background:
        var(--contact-green);

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.contact-submit:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 13px 28px
        rgba(66,185,108,.22);
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.contact-links {
    padding: 90px 0 105px;

    background:
        var(--contact-light);
}

.contact-links-heading {
    margin-bottom: 45px;
}

.contact-links-heading h2 {
    margin: 0;

    font-size:
        clamp(36px,4vw,52px);

    line-height: 1;

    letter-spacing: -2.5px;
}

.contact-links-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}

.contact-link-card {

    position: relative;

    padding: 30px;

    min-height: 230px;

    border:
        1px solid
        var(--contact-border);

    border-radius: 22px;

    background: #ffffff;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.contact-link-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 20px 45px
        rgba(10,30,40,.09);
}

.contact-link-card > span {

    color:
        var(--contact-green);

    font-size:
        11px;

    font-weight:
        800;
}

.contact-link-card h3 {

    margin:
        28px 0 10px;

    font-size:
        21px;

    line-height:
        1.15;
}

.contact-link-card p {

    margin:
        0;

    color:
        var(--contact-muted);

    font-size:
        13px;

    line-height:
        1.6;
}

.contact-link-card strong {

    display:
        block;

    margin-top:
        20px;

    color:
        var(--contact-green);

    font-size:
        12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.contact-footer {

    padding-top:
        75px;

    color:
        #ffffff;

    background:
        #081117;
}

.contact-footer-grid {

    display:
        grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap:
        50px;

    padding-bottom:
        55px;
}

.contact-footer-brand {

    font-size:
        20px;

    font-weight:
        800;
}

.contact-footer p {

    color:
        rgba(
            255,
            255,
            255,
            .55
        );

    font-size:
        13px;

    line-height:
        1.7;
}

.contact-footer h4 {

    margin:
        0 0 18px;

    font-size:
        13px;
}

.contact-footer a {

    display:
        block;

    margin-bottom:
        11px;

    color:
        rgba(
            255,
            255,
            255,
            .58
        );

    font-size:
        12px;
}

.contact-footer a:hover {

    color:
        var(--contact-green);
}

.contact-footer-bottom {

    padding:
        21px;

    text-align:
        center;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    color:
        rgba(
            255,
            255,
            255,
            .42
        );

    font-size:
        11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .contact-grid {

        grid-template-columns:
            1fr;

        gap:
            55px;

    }

    .contact-links-grid {

        grid-template-columns:
            1fr 1fr;

    }

    .contact-link-card:last-child {

        grid-column:
            1 / -1;

    }

    .contact-footer-grid {

        grid-template-columns:
            1fr 1fr;

    }

}


@media (max-width: 700px) {

    .contact-header {
        padding-top: 10px;
    }

    .contact-nav {

        width:
            calc(100% - 20px);

        min-height:
            66px;

        padding:
            0 16px;

    }

    .contact-nav-left,
    .contact-nav-right {

        gap:
            10px;

    }

    .contact-nav a,
    .contact-dropdown button {

        font-size:
            10px;

    }

    .contact-brand-text {

        display:
            none;

    }

    .contact-brand-mark {

        width:
            38px;

        height:
            38px;

    }

    .contact-hero {

        min-height:
            500px;

        padding:
            135px 20px 70px;

    }

    .contact-hero h1 {

        font-size:
            clamp(
                42px,
                11vw,
                58px
            );

        letter-spacing:
            -2.5px;

    }

    .contact-hero p {

        font-size:
            14px;

    }

    .contact-main {

        padding:
            75px 0;

    }

    .contact-form-card {

        padding:
            28px 20px;

    }

    .contact-form-row {

        grid-template-columns:
            1fr;

    }

    .contact-links {

        padding:
            65px 0;

    }

    .contact-links-grid {

        grid-template-columns:
            1fr;

    }

    .contact-link-card:last-child {

        grid-column:
            auto;

    }

    .contact-footer-grid {

        grid-template-columns:
            1fr;

        gap:
            30px;

    }

    .contact-container {

        width:
            calc(100% - 32px);

    }

}