/*
|--------------------------------------------------------------------------
| MKTECHSUPPORT Core - Public Homepage
|--------------------------------------------------------------------------
|
| Homepage-specific styling.
|
| Global application styling belongs in:
|
|     assets/css/public.css
|
| This file contains:
|
|     - homepage shell
|     - hero
|     - homepage section foundations
|     - responsive homepage behaviour
|
*/

/*
|--------------------------------------------------------------------------
| Homepage
|--------------------------------------------------------------------------
*/

.mk-home {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.mk-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(620px, 82vh, 820px);
    padding: clamp(72px, 9vw, 120px) 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(21, 101, 192, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 8% 80%,
            rgba(21, 101, 192, 0.06),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faff 100%
        );
}

.mk-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -180px;
    right: -160px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.mk-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 8%;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(21, 101, 192, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Hero Layout
|--------------------------------------------------------------------------
*/

.mk-hero__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(380px, 0.98fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

/*
|--------------------------------------------------------------------------
| Hero Content
|--------------------------------------------------------------------------
*/

.mk-hero__content {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 720px;
}

/*
|--------------------------------------------------------------------------
| Hero Eyebrow
|--------------------------------------------------------------------------
*/

.mk-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin: 0 0 22px;
    padding: 8px 13px;
    border: 1px solid rgba(21, 101, 192, 0.14);
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.07);
    color: #0d4f9c;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.mk-hero__eyebrow-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #1565c0;
}

.mk-hero__eyebrow-icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Hero Title
|--------------------------------------------------------------------------
*/

.mk-hero__title {
    max-width: 760px;
    margin: 0;
    color: #111827;
    font-size: clamp(2.55rem, 5vw, 4.85rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

/*
|--------------------------------------------------------------------------
| Hero Description
|--------------------------------------------------------------------------
*/

.mk-hero__description {
    max-width: 650px;
    margin: 26px 0 0;
    color: #4b5563;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    font-weight: 400;
    line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| Hero Actions
|--------------------------------------------------------------------------
*/

.mk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.mk-hero__actions .mk-button {
    min-height: 50px;
}

.mk-hero__primary-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mk-hero__primary-action svg {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.mk-hero__primary-action:hover svg {
    transform: translateX(3px);
}

/*
|--------------------------------------------------------------------------
| Hero Quick Links
|--------------------------------------------------------------------------
*/

.mk-hero__quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-top: 28px;
}

.mk-hero__quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.mk-hero__quick-link:hover {
    color: #1565c0;
}

.mk-hero__quick-link:active {
    transform: translateY(1px);
}

.mk-hero__quick-link:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(21, 101, 192, 0.24);
    outline-offset: 4px;
}

.mk-hero__quick-link-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #1565c0;
}

.mk-hero__quick-link-icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Hero Visual
|--------------------------------------------------------------------------
*/

.mk-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Device Scene
|--------------------------------------------------------------------------
*/

.mk-hero-device {
    position: relative;
    width: min(100%, 570px);
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-hero-device::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(21, 101, 192, 0.14) 0%,
            rgba(21, 101, 192, 0.06) 42%,
            transparent 70%
        );
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Monitor
|--------------------------------------------------------------------------
*/

.mk-hero-device__monitor {
    position: relative;
    z-index: 2;
    width: min(100%, 470px);
}

.mk-hero-device__screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 9px solid #172033;
    border-radius: 19px;
    background: #ffffff;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.16),
        0 10px 25px rgba(15, 23, 42, 0.08);
}

