/* =====================================================================
   HOMEPAGE — MOBILE LAYOUT (≤ 768px)
   Loaded only by templates/Main/index.php, after every other stylesheet.
   Every rule is scoped to body.page-main-index so no other page changes.

   The desktop layout positions sections with large negative offsets
   (top: -500px, margin-top: -430px, absolute cards…). On mobile we
   reset all of that and let the page flow top-to-bottom naturally:

     1. Header bar (logo + hamburger)
     2. Hero (headline, intro, CTA)
     3. Mission band
     4. Product category carousel (swipe)
     5. "Total Value" + 3 statement cards
     6. Footer
   ===================================================================== */

@media screen and (max-width: 768px) {
    .page-main-index {
        --home-header-h: 64px;
        --home-gutter: 20px;
        --home-blue: #007bff;
        --home-navy: #0b2545;
        --home-ink: #14181f;
        --home-muted: #4a5568;
        --home-surface: #f4f8fd;
        --home-card: #ffffff;
        --home-radius: 16px;
        overflow-x: clip;
    }

    /* ---------- Layout container from the CakePHP layout ---------- */
    .page-main-index .main > .container {
        width: 100%;
        height: auto;
        padding: 0;
    }

    /* =================================================================
       1. HEADER BAR
       ================================================================= */
    .page-main-index .fixed-banneritems1 {
        height: var(--home-header-h);
        opacity: 0.97;
        box-shadow: 0 2px 12px rgba(11, 37, 69, 0.15);
        z-index: 50;
    }

    .page-main-index .logo-link {
        top: 0;
        left: 6px;
        z-index: 60 !important;
    }

    .page-main-index .logo-link img.logo-image,
    .page-main-index .logo-image {
        position: static;
        width: auto;
        height: var(--home-header-h);
        max-height: none;
    }

    /* No hover zoom/pulse on touch devices */
    .page-main-index .logo-link img.logo-image:hover {
        transform: none;
        animation: none;
        filter: none;
    }

    .page-main-index .hamburger {
        top: 0;
        right: 8px;
        width: 48px;
        height: var(--home-header-h);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        line-height: 1;
        color: var(--home-navy);
        -webkit-tap-highlight-color: transparent;
    }

    /* Menu logo stays in the menu flow, not pinned like the header logo */
    .page-main-index .mobile-menu .logo-image {
        position: static;
        height: auto;
        width: 200px;
        margin: 0 auto 20px;
    }

    .page-main-index .mobile-menu {
        padding-top: calc(var(--home-header-h) + 16px);
        padding-bottom: 40px;
        height: 100dvh;
    }

    /* =================================================================
       2. HERO
       ================================================================= */
    /* Hero design lives in the "HERO — NEW DESIGN" block at the end of
       this file (shared with desktop); only phone sizing is here. */
    .page-main-index .hero-section {
        /* Background keeps its previous height; copy sits near the top */
        min-height: 640px;
        padding: calc(var(--home-header-h) + 44px) var(--home-gutter) 56px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background-position: center top;
    }

    /* =================================================================
       3. MISSION BAND
       ================================================================= */
    .page-main-index .solutions-section {
        margin-top: 0;
        padding: 44px 0;
        overflow: hidden;
    }

    /* Oversize the blurred image so its soft edges stay out of view */
    .page-main-index .solutions-section::before {
        top: -24px;
        left: -24px;
        width: calc(100% + 48px);
        height: calc(100% + 48px);
        transform: none;
    }

    .page-main-index .solutions-section h2:empty {
        display: none;
    }

    .page-main-index .solutions-section .mission-text {
        margin: 0 auto;
        max-width: 640px;
        padding: 0 var(--home-gutter);
        font-size: 16px;
        color: #f1f5fb;
    }

    .page-main-index .solutions-section .mission-text p {
        margin: 0;
        padding: 0;
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    }

    /* =================================================================
       4. PRODUCT CAROUSEL — horizontal swipe with snap
       ================================================================= */
    .page-main-index .image-slider {
        top: 0;
        right: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 36px 0 40px;
        background: var(--home-surface);
        box-shadow: none;
        overflow: visible;
    }

    /* Section label above the cards */
    .page-main-index .image-slider::before {
        content: "Product Categories";
        display: block;
        padding: 0 var(--home-gutter);
        margin-bottom: 4px;
        font-family: "Poppins", sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--home-ink);
    }

    .page-main-index .image-slider .slider-container {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 14px;
        margin: 0;
        padding: 20px var(--home-gutter) 24px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--home-gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transform: none;
    }

    .page-main-index .image-slider .slider-container::-webkit-scrollbar {
        display: none;
    }

    /* Card look copied from the desktop slider (slider.css .slide) */
    .page-main-index .image-slider .slide {
        position: relative;
        flex: 0 0 72%;
        max-width: 280px;
        min-width: 0;
        width: auto;
        height: 390px;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background-color: #f8fbff;
        border: 2px solid transparent;
        border-radius: 15px;
        box-shadow: none;
        scroll-snap-align: start;
        text-align: left;
        transform: none;
        transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
        -webkit-tap-highlight-color: transparent;
    }

    /* Same gradient wash as desktop: light blue fading to dusk at the bottom */
    .page-main-index .image-slider .slide::after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 130%;
        background: linear-gradient(
            to top,
            rgba(7, 7, 46, 0.5),
            rgba(14, 117, 234, 0.3) 20%,
            rgba(1, 1, 1, 0) 80%
        );
        z-index: 1;
        pointer-events: none;
    }

    /* Image fills the top 70% edge to edge, like desktop */
    .page-main-index .image-slider .slide img {
        flex: 0 0 70%;
        width: 100%;
        height: 70%;
        padding: 0;
        object-fit: cover;
        background: none;
        border-radius: 0;
        box-sizing: border-box;
    }

    /* Kits image is rotated on desktop; show it upright on phones */
    .page-main-index .image-slider .horizontal-slide img {
        transform: none;
    }

    /* Reset every per-slide offset from solutionssection.css / slider.css */
    .page-main-index .image-slider .slide .slide-text,
    .page-main-index .image-slider .slide .read-more1 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: block;
        max-width: none;
        margin: 0;
        padding: 0 20px;
        background: none;
        border-radius: 0;
        opacity: 1;
        text-align: left;
        z-index: 2;
    }

    .page-main-index .image-slider .slide .slide-text {
        padding-top: 4px;
        font-size: 22px;
        font-weight: bold;
        line-height: 1.6;
        color: rgb(4, 4, 10);
    }

    .page-main-index .image-slider .slide .read-more1 {
        margin-top: auto;
        padding-bottom: 16px;
        font-size: 16px;
        font-weight: bold;
        line-height: 1.3;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(7, 7, 46, 0.45);
    }

    .page-main-index .image-slider .slide .read-more1 i {
        margin-left: 4px;
        font-size: 14px;
    }

    /* Desktop hover animation, triggered by a tap on phones */
    .page-main-index .image-slider .slide:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .page-main-index .image-slider .slide:hover .slide-text {
        color: rgb(4, 4, 10);
    }

    .page-main-index .image-slider .slide:active {
        transform: scale(1.03);
        border: 2px solid #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.7),
            0 0 20px rgba(0, 123, 255, 0.5),
            0 0 30px rgba(0, 123, 255, 0.4);
        z-index: 5;
    }

    .page-main-index .image-slider .slide:active .slide-text {
        color: #007bff;
    }

    /* =================================================================
       5. "TOTAL VALUE" + STATEMENT CARDS
       ================================================================= */
    .page-main-index #bottom-section.blur-image-container {
        right: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 48px var(--home-gutter) 24px;
        overflow: hidden;
        text-align: center;
        background: linear-gradient(180deg, #e8f3fc 0%, #d6ecfa 100%);
    }

    .page-main-index .blur-image-container .blur-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        object-fit: cover;
        filter: blur(18px) brightness(1.15);
        opacity: 0.55;
        z-index: 0;
    }

    .page-main-index .blur-image-container::after {
        border-radius: 0;
        z-index: 1;
    }

    .page-main-index .blur-text,
    .page-main-index .blur-text1 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        max-width: 560px;
        z-index: 2;
    }

    .page-main-index .blur-text {
        margin: 0 auto 12px;
        font-size: 30px;
        line-height: 1.2;
        white-space: normal;
    }

    .page-main-index .blur-text1 {
        margin: 0 auto 52px;
        font-size: 16px;
        line-height: 1.65;
        color: #1f2933;
        text-align: center;
    }

    .page-main-index .card,
    .page-main-index .card1,
    .page-main-index .card2 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 480px;
        height: auto;
        margin: 0 auto 48px;
        padding: 44px 22px 24px;
        box-sizing: border-box;
        text-align: left;
        z-index: 2;
    }

    .page-main-index .card2 {
        margin-bottom: 24px;
    }

    .page-main-index .card-title,
    .page-main-index .card-title1,
    .page-main-index .card-title2,
    .page-main-index .card > h3,
    .page-main-index .card1 > h3,
    .page-main-index .card2 > h3 {
        position: static;
        margin: 0 0 12px;
        font-size: 22px;
        line-height: 1.25;
        text-align: center;
    }

    .page-main-index .card-content,
    .page-main-index .card-content1,
    .page-main-index .card > p,
    .page-main-index .card1 > p,
    .page-main-index .card2 > p {
        position: static;
        margin: 0;
        font-size: 15.5px;
        line-height: 1.65;
    }

    .page-main-index .card .icon,
    .page-main-index .card1 .icon,
    .page-main-index .card2 .icon {
        top: -28px;
        left: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        transform: translateX(-50%);
    }

    .page-main-index .card .icon:hover,
    .page-main-index .card1 .icon:hover,
    .page-main-index .card2 .icon:hover {
        transform: translateX(-50%);
    }

    /* =================================================================
       6. FOOTER
       ================================================================= */
    .page-main-index .site-footer {
        padding: 44px var(--home-gutter) 28px;
    }

    .page-main-index .footer-container {
        gap: 32px;
    }

    .page-main-index .footer-column h4 {
        margin-bottom: 12px;
    }

    .page-main-index .footer-column p {
        margin: 0 auto;
        max-width: 36ch;
        line-height: 1.6;
    }

    .page-main-index .footer-column ul {
        margin: 0;
    }

    .page-main-index .footer-column ul li {
        margin: 0;
    }

    /* Desktop adds margin-right: 300px to footer links — causes sideways scroll */
    .page-main-index .footer-column li a {
        display: inline-block;
        margin: 0;
        padding: 7px 0;
    }

    .page-main-index .footer-bottom {
        margin-top: 32px;
    }
}

