/* ============================================================
   XpertMed Widgets — design system
   Scoped to elements with .xm- prefix. Wins over theme via
   specificity + late-priority enqueue (priority 99).
   ============================================================ */

:root {
    --xm-primary: #0D47A1;
    --xm-primary-dark: #093578;
    --xm-primary-foreground: #FFFFFF;
    --xm-secondary: #43A047;
    --xm-secondary-dark: #357A38;
    --xm-secondary-foreground: #FFFFFF;
    --xm-background: #FFFFFF;
    --xm-foreground: #1F2937;
    --xm-card: #FFFFFF;
    --xm-card-foreground: #1F2937;
    --xm-border: #E5E7EB;
    --xm-muted: #F5F8FA;
    --xm-muted-foreground: #64748B;
    --xm-accent: #F1F5F9;
    --xm-radius: 0.75rem;
    --xm-radius-lg: 1rem;
    --xm-radius-xl: 1.5rem;
    --xm-radius-full: 9999px;
    --xm-font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --xm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --xm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.08);
    --xm-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.18);
}

/* ----- Base reset for our scoped root ----- */
.xm-root,
.xm-root * {
    box-sizing: border-box;
}
.xm-root {
    font-family: var(--xm-font);
    color: var(--xm-foreground);
    line-height: 1.5;
}
.xm-root img {
    max-width: 100%;
    height: auto;
    display: block;
}
.xm-root a { text-decoration: none; }

/* Mobile overflow protection */
.xm-root, .xm-root * {
    max-width: 100%;
}
.xm-root {
    overflow-x: hidden;
}

/* ----- Layout helpers ----- */
.xm-container {
    width: 100%;
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .xm-container { padding-left: 2rem; padding-right: 2rem; }
}

.xm-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    .xm-section { padding-top: 7rem; padding-bottom: 7rem; }
}
.xm-section-tight { padding-top: 5rem; padding-bottom: 5rem; }

/* Section eyebrow + headings */
.xm-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--xm-secondary);
}
.xm-h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.875rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--xm-foreground);
}
.xm-lead {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--xm-muted-foreground);
}

.xm-section-head {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

/* ----- Button system (theme-proof — high specificity + inline overrides on widget) ----- */
.xm-root .xm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--xm-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, color .15s ease;
    text-decoration: none;
}
.xm-root .xm-btn-primary {
    background: var(--xm-primary);
    color: var(--xm-primary-foreground);
    box-shadow: var(--xm-shadow-md);
}
.xm-root .xm-btn-primary:hover {
    background: var(--xm-primary-dark);
    box-shadow: var(--xm-shadow-lg);
    color: var(--xm-primary-foreground);
}
.xm-root .xm-btn-secondary {
    background: var(--xm-secondary);
    color: var(--xm-secondary-foreground);
    box-shadow: var(--xm-shadow-md);
}
.xm-root .xm-btn-secondary:hover {
    background: var(--xm-secondary-dark);
    box-shadow: var(--xm-shadow-lg);
    color: var(--xm-secondary-foreground);
}
.xm-root .xm-btn-ghost {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.30);
    color: #FFFFFF;
}
.xm-root .xm-btn-ghost:hover {
    background: rgba(255,255,255,0.20);
    color: #FFFFFF;
}
.xm-root .xm-btn-light {
    background: #FFFFFF;
    color: var(--xm-primary);
    box-shadow: var(--xm-shadow-md);
}
.xm-root .xm-btn-light:hover {
    box-shadow: var(--xm-shadow-lg);
    color: var(--xm-primary);
}