.mk-hero-device__screen-top {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.mk-hero-device__screen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mk-hero-device__brand {
    padding: 18px 20px 10px;
    color: #1565c0;
    font-size: clamp(0.72rem, 1.3vw, 0.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

.mk-hero-device__screen-content {
    padding: 8px 20px 24px;
}

.mk-hero-device__line {
    display: block;
    width: 72%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e5e7eb;
}

.mk-hero-device__line--large {
    width: 84%;
    height: 17px;
    margin-top: 0;
    background: #dbeafe;
}

.mk-hero-device__line--short {
    width: 48%;
}

.mk-hero-device__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.mk-hero-device__card {
    display: block;
    min-height: 72px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f8fd
        );
}

.mk-hero-device__card:first-child {
    border-color: rgba(21, 101, 192, 0.18);
    background:
        linear-gradient(
            145deg,
            rgba(21, 101, 192, 0.09),
            rgba(21, 101, 192, 0.025)
        );
}

/*
|--------------------------------------------------------------------------
| Monitor Stand
|--------------------------------------------------------------------------
*/

.mk-hero-device__stand {
    width: 74px;
    height: 54px;
    margin: 0 auto;
    background:
        linear-gradient(
            90deg,
            #d9dee7,
            #f1f5f9,
            #d9dee7
        );
    clip-path: polygon(
        30% 0,
        70% 0,
        82% 100%,
        18% 100%
    );
}

.mk-hero-device__base {
    width: 150px;
    height: 12px;
    margin: -1px auto 0;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.09);
}

/*
|--------------------------------------------------------------------------
| Floating Status Card
|--------------------------------------------------------------------------
*/

.mk-hero-status-card {
    position: absolute;
    z-index: 4;
    top: 55px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 200px;
    padding: 13px 15px;
    border: 1px solid rgba(21, 101, 192, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.05);
}

.mk-hero-status-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.mk-hero-status-card__icon svg {
    display: block;
}

.mk-hero-status-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.mk-hero-status-card__content strong {
    color: #172033;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.3;
}

.mk-hero-status-card__content small {
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.3;
}

/*
|--------------------------------------------------------------------------
| Floating Repair Card
|--------------------------------------------------------------------------
*/

.mk-hero-repair-card {
    position: absolute;
    z-index: 4;
    bottom: 68px;
    left: -12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid rgba(21, 101, 192, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.05);
    color: #172033;
    font-size: 0.84rem;
    font-weight: 750;
}

.mk-hero-repair-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
}

.mk-hero-repair-card__icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Homepage Section Foundation
|--------------------------------------------------------------------------
|
| The next homepage partials will use these shared classes.
|
*/

.mk-home-section {
    position: relative;
    padding: clamp(68px, 8vw, 104px) 0;
}

.mk-home-section--muted {
    background: #f8fafc;
}

.mk-home-section--soft-blue {
    background:
        linear-gradient(
            180deg,
            rgba(21, 101, 192, 0.045),
            rgba(21, 101, 192, 0.015)
        );
}

/*
|--------------------------------------------------------------------------
| Section Header
|--------------------------------------------------------------------------
*/

.mk-section-header {
    max-width: 720px;
    margin-bottom: 38px;
}