/* Small phones (iPhone SE / mini) */
@media screen and (max-width: 380px) {
    .page-main-index {
        --home-gutter: 16px;
    }

    .page-main-index .image-slider .slide {
        flex-basis: 78%;
    }

    .page-main-index .blur-text {
        font-size: 26px;
    }
}

/* =====================================================================
   HERO TEXT GLOW (trial) — desktop + phones.
   A soft dark glow behind the headline and intro text so they stand out
   from the busy background image. To undo: delete this whole block.
   ===================================================================== */
.page-main-index .hero-section .hero-content {
    position: relative;
    isolation: isolate;
}

.page-main-index .hero-section .hero-content::before {
    content: "";
    position: absolute;
    inset: -70px -90px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(6, 18, 40, 0.45) 0%,
        rgba(6, 18, 40, 0.3) 45%,
        rgba(6, 18, 40, 0) 75%
    );
}

.page-main-index .hero-section .hero-content p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 768px) {
    .page-main-index .hero-section .hero-content::before {
        inset: -50px -40px;
    }
}

/* =====================================================================
   HERO — NEW DESIGN (desktop + phones)
   Pill label → two-line headline → subheading → two buttons.
   Markup: templates/Main/index.php (.hero-eyebrow, .hero-title, …)
   ===================================================================== */
