/* =========================================================
   BRAINFRAME TECHNOLOGIES
   SERVICES PAGE STYLES
   ========================================================= */

:root {
    --services-page-dark: #2E2E2E;
    --services-page-dark-deep: #242424;
    --services-page-card: #F0EDEB;
    --services-page-soft: #F7F5F4;
    --services-page-text-soft: #746B68;
    padding-top: 80px;
}


/* =========================================================
   SERVICES PAGE GLOBAL SECTIONS
   ========================================================= */

.services-page-hero,
.services-capabilities-section,
.technology-sales-section,
.hardware-infrastructure-section,
.medical-solutions-section,
.maintenance-amc-section,
.services-page-journey-section,
.services-page-final-cta {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   SERVICES PAGE HERO
   ========================================================= */

.services-page-hero {
    position: relative;
    background: linear-gradient(
        115deg,
        #242424 0%,
        #2E2E2E 48%,
        #282828 100%
    );
    color: var(--color-white);
    padding: 62px 0 0;
}

/* Background image overlay setup */
.services-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.20) 30%,
        rgba(0, 0, 0, 0.08) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.services-page-hero .container {
    position: relative;
    z-index: 1;
}

.services-page-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--brand-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.3;
    text-transform: uppercase;
}

.services-page-eyebrow span {
    display: inline-block;
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    background: var(--brand-red);
}

/* Hero Title Fade In on Page Load */
.services-page-hero-title {
    max-width: 790px;
    margin: 0;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
    animation: heroTitleFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroTitleFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description & Strip Cards Fade In Simultaneously */
.services-page-hero-description,
.services-page-hero-strip {
    animation: heroDescAndStripFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
    opacity: 0;
}

@keyframes heroDescAndStripFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-page-hero-description {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.65;
}

/* Hero Buttons stay static */
.services-page-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}


/* =========================================================
   BUTTON HOVER SLIDING ARROW ANIMATION (GLOBAL FOR CTAs)
   ========================================================= */

.services-page-primary-button,
.services-page-secondary-button,
.technology-sales-custom-button,
.services-page-final-primary,
.services-page-final-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 19px;
    text-decoration: none;
    font-family: "Cantarell", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Arrow hidden by default */
.services-page-primary-button .material-symbols-outlined,
.services-page-secondary-button .material-symbols-outlined,
.technology-sales-custom-button .material-symbols-outlined,
.services-page-final-primary .material-symbols-outlined,
.services-page-final-secondary .material-symbols-outlined {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-10px);
    transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    font-size: 15px;
}

/* Arrow slides in from right on hover */
.services-page-primary-button:hover .material-symbols-outlined,
.services-page-secondary-button:hover .material-symbols-outlined,
.technology-sales-custom-button:hover .material-symbols-outlined,
.services-page-final-primary:hover .material-symbols-outlined,
.services-page-final-secondary:hover .material-symbols-outlined {
    max-width: 24px;
    opacity: 1;
    margin-left: 7px;
    transform: translateX(0);
}

/* Hero Button Color Variants */
.services-page-primary-button {
    background: var(--brand-red);
    color: var(--color-white);
    border: 1px solid var(--brand-red);
}

.services-page-primary-button:hover {
    background: #C90606;
    border-color: #C90606;
    color: var(--color-white);
}

.services-page-secondary-button {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.services-page-secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
}


/* =========================================================
   HERO STRIP
   ========================================================= */