/* ----- HEADER ----- */
.xm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--xm-border);
}
.xm-header__inner {
    max-width: 80rem;
    margin: 0 auto;
    height: 5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 768px) {
    .xm-header__inner { padding: 0 2rem; }
}
.xm-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.xm-header__logo img {
    height: 5rem;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .xm-header__logo img { height: 6rem; }
}
.xm-header__nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 768px) {
    .xm-header__nav { display: flex; }
}
.xm-header__nav-link {
    padding: 0.5rem 1.25rem;
    border-radius: var(--xm-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--xm-foreground);
    transition: background-color .15s ease;
}
.xm-header__nav-link:hover { background: var(--xm-accent); color: var(--xm-foreground); }
.xm-header__nav-link.is-active {
    background: var(--xm-accent);
    color: var(--xm-primary);
    font-weight: 600;
}
.xm-header__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.xm-header__cta {
    display: none;
}
@media (min-width: 768px) {
    .xm-header__cta {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1.5rem;
        border-radius: var(--xm-radius-full);
        background: var(--xm-primary);
        color: var(--xm-primary-foreground);
        font-size: 0.875rem;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: var(--xm-shadow-md);
        transition: box-shadow .15s ease, background-color .15s ease;
    }
    .xm-header__cta:hover { background: var(--xm-primary-dark); color: var(--xm-primary-foreground); box-shadow: var(--xm-shadow-lg); }
}
.xm-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--xm-foreground);
    font-size: 1.25rem;
}
.xm-header__toggle:hover { background: var(--xm-accent); }
@media (min-width: 768px) {
    .xm-header__toggle { display: none; }
}
.xm-header__drawer {
    display: none;
    border-top: 1px solid var(--xm-border);
    background: var(--xm-background);
    padding: 0.75rem 1rem;
}
.xm-header__drawer.is-open { display: block; }
@media (min-width: 768px) {
    .xm-header__drawer.is-open { display: none; }
}
.xm-header__drawer-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.xm-header__drawer-link {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--xm-foreground);
}
.xm-header__drawer-link:hover { background: var(--xm-accent); color: var(--xm-foreground); }
.xm-header__drawer-cta {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: var(--xm-primary);
    color: var(--xm-primary-foreground);
    font-size: 1rem;
    font-weight: 600;
}
.xm-header__drawer-cta:hover { color: var(--xm-primary-foreground); }

/* ----- HERO ----- */
.xm-hero {
    position: relative;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}
@media (max-width: 767px) {
    .xm-hero { background-attachment: scroll; min-height: 100svh; }
}
.xm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,71,161,0.85) 0%, rgba(13,71,161,0.70) 50%, rgba(67,160,71,0.60) 100%);
    pointer-events: none;
}
.xm-hero__inner {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 7rem 1rem;
    color: #FFFFFF;
}
@media (min-width: 768px) {
    .xm-hero__inner { padding: 10rem 2rem; }
}
.xm-hero__badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--xm-radius-full);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
}
.xm-hero__title {
    margin: 1.25rem 0 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 56rem;
    color: #FFFFFF;
}
.xm-hero__title-accent { color: var(--xm-secondary); }
.xm-hero__lead {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    max-width: 42rem;
    opacity: 0.92;
    color: #FFFFFF;
}
@media (min-width: 768px) {
    .xm-hero__lead { font-size: 1.25rem; }
}
.xm-hero__tag {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.8;
    color: #FFFFFF;
}
.xm-hero__actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ----- INNER HERO (gradient + dot pattern) ----- */
.xm-inner-hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--xm-primary) 0%, var(--xm-secondary) 100%);
    color: #FFFFFF;
    overflow: hidden;
}
@media (min-width: 768px) {
    .xm-inner-hero { padding: 8rem 0; }
}
.xm-inner-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image:
        radial-gradient(circle at 20% 30%, white 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, white 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.xm-inner-hero__inner {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}
@media (min-width: 768px) {
    .xm-inner-hero__inner { padding: 0 2rem; }
}
.xm-inner-hero__badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--xm-radius-full);
    background: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
}
.xm-inner-hero__title {
    margin: 1.25rem 0 0;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}
.xm-inner-hero__lead {
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    max-width: 42rem;
    opacity: 0.92;
    color: #FFFFFF;
}
@media (min-width: 768px) {
    .xm-inner-hero__lead { font-size: 1.25rem; }
}
.xm-inner-hero__pills {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.xm-inner-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--xm-radius-full);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
}

/* ----- CEO MESSAGE ----- */
.xm-ceo { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-ceo { padding: 7rem 0; } }
.xm-ceo__grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .xm-ceo__grid { padding: 0 2rem; grid-template-columns: 1fr 1fr; }
}
.xm-ceo__media { position: relative; }
.xm-ceo__media::before {
    content: "";
    position: absolute;
    inset: -1rem;
    background: linear-gradient(135deg, rgba(13,71,161,0.20), rgba(67,160,71,0.20));
    border-radius: 1.75rem;
    filter: blur(2rem);
    z-index: 0;
}
.xm-ceo__img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: var(--xm-shadow-xl);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.xm-ceo__name { font-size: 1.25rem; font-weight: 700; color: var(--xm-foreground); margin: 0; }
.xm-ceo__name small { font-size: 0.875rem; font-weight: 500; color: var(--xm-muted-foreground); margin-left: 0.5rem; }
.xm-ceo__role { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--xm-secondary); font-weight: 600; }
.xm-ceo__divider { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--xm-border); }