.mk-section-header--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.mk-section-header__eyebrow {
    margin: 0 0 10px;
    color: #1565c0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mk-section-header__title {
    margin: 0;
    color: #111827;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.mk-section-header__description {
    margin: 15px 0 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Generic Homepage Grid
|--------------------------------------------------------------------------
*/

.mk-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/*
|--------------------------------------------------------------------------
| Generic Homepage Card
|--------------------------------------------------------------------------
*/

.mk-home-card {
    position: relative;
    min-width: 0;
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
}

/*
|--------------------------------------------------------------------------
| Large Desktop
|--------------------------------------------------------------------------
*/

@media (min-width: 1280px) {

    .mk-hero__layout {
        gap: 100px;
    }

    .mk-hero-status-card {
        right: -25px;
    }

    .mk-hero-repair-card {
        left: -25px;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet / Small Desktop
|--------------------------------------------------------------------------
*/

@media (max-width: 1050px) {

    .mk-hero {
        min-height: auto;
    }

    .mk-hero__layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(330px, 0.82fr);
        gap: 42px;
    }

    .mk-hero-device {
        min-height: 400px;
    }

    .mk-hero-status-card {
        right: 0;
        min-width: 180px;
    }

    .mk-hero-repair-card {
        left: 0;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile / Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {

    .mk-hero {
        padding:
            clamp(54px, 10vw, 76px)
            0
            clamp(64px, 11vw, 86px);
    }

    .mk-hero__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
    }

    .mk-hero__content {
        max-width: 760px;
    }

    .mk-hero__visual {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .mk-hero-device {
        min-height: 430px;
    }

    .mk-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-hero {
        padding-top: 44px;
    }

    .mk-hero::before {
        top: -140px;
        right: -260px;
    }

    .mk-hero__eyebrow {
        margin-bottom: 18px;
        padding: 7px 11px;
        font-size: 0.69rem;
    }

    .mk-hero__title {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
        line-height: 1.04;
    }

    .mk-hero__description {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .mk-hero__actions {
        align-items: stretch;
        margin-top: 28px;
    }

    .mk-hero__actions .mk-button {
        justify-content: center;
        width: 100%;
    }

    .mk-hero__quick-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-top: 24px;
    }

    .mk-hero-device {
        min-height: 330px;
    }

    .mk-hero-device__monitor {
        width: 88%;
    }

    .mk-hero-device__screen {
        border-width: 7px;
        border-radius: 14px;
    }

    .mk-hero-device__screen-top {
        height: 25px;
    }

    .mk-hero-device__brand {
        padding: 13px 14px 7px;
    }

    .mk-hero-device__screen-content {
        padding: 6px 14px 17px;
    }

    .mk-hero-device__line {
        height: 6px;
        margin-top: 7px;
    }

    .mk-hero-device__line--large {
        height: 12px;
    }

    .mk-hero-device__cards {
        gap: 6px;
        margin-top: 15px;
    }

    .mk-hero-device__card {
        min-height: 48px;
        border-radius: 7px;
    }

    .mk-hero-device__stand {
        width: 56px;
        height: 40px;
    }

    .mk-hero-device__base {
        width: 110px;
        height: 9px;
    }

    .mk-hero-status-card {
        top: 30px;
        right: 0;
        min-width: 0;
        padding: 9px 11px;
    }

    .mk-hero-status-card__icon {
        width: 32px;
        height: 32px;
    }

    .mk-hero-status-card__content strong {
        font-size: 0.76rem;
    }

    .mk-hero-status-card__content small {
        display: none;
    }

    .mk-hero-repair-card {
        bottom: 46px;
        left: 0;
        padding: 9px 11px;
        font-size: 0.75rem;
    }

    .mk-home-section {
        padding: 60px 0;
    }

    .mk-section-header {
        margin-bottom: 28px;
    }

    .mk-home-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .mk-home-card {
        padding: 22px;
    }
}

/*
|--------------------------------------------------------------------------
| Very Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 390px) {

    .mk-hero-device {
        min-height: 290px;
    }

    .mk-hero-status-card {
        top: 20px;
    }

    .mk-hero-repair-card {
        bottom: 32px;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-hero__primary-action svg,
    .mk-hero__quick-link {
        transition: none;
    }

    .mk-hero__primary-action:hover svg {
        transform: none;
    }

    .mk-hero__quick-link:active {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-hero {
        min-height: 0;
        padding: 30px 0;
        background: #ffffff;
    }

    .mk-hero::before,
    .mk-hero::after,
    .mk-hero__visual {
        display: none !important;
    }

    .mk-hero__layout {
        display: block;
    }

    .mk-hero__actions,
    .mk-hero__quick-links {
        display: none;
    }

    .mk-home-section {
        padding: 30px 0;
    }

    .mk-home-card {
        box-shadow: none;
    }
}
/*
|--------------------------------------------------------------------------
| Homepage Services
|--------------------------------------------------------------------------
*/

.mk-home-services {
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Services Grid
|--------------------------------------------------------------------------
*/

.mk-services-grid {
    align-items: stretch;
}

/*
|--------------------------------------------------------------------------
| Service Card
|--------------------------------------------------------------------------
*/

.mk-service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mk-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04);
}

/*
|--------------------------------------------------------------------------
| Service Icon
|--------------------------------------------------------------------------
*/

.mk-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 14px;
    background: rgba(21, 101, 192, 0.075);
    color: #1565c0;
}

.mk-service-card__icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Service Content
|--------------------------------------------------------------------------
*/

.mk-service-card__content {
    flex: 1 1 auto;
}

.mk-service-card__title {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.mk-service-card__description {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Service Card Footer
|--------------------------------------------------------------------------
*/

.mk-service-card__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.mk-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-service-card__link svg {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.mk-service-card__link:hover {
    color: #0d4f9c;
}

.mk-service-card__link:hover svg {
    transform: translateX(3px);
}

.mk-service-card__link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Services Footer
|--------------------------------------------------------------------------
*/

.mk-home-services__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-top: 34px;
}

.mk-home-services__footer .mk-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mk-home-services__footer .mk-button svg {
    display: block;
    flex: 0 0 auto;
}

.mk-home-services__contact {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
    text-decoration: none;
}

.mk-home-services__contact strong {
    color: #1565c0;
    font-weight: 750;
}

.mk-home-services__contact:hover strong {
    color: #0d4f9c;
    text-decoration: underline;
}

.mk-home-services__contact:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Services - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-service-card {
        padding: 22px;
    }

    .mk-service-card:hover {
        transform: none;
    }

    .mk-service-card__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 18px;
    }

    .mk-service-card__footer {
        margin-top: 20px;
        padding-top: 17px;
    }

    .mk-home-services__footer {
        align-items: stretch;
        flex-direction: column;
        margin-top: 28px;
    }

    .mk-home-services__footer .mk-button {
        justify-content: center;
        width: 100%;
    }

    .mk-home-services__contact {
        text-align: center;
    }
}

/*
|--------------------------------------------------------------------------
| Services - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-service-card,
    .mk-service-card__link svg {
        transition: none;
    }

    .mk-service-card:hover {
        transform: none;
    }

    .mk-service-card__link:hover svg {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Services - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-service-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .mk-service-card:hover {
        transform: none;
    }

    .mk-home-services__footer {
        display: none;
    }
}
/*
|--------------------------------------------------------------------------
| Homepage Repairs
|--------------------------------------------------------------------------
*/

.mk-home-repairs {
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Repairs Layout
|--------------------------------------------------------------------------
*/

.mk-home-repairs__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 92px);
}

.mk-home-repairs__content {
    min-width: 0;
}

.mk-home-repairs__content .mk-section-header {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Repair Actions
|--------------------------------------------------------------------------
*/

.mk-home-repairs__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.mk-home-repairs__actions .mk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
}

.mk-home-repairs__button-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.mk-home-repairs__button-icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Learn More
|--------------------------------------------------------------------------
*/

.mk-home-repairs__learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-home-repairs__learn-more svg {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.mk-home-repairs__learn-more:hover {
    color: #0d4f9c;
}

.mk-home-repairs__learn-more:hover svg {
    transform: translateX(3px);
}

.mk-home-repairs__learn-more:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Repair Journey
|--------------------------------------------------------------------------
*/

.mk-home-repairs__journey {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.07),
        0 6px 18px rgba(15, 23, 42, 0.035);
}

/*
|--------------------------------------------------------------------------
| Repair Step
|--------------------------------------------------------------------------
*/

.mk-repair-step {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

/*
|--------------------------------------------------------------------------
| Repair Marker
|--------------------------------------------------------------------------
*/

.mk-repair-step__marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
}

.mk-repair-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(21, 101, 192, 0.14);
    border-radius: 15px;
    background: #ffffff;
    color: #1565c0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.mk-repair-step__icon svg {
    display: block;
}

