/* =========================================================
   M-RESEARCH
   GLOBAL DESIGN SYSTEM
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");


:root {
    --mr-green-950: #0c1d12;
    --mr-green-900: #122919;
    --mr-green-800: #1a3521;
    --mr-green-700: #28462c;
    --mr-green-600: #3f5842;

    --mr-gold-700: #8a6a34;
    --mr-gold-600: #9a7a42;
    --mr-gold-500: #b28d4d;
    --mr-gold-400: #d0a753;

    --mr-white: #ffffff;
    --mr-ivory: #f6f5ef;

    --mr-border: rgba(18, 41, 25, 0.12);

    --mr-text: #18231b;
    --mr-text-muted: #667067;

    --mr-shadow:
        0 12px 35px rgba(12, 29, 18, 0.08);

    --mr-transition:
        220ms ease;

    --mr-container:
        1180px;

    --mr-radius:
        4px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mr-white);
    color: var(--mr-text);

    font-family:
        "Poppins",
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width:
        min(
            calc(100% - 40px),
            var(--mr-container)
        );

    margin-inline: auto;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 5000;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.98);

    border-top:
        2px solid var(--mr-gold-500);

    border-bottom:
        1px solid var(--mr-border);

    box-shadow:
        0 4px 18px rgba(12, 29, 18, 0.04);
}

.header-container {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 34px;
}


/* =========================================================
   SITE LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    line-height: 0;
}

.site-logo-image {
    width: 118px;
    height: 58px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-nav {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 0;

    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;

    min-height: 64px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 14px;

    border: 0;

    background: transparent;

    color: var(--mr-green-900);

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color var(--mr-transition);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 2px;

    background:
        var(--mr-gold-500);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform var(--mr-transition);
}

.nav-link:hover,
.nav-link.is-active {
    color:
        var(--mr-gold-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform:
        scaleX(1);
}


/* =========================================================
   SERVICES DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    appearance: none;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;

    transition:
        transform var(--mr-transition);
}

.dropdown-arrow path {
    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
    transform:
        rotate(180deg);
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    width: 320px;

    padding: 8px;

    background:
        var(--mr-white);

    border:
        1px solid var(--mr-border);

    box-shadow:
        var(--mr-shadow);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(8px);

    transition:
        opacity var(--mr-transition),
        visibility var(--mr-transition),
        transform var(--mr-transition);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 14px;

    color:
        var(--mr-text);

    border-left:
        2px solid transparent;

    transition:
        background var(--mr-transition),
        border-color var(--mr-transition),
        color var(--mr-transition);
}

.dropdown-item:hover,
.dropdown-item.is-active {
    background:
        var(--mr-ivory);

    border-left-color:
        var(--mr-gold-500);

    color:
        var(--mr-green-900);
}

.dropdown-overview {
    margin-bottom: 4px;

    background:
        var(--mr-green-900);

    color:
        var(--mr-white);
}

.dropdown-overview:hover {
    background:
        var(--mr-green-800);

    color:
        var(--mr-white);
}

.dropdown-item-number {
    width: 28px;

    flex-shrink: 0;

    padding-top: 2px;

    color:
        var(--mr-gold-500);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.dropdown-item-content strong {
    font-size: 13px;
    font-weight: 600;
}

.dropdown-item-content small {
    color:
        var(--mr-text-muted);

    font-size: 11px;

    line-height: 1.45;
}

.dropdown-overview small {
    color:
        rgba(255, 255, 255, 0.62);
}


/* =========================================================
   NAVIGATION CTA
   ========================================================= */

.nav-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 17px;

    background:
        var(--mr-green-900);

    color:
        var(--mr-white);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background var(--mr-transition),
        transform var(--mr-transition);
}

.nav-cta svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        var(--mr-gold-400);

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--mr-transition);
}

.nav-cta:hover {
    background:
        var(--mr-green-800);

    transform:
        translateY(-1px);
}

.nav-cta:hover svg {
    transform:
        translateX(3px);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border:
        1px solid var(--mr-border);

    border-radius:
        var(--mr-radius);

    background:
        var(--mr-white);

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.menu-toggle-line {
    display: block;

    width: 19px;
    height: 1.5px;

    background:
        var(--mr-green-900);

    transition:
        transform var(--mr-transition),
        opacity var(--mr-transition);
}


/* =========================================================
   MOBILE NAV HEADER
   ========================================================= */

.nav-mobile-header {
    display: none;
}

.nav-mobile-label {
    color:
        var(--mr-green-900);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform:
        uppercase;
}

.nav-close {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid var(--mr-border);

    background:
        var(--mr-white);

    cursor: pointer;
}

.nav-close span {
    position: absolute;

    width: 18px;
    height: 1.5px;

    background:
        var(--mr-green-900);
}

.nav-close span:first-child {
    transform:
        rotate(45deg);
}

.nav-close span:last-child {
    transform:
        rotate(-45deg);
}


/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
    position: relative;

    background:
        var(--mr-green-950);

    color:
        var(--mr-white);

    overflow:
        hidden;
}