/* ----- WHY US (4-col cards) ----- */
.xm-whyus { padding: 5rem 0; background: var(--xm-muted); }
@media (min-width: 768px) { .xm-whyus { padding: 7rem 0; } }
.xm-whyus__grid {
    margin-top: 3.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .xm-whyus__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .xm-whyus__grid { grid-template-columns: repeat(4, 1fr); } }

.xm-card {
    background: var(--xm-card);
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--xm-border);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.xm-card:hover {
    border-color: var(--xm-secondary);
    box-shadow: var(--xm-shadow-xl);
}
.xm-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--xm-primary), var(--xm-secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
}
.xm-card__title { margin: 1.25rem 0 0; font-size: 1.125rem; font-weight: 700; color: var(--xm-foreground); }
.xm-card__desc { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--xm-muted-foreground); line-height: 1.65; }

/* ----- VISION & MISSION (2 colored cards) ----- */
.xm-vm { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-vm { padding: 7rem 0; } }
.xm-vm__grid {
    margin-top: 3.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
.xm-vm__grid-inner {
    margin-top: 3.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .xm-vm__grid { padding: 0 2rem; }
    .xm-vm__grid-inner { grid-template-columns: 1fr 1fr; }
}
.xm-vm__card {
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: #FFFFFF;
    box-shadow: var(--xm-shadow-xl);
}
.xm-vm__card--primary { background: linear-gradient(135deg, var(--xm-primary), rgba(13,71,161,0.85)); }
.xm-vm__card--secondary { background: linear-gradient(135deg, var(--xm-secondary), rgba(67,160,71,0.85)); }
.xm-vm__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF;
}
.xm-vm__title { margin: 1.25rem 0 0; font-size: 1.5rem; font-weight: 700; color: #FFFFFF; }
.xm-vm__body { margin: 1rem 0 0; line-height: 1.65; opacity: 0.95; color: #FFFFFF; }

/* ----- CONTACT CTA (full-width gradient) ----- */
.xm-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--xm-primary) 0%, var(--xm-primary) 50%, var(--xm-secondary) 100%);
    color: #FFFFFF;
    text-align: center;
}
@media (min-width: 768px) { .xm-cta { padding: 6rem 0; } }
.xm-cta__inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) { .xm-cta__inner { padding: 0 2rem; } }
.xm-cta__title { font-size: clamp(1.875rem, 3vw, 3rem); font-weight: 700; line-height: 1.15; margin: 0; color: #FFFFFF; }
.xm-cta__lead { margin: 1.25rem auto 0; font-size: 1.125rem; max-width: 40rem; opacity: 0.92; color: #FFFFFF; }
.xm-cta__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ----- OUR STORY ----- */
.xm-story { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-story { padding: 7rem 0; } }
.xm-story__grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .xm-story__grid { padding: 0 2rem; grid-template-columns: 1fr 1fr; }
}
.xm-story__highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--xm-muted);
    border-left: 4px solid var(--xm-secondary);
}
.xm-story__highlight h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 700;
    color: var(--xm-foreground);
}
.xm-story__highlight h3 i { color: var(--xm-secondary); }
.xm-story__highlight p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--xm-muted-foreground); }
.xm-story__media { position: relative; }
.xm-story__media::before {
    content: "";
    position: absolute;
    inset: -1rem;
    background: linear-gradient(135deg, rgba(13,71,161,0.20), rgba(67,160,71,0.20));
    border-radius: 1.75rem;
    filter: blur(2rem);
    z-index: 0;
}
.xm-story__img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: var(--xm-shadow-xl);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ----- VALUES (5-col round-icon cards) ----- */
.xm-values { padding: 5rem 0; background: var(--xm-muted); }
@media (min-width: 768px) { .xm-values { padding: 7rem 0; } }
.xm-values__grid {
    margin-top: 3.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .xm-values__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .xm-values__grid { grid-template-columns: repeat(5, 1fr); } }
.xm-values__card {
    background: var(--xm-card);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--xm-border);
    transition: box-shadow .2s ease, transform .2s ease;
}
.xm-values__card:hover { box-shadow: var(--xm-shadow-xl); transform: translateY(-4px); }
.xm-values__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--xm-primary), var(--xm-secondary));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.xm-values__title { margin: 1rem 0 0; font-weight: 700; color: var(--xm-foreground); }
.xm-values__desc { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--xm-muted-foreground); line-height: 1.65; }

/* ----- REGULATORY (3-col gradient cards) ----- */
.xm-reg { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-reg { padding: 7rem 0; } }
.xm-reg__grid {
    margin-top: 3.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .xm-reg__grid { grid-template-columns: repeat(3, 1fr); } }