.mk-repair-step__number {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #1565c0;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

/*
|--------------------------------------------------------------------------
| Repair Step Content
|--------------------------------------------------------------------------
*/

.mk-repair-step__content {
    min-width: 0;
    padding-top: 5px;
}

.mk-repair-step__title {
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
}

.mk-repair-step__description {
    max-width: 520px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.91rem;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Repair Journey Connector
|--------------------------------------------------------------------------
*/

.mk-repair-step__connector {
    position: relative;
    z-index: 1;
    width: 2px;
    height: 34px;
    margin: 5px 0 5px 30px;
    background:
        linear-gradient(
            180deg,
            rgba(21, 101, 192, 0.28),
            rgba(21, 101, 192, 0.08)
        );
}

/*
|--------------------------------------------------------------------------
| Repairs - Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .mk-home-repairs__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .mk-home-repairs__content {
        max-width: 720px;
    }

    .mk-home-repairs__journey {
        max-width: 720px;
    }
}

/*
|--------------------------------------------------------------------------
| Repairs - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-home-repairs__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .mk-home-repairs__actions .mk-button {
        width: 100%;
    }

    .mk-home-repairs__learn-more {
        margin-top: 21px;
    }

    .mk-home-repairs__journey {
        padding: 22px 18px;
        border-radius: 17px;
    }

    .mk-repair-step {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
    }

    .mk-repair-step__marker {
        width: 52px;
        height: 52px;
    }

    .mk-repair-step__icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .mk-repair-step__icon svg {
        width: 21px;
        height: 21px;
    }

    .mk-repair-step__number {
        top: -5px;
        right: -5px;
        min-width: 21px;
        height: 21px;
        font-size: 0.58rem;
    }

    .mk-repair-step__content {
        padding-top: 2px;
    }

    .mk-repair-step__title {
        font-size: 1rem;
    }

    .mk-repair-step__description {
        margin-top: 6px;
        font-size: 0.87rem;
    }

    .mk-repair-step__connector {
        height: 28px;
        margin-left: 25px;
    }
}

/*
|--------------------------------------------------------------------------
| Repairs - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-home-repairs__learn-more svg {
        transition: none;
    }

    .mk-home-repairs__learn-more:hover svg {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Repairs - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-home-repairs__layout {
        display: block;
    }

    .mk-home-repairs__actions,
    .mk-home-repairs__learn-more {
        display: none;
    }

    .mk-home-repairs__journey {
        margin-top: 25px;
        border: 1px solid #d1d5db;
        box-shadow: none;
    }
}

/*
|--------------------------------------------------------------------------
| Homepage - Why MKTECHSUPPORT
|--------------------------------------------------------------------------
*/

.mk-home-why {
    position: relative;
    background: #ffffff;
}

.mk-home-why__layout {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.78fr)
        minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

/*
|--------------------------------------------------------------------------
| Why Introduction
|--------------------------------------------------------------------------
*/

.mk-home-why__intro {
    min-width: 0;
}

.mk-home-why__intro .mk-section-header {
    margin-bottom: 0;
}

.mk-home-why__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
}

.mk-home-why__actions .mk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.mk-home-why__actions .mk-button svg {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.mk-home-why__actions .mk-button:hover svg {
    transform: translateX(3px);
}

/*
|--------------------------------------------------------------------------
| Support Link
|--------------------------------------------------------------------------
*/

.mk-home-why__support-link {
    color: #1565c0;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-home-why__support-link:hover {
    color: #0d4f9c;
    text-decoration: underline;
}

.mk-home-why__support-link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Benefit Grid
|--------------------------------------------------------------------------
*/

.mk-home-why__benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/*
|--------------------------------------------------------------------------
| Benefit Card
|--------------------------------------------------------------------------
*/

.mk-home-why-card {
    position: relative;
    min-width: 0;
    padding: 25px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mk-home-why-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(21, 101, 192, 0.035);
    pointer-events: none;
}

.mk-home-why-card:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 101, 192, 0.18);
    box-shadow:
        0 16px 38px rgba(15, 23, 42, 0.07),
        0 4px 10px rgba(15, 23, 42, 0.035);
}