.site-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--mr-gold-500),
            transparent
        );

    opacity: 0.7;
}

.site-footer::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -220px;

    border-radius: 50%;

    border:
        1px solid
        rgba(208, 167, 83, 0.08);

    pointer-events: none;
}


/* =========================================================
   FOOTER MAIN
   ========================================================= */

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.6fr)
        repeat(2, minmax(140px, 0.8fr))
        minmax(200px, 1fr);

    gap: 56px;

    padding:
        70px 0 60px;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand {
    max-width:
        390px;
}

.footer-logo {
    display: inline-flex;

    width: 210px;

    margin-bottom: 22px;
}

.footer-logo img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

.footer-description {
    max-width:
        360px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.64);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column {
    min-width: 0;
}

.footer-title {
    position: relative;

    margin:
        0 0 22px;

    padding-bottom:
        11px;

    color:
        var(--mr-white);

    font-size: 12px;
    font-weight: 600;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;
}

.footer-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 28px;
    height: 1px;

    background:
        var(--mr-gold-500);
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 10px;

    list-style: none;
}

.footer-links a {
    display: inline-block;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 13px;

    transition:
        color var(--mr-transition),
        transform var(--mr-transition);
}

.footer-links a:hover {
    color:
        var(--mr-gold-400);

    transform:
        translateX(3px);
}


/* =========================================================
   FOOTER CONNECT
   ========================================================= */

.footer-connect-text {
    margin:
        0 0 20px;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 13px;

    line-height: 1.7;
}

.footer-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding:
        0 17px;

    border:
        1px solid
        rgba(208, 167, 83, 0.45);

    color:
        var(--mr-white);

    font-size: 12px;
    font-weight: 600;

    transition:
        background var(--mr-transition),
        border-color var(--mr-transition),
        color var(--mr-transition);
}

.footer-cta svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        var(--mr-gold-400);

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--mr-transition);
}

.footer-cta:hover {
    background:
        var(--mr-gold-500);

    border-color:
        var(--mr-gold-500);

    color:
        var(--mr-green-950);
}

