/* =====================================================================
   MDP Healthcare – Modern refresh layer (Nov 2026)
   Loaded after mdp.css. Mobile-first makeover + light desktop polish.
   Brand palette kept: navy #112b7b · indigo #2e3385 · blue #2b85e6
                       cyan #03a9f4 · sky #eaf7fb · ice #e8f4ff
   ===================================================================== */

:root {
    --mdp-navy: #112b7b;
    --mdp-indigo: #2e3385;
    --mdp-blue: #2b85e6;
    --mdp-cyan: #03a9f4;
    --mdp-sky: #eaf7fb;
    --mdp-ice: #e8f4ff;
    --mdp-text: #4a5568;
    --mdp-heading: #112b7b;
    --mdp-radius: 16px;
    --mdp-radius-sm: 12px;
    --mdp-shadow: 0 6px 24px rgba(17, 43, 123, 0.08);
    --mdp-shadow-lg: 0 14px 36px rgba(17, 43, 123, 0.14);
    --mdp-gutter: 20px;
    --mdp-topbar-h: 44px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--mdp-cyan); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   1. Header: compact top bar + sticky navigation (all sizes)
   --------------------------------------------------------------------- */
header {
    position: sticky;
    top: calc(-1 * var(--mdp-topbar-h));   /* top bar scrolls away, nav sticks */
    z-index: 1000;
}
.top-bar {
    height: var(--mdp-topbar-h);
    padding: 0;
    display: flex;
    align-items: center;
}
.top-bar .container { width: 100%; flex-wrap: nowrap; }
.top-bar .contact-item img { width: 16px; height: 16px; }
.search-icon { display: none; }   /* had no search behind it */

.main-nav { padding: 4px 0; box-shadow: 0 6px 20px rgba(17, 43, 123, 0.07); }
.nav-links a { position: relative; }
.nav-links a.is-active { color: var(--mdp-blue); }
@media (min-width: 993px) {
    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -8px;
        height: 2px;
        border-radius: 2px;
        background: var(--mdp-blue);
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }
    .nav-links a:hover::after,
    .nav-links a.is-active::after { transform: scaleX(1); }
    .mobile-menu-head,
    .mobile-menu-cta { display: none; }
}

/* ---------------------------------------------------------------------
   2. Buttons (all sizes)
   --------------------------------------------------------------------- */