.page-main-index .hero-section {
    align-items: flex-start;
    justify-content: center;
}

@media screen and (min-width: 769px) {
    .page-main-index .hero-section {
        min-height: 100vh;   /* background stays full-height; copy sits near the top */
        padding-top: 150px;
    }
}

.page-main-index .hero-section .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

/* The mission section used to rely on the old, separately-positioned
   button block pulling it upward; with the buttons now inside the hero,
   start it right where the hero ends. */
.page-main-index .solutions-section {
    margin-top: 0;
    /* its blurred background spilled ~20px up over the hero's bottom edge */
    overflow: hidden;
}

/* Pill label */
.page-main-index .hero-section .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 44px;
    padding: 9px 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Headline
   (surgical.css has a site-wide h1 rule — top: 80px, right: -50px, blue
   gradient text — meant for product titles; undo it here) */
.page-main-index .hero-section .hero-title {
    position: static;
    top: auto;
    right: auto;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    margin: 0 0 34px;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.page-main-index .hero-section .hero-title-line {
    display: block;
}

/* Subheading */
.page-main-index .hero-section .hero-subtitle {
    margin: 0 auto 58px;
    padding: 0;
    max-width: 54ch;
    font-family: "Inter", sans-serif;
    font-size: clamp(16px, 1.35vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(236, 242, 252, 0.94);
    opacity: 1;
    text-align: center;
}

/* Buttons */
.page-main-index .hero-section .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.page-main-index .hero-section .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
    padding: 16px 32px;
    border-radius: 11px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Explore Products: the site's original CTA colours (style.css .cta-button)
   — bright blue→cyan gradient, 8px corners, soft dark shadow */
.page-main-index .hero-section .hero-btn--primary {
    background: linear-gradient(90deg, #0084ff 0%, #00b3ff 100%);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-main-index .hero-section .hero-btn--primary:hover {
    background: linear-gradient(90deg, #00b3ff 0%, #5fc8ff 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.page-main-index .hero-section .hero-btn--secondary {
    background: rgba(10, 22, 48, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.page-main-index .hero-section .hero-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.page-main-index .hero-section .hero-btn-arrow {
    font-size: 1.05em;
    transition: transform 0.2s ease;
}

.page-main-index .hero-section .hero-btn--primary:hover .hero-btn-arrow {
    transform: translateX(3px);
}

/* Phones */
@media screen and (max-width: 768px) {
    /* Hero is a column on phones: keep the copy at the top, not centred */
    .page-main-index .hero-section {
        justify-content: flex-start;
    }

    .page-main-index .hero-section .hero-eyebrow {
        margin-bottom: 34px;
        padding: 7px 14px;
        font-size: 10.5px;
        letter-spacing: 0.14em;
    }

    .page-main-index .hero-section .hero-title {
        font-size: clamp(25px, 7.2vw, 34px);
        line-height: 1.15;
        margin-bottom: 28px;
    }

    /* Let the headline wrap naturally on narrow screens */
    .page-main-index .hero-section .hero-title-line {
        display: inline;
    }

    .page-main-index .hero-section .hero-subtitle {
        max-width: 34ch;
        margin-bottom: 46px;
        font-size: 15.5px;
    }

    .page-main-index .hero-section .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        max-width: 340px;
    }

    .page-main-index .hero-section .hero-btn {
        min-width: 0;
        width: 100%;
        padding: 15px 22px;
        font-size: 16px;
    }
}

/* Smallest phones: keep the pill label on one line */
@media screen and (max-width: 380px) {
    .page-main-index .hero-section .hero-eyebrow {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }
}

/* =====================================================================
   REQUEST A QUOTE FORM (bottom of homepage, all screen sizes)
   ===================================================================== */
html { scroll-padding-top: 80px; }   /* #quote lands below the fixed header */

.page-main-index .quote-section {
    position: relative;
    z-index: auto;   /* must stay below the fixed header bar (z-index 2) */
    padding: 80px 24px;
    /* Echoes the hero: same photo, blurred, under the same navy overlay.
       isolation keeps the blurred layer inside this section while still
       letting the fixed header sit on top. */
    isolation: isolate;
    overflow: hidden;
    background: #0f2647;
    color: #ffffff;
}

.page-main-index .quote-section::before {
    content: "";
    position: absolute;
    inset: -40px;               /* oversize so blurred edges stay out of view */
    z-index: -1;
    background:
        /* extra shade on the left, behind the heading and text */
        linear-gradient(90deg, rgba(6, 18, 40, 0.55) 0%, rgba(6, 18, 40, 0.3) 40%, rgba(6, 18, 40, 0) 65%),
        linear-gradient(rgba(10, 30, 60, 0.62), rgba(10, 30, 60, 0.62)),
        url("/img/mdglobal.png") center / cover no-repeat;
    filter: blur(14px);
    pointer-events: none;
}

.page-main-index .quote-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.page-main-index .quote-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-main-index .quote-title {
    position: static;
    margin: 0 0 16px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.page-main-index .quote-title::after { display: none; }

.page-main-index .quote-text {
    margin: 0 0 20px;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #f1f5fb;
}

.page-main-index .quote-intro {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.page-main-index .quote-intro .quote-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-main-index .quote-alt {
    margin: 0;
    font-size: 15px;
    color: rgba(241, 245, 251, 0.9);
}

.page-main-index .quote-alt a {
    color: #9fd4ff;
    font-weight: 600;
}

.page-main-index .quote-card {
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: #14213d;
}

.page-main-index .quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.page-main-index .quote-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #2d3748;
}

.page-main-index .quote-form .quote-full { grid-column: 1 / -1; }

.page-main-index .quote-form input,
.page-main-index .quote-form textarea {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d5dde8;
    border-radius: 9px;
    background: #f8fafc;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #14213d;
    box-shadow: none;
    box-sizing: border-box;
}

.page-main-index .quote-form textarea { resize: vertical; min-height: 100px; }

.page-main-index .quote-form input:focus,
.page-main-index .quote-form textarea:focus {
    outline: none;
    border-color: #0084ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.page-main-index .quote-honey {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.page-main-index .quote-submit {
    display: block;
    width: 100%;
    height: auto;
    margin: 22px 0 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #0084ff 0%, #00b3ff 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-main-index .quote-submit:hover {
    background: linear-gradient(90deg, #00b3ff 0%, #5fc8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-main-index .quote-thanks h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #14213d;
}

.page-main-index .quote-thanks p { margin: 0; color: #4a5568; }

@media screen and (max-width: 768px) {
    .page-main-index .quote-section { padding: 56px 20px; }
    .page-main-index .quote-section::before {
        background:
            linear-gradient(rgba(10, 30, 60, 0.74), rgba(10, 30, 60, 0.74)),
            url("/img/mdglobal.png") center / cover no-repeat;
    }
    .page-main-index .quote-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .page-main-index .quote-card { padding: 22px 18px; }
    .page-main-index .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .page-main-index .quote-form input,
    .page-main-index .quote-form textarea { font-size: 16px; } /* stops iOS zoom on focus */
}

/* "Copy" button beside the quote email address */
.page-main-index .quote-copy {
    display: inline-flex;
    align-items: center;
    height: auto;
    margin: 0 0 0 8px;
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    color: #ffffff;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.page-main-index .quote-copy:hover { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.page-main-index .quote-copy.is-copied { background: #16a34a; border-color: #16a34a; }

/* =====================================================================
   TOTAL VALUE SECTION — background fills the whole section
   The blurred photo used to sit edge-to-edge, so the blur faded its
   edges to white (a white band showed above the section). Oversize the
   photo behind the section so the soft edges are clipped out of view.
   ===================================================================== */
.page-main-index #bottom-section.blur-image-container {
    overflow: hidden;
    background-color: #d9e1ea;   /* fallback while the photo loads */
}

.page-main-index #bottom-section .blur-image {
    position: absolute !important;
    top: -40px;
    left: -40px;
    width: calc(100% + 80px) !important;
    height: calc(100% + 80px) !important;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
    z-index: 0;
}

@media screen and (max-width: 768px) {
    .page-main-index #bottom-section .blur-image {
        opacity: 1;
        filter: blur(18px) brightness(1.12);
    }
}

/* Desktop: style.css pulls this section up by 430px, which left a 30px white
   strip below the mission/product band. Close it so the two backgrounds meet. */
@media screen and (min-width: 769px) {
    .page-main-index #bottom-section.blur-image-container {
        margin-top: -460px;
        right: auto;   /* style.css shifted it 3px right, leaving a sliver on the left */
    }
}

/* =====================================================================
   MISSION TEXT CARD — same look as the product cards below it
   (slider.css .slide: #f8fbff card, 15px corners, blue→dusk wash at the
   bottom), laid out as one wide horizontal card.
   ===================================================================== */
.page-main-index .solutions-section .mission-text {
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    overflow: hidden;
    padding: 30px 40px 34px;
    background-color: #f8fbff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(7, 7, 46, 0.25);
}

/* the cards' gradient wash, toned down so the paragraph stays readable */
.page-main-index .solutions-section .mission-text::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(7, 7, 46, 0.22),
        rgba(14, 117, 234, 0.16) 30%,
        rgba(1, 1, 1, 0) 85%
    );
}

.page-main-index .solutions-section .mission-text p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #14181f;
    text-shadow: none;
}

/* Desktop: the product row is pulled up over this section (slider.css
   top: -500px), so give the card room above it */
@media screen and (min-width: 769px) {
    .page-main-index .solutions-section .mission-text {
        margin-top: -290px;
        padding: 24px 36px 26px;
    }

    .page-main-index .solutions-section .mission-text p {
        font-size: 16px;
        line-height: 1.65;
    }

    .page-main-index .image-slider {
        top: -465px;
    }

    /* taller band so the card sits fully inside it, with the product row
       (and everything below) shifted down to match */
    .page-main-index .solutions-section {
        padding-bottom: 390px;
    }
}

@media screen and (max-width: 768px) {
    .page-main-index .solutions-section .mission-text {
        width: auto;
        max-width: none;
        margin: 0 var(--home-gutter);
        padding: 22px 20px 26px;
    }

    .page-main-index .solutions-section .mission-text p {
        font-size: 15.5px;
        line-height: 1.65;
    }
}

/* =====================================================================
   FONTS — match the hero (Inter for paragraphs, Plus Jakarta Sans for
   short bold labels)
   ===================================================================== */
.page-main-index .solutions-section .mission-text p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.page-main-index .image-slider .slide .slide-text {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-main-index .image-slider .slide .read-more1 {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.page-main-index .image-slider::before {   /* "Browse Products" label on phones */
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* =====================================================================
   MISSION CARD — cleaner, brighter (no grey "dusk" wash)
   ===================================================================== */
.page-main-index .solutions-section .mission-text {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 55%, #e4f0ff 100%);
    border-color: rgba(84, 172, 240, 0.55);
}

.page-main-index .solutions-section .mission-text::after {
    display: none;
}

/* =====================================================================
   TOTAL VALUE — title + intro: real spacing, centred, hero fonts
   (style.css positioned both absolutely at fixed % offsets, so the
   paragraph sat cramped under the title and off-centre)
   ===================================================================== */
.page-main-index #bottom-section .blur-text,
.page-main-index #bottom-section .blur-text1 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
    text-align: center;
}

.page-main-index #bottom-section .blur-text {
    display: block;
    margin: 0 auto;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f1b2d;
    white-space: normal;
}

.page-main-index #bottom-section .blur-text1 {
    width: auto;
    max-width: 680px;
    margin: 18px auto 0;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #243042;
}

@media screen and (min-width: 769px) {
    .page-main-index #bottom-section .blur-text {
        padding-top: 56px;
    }
}

@media screen and (max-width: 768px) {
    .page-main-index #bottom-section .blur-text {
        font-size: 30px;
    }

    .page-main-index #bottom-section .blur-text1 {
        margin: 16px auto 56px;
        font-size: 16px;
        line-height: 1.65;
    }
}

