/*
 * Electromed Solutions — Services Page Stylesheet
 * Add to pages.css or enqueue separately
 * ============================================================
 */

/* ============================================================
   SERVICES HERO
============================================================ */
.em-services-hero { min-height: 420px; align-items: center; }

.em-services-overlay {
    background: linear-gradient(105deg, rgba(4, 45, 99, 0.70) 0%, rgba(6, 57, 125, 0.52) 55%, rgba(6, 57, 125, 0.15) 100%);
}

.em-services-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    animation: fadeInUp 0.6s 0.4s ease both;
}
.em-hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}
.em-hero-badge-pill i { color: var(--em-accent-light); }


/* ============================================================
   INTRO STRIP
============================================================ */
.em-services-intro-strip {
    background: var(--em-primary);
    padding: 32px 0;
}
.em-services-intro-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}
.em-services-intro-icon {
    width: 64px; height: 64px;
    border-radius: var(--em-radius-md);
    background: rgba(255, 255, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
}
.em-services-intro-text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
}
.em-services-intro-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}
.em-services-intro-stats {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 32px;
}
.em-intro-stat {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.em-intro-stat:last-child { border-right: none; }
.em-intro-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--em-accent-light);
    line-height: 1;
    margin-bottom: 4px;
}
.em-intro-stat span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   SERVICES CARDS GRID
============================================================ */
.em-services-grid-section {
    padding: 80px 0;
    background: var(--em-off-white);
}

.em-services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.em-service-detail-card {
    background: var(--em-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-lg);
    padding: 32px 28px;
    transition: var(--em-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeInUp 0.5s calc(var(--card-delay, 0s) + 0.1s) both;
}
.em-service-detail-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.em-service-detail-card:hover {
    box-shadow: var(--em-shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(6, 57, 125, 0.15);
}
.em-service-detail-card:hover::after { transform: scaleX(1); }

/* Card Header */
.em-sdc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.em-sdc-icon-wrap {
    width: 56px; height: 56px;
    border-radius: var(--em-radius-md);
    background: linear-gradient(135deg, rgba(6, 57, 125, 0.08), rgba(6, 57, 125, 0.14));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--em-primary);
    transition: var(--em-transition);
    flex-shrink: 0;
}
.em-service-detail-card:hover .em-sdc-icon-wrap {
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    color: white;
    transform: scale(1.06);
}
.em-sdc-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(6, 57, 125, 0.07);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* Card Content */
.em-sdc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--em-text);
    margin-bottom: 6px;
    line-height: 1.3;
}
.em-sdc-short {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--em-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.em-sdc-desc {
    font-size: 0.855rem;
    color: var(--em-text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    flex: 1;
}

/* Feature List */
.em-sdc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 22px;
    padding: 16px;
    background: var(--em-off-white);
    border-radius: var(--em-radius-md);
}
.em-sdc-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    color: var(--em-text-muted);
    font-weight: 500;
}
.em-sdc-features li i {
    color: var(--em-primary);
    font-size: 0.72rem;
    flex-shrink: 0;
    width: 14px;
}

/* Card CTA */
.em-sdc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--em-primary);
    padding: 10px 0;
    border-top: 1px solid var(--em-border);
    transition: var(--em-transition);
    margin-top: auto;
}
.em-sdc-cta i {
    font-size: 0.72rem;
    transition: transform 0.2s;
}
.em-sdc-cta:hover { color: var(--em-accent); }
.em-sdc-cta:hover i { transform: translateX(4px); }


/* ============================================================
   SERVICE PROCESS STEPS
============================================================ */
.em-service-process {
    padding: 80px 0;
    background: var(--em-white);
    position: relative;
    overflow: hidden;
}
.em-service-process::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
}

.em-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}
.em-process-step {
    text-align: center;
    padding: 20px 32px;
    position: relative;
    transition: var(--em-transition);
}
.em-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 42px;
    right: -1px;
    width: 2px;
    height: 50px;
    background: var(--em-border);
}

.em-process-step-icon {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--em-primary), var(--em-primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(6, 57, 125, 0.28);
    transition: var(--em-transition);
}
.em-process-step:hover .em-process-step-icon {
    background: linear-gradient(135deg, var(--em-accent), var(--em-accent-dark));
    box-shadow: 0 8px 24px rgba(232, 80, 10, 0.3);
    transform: scale(1.08);
}
.em-process-step-num {
    position: absolute;
    top: -6px; right: -6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--em-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.em-process-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--em-text);
    margin-bottom: 8px;
}
.em-process-step p {
    font-size: 0.82rem;
    color: var(--em-text-muted);
    line-height: 1.7;
}


/* ============================================================
   COVERAGE STRIP
============================================================ */
.em-coverage-strip {
    padding: 80px 0;
    background: var(--em-off-white);
    overflow: hidden;
}
.em-coverage-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.em-coverage-text .em-section-title { margin-bottom: 12px; }
.em-coverage-text p {
    font-size: 0.9rem;
    color: var(--em-text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}
.em-coverage-locations {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.em-coverage-locations li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--em-text-muted);
}
.em-coverage-locations li i {
    color: var(--em-accent);
    flex-shrink: 0;
    width: 16px;
}
.em-coverage-locations li strong {
    color: var(--em-text);
    font-weight: 700;
    margin-right: 4px;
}