.services-page-hero-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 38px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.services-page-hero-strip-item {
    min-width: 0;
    padding: 19px 18px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.services-page-hero-strip-item:last-child {
    border-right: 0;
}

.services-page-strip-top {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.services-page-strip-number {
    color: var(--brand-red);
    font-family: "Fjalla One", sans-serif;
    font-size: 16px;
}

.services-page-strip-title {
    color: var(--color-white);
    font-family: "Cantarell", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.services-page-hero-strip-item p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   SERVICE CAPABILITIES (SCROLL REVEAL - FADE FROM BELOW ALL AT ONCE)
   ========================================================= */

.services-capabilities-section {
    background: #F7F5F4;
    padding: 70px 0 78px;
}

.services-page-section-intro {
    max-width: 850px;
    margin-bottom: 34px;
}

.services-page-light-eyebrow {
    color: var(--brand-red);
}

.services-page-section-title {
    margin: 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(38px, 4vw, 57px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.services-page-section-title-IT-HARDWARE-INFRASTRUCTURE {
    margin: 0;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(38px, 4vw, 57px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.services-page-section-description {
    max-width: 760px;
    margin: 14px 0 0;
    color: #6E6764;
    font-size: 14px;
    line-height: 1.65;
}

.services-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Capabilities Cards Animation: Hidden by default */
.services-capability-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 19px;
    background: var(--color-white);
    border: 1px solid rgba(23, 23, 23, 0.04);
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade in all cards at once when user scrolls into section */
.services-capabilities-section.is-visible .services-capability-card {
    opacity: 1;
    transform: translateY(0);
}

.services-capability-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.services-capability-card-top .material-symbols-outlined {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 7, 7, 0.09);
    color: var(--brand-red);
    font-size: 17px;
}

.services-capability-card-top span:last-child {
    color: #89827F;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.services-capability-card h3 {
    margin: 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(21px, 1.8vw, 29px);
    font-weight: 400;
    line-height: 1.03;
    text-transform: uppercase;
}

.services-capability-card p {
    margin: 14px 0 0;
    color: #736B68;
    font-size: 12px;
    line-height: 1.6;
}

.services-page-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: var(--brand-red);
    text-decoration: none;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services-page-card-link:hover {
    color: #C90606;
}

.services-page-card-link .material-symbols-outlined {
    font-size: 14px;
}


/* =========================================================
   TECHNOLOGY SALES (CARDS FADE IN ROW BY ROW)
   ========================================================= */

.technology-sales-section {
    background: var(--background-light);
    padding: 76px 0 84px;
}

.services-page-red-eyebrow {
    color: var(--brand-red);
}

.technology-sales-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 70px;
    margin-bottom: 34px;
}

.technology-sales-subtitle {
    margin: 7px 0 0;
    color: #706967;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.technology-sales-description {
    max-width: 520px;
    justify-self: end;
    margin: 0;
    color: #716A67;
    font-size: 13px;
    line-height: 1.65;
}

.technology-sales-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.technology-sales-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 19px;
    background: var(--color-white);
    border: 1px solid rgba(23, 23, 23, 0.04);
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered Row-by-Row Animation (3 Columns on Desktop) */
.technology-sales-section.is-visible .technology-sales-card {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 992px) {
    /* Row 1: Cards 1, 2, 3 */
    .technology-sales-section.is-visible .technology-sales-card:nth-child(1),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(2),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(3) {
        transition-delay: 0.1s;
    }

    /* Row 2: Cards 4, 5, 6 */
    .technology-sales-section.is-visible .technology-sales-card:nth-child(4),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(5),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(6) {
        transition-delay: 0.35s;
    }

    /* Row 3: Cards 7, 8 */
    .technology-sales-section.is-visible .technology-sales-card:nth-child(7),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(8) {
        transition-delay: 0.6s;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    /* Row-by-row on 2 Columns */
    .technology-sales-section.is-visible .technology-sales-card:nth-child(1),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(2) { transition-delay: 0.1s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(3),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(4) { transition-delay: 0.3s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(5),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(6) { transition-delay: 0.5s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(7),
    .technology-sales-section.is-visible .technology-sales-card:nth-child(8) { transition-delay: 0.7s; }
}

@media (max-width: 767.98px) {
    /* Single Column Row-by-Row */
    .technology-sales-section.is-visible .technology-sales-card:nth-child(1) { transition-delay: 0.1s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(2) { transition-delay: 0.2s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(3) { transition-delay: 0.3s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(4) { transition-delay: 0.4s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(5) { transition-delay: 0.5s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(6) { transition-delay: 0.6s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(7) { transition-delay: 0.7s; }
    .technology-sales-section.is-visible .technology-sales-card:nth-child(8) { transition-delay: 0.8s; }
}

.technology-sales-card-number {
    color: var(--brand-red);
    font-family: "Fjalla One", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.technology-sales-card h3 {
    margin: 17px 0 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
}

.technology-sales-card p {
    margin: 14px 0 0;
    color: #736B68;
    font-size: 12px;
    line-height: 1.6;
}

.technology-sales-card ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.technology-sales-card ul li {
    position: relative;
    padding-left: 13px;
    color: #625D5A;
    font-size: 10px;
    line-height: 1.45;
}

.technology-sales-card ul li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--brand-red);
}

.technology-sales-card-note {
    margin-top: auto;
    padding-top: 18px;
    color: #8E8683;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Custom RFP CTA Card */
.technology-sales-custom {
    background: var(--color-white);
    color: var(--color-charcoal);
}

.technology-sales-custom h3 {
    color: var(--color-charcoal);
}

.technology-sales-custom p {
    color: rgba(0, 0, 0, 0.65);
}

.technology-sales-custom-button {
    margin-top: auto;
    background: var(--brand-red);
    color: var(--color-white);
    border: 1px solid var(--brand-red);
    width: fit-content;
}

.technology-sales-custom-button:hover {
    background: #C90606;
    border-color: #C90606;
    color: var(--color-white);
}


/* =========================================================
   IT HARDWARE INFRASTRUCTURE & MANAGEMENT (SEQUENTIAL CARDS 1-8)
   ========================================================= */

.hardware-infrastructure-section {
    background: var(--services-page-dark);
    color: var(--color-white);
    padding: 84px 0;
}

.hardware-infrastructure-kicker {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hardware-infrastructure-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: 22px;
}

/* Image Container & Hover Zoom Effect */
.hardware-infrastructure-image-wrap {
    position: relative;
    min-height: 590px;
    max-height: 640px;
    overflow: hidden;
}

.hardware-infrastructure-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hardware-infrastructure-image-wrap:hover .hardware-infrastructure-image {
    transform: scale(1.06);
}

.hardware-infrastructure-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hardware-overlay-label {
    color: var(--brand-red);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hardware-infrastructure-image-overlay h3 {
    margin: 8px 0 0;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
}

.hardware-infrastructure-image-overlay p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.5;
}

.hardware-overlay-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hardware-overlay-metrics strong {
    display: block;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: 20px;
    line-height: 1;
}

.hardware-overlay-metrics span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 7px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hardware-service-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 0;
}

/* 1-8 Cards Fade In Sequence (1 through 8) */
.hardware-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 13px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.055);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hardware-infrastructure-section.is-visible .hardware-service-item {
    opacity: 1;
    transform: translateY(0);
}

.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(1) { transition-delay: 0.1s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(2) { transition-delay: 0.2s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(3) { transition-delay: 0.3s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(4) { transition-delay: 0.4s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(5) { transition-delay: 0.5s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(6) { transition-delay: 0.6s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(7) { transition-delay: 0.7s; }
.hardware-infrastructure-section.is-visible .hardware-service-item:nth-child(8) { transition-delay: 0.8s; }

.hardware-service-number {
    color: var(--brand-red);
    font-family: "Fjalla One", sans-serif;
    font-size: 15px;
}

.hardware-service-item h3 {
    margin: 0;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
}

.hardware-service-item p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   MEDICAL SOLUTIONS (STATIC SECTION, IMAGE ZOOM ON HOVER)
   ========================================================= */

.medical-solutions-section {
    background: var(--background-light);
    padding: 84px 0;
}

.medical-solutions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: 22px;
}

.medical-image-wrap {
    position: relative;
    min-height: 440px;
    overflow: hidden;
}

.medical-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.medical-image-wrap:hover .medical-image {
    transform: scale(1.06);
}

.medical-image-caption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    color: var(--brand-red);
    
    font-family: "Fjalla One", sans-serif;
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
}

.medical-image-caption span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.66);
    font-family: "Cantarell", sans-serif;
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    
}

.medical-primary-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medical-primary-card {
    padding: 24px;
    background: var(--color-white);
    border: 1px solid rgba(23, 23, 23, 0.04);
}

.medical-primary-card p {
    margin: 0;
    color: var(--brand-red);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.medical-primary-card h3 {
    margin: 8px 0 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.medical-primary-card span {
    display: block;
    margin-top: 10px;
    color: #736B68;
    font-size: 12px;
    line-height: 1.55;
}

.medical-small-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--color-white);
    border: 1px solid rgba(23, 23, 23, 0.04);
}

.medical-small-number {
    color: var(--brand-red);
    font-family: "Fjalla One", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.medical-small-card h3 {
    margin: 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.medical-small-card p {
    margin: 4px 0 0;
    color: #736B68;
    font-size: 10px;
    line-height: 1.45;
}

.medical-lower-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.medical-lower-card {
    padding: 20px;
    background: var(--color-white);
    border: 1px solid rgba(23, 23, 23, 0.04);
}

.medical-lower-card span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--brand-red);
}

.medical-lower-card h3 {
    margin: 12px 0 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.medical-lower-card p {
    margin: 10px 0 0;
    color: #736B68;
    font-size: 11px;
    line-height: 1.55;
}

.medical-lower-card small {
    display: block;
    margin-top: 14px;
    color: #8C8481;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   MAINTENANCE & AMC (CARDS FADE IN FROM LEFT TO RIGHT)
   ========================================================= */

.maintenance-amc-section {
    background: var(--services-page-dark-deep);
    color: var(--color-white);
    padding: 82px 0 86px;
}

.maintenance-amc-kicker {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maintenance-amc-section .services-page-section-title {
    color: var(--color-white);
}

.maintenance-amc-section .services-page-section-description {
    color: rgba(255, 255, 255, 0.66);
}

.maintenance-amc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.maintenance-amc-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    background: #343434;
    border: 1px solid rgba(255, 255, 255, 0.055);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.maintenance-amc-section.is-visible .maintenance-amc-card {
    opacity: 1;
    transform: translateX(0);
}

.maintenance-amc-section.is-visible .maintenance-amc-card:nth-child(1) { transition-delay: 0.1s; }
.maintenance-amc-section.is-visible .maintenance-amc-card:nth-child(2) { transition-delay: 0.3s; }
.maintenance-amc-section.is-visible .maintenance-amc-card:nth-child(3) { transition-delay: 0.5s; }

.maintenance-amc-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #343434;
    color: var(--brand-red);
}

.maintenance-amc-label {
    margin-top: 16px;
    color: var(--brand-red);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maintenance-amc-card h3 {
    margin: 8px 0 0;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.maintenance-amc-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 11px;
    line-height: 1.6;
}

.maintenance-amc-card small {
    margin-top: auto;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   SERVICE JOURNEY (CARDS FADE IN FROM LEFT TO RIGHT)
   ========================================================= */

.services-page-journey-section {
    background: #F7F5F4;
    padding: 76px 0 82px;
}

.services-page-journey-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--brand-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-align: center;
    text-transform: uppercase;
}

.services-page-journey-eyebrow span {
    width: 5px;
    height: 5px;
    background: var(--brand-red);
}

.services-page-journey-title {
    margin: 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(38px, 4vw, 57px);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.services-page-journey-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.services-page-journey-grid::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 7%;
    left: 7%;
    height: 1px;
    background: #D8D3D1;
}

.services-page-journey-card {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 1;
    transform: translateX(-35px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-page-journey-section.is-visible .services-page-journey-card {
    opacity: 1;
    transform: translateX(0);
}

.services-page-journey-section.is-visible .services-page-journey-card:nth-child(1) { transition-delay: 0.1s; }
.services-page-journey-section.is-visible .services-page-journey-card:nth-child(2) { transition-delay: 0.25s; }
.services-page-journey-section.is-visible .services-page-journey-card:nth-child(3) { transition-delay: 0.4s; }
.services-page-journey-section.is-visible .services-page-journey-card:nth-child(4) { transition-delay: 0.55s; }
.services-page-journey-section.is-visible .services-page-journey-card:nth-child(5) { transition-delay: 0.7s; }

.services-page-journey-card > span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--brand-red);
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: 11px;
}

.services-page-journey-card h3 {
    margin: 15px 0 0;
    color: var(--color-charcoal);
    font-family: "Fjalla One", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.services-page-journey-card p {
    max-width: 180px;
    margin: 7px auto 0;
    color: #736D6A;
    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   FINAL CTA (STATIC WITH HOVER ARROW SLIDE IN)
   ========================================================= */

.services-page-final-cta {
    background: linear-gradient(
        110deg,
        #242424 0%,
        #2E2E2E 100%
    );
    padding: 78px 0 82px;
}

.services-page-final-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-page-final-cta .services-page-eyebrow {
    justify-content: center;
}

.services-page-final-cta h2 {
    max-width: 820px;
    margin: 0 auto;
    color: var(--color-white);
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(38px, 5vw, 65px);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
}

.services-page-final-cta p {
    max-width: 650px;
    margin: 17px auto 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.65;
}

.services-page-final-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.services-page-final-primary {
    background: var(--brand-red);
    color: var(--color-white);
    border: 1px solid var(--brand-red);
}

.services-page-final-primary:hover {
    background: #C90606;
    border-color: #C90606;
    color: var(--color-white);
}

.services-page-final-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-page-final-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .services-page-hero {
        padding-top: 54px;
    }

    .services-page-hero-title {
        max-width: 680px;
        font-size: clamp(42px, 7vw, 62px);
    }

    .services-page-hero-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-page-hero-strip-item:nth-child(2) {
        border-right: 0;
    }

    .services-page-hero-strip-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .services-capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .technology-sales-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .technology-sales-intro {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .technology-sales-description {
        justify-self: start;
    }

    .hardware-infrastructure-layout,
    .medical-solutions-layout {
        grid-template-columns: 1fr;
    }

    .hardware-infrastructure-image-wrap,
    .medical-image-wrap {
        min-height: 420px;
    }

    .medical-lower-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-amc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-page-journey-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 30px;
    }

    .services-page-journey-grid::before {
        display: none;
    }

    .services-page-final-cta-inner {
        max-width: 760px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .services-page-hero {
        padding-top: 46px;
    }

    .services-page-eyebrow {
        font-size: 8px;
    }

    .services-page-hero-title {
        max-width: none;
        font-size: clamp(36px, 10vw, 52px);
    }

    .services-page-hero-description {
        font-size: 12px;
        line-height: 1.65;
    }

    .services-page-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .services-page-primary-button,
    .services-page-secondary-button {
        width: 100%;
    }

    .services-page-hero-strip {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .services-page-hero-strip-item {
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .services-page-hero-strip-item:last-child {
        border-bottom: 0;
    }

    .services-capabilities-section {
        padding: 54px 0 60px;
    }

    .services-page-section-title {
        font-size: clamp(36px, 10vw, 49px);
    }

    .services-page-section-description {
        font-size: 12px;
        line-height: 1.7;
    }

    .services-capabilities-grid,
    .technology-sales-grid,
    .maintenance-amc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .services-capability-card {
        min-height: auto;
        padding: 20px;
    }

    .technology-sales-section {
        padding: 58px 0 64px;
    }

    .technology-sales-intro {
        margin-bottom: 28px;
    }

    .technology-sales-card {
        min-height: auto;
        padding: 20px;
    }

    .hardware-infrastructure-section,
    .medical-solutions-section {
        padding: 62px 0;
    }

    .hardware-infrastructure-layout,
    .medical-solutions-layout {
        gap: 28px;
    }

    .hardware-infrastructure-image-wrap,
    .medical-image-wrap {
        min-height: 300px;
    }

    .hardware-service-item {
    min-height: auto;
}

    .hardware-service-item {
        min-height: auto;
    }

    .maintenance-amc-section {
        padding: 60px 0 64px;
    }

    .maintenance-amc-card {
        min-height: auto;
    }

    .services-page-journey-section {
        padding: 58px 0 64px;
    }

    .services-page-journey-title {
        font-size: clamp(36px, 10vw, 49px);
    }

    .services-page-journey-grid {
        grid-template-columns: 1fr;
        row-gap: 24px;
        margin-top: 32px;
    }

    .services-page-journey-card p {
        max-width: 240px;
    }

    .services-page-final-cta {
        padding: 62px 0 66px;
    }

    .services-page-final-cta-inner {
        max-width: none;
    }

    .services-page-final-cta h2 {
        font-size: clamp(31px, 9vw, 46px);
    }

    .services-page-final-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .services-page-final-primary,
    .services-page-final-secondary {
        width: 100%;
    }
}