/*
 * IndoSurgicals Desktop Homepage Refinement — Patch 25 v2.0.0
 * --------------------------------------------------------------------------
 * Scope: desktop homepage only. <= 900px keeps the completed mobile design.
 * Built on Patch 23 + Patch 24 + Patch 24.1.
 *
 * v2 direction:
 * - No rotating homepage banner.
 * - Keep the existing calm white / mint / slate card palette.
 * - Stronger, clearly visible action buttons.
 * - Tighter vertical rhythm and less empty space between sections.
 * - Manual institutional-client browsing; no auto-moving logo marquee.
 * - Rich three-card testimonial presentation on desktop.
 * - Subtle manufacturer capability details without decorative clutter.
 */

/* New v2-only elements are hidden by default so <= 900px is unchanged. */
.isp-home-capability-tags,
.isp-client-controls,
.isp-home-testimonial-desktop {
    display: none;
}

@media (min-width: 901px) {
    html body .isp-home {
        overflow: clip;
        background: #fff;
    }

    html body .isp-home-width {
        width: min(var(--isp-ds-content-max), calc(100% - (var(--isp-ds-gutter) * 2)));
    }

    /* ------------------------------------------------------------------
       1. Static manufacturer-led opening
       ------------------------------------------------------------------ */
    html body .isp-home-intro {
        isolation: isolate;
        overflow: hidden;
        padding: 46px 0 44px;
        border-bottom: 1px solid #e3ebeb;
        background:
            radial-gradient(circle at 90% 12%, rgba(99,196,173,.17), transparent 26%),
            linear-gradient(118deg, #f9fbfb 0%, #ffffff 56%, #eef8f6 100%);
    }

    html body .isp-home-intro::before {
        width: 4px;
        background: linear-gradient(180deg, var(--isp-ds-teal), var(--isp-ds-mint));
    }

    html body .isp-home-intro::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: -105px;
        bottom: -155px;
        width: 320px;
        height: 320px;
        border: 52px solid rgba(0,143,135,.045);
        border-radius: 50%;
        pointer-events: none;
    }

    html body .isp-home-intro-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
        gap: clamp(40px, 4.5vw, 66px);
        align-items: center;
    }

    html body .isp-home-kicker {
        color: var(--isp-ds-teal-dark);
        font-size: 10.5px;
        line-height: 1.4;
        font-weight: 800;
        letter-spacing: .14em;
    }

    html body .isp-home-intro h1 {
        max-width: 760px;
        margin-top: 9px !important;
        color: var(--isp-ds-navy-dark) !important;
        font-size: clamp(40px, 3.35vw, 52px) !important;
        line-height: 1.07 !important;
        letter-spacing: -.038em;
        text-wrap: balance;
    }

    html body .isp-home-intro-copy > p {
        max-width: 710px;
        margin-top: 16px;
        color: #627482;
        font-size: 16px;
        line-height: 1.68;
    }

    html body .isp-home-capability-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 19px 0 0;
        padding: 0;
        list-style: none;
    }

    html body .isp-home-capability-tags li {
        position: relative;
        padding: 7px 10px 7px 27px;
        border: 1px solid #d6e5e3;
        border-radius: 999px;
        background: rgba(255,255,255,.84);
        color: #425866;
        font-size: 10.5px;
        line-height: 1.2;
        font-weight: 700;
        box-shadow: 0 3px 10px rgba(39,60,77,.035);
    }

    html body .isp-home-capability-tags li::before {
        content: "✓";
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--isp-ds-teal);
        font-size: 11px;
        font-weight: 900;
    }

    html body .isp-home-intro .isp-home-actions {
        gap: 10px;
        margin-top: 23px;
    }

    /* Strong specificity here intentionally prevents legacy link rules from
       washing out the primary action, which was visible in the live screenshot. */
    html body .isp-home .isp-home-button {
        min-height: 46px;
        padding: 11px 19px;
        border-radius: 9px;
        font-size: 12.5px;
        font-weight: 800;
        letter-spacing: .005em;
    }

    html body .isp-home a.isp-home-button-primary,
    html body .isp-home .isp-home-button-primary {
        border-color: #008f87 !important;
        background: #008f87 !important;
        color: #ffffff !important;
        text-shadow: none !important;
        box-shadow: 0 9px 20px rgba(0,143,135,.20) !important;
    }

    html body .isp-home a.isp-home-button-primary:hover,
    html body .isp-home a.isp-home-button-primary:focus-visible,
    html body .isp-home .isp-home-button-primary:hover,
    html body .isp-home .isp-home-button-primary:focus-visible {
        border-color: #00746f !important;
        background: #00746f !important;
        color: #ffffff !important;
        box-shadow: 0 12px 24px rgba(0,116,111,.24) !important;
    }

    html body .isp-home a.isp-home-button-secondary,
    html body .isp-home .isp-home-button-secondary {
        border-color: #bccdce !important;
        background: #ffffff !important;
        color: #273c4d !important;
        text-shadow: none !important;
        box-shadow: 0 4px 12px rgba(39,60,77,.045) !important;
    }

    html body .isp-home a.isp-home-button-secondary:hover,
    html body .isp-home a.isp-home-button-secondary:focus-visible,
    html body .isp-home .isp-home-button-secondary:hover,
    html body .isp-home .isp-home-button-secondary:focus-visible {
        border-color: #008f87 !important;
        background: #f3fbf9 !important;
        color: #006d68 !important;
        box-shadow: 0 8px 18px rgba(39,60,77,.08) !important;
    }

    html body .isp-home-trust-card {
        overflow: hidden;
        border: 1px solid #d2e0df;
        border-top: 3px solid var(--isp-ds-teal);
        border-radius: 16px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 16px 38px rgba(39,60,77,.10);
    }

    html body .isp-home-trust-heading {
        padding: 15px 18px;
        border-bottom-color: #dfe8e8;
        color: var(--isp-ds-navy-dark);
        font-size: 12.5px;
        letter-spacing: -.01em;
    }

    html body .isp-home-trust-grid > div {
        min-height: 92px;
        padding: 15px 17px;
        border-color: #e1e9e9;
    }

    html body .isp-home-trust-grid strong {
        color: var(--isp-ds-teal-dark);
        font-size: 21px;
        line-height: 1.05;
        letter-spacing: -.02em;
    }

    html body .isp-home-trust-grid span {
        margin-top: 5px;
        color: #70808b;
        font-size: 10.5px;
        line-height: 1.4;
    }

    /* ------------------------------------------------------------------
       2. Buyer cards — retain the current palette, reduce empty space
       ------------------------------------------------------------------ */
    html body .isp-home-buyer-paths {
        padding: 15px 0;
        border-top: 0;
        border-bottom-color: #e3eaea;
        background: #fff;
    }

    html body .isp-home-buyer-grid {
        gap: 10px;
    }

    html body .isp-home-buyer-card {
        grid-template-columns: 38px minmax(0,1fr) auto;
        gap: 10px;
        min-height: 74px;
        padding: 12px 14px;
        border-color: #d8e3e3;
        border-radius: 11px;
        box-shadow: 0 4px 12px rgba(39,60,77,.035);
    }

    html body .isp-home-buyer-card:hover,
    html body .isp-home-buyer-card:focus-visible {
        border-color: #b8d9d4;
        background: #fbfefd;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(39,60,77,.07);
    }

    html body .isp-home-buyer-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 13px;
    }

    html body .isp-home-buyer-card strong {
        font-size: 12px;
        line-height: 1.3;
    }

    html body .isp-home-buyer-card small {
        margin-top: 3px;
        font-size: 9.5px;
        line-height: 1.4;
    }

    html body .isp-home-buyer-card b {
        color: #7b9099;
        font-size: 16px;
    }

    /* ------------------------------------------------------------------
       3. Shared compact desktop rhythm
       ------------------------------------------------------------------ */
    html body .isp-home-section {
        padding: 46px 0;
    }

    html body .isp-home-section-head {
        gap: 26px;
        margin-bottom: 20px;
    }

    html body .isp-home-section-head h2,
    html body .isp-home-quality h2,
    html body .isp-home-testimonial h2 {
        margin-top: 6px !important;
        color: var(--isp-ds-navy-dark) !important;
        font-size: clamp(28px, 2.35vw, 36px) !important;
        line-height: 1.14 !important;
        letter-spacing: -.03em;
    }

    html body .isp-home-section-head p,
    html body .isp-home-quality-copy > p,
    html body .isp-home-testimonial-heading-row p {
        margin-top: 7px;
        color: #6a7b87;
        font-size: 12.5px;
        line-height: 1.6;
    }

    /* ------------------------------------------------------------------
       4. Category directory — polished but familiar
       ------------------------------------------------------------------ */
    html body .isp-home-categories {
        border-top: 0;
        border-bottom: 1px solid #e6eded;
        background: #f5f8f8;
    }

    html body .isp-home-category-search {
        flex-basis: 290px;
    }

    html body .isp-home-category-search input {
        height: 43px !important;
        border-color: #ccdada !important;
        border-radius: 9px !important;
        background-color: #fff !important;
        font-size: 12px !important;
        box-shadow: none !important;
    }

    html body .isp-home-category-grid {
        gap: 13px;
    }

    html body .isp-home-category-card {
        border-color: #dbe5e5;
        border-radius: 13px;
        box-shadow: 0 4px 12px rgba(39,60,77,.035);
    }

    html body .isp-home-category-card:hover {
        border-color: #bad8d4;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(39,60,77,.075);
    }

    html body .isp-home-category-image {
        height: 166px;
        background: linear-gradient(180deg, #ffffff 0%, #f6f8f8 100%);
    }

    html body .isp-home-category-image img {
        padding: 13px;
    }

    html body .isp-home-category-body {
        min-height: 93px;
        padding: 12px 14px 13px;
    }

    html body .isp-home-category-body h3 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    html body .isp-home-card-link {
        margin-top: 9px;
        font-size: 10.5px;
    }

    html body .isp-home-category-toggle-wrap {
        margin-top: 18px;
    }

    html body .isp-home-category-toggle {
        min-height: 42px;
        padding: 9px 15px;
        border-radius: 9px;
        font-size: 11.5px;
        box-shadow: none;
    }

    /* ------------------------------------------------------------------
       5. Why IndoSurgicals — retain light cards and make them more deliberate
       ------------------------------------------------------------------ */
    html body .isp-home-quality {
        background: #fff;
    }

    html body .isp-home-quality-grid {
        grid-template-columns: minmax(285px, .78fr) minmax(0, 1.22fr);
        gap: 32px;
        align-items: center;
    }

    html body .isp-home-quality-copy {
        position: static;
        padding-right: 8px;
    }

    html body .isp-home-quality-copy h2 {
        max-width: 470px;
    }

    html body .isp-home-text-link {
        margin-top: 15px;
        font-size: 11.5px;
    }

    html body .isp-home-quality-points {
        gap: 10px;
    }

    html body .isp-home-quality-points > div {
        min-height: 124px;
        padding: 16px 15px 15px 46px;
        border-color: #dbe5e5;
        border-radius: 11px;
        background: #fbfdfd;
        box-shadow: 0 4px 12px rgba(39,60,77,.035);
    }

    html body .isp-home-quality-points > div > span {
        left: 14px;
        top: 16px;
        width: 23px;
        height: 23px;
        font-size: 11px;
    }

    html body .isp-home-quality-points strong {
        font-size: 12.5px;
        line-height: 1.35;
    }

    html body .isp-home-quality-points small {
        margin-top: 6px;
        font-size: 10.5px;
        line-height: 1.5;
    }

    /* ------------------------------------------------------------------
       6. Institutional clients — manual control, no autonomous motion
       ------------------------------------------------------------------ */
    html body .isp-home-clients {
        padding-top: 43px;
        padding-bottom: 43px;
        border-top: 1px solid #e5ecec;
        border-bottom: 1px solid #e5ecec;
        background: linear-gradient(180deg, #f7fafa 0%, #fbfdfd 100%);
    }

    html body .isp-home-clients .isp-home-section-head {
        margin-bottom: 14px;
    }

    html body .isp-home-clients .isp-home-section-head-centred p {
        max-width: 620px;
    }

    html body .isp-client-slider {
        position: relative;
        padding-top: 42px;
    }

    html body .isp-client-controls {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        gap: 7px;
    }

    html body .isp-client-control {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #c7d7d8;
        border-radius: 9px;
        background: #fff;
        color: var(--isp-ds-navy-dark);
        font-size: 17px;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 3px 9px rgba(39,60,77,.045);
        transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
    }

    html body .isp-client-control:hover:not(:disabled),
    html body .isp-client-control:focus-visible:not(:disabled) {
        border-color: var(--isp-ds-teal);
        background: #eef9f7;
        color: var(--isp-ds-teal-dark);
        transform: translateY(-1px);
        outline: none;
    }

    html body .isp-client-control:disabled {
        opacity: .38;
        cursor: default;
        box-shadow: none;
    }

    html body .isp-client-page-status {
        min-width: 47px;
        color: #6d7f8a;
        font-size: 10.5px;
        line-height: 1;
        font-weight: 700;
        text-align: center;
    }

    html body .isp-client-viewport {
        overflow: hidden;
        padding: 3px 1px 10px;
    }

    html body .isp-client-track {
        gap: 14px;
        transform: translate3d(0,0,0);
        will-change: transform;
    }

    html body .isp-client-card {
        flex: 0 0 170px;
        min-height: 148px;
        padding: 12px 10px;
        border-color: #d8e3e3;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(39,60,77,.04);
    }

    html body .isp-client-logo {
        width: 72px;
        height: 72px;
    }

    html body .isp-client-card p {
        min-height: 30px;
        margin-top: 9px;
        font-size: 9.5px;
        line-height: 1.35;
    }

    html body .isp-client-swipe-note {
        display: none;
    }

    /* ------------------------------------------------------------------
       7. Testimonials — fuller desktop presentation, new selection per visit
       ------------------------------------------------------------------ */
    html body .isp-home-testimonial {
        padding: 43px 0 48px;
        background: #fff;
    }

    html body .isp-home-testimonial-mobile {
        display: none !important;
    }

    html body .isp-home-testimonial-desktop {
        display: block;
    }

    html body .isp-home-testimonial-heading-row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 28px;
        margin-bottom: 19px;
    }

    html body .isp-home-testimonial-heading-row > div {
        max-width: 700px;
    }

    html body .isp-home-testimonial-heading-row .isp-home-button {
        flex: 0 0 auto;
    }

    html body .isp-home-testimonial-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    html body .isp-home-testimonial-item {
        position: relative;
        min-height: 205px;
        display: flex;
        flex-direction: column;
        padding: 22px 20px 18px;
        overflow: hidden;
        border: 1px solid #d5e3e1;
        border-radius: 14px;
        background: linear-gradient(145deg, #f5fbfa 0%, #ffffff 75%);
        box-shadow: 0 6px 16px rgba(39,60,77,.045);
    }

    html body .isp-home-testimonial-item:first-child {
        border-top: 3px solid var(--isp-ds-teal);
        background:
            radial-gradient(circle at 100% 0%, rgba(99,196,173,.12), transparent 33%),
            #f7fcfb;
    }

    html body .isp-home-testimonial-item-quote {
        height: 30px;
        color: var(--isp-ds-mint);
        font-family: Georgia, serif;
        font-size: 54px;
        line-height: .75;
    }

    html body .isp-home-testimonial-item blockquote {
        flex: 1 1 auto;
        margin: 9px 0 17px;
        color: #334957;
        font-size: 12.5px;
        line-height: 1.65;
        font-style: normal;
    }

    html body .isp-home-testimonial-item footer {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 5px 8px;
        padding-top: 13px;
        border-top: 1px solid #e0e9e8;
    }

    html body .isp-home-testimonial-item footer strong {
        color: var(--isp-ds-navy-dark);
        font-size: 10.5px;
        line-height: 1.3;
    }

    html body .isp-home-testimonial-item footer span {
        color: #71838e;
        font-size: 9.5px;
        line-height: 1.3;
    }

    /* The old final quotation CTA is intentionally removed from markup in v2. */

}

@media (min-width: 901px) and (max-width: 1080px) {
    html body .isp-home-intro-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(315px, .88fr);
        gap: 32px;
    }

    html body .isp-home-intro h1 {
        font-size: clamp(37px, 4vw, 46px) !important;
    }

    html body .isp-home-category-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    html body .isp-home-quality-grid {
        gap: 24px;
    }

    html body .isp-home-testimonial-item {
        padding-inline: 17px;
    }
}