/*
|--------------------------------------------------------------------------
| Benefit Icon
|--------------------------------------------------------------------------
*/

.mk-home-why-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 14px;
    background: rgba(21, 101, 192, 0.075);
    color: #1565c0;
}

.mk-home-why-card__icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Benefit Content
|--------------------------------------------------------------------------
*/

.mk-home-why-card__content {
    position: relative;
    z-index: 1;
}

.mk-home-why-card__title {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.35;
}

.mk-home-why-card__description {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Why Us - Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {

    .mk-home-why__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .mk-home-why__intro {
        max-width: 720px;
    }

    .mk-home-why__benefits {
        max-width: 820px;
    }
}

/*
|--------------------------------------------------------------------------
| Why Us - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-home-why__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .mk-home-why__actions .mk-button {
        width: 100%;
    }

    .mk-home-why__support-link {
        align-self: center;
    }

    .mk-home-why__benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .mk-home-why-card {
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: start;
        gap: 15px;
        padding: 20px;
    }

    .mk-home-why-card:hover {
        transform: none;
    }

    .mk-home-why-card__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .mk-home-why-card__content {
        padding-top: 2px;
    }

    .mk-home-why-card__description {
        margin-top: 6px;
    }
}

/*
|--------------------------------------------------------------------------
| Why Us - Very Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .mk-home-why-card {
        display: block;
    }

    .mk-home-why-card__icon {
        margin-bottom: 15px;
    }
}

/*
|--------------------------------------------------------------------------
| Why Us - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-home-why-card,
    .mk-home-why__actions .mk-button svg {
        transition: none;
    }

    .mk-home-why-card:hover {
        transform: none;
    }

    .mk-home-why__actions .mk-button:hover svg {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Why Us - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-home-why__layout {
        display: block;
    }

    .mk-home-why__actions {
        display: none;
    }

    .mk-home-why__benefits {
        margin-top: 25px;
    }

    .mk-home-why-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/*
|--------------------------------------------------------------------------
| Homepage Locations
|--------------------------------------------------------------------------
*/

.mk-home-locations {
    position: relative;
}

/*
|--------------------------------------------------------------------------
| Locations Main Panel
|--------------------------------------------------------------------------
*/

.mk-home-locations__panel {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(360px, 1.08fr);
    align-items: center;
    gap: clamp(44px, 7vw, 90px);
    padding: clamp(32px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 24px 65px rgba(15, 23, 42, 0.065),
        0 5px 16px rgba(15, 23, 42, 0.025);
}

.mk-home-locations__panel::before {
    content: "";
    position: absolute;
    top: -170px;
    right: -130px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(21, 101, 192, 0.08),
            transparent 68%
        );
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Locations Content
|--------------------------------------------------------------------------
*/

.mk-home-locations__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.mk-home-locations__content .mk-section-header {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Location Actions
|--------------------------------------------------------------------------
*/

.mk-home-locations__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
}

.mk-home-locations__actions .mk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
}

.mk-home-locations__button-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.mk-home-locations__button-icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Contact Link
|--------------------------------------------------------------------------
*/

.mk-home-locations__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-home-locations__contact-link svg {
    display: block;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.mk-home-locations__contact-link:hover {
    color: #0d4f9c;
}

.mk-home-locations__contact-link:hover svg {
    transform: translateX(3px);
}

.mk-home-locations__contact-link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Location Visual
|--------------------------------------------------------------------------
*/

.mk-home-locations__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.mk-location-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-height: 340px;
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Map Illustration
|--------------------------------------------------------------------------
*/

.mk-location-visual__map {
    position: absolute;
    inset: 15px 15px 45px;
    overflow: hidden;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(
            rgba(21, 101, 192, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(21, 101, 192, 0.035) 1px,
            transparent 1px
        ),
        #f7faff;
    background-size:
        34px 34px,
        34px 34px,
        auto;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

/*
|--------------------------------------------------------------------------
| Decorative Roads
|--------------------------------------------------------------------------
*/

.mk-location-visual__road {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(203, 213, 225, 0.65);
}

.mk-location-visual__road--one {
    top: 34%;
    left: -8%;
    width: 116%;
    height: 17px;
    transform: rotate(-13deg);
}

.mk-location-visual__road--two {
    top: -8%;
    left: 48%;
    width: 16px;
    height: 116%;
    transform: rotate(18deg);
}

.mk-location-visual__road--three {
    right: -12%;
    bottom: 20%;
    width: 80%;
    height: 13px;
    transform: rotate(24deg);
}

.mk-location-visual__road--four {
    top: 8%;
    left: 17%;
    width: 12px;
    height: 90%;
    transform: rotate(-28deg);
}

/*
|--------------------------------------------------------------------------
| Map Pin
|--------------------------------------------------------------------------
*/

.mk-location-visual__pin {
    position: absolute;
    z-index: 4;
    top: 44%;
    left: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 7px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #1565c0;
    color: #ffffff;
    box-shadow:
        0 16px 35px rgba(21, 101, 192, 0.28),
        0 5px 12px rgba(15, 23, 42, 0.1);
    transform: translate(-50%, -50%);
}

.mk-location-visual__pin svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Location Floating Card
|--------------------------------------------------------------------------
*/

.mk-location-visual__card {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid rgba(21, 101, 192, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.11),
        0 4px 12px rgba(15, 23, 42, 0.04);
}

.mk-location-visual__card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(21, 101, 192, 0.09);
    color: #1565c0;
}

.mk-location-visual__card-icon svg {
    display: block;
}

.mk-location-visual__card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.mk-location-visual__card-content strong {
    color: #111827;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
}

.mk-location-visual__card-content small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

/*
|--------------------------------------------------------------------------
| Location Features
|--------------------------------------------------------------------------
*/

.mk-home-locations__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

/*
|--------------------------------------------------------------------------
| Location Feature
|--------------------------------------------------------------------------
*/

.mk-location-feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #ffffff;
}

.mk-location-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(21, 101, 192, 0.075);
    color: #1565c0;
}

.mk-location-feature__icon svg {
    display: block;
}

.mk-location-feature__content {
    min-width: 0;
}

.mk-location-feature__title {
    margin: 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.35;
}

.mk-location-feature__description {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Locations - Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .mk-home-locations__panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .mk-home-locations__content {
        max-width: 720px;
    }

    .mk-home-locations__visual {
        width: 100%;
        max-width: 620px;
    }

    .mk-home-locations__features {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
|--------------------------------------------------------------------------
| Locations - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-home-locations__panel {
        gap: 30px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .mk-home-locations__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 26px;
    }

    .mk-home-locations__actions .mk-button {
        width: 100%;
    }

    .mk-home-locations__contact-link {
        align-self: center;
    }

    .mk-location-visual {
        min-height: 285px;
    }

    .mk-location-visual__map {
        inset:
            10px
            5px
            42px;
        border-radius: 17px;
    }

    .mk-location-visual__pin {
        width: 52px;
        height: 52px;
        border-width: 6px;
    }

    .mk-location-visual__pin svg {
        width: 28px;
        height: 28px;
    }

    .mk-location-visual__card {
        right: 0;
        bottom: 5px;
        min-width: 200px;
        padding: 11px 13px;
    }

    .mk-home-locations__features {
        gap: 12px;
        margin-top: 16px;
    }

    .mk-location-feature {
        padding: 18px;
    }
}

/*
|--------------------------------------------------------------------------
| Locations - Very Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .mk-location-visual {
        min-height: 260px;
    }

    .mk-location-visual__card {
        right: 5px;
        left: 5px;
        min-width: 0;
    }

    .mk-location-feature {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }

    .mk-location-feature__icon {
        width: 44px;
        height: 44px;
    }
}

/*
|--------------------------------------------------------------------------
| Locations - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-home-locations__contact-link svg {
        transition: none;
    }

    .mk-home-locations__contact-link:hover svg {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Locations - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-home-locations__panel {
        display: block;
        border: 1px solid #d1d5db;
        box-shadow: none;
    }

    .mk-home-locations__visual,
    .mk-home-locations__actions {
        display: none;
    }

    .mk-home-locations__features {
        margin-top: 20px;
    }

    .mk-location-feature {
        break-inside: avoid;
    }
}
/*
|--------------------------------------------------------------------------
| Homepage Latest Posts
|--------------------------------------------------------------------------
*/

.mk-home-latest-posts {
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Latest Posts Header
|--------------------------------------------------------------------------
*/

.mk-home-latest-posts__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.mk-home-latest-posts__header .mk-section-header {
    margin-bottom: 0;
}

.mk-home-latest-posts__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-home-latest-posts__all svg {
    display: block;
    transition: transform 180ms ease;
}

.mk-home-latest-posts__all:hover {
    color: #0d4f9c;
}

.mk-home-latest-posts__all:hover svg {
    transform: translateX(3px);
}

.mk-home-latest-posts__all:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Posts Grid
|--------------------------------------------------------------------------
*/

.mk-latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/*
|--------------------------------------------------------------------------
| Post Card
|--------------------------------------------------------------------------
*/

.mk-latest-post-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mk-latest-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 101, 192, 0.18);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.075),
        0 4px 12px rgba(15, 23, 42, 0.035);
}

