/* =========================================================
   M-RESEARCH
   HOMEPAGE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        url("https://i.pinimg.com/1200x/b3/be/3a/b3be3a3d7253c5e0d796574cae5a3391.jpg")
        center center / cover
        no-repeat;

    color: var(--mr-white);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 29, 18, 0.94) 0%,
            rgba(12, 29, 18, 0.78) 45%,
            rgba(12, 29, 18, 0.38) 100%
        );
}

.home-hero-container {
    position: relative;
    z-index: 1;
}

.home-hero-content {
    width: min(680px, 100%);
    padding: 85px 0;
}

.home-eyebrow,
.home-section-label {
    margin: 0 0 18px;

    color: var(--mr-gold-400);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-hero-title {
    max-width: 720px;

    margin: 0;

    color: var(--mr-white);

    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 600;

    line-height: 1.06;
    letter-spacing: -0.035em;
}

.home-hero-title span {
    color: var(--mr-gold-400);
}

.home-hero-text {
    max-width: 570px;

    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 15px;
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 32px;
}

.home-primary-btn,
.home-secondary-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 20px;

    font-size: 12px;
    font-weight: 600;

    transition:
        background var(--mr-transition),
        border-color var(--mr-transition),
        color var(--mr-transition),
        transform var(--mr-transition);
}

.home-primary-btn {
    background: var(--mr-gold-500);
    color: var(--mr-green-950);
}

.home-primary-btn:hover {
    background: var(--mr-gold-400);
    transform: translateY(-2px);
}

.home-primary-btn svg,
.home-secondary-btn svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);

    color: var(--mr-white);
}

.home-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.65);

    transform: translateY(-2px);
}


/* =========================================================
   ABOUT
   ========================================================= */

.home-about {
    background: var(--mr-white);
}

.home-about-container {
    min-height: 500px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    align-items: center;

    gap: 100px;

    padding-top: 90px;
    padding-bottom: 90px;
}

.home-about-content {
    max-width: 650px;
}

.home-section-label {
    margin-bottom: 16px;

    color: var(--mr-gold-700);
}

.home-about-title {
    max-width: 620px;

    margin: 0;

    color: var(--mr-green-900);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;

    line-height: 1.12;
    letter-spacing: -0.025em;
}

.home-about-text {
    max-width: 600px;

    margin: 22px 0 0;

    color: var(--mr-text-muted);

    font-size: 14px;
    line-height: 1.85;
}

.home-text-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-top: 28px;

    color: var(--mr-green-900);

    font-size: 12px;
    font-weight: 600;
}

.home-text-link svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: var(--mr-gold-500);

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--mr-transition);
}

.home-text-link:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   ABOUT LOGO
   ========================================================= */

.home-about-visual {
    display: flex;

    align-items: center;
    justify-content: center;
}

.home-about-logo {
    display: block;

    width: min(430px, 100%);
    height: auto;

    object-fit: contain;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-hero {
        min-height: 500px;
    }

    .home-hero-content {
        padding: 72px 0;
    }

    .home-hero-title {
        font-size:
            clamp(42px, 7vw, 62px);
    }

    .home-about-container {
        grid-template-columns: 1fr;

        gap: 55px;

        padding-top: 75px;
        padding-bottom: 75px;
    }

    .home-about-content {
        max-width: 700px;
    }

    .home-about-visual {
        justify-content: flex-start;
    }

    .home-about-logo {
        width: min(390px, 100%);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .home-hero {
        min-height: 480px;

        background-position:
            center center;
    }

    .home-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(12, 29, 18, 0.92),
                rgba(12, 29, 18, 0.65)
            );
    }

    .home-hero-container {
        width:
            calc(100% - 32px);
    }

    .home-hero-content {
        padding: 64px 0;
    }

    .home-eyebrow {
        margin-bottom: 14px;
    }

    .home-hero-title {
        font-size:
            clamp(38px, 10vw, 52px);

        line-height: 1.08;
    }

    .home-hero-text {
        margin-top: 20px;

        font-size: 14px;
        line-height: 1.75;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;

        margin-top: 28px;
    }

    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
    }

    .home-about-container {
        width:
            calc(100% - 32px);

        gap: 42px;

        padding-top: 65px;
        padding-bottom: 65px;
    }

    .home-about-title {
        font-size:
            clamp(31px, 8.5vw, 42px);
    }

    .home-about-text {
        margin-top: 18px;

        font-size: 13px;
        line-height: 1.8;
    }

    .home-about-visual {
        justify-content: center;
    }

    .home-about-logo {
        width: 100%;
        max-width: 360px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .home-hero {
        min-height: 450px;
    }

    .home-hero-content {
        padding: 56px 0;
    }

    .home-hero-title {
        font-size: 36px;
    }

    .home-about-title {
        font-size: 31px;
    }
}





