/* ============================================================
   MKTECHSUPPORT V2 — PUBLIC GLOBAL STYLES
   ============================================================

   Brand:
   MKTECHSUPPORT
   YOUR TRUSTED TECH PARTNER

   Logo:
   /assets/images/mktechsupport-logo.png

   Related stylesheets:
   assets/css/topbar.css
   assets/css/sidebar.css
   assets/css/downbar.css

   Navigation:
   Home, Services, Repairs, Blog, Support,
   Locations, About, Contact, FAQ

   Mobile downbar:
   Home, Services, Repairs, FAQ, Account

   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {

    --mk-font-sans:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    /* Brand */

    --mk-navy: #081b34;
    --mk-navy-light: #12375f;

    --mk-primary: #1769e0;
    --mk-primary-hover: #1056ba;
    --mk-primary-soft: #eaf2ff;

    --mk-brand-blue: #1769e0;
    --mk-brand-slogan: #1769e0;

    /* Surfaces */

    --mk-bg: #f6f8fc;
    --mk-surface: #ffffff;
    --mk-surface-soft: #f1f6fc;

    /* Text */

    --mk-text: #172033;
    --mk-text-muted: #64748b;
    --mk-text-light: #ffffff;

    /* Status */

    --mk-success: #157347;
    --mk-success-bg: #e9f7ef;

    --mk-danger: #b42318;
    --mk-danger-bg: #fef0ef;

    --mk-warning: #946200;
    --mk-warning-bg: #fff6dd;

    --mk-info: #175cd3;
    --mk-info-bg: #eff8ff;

    /* Borders */

    --mk-border: #dfe7f0;
    --mk-border-light: #edf1f5;

    /* Focus */

    --mk-focus: #1769e0;

    /* Shadows */

    --mk-shadow-sm:
        0 1px 3px rgba(8, 27, 52, 0.08);

    --mk-shadow-md:
        0 8px 24px rgba(8, 27, 52, 0.10);

    /* Radius */

    --mk-radius-sm: 6px;
    --mk-radius-md: 10px;
    --mk-radius-lg: 16px;

    /* Layout */

    --mk-container: 1200px;

    --mk-topbar-height: 82px;
    --mk-downbar-height: 72px;

    /* Animation */

    --mk-transition: 180ms ease;

}


/* ============================================================
   02. GLOBAL RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    font-family: var(--mk-font-sans);
    font-size: 16px;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;

    background: var(--mk-bg);
    color: var(--mk-text);

    font-family: var(--mk-font-sans);
    font-size: 1rem;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mk-sidebar-open {
    overflow: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--mk-primary);
    text-decoration: none;

    transition:
        color var(--mk-transition),
        background-color var(--mk-transition),
        border-color var(--mk-transition),
        opacity var(--mk-transition);
}

a:hover {
    color: var(--mk-primary-hover);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--mk-text);
    line-height: 1.2;
}

p {
    margin-top: 0;
}

ul,
ol {
    margin-top: 0;
}


/* ============================================================
   03. ACCESSIBILITY
   ============================================================ */

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}

.sr-only:focus {
    position: fixed !important;

    top: 1rem !important;
    left: 1rem !important;

    z-index: 10000;

    width: auto !important;
    height: auto !important;

    padding: 0.75rem 1rem !important;
    margin: 0 !important;

    overflow: visible !important;

    clip: auto !important;
    clip-path: none !important;

    white-space: normal !important;

    background: var(--mk-surface);
    color: var(--mk-text);

    border-radius: var(--mk-radius-sm);

    box-shadow: var(--mk-shadow-md);
}

:focus-visible {
    outline: 3px solid var(--mk-focus);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}


/* ============================================================
   04. APPLICATION SHELL
   ============================================================ */

.mk-app {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
    min-height: 100dvh;
}

.mk-public-app {
    padding-top: var(--mk-topbar-height);
}

.mk-main {
    width: 100%;
}

.mk-public-main {
    flex: 1 0 auto;

    min-height: 50vh;
}


/* ============================================================
   05. CONTAINERS
   ============================================================ */