/* Mission card highlights: company name bold, partner brands in blue */
.page-main-index .solutions-section .mission-text .mission-brand {
    font-weight: 700;
    color: #0f1b2d;
}

.page-main-index .solutions-section .mission-text .mission-partner {
    font-weight: 600;
    color: #0b6fd6;
}

/* =====================================================================
   MISSION CARD HEADING — icon badge, "Our Mission" label, title, divider
   ===================================================================== */
.page-main-index .solutions-section .mission-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #dfe6ef;
}

.page-main-index .solutions-section .mission-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b7be8 0%, #5aa0f2 100%);
    box-shadow: 0 6px 16px rgba(59, 123, 232, 0.35);
    color: #ffffff;
}

.page-main-index .solutions-section .mission-eyebrow {
    display: block;
    margin: 0 0 4px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #2d56b3;
}

.page-main-index .solutions-section .mission-title {
    position: static;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0f1b2d;
    background: none;
    -webkit-text-fill-color: currentColor;
}

@media screen and (min-width: 769px) {
    /* card is taller now — keep the same breathing room above the product row */
    .page-main-index .solutions-section {
        padding-bottom: 430px;
    }
}

@media screen and (max-width: 768px) {
    .page-main-index .solutions-section .mission-head {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .page-main-index .solutions-section .mission-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .page-main-index .solutions-section .mission-title {
        font-size: 19px;
    }
}

.page-main-index .solutions-section .mission-icon img {
    display: block;
    width: 36px;
    height: 36px;
    max-width: none;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .page-main-index .solutions-section .mission-icon img {
        width: 32px;
        height: 32px;
    }
}

/* =====================================================================
   MISSION CARD — tighter vertical fit around its content
   ===================================================================== */
.page-main-index .solutions-section .mission-head {
    margin-bottom: 9px;
    padding-bottom: 9px;
}

.page-main-index .solutions-section .mission-text p {
    margin: 0;
}

@media screen and (min-width: 769px) {
    .page-main-index .solutions-section .mission-text {
        padding: 12px 32px 14px;
    }
}

@media screen and (max-width: 768px) {
    .page-main-index .solutions-section .mission-text {
        padding: 12px 16px 14px;
    }

    .page-main-index .solutions-section .mission-head {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
}

/* slightly tighter paragraph line spacing inside the mission card */
@media screen and (min-width: 769px) {
    .page-main-index .solutions-section .mission-text p { line-height: 1.6; }
}
@media screen and (max-width: 768px) {
    .page-main-index .solutions-section .mission-text p { line-height: 1.58; }
}

/* =====================================================================
   PHONES — mission card and product slider on ONE continuous background
   The mission band's blurred warehouse photo is stretched down behind the
   product slider (521px tall at every phone width) and clipped exactly at
   the slider's bottom edge, so there's no seam between two separate photos.
   ===================================================================== */
@media screen and (max-width: 768px) {
    .page-main-index .solutions-section {
        padding-bottom: 28px;
        overflow: visible;
        /* clip top + sides at the band; allow it to continue 521px below */
        clip-path: inset(0 0 -521px 0);
    }

    .page-main-index .solutions-section::before {
        top: -24px;
        left: -24px;
        width: calc(100% + 48px);
        height: calc(100% + 521px + 48px);
    }

    .page-main-index .image-slider {
        background: none;
        padding-top: 8px;
    }

    /* "Browse Products" label reads on the dark band */
    .page-main-index .image-slider::before {
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }
}

/* =====================================================================
   TOTAL VALUE — soft spotlight behind the title + intro, accent underline
   ===================================================================== */
.page-main-index #bottom-section .blur-text {
    isolation: isolate;
}

/* spotlight: a soft white glow that fades out, no hard box.
   Lives on the title (earlier in the page) so it sits behind both the
   title and the paragraph that follows. */
.page-main-index #bottom-section .blur-text::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: min(900px, 96vw);
    height: 300px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center 45%,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.6) 38%,
        rgba(255, 255, 255, 0) 70%
    );
}