.footer-cta:hover svg {
    stroke:
        var(--mr-green-950);

    transform:
        translateX(3px);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    min-height: 70px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.footer-copyright {
    color:
        rgba(255, 255, 255, 0.42);

    font-size: 11px;
}

.footer-tagline {
    display: flex;

    align-items: center;

    gap: 10px;

    color:
        rgba(255, 255, 255, 0.46);

    font-size: 10px;
    font-weight: 500;

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;
}

.footer-tagline i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        var(--mr-gold-500);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .header-container {
        gap: 22px;
    }

    .site-logo-image {
        width: 105px;
    }

    .site-nav {
        gap: 14px;
    }

    .nav-link {
        padding-inline: 10px;
        font-size: 12px;
    }

    .nav-link::after {
        left: 10px;
        right: 10px;
    }

    .nav-cta {
        padding-inline: 13px;
        font-size: 10px;
    }

    .footer-main {
        grid-template-columns:
            1.5fr 1fr 1fr;

        gap: 44px;
    }

    .footer-connect {
        grid-column:
            1 / -1;

        padding-top:
            8px;
    }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width:
            calc(100% - 32px);
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-container {
    position: relative;
    min-height: 70px;

        justify-content:
            space-between;

        gap: 16px;
    }

    .site-logo-image {
        width: 98px;
        height: 52px;
    }

    .menu-toggle {
        display: flex;

        flex-shrink: 0;
    }


    /* -----------------------------------------------------
       MOBILE NAV PANEL
       ----------------------------------------------------- */

    .site-nav {
        position: fixed;

        top: 0;
        right: 0;
        bottom: 0;

        left: auto;

        width:
            min(88vw, 390px);

        height: 100dvh;

        overflow-y: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content:
            flex-start;

        gap: 0;

        padding:
            22px 20px 28px;

        background:
            var(--mr-white);

        border-left:
            1px solid var(--mr-border);

        box-shadow:
            -12px 0 35px
            rgba(12, 29, 18, 0.10);

        opacity: 0;
        visibility: hidden;

        transform:
            translateX(105%);

        transition:
            opacity 220ms ease,
            visibility 220ms ease,
            transform 280ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform:
            translateX(0);
    }


    /* -----------------------------------------------------
       MOBILE NAV HEADER
       ----------------------------------------------------- */

    .nav-mobile-header {
        display: flex;

        align-items: center;
        justify-content: space-between;

        padding-bottom:
            18px;

        border-bottom:
            1px solid var(--mr-border);
    }


    /* -----------------------------------------------------
       MOBILE MENU
       ----------------------------------------------------- */

    .nav-menu {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        margin-top:
            18px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;

        min-height:
            56px;

        justify-content:
            space-between;

        padding:
            0;

        border-bottom:
            1px solid var(--mr-border);

        font-size:
            15px;
    }

    .nav-link::after {
        left: 0;
        right: auto;

        width: 32px;

        bottom: -1px;

        transform-origin:
            left;
    }


    /* -----------------------------------------------------
       MOBILE SERVICES
       ----------------------------------------------------- */

    .dropdown-menu {
        position: static;

        width: 100%;

        padding:
            7px 0;

        border: 0;

        border-bottom:
            1px solid var(--mr-border);

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        display: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding:
            13px 6px 13px 14px;
    }

    .dropdown-item-content strong {
        font-size:
            12px;
    }

    .dropdown-item-content small {
        font-size:
            10px;
    }


    /* -----------------------------------------------------
       MOBILE CTA
       ----------------------------------------------------- */

    .nav-actions {
        width: 100%;

        margin-top:
            auto;

        padding-top:
            24px;
    }

    .nav-cta {
        width: 100%;

        min-height:
            50px;

        font-size:
            12px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-main {
        grid-template-columns:
            1fr;

        gap:
            40px;

        padding:
            58px 0 46px;
    }

    .footer-brand {
        max-width:
            100%;
    }

    .footer-description {
        max-width:
            500px;
    }

    .footer-connect {
        grid-column:
            auto;

        padding-top:
            0;
    }

    .footer-bottom {
        min-height:
            auto;

        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            12px;

        padding:
            20px 0 24px;
    }

    .footer-tagline {
        order:
            -1;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width:
            calc(100% - 28px);
    }

    .header-container {
        min-height:
            66px;
    }

    .site-logo-image {
        width:
            88px;

        height:
            48px;
    }

    .menu-toggle {
        width:
            42px;

        height:
            42px;
    }

    .site-nav {
        width:
            100%;

        padding:
            20px 18px 24px;
    }

    .dropdown-item-content strong {
        font-size:
            12px;
    }

    .dropdown-item-content small {
        font-size:
            10px;
    }

    .footer-main {
        gap:
            34px;

        padding:
            50px 0 38px;
    }

    .footer-logo {
        width:
            175px;
    }

    .footer-description {
        font-size:
            12px;
    }

    .footer-links {
        gap:
            9px;
    }

    .footer-links a {
        font-size:
            12px;
    }

    .footer-tagline {
        flex-wrap:
            wrap;

        font-size:
            9px;
    }
}



/* =========================================================
   COMPONENT PREVIEW
   ========================================================= */

.preview-section {
    min-height: 55vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 24px;

    text-align: center;
}

.preview-content {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.preview-eyebrow {
    margin: 0 0 14px;

    color: var(--mr-gold-600);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.preview-title {
    margin: 0;

    color: var(--mr-green-900);

    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;

    line-height: 1.12;
    letter-spacing: -0.025em;
}

.preview-description {
    max-width: 620px;

    margin: 20px auto 0;

    color: var(--mr-text-muted);

    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 600px) {

    .preview-section {
        min-height: 55vh;
        padding: 80px 20px;
    }

    .preview-title {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.15;
    }

    .preview-description {
        font-size: 14px;
    }
}




/* =========================================================
   MOBILE SERVICES DROPDOWN
   ========================================================= */

@media (max-width: 800px) {

    .nav-dropdown.is-open .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .nav-dropdown.is-open .dropdown-arrow {
        transform: rotate(180deg);
    }

}

/* =========================================================
   MOBILE HEADER — FINAL LAYERING FIX
   ========================================================= */

@media (max-width: 800px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 5000;
    }

    .header-container {
        position: relative;
        z-index: 5001;
    }

    .menu-toggle {
        position: relative;
        z-index: 7000;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        width: 44px;
        height: 44px;

        padding: 0;

        border: 1px solid var(--mr-border);
        background: var(--mr-white);

        cursor: pointer;
    }

    .menu-toggle-line {
        display: block;

        width: 19px;
        height: 2px;

        background: var(--mr-green-900);
    }

    .site-nav {
        z-index: 6000;
    }
}




@media (max-width: 800px) {

    .menu-toggle {
        position: absolute;
        top: 50%;
        right: 16px;

        display: flex !important;

        width: 44px;
        height: 44px;

        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;

        padding: 0;

        border: 1px solid var(--mr-border);
        background: var(--mr-white);

        transform: translateY(-50%);

        z-index: 9999;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-toggle-line {
        display: block !important;

        width: 19px;
        height: 2px;

        background: var(--mr-green-900);

        opacity: 1 !important;
        visibility: visible !important;
    }
}