/* Visual refresh layered on top of medvac-modern.css */
:root {
    --mx-gradient: linear-gradient(135deg, #1268a8 0%, #19a7a0 100%);
    --mx-lime: #b7d433;
}

.mv-btn { border-radius: 999px; padding-left: 28px; padding-right: 28px; }
.mv-btn-primary { background: var(--mx-gradient); box-shadow: 0 10px 24px rgba(18, 104, 168, .25); }
.mv-btn-primary:hover { background: var(--mv-navy); }
.mx-btn-glow { background: var(--mx-lime); color: #0b2a44; box-shadow: 0 12px 30px rgba(183, 212, 51, .35); }
.mx-btn-glow:hover { background: #cbe85a; color: #0b2a44; transform: translateY(-2px); }
.mx-btn-whatsapp { width: 100%; background: #198b4b; color: #fff; cursor: pointer; }
.mx-btn-whatsapp:hover { background: #116e3a; color: #fff; }
.mx-center { justify-content: center; }

/* Header */
.mv-nav { height: 76px; gap: 16px; }
.mv-logo img { width: 150px; }
.mv-menu a { white-space: nowrap; border-radius: 999px; padding: 10px 13px; }
.mv-menu .mv-nav-cta { background: var(--mx-gradient); padding: 12px 22px; }

/* Home hero */
.mx-hero {
    padding: 78px 0 190px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 12% 15%, rgba(25, 167, 160, .45), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(18, 104, 168, .65), transparent 45%),
        #071f37;
}
.mx-hero-inner { max-width: 1000px; }
.mx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; }
.mx-pill i { color: var(--mx-lime); }
.mx-hero h1 { margin: 22px 0 18px; color: #fff; font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.mx-hero h1 span { display: block; color: var(--mx-lime); }
.mx-hero p { max-width: 720px; margin: 0 auto; color: #d6e6f2; font-size: 18px; line-height: 1.75; }
.mx-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; }
.mx-hero-points i { margin-right: 6px; color: #5fd6cf; }

/* Team photo and numbers */
.mx-team { position: relative; z-index: 2; margin-top: -140px; }
.mx-team figure { position: relative; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px rgba(7, 31, 55, .28); }
.mx-team figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.mx-team figcaption { position: absolute; left: 18px; top: 18px; padding: 8px 16px; border-radius: 999px; background: rgba(7, 31, 55, .82); color: #fff; font-size: 13px; font-weight: 600; }
.mx-team .mv-metrics { position: relative; grid-template-columns: repeat(4, 1fr); width: calc(100% - 60px); margin: -22px auto 0; }
.mx-team .mv-metric strong { font-size: 24px; }
.mx-team .mv-metric span { color: var(--mv-muted); font-size: 13px; }

/* Service paths */
.mx-path { display: flex; flex-direction: column; padding: 34px 30px; border-radius: 22px; color: #fff; transition: transform .25s, box-shadow .25s; }
.mx-path:hover, .mx-path:focus-visible { color: #fff; transform: translateY(-6px); box-shadow: 0 24px 46px rgba(9, 44, 76, .25); }
.mx-path-blue { background: linear-gradient(145deg, #1268a8, #0b4674); }
.mx-path-teal { background: linear-gradient(145deg, #138a84, #0a5c63); }
.mx-path-navy { background: linear-gradient(145deg, #12395c, #071f37); }
.mx-path > i { margin-bottom: 20px; color: var(--mx-lime); font-size: 36px; }
.mx-path h3 { color: #fff; font-size: 21px; }
.mx-path p { flex: 1; color: #dbeaf4; font-size: 14px; line-height: 1.7; }
.mx-path span { font-weight: 700; }

.mv-card.mx-segment { position: relative; overflow: hidden; }
.mx-segment::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mx-gradient); }
.mx-segment .mv-card-icon { background: var(--mx-gradient); color: #fff; }

/* Features and quick enquiry */
.mx-features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.mx-features i { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: #e7f5f5; color: #12827c; font-size: 20px; }
.mx-features h3 { color: var(--mv-navy); font-size: 16px; }
.mx-features p { margin: 0; font-size: 13px; }
.mx-quick { padding: 36px; border: 1px solid var(--mv-border); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(9, 44, 76, .14); }
.mx-quick h2 { margin: 10px 0 6px; color: var(--mv-navy); font-size: 28px; }
.mx-quick p { color: var(--mv-muted); }
.mx-quick label { margin: 10px 0 5px; font-size: 13px; font-weight: 600; }
.mx-quick .mv-btn { margin-top: 20px; }

/* Process */
.mx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mx-steps li { padding: 28px 24px; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(9, 44, 76, .07); counter-increment: step; }
.mx-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--mx-gradient); color: #fff; font-weight: 700; }
.mx-steps h3 { color: var(--mv-navy); font-size: 17px; }
.mx-steps p { margin: 0; color: var(--mv-muted); font-size: 14px; }

/* FAQ */
.mx-faq { max-width: 820px; }
.mx-faq details { margin-bottom: 12px; border: 1px solid var(--mv-border); border-radius: 14px; background: #fff; }
.mx-faq summary { padding: 18px 22px; color: var(--mv-navy); font-weight: 600; cursor: pointer; }
.mx-faq details[open] { box-shadow: 0 10px 28px rgba(9, 44, 76, .09); }
.mx-faq details p { margin: 0; padding: 0 22px 18px; color: var(--mv-muted); }
.mx-faq details a { color: var(--mv-blue); font-weight: 600; }

.mx-cta-section { padding-top: 0; }
.mx-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #071f37, #12608f 65%, #138a84); }
.mx-band .mv-actions { margin: 0; }

/* Inner pages */
.mv-page-hero { background: radial-gradient(circle at 85% 20%, rgba(25, 167, 160, .5), transparent 45%), linear-gradient(120deg, #071f37, #12507a); }
.mv-form-card { border-top: 5px solid var(--mv-accent); }

/* Form result message */
.mx-flash { padding: 15px 0; background: #e5f6ec; color: #125c34; font-weight: 600; text-align: center; }
.mx-flash-error { background: #fff0f0; color: #922525; }

/* Waiting to animate in; applied only when scripts run */
.mx-hidden { opacity: 0; }
.mv-main { overflow-x: clip; }

/* Mobile action bar */
.mx-actionbar { display: none; }

@media (max-width: 1180px) {
    .mv-menu-toggle { display: block; }
    .mv-menu { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 14px 16px 20px; background: #fff; box-shadow: 0 18px 30px rgba(9, 44, 76, .14); }
    .mv-menu.open { display: block; }
    .mv-menu a { padding: 12px 16px; font-size: 14px; }
    .mv-menu .mv-nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 900px) {
    .mx-team .mv-metrics, .mx-steps { grid-template-columns: 1fr 1fr; }
    .mx-team .mv-metric { border-bottom: 1px solid var(--mv-border); }
}

@media (max-width: 768px) {
    body { padding-bottom: 68px; }
    .mx-hero { padding: 48px 0 130px; }
    .mx-hero p { font-size: 16px; }
    .mx-team { margin-top: -92px; }
    .mx-team figure { border-width: 4px; border-radius: 18px; }
    .mx-team figure img { height: 210px; object-fit: cover; border-radius: 14px; }
    .mx-team figcaption { left: 12px; top: 12px; font-size: 11px; }
    .mx-team .mv-metrics { width: 100%; margin-top: 14px; }
    .mx-team .mv-metric { padding: 18px 12px; }
    .mx-team .mv-metric strong { font-size: 19px; }
    .mx-quick { padding: 26px 20px; }
    .mv-whatsapp, .fc-shell .fc-launcher { display: none; }
    .mx-actionbar { position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(9, 44, 76, .16); }
    .mx-actionbar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 12px; background: #eef5fa; color: var(--mv-navy); font-size: 13px; font-weight: 700; }
    .mx-actionbar a.mx-actionbar-whatsapp { background: #198b4b; color: #fff; }
    .mx-actionbar a.mx-actionbar-main { background: var(--mx-gradient); color: #fff; }
}

@media (max-width: 480px) {
    .mx-features, .mx-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- Motion ---------- */

/* Floating medical icons in the hero */
.mx-hero { position: relative; overflow: hidden; }
.mx-hero-inner { position: relative; z-index: 1; }
.mx-floaters i { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; background: rgba(255, 255, 255, .08); color: var(--mx-lime); font-size: 36px; box-shadow: 0 0 34px rgba(95, 214, 207, .22); animation: mx-float 6s ease-in-out infinite; }
.mx-floaters i:nth-child(1) { left: 6%; top: 12%; }
.mx-floaters i:nth-child(2) { right: 7%; top: 15%; color: #ff8f9c; animation-delay: -1s; }
.mx-floaters i:nth-child(3) { left: 11%; top: 42%; color: #5fd6cf; animation-delay: -2s; }
.mx-floaters i:nth-child(4) { right: 11%; top: 45%; animation-delay: -3s; }
.mx-floaters i:nth-child(5) { left: 4%; top: 68%; animation-delay: -4s; }
.mx-floaters i:nth-child(6) { right: 4%; top: 70%; color: #5fd6cf; animation-delay: -5s; }
@keyframes mx-float { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-20px) rotate(8deg) scale(1.08); } }

/* Hero content fades in one line after another */
.mx-hero-inner > * { animation: mx-rise .8s ease backwards; }
.mx-hero-inner > h1 { animation-name: mx-zoom; animation-delay: .12s; }
.mx-hero-inner > p { animation-delay: .28s; }
.mx-hero-inner > .mv-actions { animation-delay: .42s; }
.mx-hero-inner > .mx-hero-points { animation-delay: .56s; }
.mx-team figure { animation: mx-zoom 1s .35s ease backwards; }
@keyframes mx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes mx-zoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Shine across the highlighted heading */
.mx-hero h1 span { background: linear-gradient(100deg, #b7d433 40%, #fff 50%, #b7d433 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mx-shine 4.5s linear infinite; }
@keyframes mx-shine { from { background-position: 100% 0; } to { background-position: -67% 0; } }

/* Zoom on hover */
.mx-team figure img { transition: transform .8s ease; }
.mx-team figure:hover img { transform: scale(1.06); }
.mx-team figure figcaption { z-index: 1; }
.mx-team .mv-metric { transition: transform .25s, background .25s; }
.mx-team .mv-metric:hover { background: #eef8f8; transform: scale(1.04); }
.mv-card.mx-segment:hover, .mx-steps li:hover { transform: translateY(-8px) scale(1.03); }
.mx-steps li { transition: transform .25s, box-shadow .25s; }
.mx-steps li:hover { box-shadow: 0 22px 44px rgba(9, 44, 76, .16); }
.mx-segment .mv-card-icon { width: 62px; height: 62px; font-size: 32px; }
.mx-path > i, .mx-segment .mv-card-icon, .mx-features i { transition: transform .35s; }
.mx-path:hover > i { transform: scale(1.35) rotate(-8deg); transform-origin: left center; }
.mx-segment:hover .mv-card-icon, .mx-features > div:hover i { transform: scale(1.15) rotate(10deg); }

/* Moving strip of dosage forms */
.mx-marquee { margin-top: 52px; overflow: hidden; background: var(--mx-gradient); color: #fff; }
.mx-marquee-track { display: flex; width: max-content; animation: mx-slide 28s linear infinite; }
.mx-marquee:hover .mx-marquee-track { animation-play-state: paused; }
.mx-marquee-track > div { display: flex; }
.mx-marquee span { display: flex; align-items: center; gap: 12px; padding: 18px 34px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.mx-marquee i { color: #e4f88a; font-size: 28px; }
@keyframes mx-slide { to { transform: translateX(-50%); } }

/* Pulsing rings on the main actions */
.mv-whatsapp { animation: mx-pulse-green 2s infinite; }
.mx-hero .mx-btn-glow, .mx-band .mx-btn-glow { animation: mx-pulse-lime 2.2s infinite; }
.mx-actionbar a.mx-actionbar-main { animation: mx-pulse-lime 2.2s infinite; }
.mx-hero-inner > .mv-actions .mx-btn-glow { animation-delay: 1.4s; }
.fc-launcher i { animation: mx-wiggle 3s ease-in-out infinite; }
@keyframes mx-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .65); } 75%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
@keyframes mx-pulse-lime { 0% { box-shadow: 0 0 0 0 rgba(183, 212, 51, .75); } 75%, 100% { box-shadow: 0 0 0 16px rgba(183, 212, 51, 0); } }
@keyframes mx-wiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-16deg) scale(1.15); } 92% { transform: rotate(14deg) scale(1.15); } }

@media (max-width: 1100px) {
    .mx-floaters i { width: 46px; height: 46px; border-radius: 14px; font-size: 23px; opacity: .65; }
    .mx-floaters i:nth-child(odd) { left: 2%; }
    .mx-floaters i:nth-child(even) { right: 2%; }
    .mx-floaters i:nth-child(3), .mx-floaters i:nth-child(4) { display: none; }
}

@media (max-width: 768px) {
    .mx-floaters i:nth-child(n+3) { display: none; }
    .mx-floaters i:nth-child(1), .mx-floaters i:nth-child(2) { top: 24px; width: 34px; height: 34px; font-size: 18px; }
    .mx-marquee { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .mx-floaters i, .mx-hero-inner > *, .mx-team figure, .mx-hero h1 span, .mx-marquee-track,
    .mv-whatsapp, .mx-hero .mx-btn-glow, .mx-band .mx-btn-glow, .mx-actionbar a.mx-actionbar-main, .fc-launcher i { animation: none; }
}

@media (max-width: 480px) {
    .mx-floaters { display: none; }
}

/* Five therapeutic segments */
.mx-segments { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.mx-segments > .mx-segment { flex: 0 1 calc((100% - 44px) / 3); height: auto; }
@media (max-width: 768px) { .mx-segments > .mx-segment { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 480px) { .mx-segments > .mx-segment { flex-basis: 100%; } }

/* Derma brochure on the product page */
.mx-brochure { max-width: 900px; text-align: center; }
.mx-brochure img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--mv-shadow); }
.mx-brochure p { margin: 18px 0 0; color: var(--mv-muted); font-size: 13px; }

/* About page photo keeps its proportions */
img.mv-image { height: auto; }

/* Spam trap field: off screen for people */
.mx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