/* accent underline under "Total Value" (overrides style.css's empty bar) */
.page-main-index #bottom-section .blur-text::after {
    content: "";
    position: relative;
    display: block;
    left: auto;
    bottom: auto;
    transform: none;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #0084ff 0%, #00b3ff 100%);
}

.page-main-index #bottom-section .blur-text1 {
    margin-top: 20px;
}

@media screen and (min-width: 769px) {
    .page-main-index #bottom-section .blur-text::before {
        top: 30px;   /* title has 56px top padding on desktop */
    }
}

@media screen and (max-width: 768px) {
    .page-main-index #bottom-section .blur-text::before {
        top: -40px;
        width: 130%;
        height: 380px;
    }

    .page-main-index #bottom-section .blur-text1 {
        margin-top: 18px;
    }
}

/* =====================================================================
   QUOTE FORM HEADER — badge, title, helper note, divider
   (same pattern as the mission card heading)
   ===================================================================== */
.page-main-index .quote-form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid #dfe6ef;
}

.page-main-index .quote-form-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b7be8 0%, #5aa0f2 100%);
    box-shadow: 0 6px 16px rgba(59, 123, 232, 0.35);
    color: #ffffff;
}

.page-main-index .quote-form-title {
    position: static;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0f1b2d;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.page-main-index .quote-form-note {
    margin: 3px 0 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #5f6b7a;
}

@media screen and (max-width: 768px) {
    .page-main-index .quote-form-head { gap: 12px; margin-bottom: 16px; padding-bottom: 14px; }
    .page-main-index .quote-form-icon { width: 40px; height: 40px; border-radius: 10px; }
    .page-main-index .quote-form-title { font-size: 19px; }
}

/* =====================================================================
   SEAMLESS SECTION TRANSITIONS (homepage)
   At each boundary the bottom of the upper section and the top of the
   lower section both fade into the SAME colour, so there is no line.
     --seam-1  hero        → mission band
     --seam-2  mission band → Total Value
     --seam-3  Total Value → quote form
     --seam-4  quote form  → footer
   To undo: delete this block.
   ===================================================================== */
.page-main-index {
    --seam-1: rgb(44, 61, 84);
    --seam-2: rgb(104, 120, 138);
    --seam-3: rgb(92, 108, 128);
    --seam-4: rgb(30, 37, 48);
    --seam-up: 38px;      /* fade length on the upper side of a seam */
    --seam-down: 30px;    /* fade length on the lower side of a seam */
}

/* hero: fade the bottom edge */
.page-main-index .hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--seam-up);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(44, 61, 84, 0), var(--seam-1));
}