.learn-more-btn,
.submit-btn,
.cta-button-primary,
.cta-button-secondary,
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.learn-more-btn { box-shadow: 0 8px 20px rgba(3, 169, 244, 0.25); }
.learn-more-btn:hover { box-shadow: 0 12px 26px rgba(3, 169, 244, 0.32); }
a.learn-more-btn, a.submit-btn { color: #ffffff; }

/* Hero call-to-action buttons */
.carousel-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-btn { padding: 14px 28px; font-size: 16px; }
.hero-btn--primary { background: var(--mdp-cyan); color: #ffffff; box-shadow: 0 10px 24px rgba(3, 169, 244, 0.35); }
.hero-btn--primary:hover { background: #0288d1; color: #ffffff; transform: translateY(-2px); }
.hero-btn--ghost { border: 2px solid rgba(255, 255, 255, 0.75); color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.hero-btn--ghost:hover { background: #ffffff; color: var(--mdp-navy); border-color: #ffffff; }
.carousel-subtitle { margin-bottom: 28px; }

/* ---------------------------------------------------------------------
   3. Fixes that apply everywhere
   --------------------------------------------------------------------- */
/* Privacy hero pointed to a missing image – use the same look as other pages */
.privacy-hero .hero-bg {
    background:
        linear-gradient(135deg, rgba(30, 39, 96, 0.9) 0%, rgba(46, 51, 133, 0.82) 50%, rgba(30, 39, 96, 0.9) 100%),
        url("../images/services.webp") center / cover no-repeat;
}
/* 404 "Back to Home" text was blue on blue */
.terms-card a.submit-btn,
.error-card a.submit-btn {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    padding: 0 28px;
    width: auto;
}

/* Floating WhatsApp aligned with the scroll-to-top button */
.floatingwhatsapp {
    width: 48px;
    height: 48px;
    line-height: 50px;
    bottom: 16px;
    left: 16px;
    box-shadow: 0 8px 20px rgba(77, 194, 71, 0.35);
}

/* Contact form inputs: modern fields, 16px text stops iOS zoom-on-focus */
.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 16px;
    border-radius: var(--mdp-radius-sm);
    border: 1px solid #d9e3f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--mdp-blue);
    box-shadow: 0 0 0 4px rgba(43, 133, 230, 0.15);
}
.contact-form .submit-btn { width: 100%; min-height: 52px; font-size: 16px; border-radius: 999px; }

/* =====================================================================
   4. TABLET & MOBILE (≤ 992px)
   ===================================================================== */
@media (max-width: 992px) {
    :root { --mdp-topbar-h: 36px; }

    /* Top bar: one tidy line */
    .top-bar { font-size: 12px; }
    .top-bar .container { justify-content: center; gap: 18px; padding: 0 var(--mdp-gutter); }

    /* Nav bar */
    .main-nav { padding: 0; }
    .main-nav .container { padding: 10px var(--mdp-gutter); }
    .logo-placeholder { height: auto; padding-right: 0; }
    .logo-placeholder img { height: 40px; width: auto; display: block; }

    /* Hamburger – was rendered 0px wide, so the menu could not be opened */
    .menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: var(--mdp-ice);
        color: var(--mdp-navy);
        font-size: 20px;
        transition: background-color 0.2s ease;
    }
    .menu-icon:active { background: #d3e8ff; }

    /* Slide-in menu */
    .nav-links-wrapper {
        width: min(86vw, 360px);
        padding: 20px 24px 28px;
        gap: 0;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: linear-gradient(165deg, var(--mdp-navy) 0%, #1c3a96 55%, #2361c4 100%);
        box-shadow: 12px 0 40px rgba(10, 20, 60, 0.35);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-menu-head {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding-bottom: 18px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }
    .mobile-menu-logo img { height: 42px; width: auto; display: block; }
    .close-btn {
        top: 20px;
        right: 18px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-size: 18px;
        line-height: 44px;
        text-align: center;
    }
    .nav-links { gap: 0; padding: 0; margin: 0; }
    .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px;
        border: 0;
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 0.01em;
    }
    .nav-links a::after {
        content: "";
        width: 8px;
        height: 8px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.55;
        flex-shrink: 0;
    }
    .nav-links a:hover,
    .nav-links a.is-active { color: #7fd6ff; }
    .nav-links a.is-active { font-weight: 600; }

    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 52px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
    }
    .mobile-menu-btn--primary { background: var(--mdp-cyan); box-shadow: 0 10px 24px rgba(3, 169, 244, 0.35); }
    .mobile-menu-btn--whatsapp { background: #4dc247; }
    .mobile-menu-mail {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 14px;
        text-decoration: none;
    }

    .overlay { background: rgba(8, 18, 52, 0.55); }
    body.menu-open { overflow: hidden; }
    body.menu-open .floatingwhatsapp,
    body.menu-open .mdp-scroll-top { opacity: 0; pointer-events: none; }

    /* Footer: left aligned, two-column links */
    .footer-container { text-align: left; }
    .footer-about { text-align: left; }
    .footer-about-text p { margin-left: 0; margin-right: 0; text-align: left; }
    .footer-logo { justify-content: flex-start; text-align: left; }
    .footer-links-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 20px;
    }
    .footer-links-list li { margin: 0; }
    .footer-link { display: inline-block; padding: 8px 0; }
    .footer-contact .contact-item { justify-content: flex-start; text-align: left; }
    .footer-cta { align-items: stretch; }
    .footer-social-rail { justify-content: flex-start; }
}

/* =====================================================================
   5. MOBILE (≤ 768px) – section-by-section makeover
   ===================================================================== */
@media (max-width: 768px) {

    /* --- Typography & rhythm --- */
    body { font-size: 15px; line-height: 1.65; }
    .title-heading,
    .services-heading,
    .about-heading,
    .projects-header h2,
    .section-header h2,
    .overview-content h2,
    .why-choose-content h2,
    .cta-content h2,
    .clients-container > h2,
    .contact-info-title,
    .contact-form-title {
        font-size: 28px;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    .title-heading,
    .services-heading { font-weight: 700; }

    /* Eyebrow labels as pills */
    .about-label span,
    .section-label span,
    .section-label {
        letter-spacing: 0.08em;
    }
    .about-label,
    .section-label {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 999px;
        background: var(--mdp-ice);
        color: var(--mdp-blue);
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 14px;
    }
    .section-label-light { background: rgba(255, 255, 255, 0.12); color: #9fdcff; }

    /* --- Hero slider --- */
    .hero-carousel {
        height: 78vh;
        height: 78svh;
        min-height: 520px;
        max-height: 680px;
    }
    .carousel-slide::before {
        background: linear-gradient(180deg, rgba(8, 20, 60, 0.15) 0%, rgba(8, 20, 60, 0.5) 45%, rgba(8, 20, 60, 0.92) 100%);
    }
    .carousel-content {
        align-items: flex-end;
        padding: 0 var(--mdp-gutter) 64px;
        text-align: left;
    }
    .carousel-text { width: 100%; max-width: 560px; }
    .carousel-headline {
        font-size: clamp(30px, 8.4vw, 40px);
        line-height: 1.12;
        margin-bottom: 14px;
        max-width: 100%;
    }
    .carousel-subtitle {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 22px;
        opacity: 0.95;
    }
    .carousel-cta { flex-direction: column; gap: 10px; }
    .hero-btn { width: 100%; padding: 13px 20px; font-size: 15px; }
    .carousel-toggle {
        top: 16px;
        right: 16px;
        bottom: auto;
        left: auto;
        width: 40px;
        height: 40px;
        min-height: 40px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .carousel-progress {
        right: auto;
        left: 50%;
        bottom: 26px;
        transform: translateX(-50%);
        gap: 8px;
    }
    .carousel-progress-dot { width: 22px; height: 4px; border-radius: 4px; }
    .carousel-progress-dot.is-active { width: 36px; }

    /* --- Shared section spacing --- */
    .about-section,
    .why-choose-section,
    .services-section,
    .reviews-section,
    .mdp-faq-section,
    .mdp-blog-section,
    .mission-vision-modern,
    .about-overview,
    .about-mission-vision,
    .about-values,
    .about-why-choose,
    .about-cta,
    .clients-section,
    .contact-cards,
    .privacy-section,
    .terms-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .about-section .container,
    .mission-vision-modern .container,
    .about-container,
    .clients-container,
    .projects-container,
    .recent-projects-container,
    .contact-cards-container,
    .reviews-container,
    .mdp-faq-container,
    .mdp-blog-container,
    .services-container { padding-left: var(--mdp-gutter); padding-right: var(--mdp-gutter); }

    /* --- Inner page hero --- */
    .about-hero { padding: 56px 0 48px; }
    .about-hero-container { padding: 0 var(--mdp-gutter); }
    .about-hero-content h1 { font-size: 30px; line-height: 1.2; margin-bottom: 10px; }
    .about-hero-subtitle { font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
    .about-hero .breadcrumb { margin-top: 16px; }
    .about-hero .breadcrumb ol {
        display: inline-flex;
        padding: 6px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        gap: 10px;
    }
    .about-hero .breadcrumb li { font-size: 13px; }
    .about-hero .breadcrumb li:not(:last-child)::after { margin-left: 10px; }
    .privacy-hero { min-height: 0; }

    /* --- Home: About --- */
    .about-content { gap: 28px; padding: 0; }
    .about-text { text-align: left; }
    .about-heading { text-align: left; margin-bottom: 14px; }
    .about-description { text-align: left; font-size: 15px; line-height: 1.7; color: var(--mdp-text); }
    .about-image img { border-radius: 20px; box-shadow: var(--mdp-shadow-lg); }

    /* --- Home: Mission & Vision --- */
    .mission-vision-modern { background: linear-gradient(160deg, #03a9f4 0%, #2b85e6 100%); }
    .mission-vision-content { gap: 18px; }
    .mission-vision-block {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;
        padding: 18px;
        text-align: left;
    }
    .mission-vision-block .block-image { margin: 0 0 16px; width: 100%; }
    .mission-vision-block .block-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 14px;
    }
    .mission-vision-block .block-text { text-align: left; padding: 0 4px 4px; }
    .mission-vision-block .block-title { font-size: 22px; margin-bottom: 8px; }
    .mission-vision-block .block-description { font-size: 15px; line-height: 1.65; }

    /* --- Home: Why Choose Us – compact icon rows --- */
    .why-choose-title { justify-content: flex-start; text-align: left; padding: 0 var(--mdp-gutter); margin-bottom: 26px; }
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: none;
        padding: 0 var(--mdp-gutter);
    }
    .feature-card {
        flex-direction: row;
        align-items: stretch;
        min-width: 0;
        width: 100%;
        height: auto;
        border-radius: var(--mdp-radius);
        box-shadow: var(--mdp-shadow);
    }
    .feature-card:hover { transform: none; }
    .feature-icon-section {
        width: 84px;
        min-height: 0;
        padding: 16px 14px;
        flex-shrink: 0;
    }
    .feature-icon-section img { width: 46px; height: 46px; object-fit: contain; }
    .feature-content-section {
        min-height: 0;
        padding: 16px 18px;
        justify-content: flex-start;
        text-align: left;
    }
    .feature-text { font-size: 15px; line-height: 1.45; font-weight: 500; }

    /* --- Home: Services – swipeable cards --- */
    .services-header { margin-bottom: 26px; }
    .services-heading { padding-left: 0; text-align: left; }
    .services-section:not(.services-inner) .services-intro {
        background: none;
        box-shadow: none;
        padding: 0;
        text-align: left;
        font-size: 15px;
        line-height: 1.7;
        color: var(--mdp-text);
    }
    .services-section:not(.services-inner) .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin: 0 calc(-1 * var(--mdp-gutter));
        padding: 6px var(--mdp-gutter) 18px;
        scroll-padding: 0 var(--mdp-gutter);
        scrollbar-width: none;
    }
    .services-section:not(.services-inner) .services-grid::-webkit-scrollbar { display: none; }
    .services-section:not(.services-inner) .service-card {
        flex: 0 0 84%;
        min-width: 0;
        max-width: 340px;
        scroll-snap-align: start;
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: var(--mdp-shadow);
    }
    .services-section:not(.services-inner) .service-card-inner {
        flex-direction: column !important;
        gap: 0;
        height: 100%;
        text-align: left;
    }
    .services-section:not(.services-inner) .service-image {
        order: -1;
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 0;
        margin: 0;
    }
    .services-section:not(.services-inner) .service-content { padding: 20px 20px 24px; text-align: left; }
    .services-section:not(.services-inner) .service-title { font-size: 18px; line-height: 1.35; min-height: 0; margin-bottom: 8px; }
    .services-section:not(.services-inner) .service-description { font-size: 14px; line-height: 1.6; }
    .services-section .center-btn { margin-top: 18px; }

    /* --- Services page: tidy cards --- */
    .services-inner .intro-text { text-align: left; font-size: 15px; line-height: 1.7; }
    .services-inner .services-grid { gap: 14px; }
    .services-inner .service-card {
        padding: 20px;
        border-radius: var(--mdp-radius);
        min-height: 0;
        box-shadow: var(--mdp-shadow);
    }
    .services-inner .service-card-inner {
        flex-direction: row !important;
        padding: 0;
        background: transparent;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }
    .services-inner .service-image {
        order: 0;
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        padding: 10px;
        border-radius: 14px;
        background: var(--mdp-ice);
        object-fit: contain;
        align-self: flex-start;
    }
    .services-inner .service-title { font-size: 17px; line-height: 1.35; margin-bottom: 6px; min-height: 0; text-align: left; }
    .services-inner .service-description { font-size: 14px; line-height: 1.6; text-align: left; }

    /* --- Reviews & clients --- */
    .reviews-header { margin-bottom: 32px; }
    .reviews-header img { max-width: 220px; height: auto; }
    .testimonial-card {
        border-radius: 20px;
        border: 1px solid #e3ecf8;
        box-shadow: var(--mdp-shadow);
        padding: 26px 22px;
    }
    .testimonial-text { font-size: 15px; line-height: 1.7; }
    .reviews-container > div[style] { margin: 36px 0 0 !important; }   /* inline 60px margin around the logo strip */

    /* --- Home: FAQ & blog --- */
    .mdp-faq-header,
    .mdp-blog-header { margin-bottom: 26px; }
    .mdp-blog-section:not(.mdp-blog-section--page) .mdp-blog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin: 0 calc(-1 * var(--mdp-gutter));
        padding: 6px var(--mdp-gutter) 18px;
        scroll-padding: 0 var(--mdp-gutter);
        scrollbar-width: none;
    }
    .mdp-blog-section:not(.mdp-blog-section--page) .mdp-blog-grid::-webkit-scrollbar { display: none; }
    .mdp-blog-section:not(.mdp-blog-section--page) .mdp-blog-card { flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; }
    .mdp-blog-section .center-btn { margin-top: 22px; }
    .mdp-blog-card { border-radius: 20px; }
    .mdp-blog-card-body { padding: 20px; }

    /* --- About page --- */
    .overview-grid { gap: 28px; }
    .overview-content { text-align: left; }
    .overview-content p,
    .lead-text { font-size: 15px; line-height: 1.7; }
    .overview-image img { border-radius: 20px; }
    .overview-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 18px 0 0;
    }
    .stat-item {
        background: var(--mdp-ice);
        border-radius: var(--mdp-radius-sm);
        padding: 14px 8px;
        text-align: center;
    }
    .stat-number { font-size: 26px; line-height: 1.1; }
    .stat-label { font-size: 12px; line-height: 1.35; }
    .mission-vision-grid { gap: 16px; }
    .mv-card { border-radius: 20px; padding: 24px 22px; }
    .mv-content h2,
    .mv-content h3 { font-size: 22px; }
    .mv-content p { font-size: 15px; line-height: 1.7; }
    .section-header { margin-bottom: 28px; padding: 0; }
    .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .value-card { padding: 20px 14px; border-radius: var(--mdp-radius); }
    .value-card h3 { font-size: 16px; margin: 10px 0 6px; }
    .value-card p { font-size: 13px; line-height: 1.55; }
    .value-icon { width: 52px; height: 52px; margin: 0 auto; }
    .why-choose-grid { gap: 24px; }
    .why-choose-image img { border-radius: 20px; }
    .why-choose-content p { font-size: 15px; line-height: 1.7; }
    .why-choose-list li { font-size: 14px; }
    .cta-content p { font-size: 15px; line-height: 1.7; }
    .cta-buttons { flex-direction: column; gap: 12px; width: 100%; }
    .cta-buttons a,
    .cta-button-primary,
    .cta-button-secondary { width: 100%; max-width: none; min-height: 52px; }

    /* --- Projects page --- */
    .projects-content { padding-top: 56px; }
    .projects-content { padding-bottom: 0; }
    .projects-header { margin-bottom: 0; }
    .recent-projects { padding-top: 28px; }
    .projects-header { text-align: left; }
    .projects-intro { text-align: left; font-size: 15px; line-height: 1.7; }
    .projects-grid,
    .recent-projects .projects-grid {
        grid-template-columns: 1fr;    /* minmax(350px) overflowed phones < 390px */
        gap: 18px;
        margin-top: 32px;
    }
    .project-card { border-radius: 20px; box-shadow: var(--mdp-shadow); }
    .project-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }

    /* --- Clients page: logo grid --- */
    .clients-container { text-align: left; }
    .clients-container h2 { text-align: left; }
    .clients-subheading { text-align: left; font-size: 15px; }
    .clients-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .client-card {
        width: auto;
        max-width: none;
        height: 104px;
        padding: 14px;
        margin: 0;
        border-radius: var(--mdp-radius);
        box-shadow: var(--mdp-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .client-card img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }

    /* --- Contact page --- */
    .contact-cards-wrapper { gap: 18px; }
    .contact-cards-wrapper { background: transparent; padding: 0; box-shadow: none; border: 0; border-radius: 0; }
    .contact-info-card,
    .contact-form-card { background: #ffffff; }
    .contact-info-card,
    .contact-form-card { padding: 24px 20px; border-radius: 20px; box-shadow: var(--mdp-shadow); }
    .info-block { gap: 14px; }
    .info-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
    .contact-form input,
    .contact-form textarea { padding: 14px 16px; }

    /* --- Privacy / terms / 404 --- */
    .privacy-card,
    .terms-card { padding: 24px 20px; border-radius: 20px; }
    .privacy-card h2,
    .terms-card h2 { font-size: 22px; }

    /* --- Footer --- */
    .footer-main { padding: 48px 0 32px; }
    .footer-container { gap: 26px; }
    .footer-column { padding-bottom: 26px; }
    .footer-heading { font-size: 16px; margin-bottom: 12px; text-align: left; }
    .footer-about-text p { font-size: 14px; line-height: 1.7; }
    .footer-about-text p:last-child { display: none; }   /* keep the footer short on phones */
    .footer-contact .contact-item { gap: 12px; margin-bottom: 12px; }
    .call-care-btn { width: 100%; max-width: none; justify-content: center; border-radius: 16px; }
    .footer-copyright { padding: 18px var(--mdp-gutter) 72px; }   /* room for floating buttons */
    .footer-copyright p { font-size: 12px; line-height: 1.7; }
}

/* =====================================================================
   6. SMALL PHONES (≤ 400px)
   ===================================================================== */
@media (max-width: 400px) {
    :root { --mdp-gutter: 16px; }
    .top-bar .contact-item:nth-of-type(2) { display: none; }  /* keep the phone line only */
    .carousel-headline { font-size: 29px; }
    .title-heading,
    .services-heading,
    .about-heading { font-size: 26px; }
    .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .top-bar .contact-item:nth-of-type(2) { display: none; }
}
@media (max-width: 600px) {
    .mdp-blog-tags { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 768px) {
    .overview-grid,
    .why-choose-grid,
    .mission-vision-grid { grid-template-columns: minmax(0, 1fr); }
    .overview-content,
    .why-choose-content { min-width: 0; }
}

/* ---- Tablet refinements (601px – 992px) ---- */
@media (max-width: 992px) {
    .clients-grid { justify-items: stretch; }
}
@media (min-width: 601px) and (max-width: 992px) {
    .clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .client-card { width: auto; max-width: none; margin: 0; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-cta { flex-direction: row; }
    .hero-btn { width: auto; }
    .mission-vision-content { display: grid; grid-template-columns: 1fr 1fr; }
    .mission-vision-block .block-title { font-size: 20px; }
    .mission-vision-block .block-description { font-size: 14px; }
}

/* =====================================================================
   Floating action buttons – right side (scroll-to-top, call, WhatsApp)
   ===================================================================== */
.mdp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;            /* only the buttons catch clicks */
}
.mdp-fab-btn {
    pointer-events: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(17, 43, 123, 0.25);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.mdp-fab-btn svg { display: block; flex-shrink: 0; }
.mdp-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17, 43, 123, 0.32); color: #ffffff; }
.mdp-fab-btn:focus-visible { outline: 3px solid var(--mdp-cyan); outline-offset: 3px; }
.mdp-fab-btn--call { background: var(--mdp-blue); }
.mdp-fab-btn--call:hover { background: var(--mdp-navy); }
.mdp-fab-btn--whatsapp { background: #25d366; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.mdp-fab-btn--whatsapp:hover { background: #1ebe5a; }

/* Scroll-to-top now lives in the stack (overrides the earlier fixed position) */
.mdp-fab .mdp-scroll-top {
    position: relative;
    right: auto;
    bottom: auto;
    width: 46px;
    height: 46px;
    margin-right: 4px;               /* centred above the 54px buttons */
    background: #ffffff;
    color: var(--mdp-navy);
    border: 1px solid #dbe6f5;
    font-size: 0;
    box-shadow: 0 8px 20px rgba(17, 43, 123, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}
.mdp-fab .mdp-scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mdp-fab .mdp-scroll-top:hover { background: var(--mdp-navy); color: #ffffff; border-color: var(--mdp-navy); }

/* Hover labels on devices with a mouse */
.mdp-fab-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translate(8px, -50%);
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--mdp-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--mdp-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .mdp-fab-btn:hover .mdp-fab-label,
    .mdp-fab-btn:focus-visible .mdp-fab-label { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}

/* Gentle attention pulse on WhatsApp (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    .mdp-fab-btn--whatsapp::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25d366;
        z-index: -1;
        animation: mdp-fab-pulse 2.8s ease-out infinite;
    }
}
@keyframes mdp-fab-pulse {
    0% { transform: scale(1); opacity: 0.45; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
}

body.menu-open .mdp-fab { opacity: 0; visibility: hidden; }

@media (max-width: 768px) {
    .mdp-fab { right: 14px; bottom: 14px; gap: 10px; }
    .mdp-fab-btn { width: 50px; height: 50px; }
    .mdp-fab .mdp-scroll-top { width: 42px; height: 42px; margin-right: 4px; }
    .mdp-fab-label { display: none; }
}
@media print { .mdp-fab { display: none; } }

/* Blog: table of contents + in-article images */
.mdp-article-toc {
    margin: 0 0 32px;
    padding: 22px 26px;
    border-radius: 14px;
    background: var(--mdp-sky);
    border-left: 4px solid var(--mdp-blue);
}
.mdp-article-toc-title { margin: 0 0 10px; font-weight: 600; color: var(--mdp-navy); font-size: 1rem; }
.mdp-article-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mdp-article-toc li { position: relative; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; }
.mdp-article-toc li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--mdp-blue); }
.mdp-article-toc a { color: var(--mdp-navy); text-decoration: none; }
.mdp-article-toc a:hover { color: var(--mdp-blue); text-decoration: underline; }
.mdp-article-content h2[id] { scroll-margin-top: 110px; }
.mdp-article-content img { display: block; width: 100%; max-width: 100%; height: auto; box-shadow: var(--mdp-shadow); }
.mdp-article-content p em { color: #6b7280; font-size: 0.92em; }
@media (max-width: 768px) {
    .mdp-article-toc { padding: 18px 18px 18px 20px; }
}