.mk-container,
.mk-alert-region__inner,
.mk-breadcrumbs__inner,
.mk-footer__inner {
    width: min(
        calc(100% - 2rem),
        var(--mk-container)
    );

    margin-left: auto;
    margin-right: auto;
}

.mk-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mk-section--small {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mk-section--surface {
    background: var(--mk-surface);
}


/* ============================================================
   06. TYPOGRAPHY
   ============================================================ */

.mk-page-title {
    margin-bottom: 1rem;

    font-size: clamp(
        2rem,
        5vw,
        3.5rem
    );

    font-weight: 750;
    letter-spacing: -0.035em;
}

.mk-page-lead {
    max-width: 760px;

    color: var(--mk-text-muted);

    font-size: 1.125rem;
}

.mk-section-title {
    margin-bottom: 1rem;

    font-size: clamp(
        1.6rem,
        3vw,
        2.4rem
    );

    font-weight: 700;
    letter-spacing: -0.025em;
}

.mk-muted {
    color: var(--mk-text-muted);
}


/* ============================================================
   07. BUTTONS
   ============================================================ */

.mk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    min-height: 44px;

    padding: 0.7rem 1.1rem;

    border: 1px solid transparent;
    border-radius: var(--mk-radius-md);

    background: var(--mk-primary);
    color: var(--mk-text-light);

    font-weight: 650;
    line-height: 1.2;

    text-align: center;

    transition:
        background-color var(--mk-transition),
        border-color var(--mk-transition),
        color var(--mk-transition),
        transform var(--mk-transition),
        box-shadow var(--mk-transition);
}

.mk-button:hover {
    background: var(--mk-primary-hover);
    color: var(--mk-text-light);
}

.mk-button:active {
    transform: translateY(1px);
}

.mk-button--secondary {
    background: var(--mk-surface);
    color: var(--mk-text);

    border-color: var(--mk-border);
}

.mk-button--secondary:hover {
    background: var(--mk-surface-soft);
    color: var(--mk-text);
}

.mk-button--danger {
    background: var(--mk-danger);
}

.mk-button--block {
    width: 100%;
}


/* ============================================================
   08. CARDS
   ============================================================ */

.mk-card {
    background: var(--mk-surface);

    border: 1px solid var(--mk-border-light);
    border-radius: var(--mk-radius-lg);

    box-shadow: var(--mk-shadow-sm);
}

.mk-card__body {
    padding: 1.5rem;
}


/* ============================================================
   09. FORMS
   ============================================================ */

.mk-form-group {
    margin-bottom: 1.25rem;
}

.mk-label {
    display: block;

    margin-bottom: 0.4rem;

    color: var(--mk-text);

    font-weight: 650;
}

.mk-required {
    color: var(--mk-danger);
}

.mk-input,
.mk-select,
.mk-textarea {
    display: block;

    width: 100%;

    padding: 0.75rem 0.85rem;

    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-md);

    background: var(--mk-surface);
    color: var(--mk-text);

    transition:
        border-color var(--mk-transition),
        box-shadow var(--mk-transition);
}

.mk-textarea {
    min-height: 130px;
    resize: vertical;
}

.mk-input:focus,
.mk-select:focus,
.mk-textarea:focus {
    border-color: var(--mk-primary);

    outline: none;

    box-shadow:
        0 0 0 3px rgba(23, 105, 224, 0.14);
}

.mk-input::placeholder,
.mk-textarea::placeholder {
    color: #98a2b3;
}

.mk-field-help {
    margin-top: 0.4rem;
    margin-bottom: 0;

    color: var(--mk-text-muted);

    font-size: 0.875rem;
}

.mk-field-error {
    margin-top: 0.4rem;
    margin-bottom: 0;

    color: var(--mk-danger);

    font-size: 0.875rem;
    font-weight: 600;
}


/* ============================================================
   10. ALERTS
   ============================================================ */

.mk-alert-region {
    position: relative;
    z-index: 20;

    padding-top: 1rem;
}

.mk-alert-region__inner {
    display: grid;
    gap: 0.75rem;
}