/* mission band: fade top (from hero) and bottom (into Total Value) */
.page-main-index .solutions-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--seam-1) 0,
        rgba(44, 61, 84, 0) var(--seam-down),
        rgba(104, 120, 138, 0) calc(100% - var(--seam-up)),
        var(--seam-2) 100%
    );
}

/* Total Value: fade top (from band) and bottom (into quote form) */
.page-main-index #bottom-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--seam-2) 0,
        rgba(104, 120, 138, 0) var(--seam-down),
        rgba(92, 108, 128, 0) calc(100% - var(--seam-up)),
        var(--seam-3) 100%
    );
}

/* quote form: fade top (from Total Value) and bottom (into footer) */
.page-main-index .quote-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--seam-3) 0,
        rgba(92, 108, 128, 0) var(--seam-down),
        rgba(30, 37, 48, 0) calc(100% - var(--seam-up)),
        var(--seam-4) 100%
    );
}

.page-main-index .quote-inner {
    position: relative;
    z-index: 1;
}

/* footer: fade the top edge in from the quote form */
.page-main-index .site-footer {
    position: relative;
    border-top: 0;
}

.page-main-index .site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--seam-down);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--seam-4), rgba(30, 37, 48, 0));
}

.page-main-index .site-footer > * {
    position: relative;
    z-index: 1;
}

/* Phones: the band's photo continues behind the product slider, so its
   bottom fade has to sit at the slider's bottom (521px further down) */
@media screen and (max-width: 768px) {
    .page-main-index .solutions-section::after {
        height: calc(100% + 521px);
    }

    /* phones add a 15% white tint (::after) over Total Value; keep the seam
       fades above it so their edge colours match the neighbours exactly.
       Text and cards are later in the page at the same level, so stay on top. */
    .page-main-index #bottom-section::before {
        z-index: 2;
    }
}


/* Hero shows immediately: no fade-in on the text or the dark overlay
   (style.css animates both with fadeUp / fadeOverlay on page load) */
.page-main-index .hero-section .hero-content,
.page-main-index .hero-section .overlay {
    animation: none;
    opacity: 1;
    transform: none;
}
