/* ========================================
   MedXFactor - Global Design Tokens
   Values are based on the approved desktop mockup.
   ======================================== */

:root {
	--mxf-primary: #0053f6;
	--mxf-header-bg: #e3f0f8;
	--mxf-text: #151515;
	--mxf-muted: #636363;
	--mxf-border: #dceaf5;
	--mxf-white: #ffffff;
	--mxf-navy: #0c3368;
	--mxf-container: 1284px;
	--mxf-radius-pill: 999px;
	--mxf-font-body: var(--mxf-font-family);
	--mxf-font-display: "Libre Bodoni", Georgia, "Times New Roman", serif;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--mxf-text);
}

img {
	max-width: 100%;
	height: auto;
}

* {
	box-sizing: border-box;
}

:root {
    --mxf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    --mxf-primary: #0757f8;
    --mxf-header-bg: #e3f0f8;
    --mxf-dark-blue: #123e73;
    --mxf-text: #111827;
    --mxf-muted: #5f6670;
    --mxf-border: #dce6f0;
}

html,
body,
button,
input,
textarea,
select {
    font-family: var(--mxf-font-family);
}

/* Approved display typography. Component-level UI headings can override this with the body font. */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--mxf-font-display);
}

body {
    color: var(--mxf-text);
}

body.home {
    background: #e3f0f8;
}

button:hover {
    /* background: none !important; */
}

/* =========================================================
   Home Hero
   ========================================================= */

.mxf-home-hero {
    position: relative;
    width: calc(100% - 48px) !important;
    max-width: 1280px !important;
    min-height: 670px;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 60px 65px !important;

    border-radius: 30px;
    overflow: hidden;

    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}


/*
 * White / translucent gradient on left side.
 * This makes the text readable while preserving
 * the original hero image.
 */


.mxf-home-hero > .e-con-inner,
.mxf-home-hero > .e-con,
.mxf-home-hero > * {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.mxf-hero-content {
    width: 47% !important;
    max-width: 560px;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}


/* ---------------------------------------------------------
   Eyebrow / Badge
   --------------------------------------------------------- */

.mxf-hero-eyebrow {
    width: auto !important;
}

.mxf-hero-eyebrow .elementor-widget-container {
    display: inline-flex;
}

.mxf-hero-eyebrow p {
    display: inline-flex;
    align-items: center;

    margin: 0 !important;

    padding: 7px 14px;

    border-radius: 999px;

    background: rgba(47, 47, 47, 0.72);

    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.01em;
}


/* ---------------------------------------------------------
   H1
   --------------------------------------------------------- */

.mxf-hero-title {
    margin-top: 4px;
}

.mxf-hero-title .elementor-heading-title {
    margin: 0;

    max-width: 520px;

    font-family: var(--mxf-font-display);
    font-size: clamp(37px, 2.8vw, 40px);
    font-weight: 500;
    line-height: 1.04;

    letter-spacing: -0.025em;

    color: #111;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.mxf-hero-description {
    max-width: 520px;
}

.mxf-hero-description p {
    margin: 0 !important;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    color: #353a40;
}


/* ---------------------------------------------------------
   Actions
   --------------------------------------------------------- */

.mxf-hero-actions {
    width: auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 12px !important;

    margin-top: 5px;
}


/* Primary */

.mxf-btn-primary {
    width: auto !important;
}

.mxf-btn-primary .elementor-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    background: var(--mxf-primary);

    border: 1px solid var(--mxf-primary);
    border-radius: 999px;

    color: #fff;

    font-family: var(--mxf-font-family);
    font-size: 15px;
    font-weight: 500;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.mxf-btn-primary .elementor-button:hover {
    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(7, 87, 248, 0.22);
}


/* Secondary */

.mxf-btn-secondary {
    width: auto !important;
}

.mxf-btn-secondary .elementor-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    background: #fff;

    border: 1px solid var(--mxf-primary);
    border-radius: 999px;

    color: var(--mxf-primary);

    font-family: var(--mxf-font-family);
    font-size: 15px;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.mxf-btn-secondary .elementor-button:hover {
    background: var(--mxf-primary);
    color: #fff;
}

/* =========================================================
   Home Hero - Desktop refinement
   ========================================================= */

.mxf-home-hero {
    min-height: 610px !important;

    padding-top: 55px !important;
    padding-right: 55px !important;
    padding-bottom: 55px !important;
    padding-left: 75px !important;
}


/* Content should stay firmly on the left */
.mxf-hero-content {
    width: 55% !important;
    max-width: 690px !important;

    margin: 0 !important;

    align-self: center !important;
}


/* Eyebrow */
.mxf-hero-eyebrow p {
    padding: 8px 16px;

    font-size: 13px;
    line-height: 1.1;

    white-space: nowrap;
}


/* Main title */
.mxf-hero-title {
    width: 100% !important;
    max-width: 680px !important;
}

.mxf-hero-title .elementor-heading-title {
    width: 100% !important;
    max-width: 680px !important;

    font-family: var(--mxf-font-display) !important;
    font-size: clamp(37px, 2.8vw, 40px) !important;
    font-weight: 500 !important;
    line-height: 1.04 !important;

    letter-spacing: -0.025em !important;
}


/* Description */
.mxf-hero-description {
    width: 100% !important;
    max-width: 540px !important;
}

.mxf-hero-description p {
    font-size: 17px !important;
    line-height: 1.55 !important;
}


/* Buttons */
.mxf-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    gap: 12px !important;

    width: auto !important;
}

.mxf-btn-primary,
.mxf-btn-secondary {
    width: auto !important;
    flex: 0 0 auto !important;
}

.mxf-btn-primary .elementor-button,
.mxf-btn-secondary .elementor-button {
    min-width: auto !important;

    padding-left: 25px !important;
    padding-right: 25px !important;

    white-space: nowrap !important;
}

.mxf-btn-primary .elementor-button-text,
.mxf-btn-secondary .elementor-button-text {
    white-space: nowrap !important;
}

/* Home hero typography safeguards for smaller viewports. */
@media (max-width: 900px) {
    .mxf-hero-content {
        width: 62% !important;
    }

    .mxf-hero-title .elementor-heading-title {
        font-size: clamp(34px, 4.8vw, 40px) !important;
    }
}

@media (max-width: 767px) {
    .mxf-hero-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mxf-hero-title,
    .mxf-hero-title .elementor-heading-title {
        max-width: 100% !important;
    }

    .mxf-hero-title .elementor-heading-title {
        font-size: clamp(34px, 10vw, 42px) !important;
        line-height: 1.02 !important;
    }
}