/*
|--------------------------------------------------------------------------
| Post Media
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__media {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            rgba(21, 101, 192, 0.11),
            rgba(21, 101, 192, 0.025)
        );
    color: rgba(21, 101, 192, 0.68);
}

.mk-latest-post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.mk-latest-post-card:hover
.mk-latest-post-card__media img {
    transform: scale(1.025);
}

/*
|--------------------------------------------------------------------------
| Post Body
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 23px;
}

/*
|--------------------------------------------------------------------------
| Post Metadata
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    margin-bottom: 12px;
}

.mk-latest-post-card__category {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(21, 101, 192, 0.075);
    color: #1565c0;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.2;
}

.mk-latest-post-card__date {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.3;
}

/*
|--------------------------------------------------------------------------
| Post Title
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__title {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.mk-latest-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.mk-latest-post-card__title a:hover {
    color: #1565c0;
}

.mk-latest-post-card__title a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Post Excerpt
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__excerpt {
    margin: 11px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Read Link
|--------------------------------------------------------------------------
*/

.mk-latest-post-card__link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 21px;
    color: #1565c0;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mk-latest-post-card__link svg {
    display: block;
    transition: transform 180ms ease;
}

.mk-latest-post-card__link:hover {
    color: #0d4f9c;
}

.mk-latest-post-card__link:hover svg {
    transform: translateX(3px);
}