.em-coverage-image {}
.em-coverage-img-wrap {
    position: relative;
    border-radius: var(--em-radius-xl);
    overflow: hidden;
    box-shadow: var(--em-shadow-lg);
}
.em-coverage-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.em-coverage-img-wrap:hover img { transform: scale(1.04); }
.em-coverage-badge {
    position: absolute;
    bottom: 20px; right: 20px;
    background: var(--em-white);
    border-radius: var(--em-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--em-shadow-md);
}
.em-coverage-badge i {
    font-size: 1.3rem;
    color: var(--em-primary);
}
.em-coverage-badge span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--em-text);
    line-height: 1.3;
}


/* ============================================================
   AMC PACKAGES
============================================================ */
.em-amc-packages {
    padding: 80px 0;
    background: var(--em-white);
}

.em-amc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.em-amc-card {
    background: var(--em-off-white);
    border: 1px solid var(--em-border);
    border-radius: var(--em-radius-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: var(--em-transition);
    position: relative;
    overflow: hidden;
}
.em-amc-card:hover {
    box-shadow: var(--em-shadow-md);
    transform: translateY(-4px);
}

/* Featured Card */
.em-amc-featured {
    background: linear-gradient(160deg, var(--em-primary-dark) 0%, var(--em-primary) 100%);
    border-color: var(--em-primary);
    box-shadow: var(--em-shadow-lg);
    transform: scale(1.03);
}
.em-amc-featured:hover { transform: scale(1.03) translateY(-4px); }

.em-amc-popular-badge {
    position: absolute;
    top: 0; right: 28px;
    background: var(--em-accent);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 0 0 var(--em-radius-sm) var(--em-radius-sm);
}

.em-amc-card-header { margin-bottom: 24px; text-align: center; padding-top: 16px; }
.em-amc-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}
.em-amc-card:not(.em-amc-featured) .em-amc-icon {
    background: rgba(6, 57, 125, 0.08);
    color: var(--em-primary);
}
.em-amc-featured .em-amc-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}
.em-amc-card-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.em-amc-card:not(.em-amc-featured) .em-amc-card-header h3 { color: var(--em-text); }
.em-amc-featured .em-amc-card-header h3 { color: white; }
.em-amc-card-header p {
    font-size: 0.8rem;
    font-weight: 500;
}
.em-amc-card:not(.em-amc-featured) .em-amc-card-header p { color: var(--em-text-muted); }
.em-amc-featured .em-amc-card-header p { color: rgba(255, 255, 255, 0.7); }

/* AMC Features List */
.em-amc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    margin-bottom: 28px;
}
.em-amc-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 500;
}
.em-amc-card:not(.em-amc-featured) .em-yes { color: var(--em-text); }
.em-amc-card:not(.em-amc-featured) .em-no  { color: var(--em-mid-gray); text-decoration: line-through; opacity: 0.6; }
.em-amc-featured .em-yes { color: rgba(255, 255, 255, 0.9); }
.em-amc-featured .em-no  { color: rgba(255, 255, 255, 0.3); text-decoration: line-through; }

.em-yes i { color: #16a34a; font-size: 0.75rem; width: 14px; flex-shrink: 0; }
.em-no  i { color: var(--em-mid-gray); font-size: 0.75rem; width: 14px; flex-shrink: 0; }
.em-amc-featured .em-yes i { color: #4ade80; }
.em-amc-featured .em-no  i { color: rgba(255, 255, 255, 0.2); }

.em-amc-cta { margin-top: auto; }

/* AMC Note */
.em-amc-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.82rem;
    color: var(--em-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.em-amc-note i { color: var(--em-primary); }


/* ============================================================
   SERVICES JOIN CTA
============================================================ */
.em-services-join-cta {
    position: relative;
    padding: 88px 0;
    overflow: hidden;
}
.em-services-join-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.em-services-join-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.em-services-join-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4, 45, 99, 0.92) 0%,
        rgba(6, 57, 125, 0.8) 50%,
        rgba(6, 57, 125, 0.35) 100%
    );
}
.em-services-join-cta .em-container { position: relative; z-index: 1; }

.em-services-join-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.em-services-join-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
}
.em-services-join-text h2 span { color: var(--em-accent-light); }
.em-services-join-text p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 540px;
}


/* ============================================================
   RESPONSIVE — SERVICES PAGE
============================================================ */
@media (max-width: 1100px) {
    .em-services-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .em-services-intro-inner { grid-template-columns: 1fr; gap: 20px; }
    .em-services-intro-stats { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
    .em-coverage-inner { grid-template-columns: 1fr; }
    .em-amc-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .em-amc-featured { transform: scale(1); }
    .em-amc-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .em-services-cards-grid { grid-template-columns: 1fr; }
    .em-process-steps { grid-template-columns: repeat(2, 1fr); }
    .em-process-step:nth-child(2)::after { display: none; }
    .em-services-join-inner { flex-direction: column; text-align: center; }
    .em-services-hero-badges { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .em-process-steps { grid-template-columns: 1fr; }
    .em-process-step::after { display: none; }
    .em-services-hero-badges { flex-direction: column; }
    .em-intro-stat { padding: 0 12px; }
    .em-intro-stat strong { font-size: 1.4rem; }
}