/* =========================================================
   SERVICES
   ========================================================= */

.home-services {
    padding: 100px 0;
    background: var(--mr-ivory);
}

.home-services-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 80px;
}

.home-section-title {
    max-width: 680px;
    margin: 0;
    color: var(--mr-green-900);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.home-section-title span {
    color: var(--mr-gold-700);
}

.home-services-intro {
    max-width: 480px;
    margin: 0 0 4px;
    color: var(--mr-text-muted);
    font-size: 14px;
    line-height: 1.85;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 65px;
    background: var(--mr-border);
    border: 1px solid var(--mr-border);
}

.home-service-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    background: var(--mr-white);
    transition:
        background var(--mr-transition),
        transform var(--mr-transition);
}

.home-service-card:hover {
    background: var(--mr-green-900);
    transform: translateY(-4px);
}

.home-service-number {
    color: var(--mr-gold-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.home-service-content {
    margin-top: auto;
}

.home-service-content h3 {
    margin: 0;
    color: var(--mr-green-900);
    font-size: 22px;
    font-weight: 600;
}

.home-service-content p {
    max-width: 320px;
    margin: 15px 0 0;
    color: var(--mr-text-muted);
    font-size: 13px;
    line-height: 1.75;
}

.home-service-card:hover h3 {
    color: var(--mr-white);
}

.home-service-card:hover p {
    color: rgba(255, 255, 255, 0.65);
}

.home-service-arrow {
    position: absolute;
    right: 30px;
    top: 32px;
    color: var(--mr-gold-500);
    font-size: 22px;
    transition:
        transform var(--mr-transition);
}

.home-service-card:hover .home-service-arrow {
    transform: translateX(5px);
}

.home-services-footer {
    margin-top: 28px;
}


/* =========================================================
   APPROACH
   ========================================================= */

.home-approach {
    padding: 105px 0;
    background: var(--mr-green-950);
    color: var(--mr-white);
}

.home-approach-container {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 100px;
}

.home-approach-heading .home-section-label {
    color: var(--mr-gold-400);
}

.home-approach-heading h2 {
    max-width: 440px;
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.home-approach-heading h2 span {
    color: var(--mr-gold-400);
}

.home-approach-content > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.85;
}

.home-approach-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-approach-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 15px;
    padding: 25px 20px 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-approach-step:nth-child(even) {
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.home-approach-step span {
    color: var(--mr-gold-500);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.home-approach-step strong {
    color: var(--mr-white);
    font-size: 14px;
    font-weight: 600;
}

.home-approach-step small {
    grid-column: 2;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   CLIENTS
   ========================================================= */

.home-clients {
    padding: 95px 0 100px;
    background: var(--mr-white);
    overflow: hidden;
}

.home-clients-heading {
    text-align: center;
}

.home-clients-heading .home-section-label {
    margin-bottom: 14px;
}

.home-clients-heading h2 {
    max-width: 650px;
    margin: 0 auto;
    color: var(--mr-green-900);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.home-clients-heading h2 span {
    color: var(--mr-gold-700);
}


/* =========================================================
   CLIENT MARQUEE
   ========================================================= */

.home-client-marquee {
    width: 100%;
    margin-top: 65px;
    overflow: hidden;
    border-top: 1px solid var(--mr-border);
    border-bottom: 1px solid var(--mr-border);
}

.home-client-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 75px;
    padding: 28px 0;
    animation: homeClientScroll 32s linear infinite;
}

.home-client-marquee:hover .home-client-track {
    animation-play-state: paused;
}

.home-client-logo {
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-client-logo img {
    max-width: 135px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.52;
    transition:
        filter var(--mr-transition),
        opacity var(--mr-transition),
        transform var(--mr-transition);
}

.home-client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes homeClientScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(
            calc(-50% - 37.5px)
        );
    }
}


/* =========================================================
   SERVICES / APPROACH / CLIENTS TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-services {
        padding: 80px 0;
    }

    .home-services-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
    }

    .home-service-card {
        min-height: 260px;
    }

    .home-approach {
        padding: 80px 0;
    }

    .home-approach-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .home-clients {
        padding: 75px 0 80px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .home-services {
        padding: 65px 0;
    }

    .home-services .container,
    .home-approach .container {
        width: calc(100% - 32px);
    }

    .home-section-title {
        font-size: 34px;
    }

    .home-services-intro {
        font-size: 13px;
    }

    .home-service-card {
        min-height: 235px;
        padding: 28px;
    }

    .home-service-content h3 {
        font-size: 20px;
    }

    .home-approach {
        padding: 65px 0;
    }

    .home-approach-heading h2 {
        font-size: 36px;
    }

    .home-approach-steps {
        grid-template-columns: 1fr;
    }

    .home-approach-step:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .home-clients {
        padding: 65px 0 70px;
    }

    .home-clients-heading h2 {
        padding-inline: 16px;
        font-size: 32px;
    }

    .home-client-marquee {
        margin-top: 45px;
    }

    .home-client-track {
        gap: 45px;
        padding: 23px 0;
        animation-duration: 26s;
    }

    .home-client-logo {
        width: 125px;
        height: 60px;
    }

    .home-client-logo img {
        max-width: 115px;
        max-height: 45px;
    }
}








/* =========================================================
   FINAL CTA
   ========================================================= */

.home-cta {
    padding: 95px 0;
    background: var(--mr-ivory);
}

.home-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    align-items: center;
    gap: 80px;
    padding: 70px 75px;
    background: var(--mr-green-900);
    overflow: hidden;
}

.home-cta-inner::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -180px;
    bottom: -220px;
    border: 1px solid rgba(208, 167, 83, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.home-cta-content {
    position: relative;
    z-index: 1;
}

.home-cta-content .home-section-label {
    margin-bottom: 15px;
    color: var(--mr-gold-400);
}

.home-cta-content h2 {
    max-width: 680px;
    margin: 0;
    color: var(--mr-white);
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-cta-content h2 span {
    color: var(--mr-gold-400);
}

.home-cta-content > p:last-child {
    max-width: 580px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.8;
}

.home-cta-action {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.home-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 25px;
    background: var(--mr-gold-500);
    color: var(--mr-green-950);
    font-size: 12px;
    font-weight: 600;
    transition:
        background var(--mr-transition),
        transform var(--mr-transition);
}

.home-cta-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--mr-transition);
}

.home-cta-button:hover {
    background: var(--mr-gold-400);
    transform: translateY(-2px);
}

.home-cta-button:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   CTA RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .home-cta {
        padding: 75px 0;
    }

    .home-cta-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 45px;
    }

    .home-cta-action {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {

    .home-cta {
        padding: 55px 0;
    }

    .home-cta .container {
        width: calc(100% - 32px);
    }

    .home-cta-inner {
        padding: 45px 28px;
    }

    .home-cta-content h2 {
        font-size: 36px;
    }

    .home-cta-content > p:last-child {
        font-size: 13px;
    }

    .home-cta-button {
        width: 100%;
    }
}