.mk-latest-post-card__link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Empty Blog State
|--------------------------------------------------------------------------
*/

.mk-latest-posts-empty {
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 17px;
    background:
        linear-gradient(
            135deg,
            rgba(21, 101, 192, 0.045),
            rgba(21, 101, 192, 0.012)
        );
}

.mk-latest-posts-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #ffffff;
    color: #1565c0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.055);
}

.mk-latest-posts-empty__icon svg {
    display: block;
}

.mk-latest-posts-empty__content {
    min-width: 0;
}

.mk-latest-posts-empty__content h3 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.4;
}

.mk-latest-posts-empty__content p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Latest Posts - Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {

    .mk-latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-latest-posts-empty {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mk-latest-posts-empty .mk-button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

/*
|--------------------------------------------------------------------------
| Latest Posts - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-home-latest-posts__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 28px;
    }

    .mk-home-latest-posts__all {
        margin-bottom: 0;
    }

    .mk-latest-posts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .mk-latest-post-card:hover {
        transform: none;
    }

    .mk-latest-post-card__body {
        padding: 20px;
    }

    .mk-latest-posts-empty {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 22px;
    }

    .mk-latest-posts-empty .mk-button {
        width: 100%;
        justify-content: center;
    }
}

/*
|--------------------------------------------------------------------------
| Latest Posts - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-home-latest-posts__all svg,
    .mk-latest-post-card,
    .mk-latest-post-card__media img,
    .mk-latest-post-card__link svg {
        transition: none;
    }

    .mk-home-latest-posts__all:hover svg,
    .mk-latest-post-card__link:hover svg,
    .mk-latest-post-card:hover
    .mk-latest-post-card__media img {
        transform: none;
    }

    .mk-latest-post-card:hover {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Latest Posts - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-home-latest-posts__all,
    .mk-latest-posts-empty .mk-button {
        display: none;
    }

    .mk-latest-post-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .mk-latest-post-card:hover {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Homepage Call to Action
|--------------------------------------------------------------------------
*/

.mk-home-cta {
    position: relative;
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| CTA Panel
|--------------------------------------------------------------------------
*/

.mk-home-cta__panel {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    align-items: center;
    flex-direction: column;
    padding:
        clamp(42px, 7vw, 72px)
        clamp(24px, 7vw, 80px);
    border-radius: 26px;
    background:
        linear-gradient(
            135deg,
            #0d4f9c 0%,
            #1565c0 48%,
            #1976d2 100%
        );
    box-shadow:
        0 28px 70px rgba(21, 101, 192, 0.2),
        0 8px 24px rgba(15, 23, 42, 0.08);
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| CTA Decoration
|--------------------------------------------------------------------------
*/

.mk-home-cta__decoration {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mk-home-cta__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.mk-home-cta__orb--one {
    top: -170px;
    right: -120px;
    width: 390px;
    height: 390px;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0)
        );
}

.mk-home-cta__orb--two {
    bottom: -230px;
    left: -170px;
    width: 470px;
    height: 470px;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0)
        );
}

.mk-home-cta__grid {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18) 1px,
            transparent 1px
        );
    background-size: 38px 38px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.65),
            transparent
        );
}