.xm-reg__card {
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--xm-card), var(--xm-muted));
    border: 1px solid var(--xm-border);
    text-align: center;
}
.xm-reg__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 1rem;
    background: var(--xm-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.xm-reg__title { margin: 1.25rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--xm-foreground); }
.xm-reg__desc { margin: 0.5rem 0 0; color: var(--xm-muted-foreground); }

/* ----- SERVICES GRID ----- */
.xm-services { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-services { padding: 7rem 0; } }
.xm-services__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .xm-services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .xm-services__grid { grid-template-columns: repeat(3, 1fr); } }
.xm-services__card {
    position: relative;
    background: var(--xm-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--xm-border);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.xm-services__card:hover {
    border-color: var(--xm-secondary);
    box-shadow: var(--xm-shadow-xl);
}
.xm-services__orb {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(13,71,161,0.05), rgba(67,160,71,0.05));
    transition: transform .5s ease;
}
.xm-services__card:hover .xm-services__orb { transform: scale(1.5); }
.xm-services__inner { position: relative; }
.xm-services__head { display: flex; align-items: center; justify-content: space-between; }
.xm-services__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--xm-primary), var(--xm-secondary));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.xm-services__num {
    font-size: 1.875rem;
    font-weight: 700;
    color: rgba(100,116,139,0.30);
}
.xm-services__title { margin: 1.5rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--xm-foreground); }
.xm-services__desc { margin: 0.75rem 0 0; color: var(--xm-muted-foreground); line-height: 1.65; }

/* ----- CONTACT FORM ----- */
.xm-form-wrap { padding: 5rem 0; background: var(--xm-background); }
@media (min-width: 768px) { .xm-form-wrap { padding: 7rem 0; } }
.xm-form-card {
    max-width: 48rem;
    margin: 0 auto;
    background: var(--xm-card);
    border-radius: 1.5rem;
    box-shadow: var(--xm-shadow-xl);
    border: 1px solid var(--xm-border);
    padding: 2rem;
}
@media (min-width: 768px) { .xm-form-card { padding: 2.5rem; } }
.xm-form__title { font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 700; color: var(--xm-foreground); margin: 0; }
.xm-form__lead { margin-top: 0.5rem; color: var(--xm-muted-foreground); }
.xm-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.xm-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .xm-form__row { grid-template-columns: 1fr 1fr; } }
.xm-form__field {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--xm-border);
    background: var(--xm-background);
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--xm-foreground);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.xm-form__field:focus {
    border-color: var(--xm-primary);
    box-shadow: 0 0 0 3px rgba(13,71,161,0.20);
}
.xm-form__field--ltr { direction: ltr; text-align: left; }
.xm-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.xm-form__submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--xm-radius-full);
    background: var(--xm-primary);
    color: var(--xm-primary-foreground);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background-color .15s ease;
    font-family: inherit;
    font-size: 1rem;
}
.xm-form__submit:hover { background: var(--xm-primary-dark); }
.xm-form__submit:disabled { opacity: 0.6; cursor: wait; }
.xm-form__msg {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}
.xm-form__msg--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.xm-form__msg--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ----- CONTACT INFO (4-col cards) ----- */
.xm-cinfo { padding-bottom: 5rem; background: var(--xm-background); }
@media (min-width: 768px) { .xm-cinfo { padding-bottom: 7rem; } }
.xm-cinfo__head { text-align: center; margin-bottom: 3rem; }
.xm-cinfo__h2 { margin: 0.5rem 0 0; font-size: clamp(1.875rem, 2.5vw, 2.25rem); font-weight: 700; color: var(--xm-foreground); }
.xm-cinfo__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .xm-cinfo__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .xm-cinfo__grid { grid-template-columns: repeat(4, 1fr); } }
.xm-cinfo__card {
    background: var(--xm-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--xm-border);
    transition: box-shadow .2s ease;
}
.xm-cinfo__card:hover { box-shadow: var(--xm-shadow-xl); }
.xm-cinfo__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--xm-primary), var(--xm-secondary));
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.xm-cinfo__title { margin: 1rem 0 0; font-weight: 700; color: var(--xm-foreground); }
.xm-cinfo__lines { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--xm-muted-foreground); }
.xm-cinfo__lines p { margin: 0; }
.xm-cinfo__lines p + p { margin-top: 0.25rem; }
.xm-cinfo__lines--ltr { direction: ltr; text-align: left; }