.mk-alert {
    display: flex;
    align-items: flex-start;

    gap: 0.75rem;

    padding: 1rem;

    border: 1px solid transparent;
    border-radius: var(--mk-radius-md);

    box-shadow: var(--mk-shadow-sm);
}

.mk-alert__icon {
    display: flex;
    flex: 0 0 auto;

    margin-top: 0.1rem;
}

.mk-alert__content {
    flex: 1 1 auto;
    min-width: 0;
}

.mk-alert__message,
.mk-alert__title {
    margin: 0;
}

.mk-alert__title {
    margin-bottom: 0.35rem;

    font-weight: 700;
}

.mk-alert__errors {
    margin: 0.5rem 0 0;

    padding-left: 1.25rem;
}

.mk-alert__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: currentColor;

    opacity: 0.7;
}

.mk-alert__dismiss:hover {
    opacity: 1;

    background: rgba(0, 0, 0, 0.05);
}

.mk-alert--success {
    background: var(--mk-success-bg);
    color: var(--mk-success);

    border-color: rgba(21, 115, 71, 0.2);
}

.mk-alert--error {
    background: var(--mk-danger-bg);
    color: var(--mk-danger);

    border-color: rgba(180, 35, 24, 0.2);
}

.mk-alert--warning {
    background: var(--mk-warning-bg);
    color: var(--mk-warning);

    border-color: rgba(148, 98, 0, 0.2);
}

.mk-alert--info {
    background: var(--mk-info-bg);
    color: var(--mk-info);

    border-color: rgba(23, 92, 211, 0.2);
}


/* ============================================================
   11. BREADCRUMBS
   ============================================================ */

.mk-breadcrumbs {
    padding: 1rem 0;

    background: var(--mk-surface);

    border-bottom:
        1px solid var(--mk-border-light);
}

.mk-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.35rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mk-breadcrumbs__item {
    display: inline-flex;
    align-items: center;

    gap: 0.35rem;

    min-width: 0;

    color: var(--mk-text-muted);

    font-size: 0.875rem;
}

.mk-breadcrumbs__separator {
    display: inline-flex;
    align-items: center;

    color: #98a2b3;
}

.mk-breadcrumbs__link {
    display: inline-flex;
    align-items: center;

    gap: 0.35rem;

    color: var(--mk-text-muted);
}

.mk-breadcrumbs__link:hover {
    color: var(--mk-primary);
}

.mk-breadcrumbs__home-icon {
    flex: 0 0 auto;
}

.mk-breadcrumbs__current {
    color: var(--mk-text);
    font-weight: 600;
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.mk-footer {
    margin-top: auto;

    background: #081b34;
    color: #cbd5e1;
}

.mk-footer__inner {
    padding: 3.5rem 0 2rem;
}


/* ============================================================
   13. FOOTER BRAND
   ============================================================ */

.mk-footer__brand {
    max-width: 500px;

    margin-bottom: 2.5rem;
}

.mk-footer__brand-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    max-width: 100%;

    margin-bottom: 0.75rem;

    color: #ffffff;
    text-decoration: none;
}

.mk-footer__brand-link:hover {
    color: #ffffff;
}

.mk-footer__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    overflow: hidden;
}

.mk-footer__logo {
    display: block;

    width: 40px;
    height: 40px;

    object-fit: contain;
}

.mk-footer__brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.mk-footer__brand-name {
    display: block;

    color: #ffffff;

    font-size: 1.3rem;
    font-weight: 850;

    line-height: 1.15;
    letter-spacing: -0.035em;
}

.mk-footer__brand-slogan {
    display: block;

    margin-top: 4px;

    color: #60a5fa;

    font-size: 0.58rem;
    font-weight: 750;

    line-height: 1.4;
    letter-spacing: 0.07em;
}

.mk-footer__description {
    max-width: 390px;

    margin: 0;

    color: #cbd5e1;

    line-height: 1.75;
}


/* ============================================================
   14. FOOTER NAVIGATION
   ============================================================ */

.mk-footer__navigation {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2rem;

    padding-bottom: 2.5rem;
}