/*
|--------------------------------------------------------------------------
| CTA Icon
|--------------------------------------------------------------------------
*/

.mk-home-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 23px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.mk-home-cta__icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| CTA Content
|--------------------------------------------------------------------------
*/

.mk-home-cta__content {
    width: 100%;
    max-width: 760px;
}

.mk-home-cta__eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mk-home-cta__title {
    margin: 0;
    color: #ffffff;
    font-size:
        clamp(
            2rem,
            4vw,
            3.15rem
        );
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.mk-home-cta__description {
    max-width: 650px;
    margin: 19px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size:
        clamp(
            0.98rem,
            1.5vw,
            1.08rem
        );
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| CTA Actions
|--------------------------------------------------------------------------
*/

.mk-home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 31px;
}

.mk-home-cta__button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mk-home-cta__button:hover {
    transform: translateY(-2px);
}

.mk-home-cta__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Primary CTA Button
|--------------------------------------------------------------------------
*/

.mk-home-cta__button--primary {
    background: #ffffff;
    color: #0d4f9c;
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.12);
}

.mk-home-cta__button--primary:hover {
    background: #f8fafc;
    color: #0d4f9c;
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.16);
}

/*
|--------------------------------------------------------------------------
| Secondary CTA Button
|--------------------------------------------------------------------------
*/

.mk-home-cta__button--secondary {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.mk-home-cta__button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| CTA Button Icons
|--------------------------------------------------------------------------
*/

.mk-home-cta__button-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.mk-home-cta__button-icon svg {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Customer Portal
|--------------------------------------------------------------------------
*/

.mk-home-cta__portal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.82rem;
    line-height: 1.5;
}

.mk-home-cta__portal a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.mk-home-cta__portal a svg {
    display: block;
    transition: transform 180ms ease;
}

.mk-home-cta__portal a:hover {
    text-decoration: underline;
}

.mk-home-cta__portal a:hover svg {
    transform: translateX(3px);
}

.mk-home-cta__portal a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| CTA - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .mk-home-cta__panel {
        padding: 38px 20px;
        border-radius: 20px;
    }

    .mk-home-cta__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .mk-home-cta__icon svg {
        width: 28px;
        height: 28px;
    }

    .mk-home-cta__title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .mk-home-cta__description {
        margin-top: 16px;
        font-size: 0.94rem;
    }

    .mk-home-cta__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        margin-top: 27px;
    }

    .mk-home-cta__button {
        width: 100%;
    }

    .mk-home-cta__portal {
        flex-direction: column;
        gap: 4px;
        margin-top: 21px;
    }
}

/*
|--------------------------------------------------------------------------
| CTA - Very Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .mk-home-cta__panel {
        padding:
            34px
            17px;
    }

    .mk-home-cta__button {
        padding:
            12px
            16px;
    }
}

/*
|--------------------------------------------------------------------------
| CTA - Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mk-home-cta__button,
    .mk-home-cta__portal a svg {
        transition: none;
    }

    .mk-home-cta__button:hover {
        transform: none;
    }

    .mk-home-cta__portal a:hover svg {
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| CTA - Print
|--------------------------------------------------------------------------
*/

@media print {

    .mk-home-cta__panel {
        border: 1px solid #d1d5db;
        background: #ffffff;
        box-shadow: none;
        color: #111827;
    }

    .mk-home-cta__decoration,
    .mk-home-cta__actions,
    .mk-home-cta__portal,
    .mk-home-cta__icon {
        display: none;
    }

    .mk-home-cta__eyebrow,
    .mk-home-cta__title {
        color: #111827;
    }

    .mk-home-cta__description {
        color: #4b5563;
    }
}