/* ----- FOOTER ----- */
.xm-footer {
    background: var(--xm-foreground);
    color: #F8FAFC;
}
.xm-footer__trust { border-bottom: 1px solid rgba(255,255,255,0.10); }
.xm-footer__trust-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
@media (min-width: 768px) { .xm-footer__trust-inner { padding: 1.5rem 2rem; } }
.xm-footer__trust-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.6;
    margin: 0 0 1rem;
}
.xm-footer__trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.xm-footer__trust-item { text-align: center; }
.xm-footer__trust-name { font-size: 0.875rem; font-weight: 600; }
.xm-footer__trust-num { font-size: 0.6875rem; opacity: 0.6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; }
.xm-footer__main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .xm-footer__main { padding: 4rem 2rem; grid-template-columns: 2fr 1fr 1fr; }
}
.xm-footer__brand-img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.xm-footer__tagline { margin-top: 1rem; font-size: 0.875rem; opacity: 0.8; max-width: 28rem; }
.xm-footer__brand-tag { margin-top: 0.5rem; font-size: 0.75rem; opacity: 0.6; font-style: italic; }
.xm-footer__socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.xm-footer__social {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.10);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}
.xm-footer__social:hover { background: var(--xm-secondary); color: #FFFFFF; }
.xm-footer__col-title { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin: 0 0 1rem; }
.xm-footer__list { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; opacity: 0.8; display: flex; flex-direction: column; gap: 0.5rem; }
.xm-footer__list a { color: inherit; transition: color .15s ease; }
.xm-footer__list a:hover { color: var(--xm-secondary); }
.xm-footer__list--contact { gap: 0.75rem; }
.xm-footer__list--contact li { display: flex; gap: 0.5rem; align-items: flex-start; }
.xm-footer__list--contact li i { margin-top: 0.25rem; }
.xm-footer__list--contact li.is-ltr { direction: ltr; text-align: left; }
.xm-footer__bottom { border-top: 1px solid rgba(255,255,255,0.10); }
.xm-footer__bottom-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}
.xm-footer__credit { margin-top: 0.5rem; opacity: 0.55; font-size: 0.7rem; }
.xm-footer__credit a { color: inherit; text-decoration: underline; }
.xm-footer__credit a:hover { color: var(--xm-secondary); }
@media (min-width: 768px) { .xm-footer__bottom-inner { padding: 1.25rem 2rem; } }

/* ---- Licenses ---- */
.xm-root.xm-lic { padding: 5rem 0; background: var(--xm-muted); }
.xm-lic__head { text-align: center; margin-bottom: 3rem; }
.xm-lic__head .xm-eyebrow { color: var(--xm-secondary); }
.xm-lic__head .xm-h2 { margin: 0.5rem 0 0; }
.xm-lic__sub { margin: 0.75rem 0 0; color: var(--xm-muted-foreground); font-size: 1rem; }
.xm-lic__rule { width: 5rem; height: 4px; background: var(--xm-secondary); border-radius: 999px; margin: 1.25rem auto 0; }

/* Grid: stacked on mobile, 2 columns on desktop. !important defends against theme/Elementor overrides. */
.xm-root .xm-lic__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}
@media (min-width: 768px) {
    .xm-root .xm-lic__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2rem;
    }
}

.xm-root .xm-lic__card {
    background: var(--xm-background);
    border: 1px solid var(--xm-border);
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}
.xm-root .xm-lic__card:hover {
    box-shadow: 0 20px 40px -12px rgba(13,71,161,0.18), 0 8px 16px -8px rgba(0,0,0,0.10) !important;
    transform: translateY(-4px);
}
.xm-root .xm-lic__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--xm-muted);
    overflow: hidden;
    width: 100%;
}
.xm-root .xm-lic__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .5s ease;
    display: block;
    border-radius: 0;
}
.xm-root .xm-lic__card:hover .xm-lic__media img { transform: scale(1.05); }
.xm-lic__hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    color: var(--xm-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    white-space: nowrap;
}
.xm-root .xm-lic__card:hover .xm-lic__hint { opacity: 1; }
.xm-lic__body { padding: 1.25rem; }
.xm-lic__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.xm-lic__title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--xm-foreground); }
.xm-lic__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(67,160,71,0.12);
    color: var(--xm-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
}
.xm-lic__dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--xm-secondary); }
.xm-lic__sub-ar { margin: 0 0 0.875rem; font-size: 0.875rem; color: var(--xm-muted-foreground); }
.xm-lic__list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.xm-lic__row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; margin: 0; }
.xm-lic__row dt { margin: 0; color: var(--xm-muted-foreground); }
.xm-lic__row dd { margin: 0; font-weight: 500; color: var(--xm-foreground); text-align: right; }
.xm-lic__num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