.mk-footer__title {
    margin-bottom: 1rem;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 750;
}

.mk-footer__links {
    display: grid;
    gap: 0.65rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mk-footer__links a {
    color: #cbd5e1;
}

.mk-footer__links a:hover {
    color: #60a5fa;
}


/* ============================================================
   15. FOOTER BOTTOM
   ============================================================ */

.mk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.5rem;

    padding-top: 1.5rem;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);
}

.mk-footer__copyright p {
    margin: 0;

    color: #94a3b8;

    font-size: 0.875rem;
}

.mk-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.75rem 1.25rem;
}

.mk-footer__legal a {
    color: #cbd5e1;

    font-size: 0.875rem;
}

.mk-footer__legal a:hover {
    color: #60a5fa;
}


/* ============================================================
   16. GENERIC GRID HELPERS
   ============================================================ */

.mk-grid {
    display: grid;
    gap: 1.5rem;
}

.mk-grid--2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.mk-grid--3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.mk-grid--4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* ============================================================
   17. UTILITY CLASSES
   ============================================================ */

.mk-text-center {
    text-align: center;
}

.mk-text-left {
    text-align: left;
}

.mk-text-right {
    text-align: right;
}

.mk-w-full {
    width: 100%;
}

.mk-hidden {
    display: none !important;
}

.mk-no-scroll {
    overflow: hidden !important;
}


/* ============================================================
   18. TABLET RESPONSIVENESS
   ============================================================ */

@media (max-width: 900px) {

    .mk-grid--4,
    .mk-grid--3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .mk-footer__navigation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /*
       The fixed mobile downbar is visible here.

       Reserve space once, on the application wrapper,
       rather than adding excessive padding to every
       individual section.
    */

    .mk-public-app {
        padding-bottom:
            calc(
                var(--mk-downbar-height)
                + env(safe-area-inset-bottom, 0px)
            );
    }

}


/* ============================================================
   19. MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 640px) {

    :root {
        --mk-topbar-height: 60px;
        --mk-downbar-height: 68px;
    }

    .mk-container,
    .mk-alert-region__inner,
    .mk-breadcrumbs__inner,
    .mk-footer__inner {
        width: min(
            calc(100% - 1.25rem),
            var(--mk-container)
        );
    }

    .mk-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .mk-section--small {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .mk-page-title {
        font-size: clamp(
            1.8rem,
            10vw,
            2.6rem
        );
    }

    .mk-grid--2,
    .mk-grid--3,
    .mk-grid--4 {
        grid-template-columns: 1fr;
    }

    .mk-footer__inner {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .mk-footer__navigation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 2rem 1rem;
    }

    .mk-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .mk-alert {
        padding: 0.85rem;
    }

    .mk-footer__logo-wrap,
    .mk-footer__logo {
        width: 34px;
        height: 34px;
    }

    .mk-footer__logo-wrap {
        flex-basis: 34px;
    }

    .mk-footer__brand-name {
        font-size: 1.12rem;
    }

    .mk-footer__brand-slogan {
        font-size: 0.5rem;
        letter-spacing: 0.04em;
    }

}


/* ============================================================
   20. VERY SMALL SCREENS
   ============================================================ */

@media (max-width: 420px) {

    .mk-footer__navigation {
        grid-template-columns: 1fr;
    }

    .mk-footer__legal {
        flex-wrap: wrap;
    }

}


/* ============================================================
   21. DESKTOP
   ============================================================ */

@media (min-width: 901px) {

    .mk-public-app {
        padding-bottom: 0;
    }

    .mk-footer__inner {
        padding-bottom: 2rem;
    }

}


/* ============================================================
   22. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* ============================================================
   23. PRINT
   ============================================================ */

@media print {

    .mk-topbar,
    .mk-sidebar,
    .mk-sidebar-backdrop,
    .mk-downbar,
    .mk-alert__dismiss {
        display: none !important;
    }

    .mk-public-app {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .mk-footer__inner {
        padding-bottom: 1rem;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

}

/* ============================================================
   END — MKTECHSUPPORT V2 PUBLIC STYLES
   ============================================================ */
