/* ================================================================
   INTERIOR PAGE DESIGN SYSTEM
   The Good Samaritan Medical Center
   Palette: brand blue / white / gray ONLY
   Used by: specialties, therapies, diagnostics, integrative,
            facilities, resources hubs & detail pages
   ================================================================ */

:root {
    --ip-blue: #5585b5;
    --ip-blue-light: #6fa0cc;
    --ip-blue-dark: #3d6a96;
    --ip-blue-deep: #2f5277;
    --ip-ink: #21364d;
    --ip-body: #51657d;
    --ip-muted: #7c8da3;
    --ip-line: #e0e9f3;
    --ip-surface: #f4f8fc;
    --ip-surface-2: #eaf2fa;
    --ip-radius: 18px;
    --ip-shadow-sm: 0 6px 18px rgba(85, 133, 181, 0.10);
    --ip-shadow-md: 0 16px 40px rgba(85, 133, 181, 0.14);
    --ip-shadow-lg: 0 26px 60px rgba(47, 82, 119, 0.20);
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.service-hero,
.therapy-hero.is-interior {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 190px 0 110px;
    overflow: hidden;
    background: linear-gradient(135deg, #3d6a96 0%, #5585b5 52%, #6fa0cc 100%);
}

.service-hero-background,
.page-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.service-hero-background .hero-video,
.page-hero-background .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.32;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(47, 82, 119, 0.92) 0%, rgba(85, 133, 181, 0.78) 48%, rgba(111, 160, 204, 0.55) 100%);
}

.service-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.18) 0%, transparent 46%);
}

.service-hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 40px;
}

.service-hero-content {
    max-width: 720px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
}

.service-kicker,
.service-hero-content .service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 22px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.4vw, 3.7rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    text-shadow: 0 4px 24px rgba(20, 40, 70, 0.30);
}

.service-subtitle {
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.7;
    font-weight: 300;
    max-width: 620px;
    margin-bottom: 34px;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.service-hero-actions .btn {
    padding: 15px 30px;
    font-size: 14px;
}

.service-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.service-hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

/* Animated SVG holder */
.service-hero-visual {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-visual svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(20, 40, 70, 0.35));
}

.hero-orb {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 72%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: ip-orb-pulse 6s ease-in-out infinite;
}

@keyframes ip-orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ----------------------------------------------------------------
   SECTION SHELL
   ---------------------------------------------------------------- */
.service-section {
    padding: 92px 0;
    background: #fff;
}

.service-section.alt {
    background: linear-gradient(180deg, var(--ip-surface) 0%, var(--ip-surface-2) 100%);
}

.service-section.tight {
    padding: 64px 0;
}

.section-head {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    text-align: left;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ip-blue);
    margin-bottom: 14px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--ip-ink);
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-lead {
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--ip-body);
}

/* ----------------------------------------------------------------
   INTRO / OVERVIEW (two-column)
   ---------------------------------------------------------------- */
.service-overview {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.service-overview .overview-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 700;
    color: var(--ip-ink);
    line-height: 1.22;
    margin-bottom: 20px;
}

.service-overview .overview-text p {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--ip-body);
    margin-bottom: 18px;
}

.service-panel {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 34px 32px;
    box-shadow: var(--ip-shadow-md);
    position: relative;
    overflow: hidden;
}

.service-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ip-blue) 0%, var(--ip-blue-light) 100%);
}

.service-panel h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ip-ink);
    margin-bottom: 20px;
}

.service-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-panel ul li {
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ip-body);
}

.service-panel ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ip-surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235585b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------------------------------------------------------------
   STAT BAND
   ---------------------------------------------------------------- */
.stat-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
}

.stat-band.on-light .stat-item {
    background: #fff;
    border: 1px solid var(--ip-line);
    box-shadow: var(--ip-shadow-sm);
}

.stat-band.on-light .stat-number { color: var(--ip-blue-dark); }
.stat-band.on-light .stat-label { color: var(--ip-body); }

/* ----------------------------------------------------------------
   FEATURE / BENEFIT CARDS
   ---------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 34px 30px;
    box-shadow: var(--ip-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ip-shadow-md);
    border-color: rgba(85, 133, 181, 0.35);
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--ip-blue) 0%, var(--ip-blue-light) 100%);
    color: #fff;
}

.service-card .card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ip-ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--ip-body);
}

/* ----------------------------------------------------------------
   CONDITIONS CHECKLIST (multi-column)
   ---------------------------------------------------------------- */
.checklist-wrap {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 40px 38px;
    box-shadow: var(--ip-shadow-sm);
}

.checklist {
    list-style: none;
    columns: 3;
    column-gap: 38px;
}

.checklist.cols-2 { columns: 2; }

.checklist li {
    break-inside: avoid;
    position: relative;
    padding: 0 0 14px 30px;
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--ip-body);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--ip-surface-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235585b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ----------------------------------------------------------------
   ALTERNATING FEATURE ROWS
   ---------------------------------------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 72px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-row-media { order: 2; }

.feature-row-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    color: var(--ip-ink);
    line-height: 1.25;
    margin-bottom: 18px;
}

.feature-row-text p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--ip-body);
    margin-bottom: 16px;
}

.feature-row-media {
    border-radius: var(--ip-radius);
    overflow: hidden;
    box-shadow: var(--ip-shadow-md);
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--ip-surface) 0%, var(--ip-surface-2) 100%);
}

.feature-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------------
   SPECIALIST CARD
   ---------------------------------------------------------------- */
.specialist-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 40px;
    box-shadow: var(--ip-shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.specialist-photo {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ip-blue) 0%, var(--ip-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.specialist-photo svg { width: 84px; height: 84px; }

.specialist-info .specialist-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ip-ink);
    margin-bottom: 6px;
}

.specialist-info .specialist-role {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ip-blue);
    margin-bottom: 16px;
}

.specialist-info p {
    font-size: 0.99rem;
    line-height: 1.75;
    color: var(--ip-body);
}

/* ----------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------- */
.service-faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-faq-item {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: var(--ip-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-faq-item:hover {
    border-color: rgba(85, 133, 181, 0.4);
    box-shadow: var(--ip-shadow-md);
}

.service-faq-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ip-ink);
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.service-faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    top: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ip-blue) 0%, var(--ip-blue-light) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

.service-faq-item p {
    font-size: 0.99rem;
    line-height: 1.72;
    color: var(--ip-body);
}

/* ----------------------------------------------------------------
   HUB GRID (cards linking to detail pages)
   ---------------------------------------------------------------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    overflow: hidden;
    box-shadow: var(--ip-shadow-sm);
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ip-shadow-lg);
    border-color: rgba(85, 133, 181, 0.35);
}

.hub-card-top {
    height: 96px;
    background: linear-gradient(135deg, var(--ip-blue-dark) 0%, var(--ip-blue) 55%, var(--ip-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hub-card-top svg { width: 40px; height: 40px; }

.hub-card-body {
    padding: 26px 26px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    color: var(--ip-ink);
    margin-bottom: 10px;
}

.hub-card-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ip-body);
    margin-bottom: 18px;
    flex: 1;
}

.hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--ip-blue);
}

.hub-card-link svg { width: 14px; height: 14px; }

.hub-card:hover .hub-card-link svg {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* ----------------------------------------------------------------
   CTA BAR
   ---------------------------------------------------------------- */
.section-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--ip-blue-dark) 0%, var(--ip-blue) 60%, var(--ip-blue-light) 100%);
    border-radius: 22px;
    padding: 48px 52px;
    box-shadow: var(--ip-shadow-lg);
    position: relative;
    overflow: hidden;
}

.section-cta-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 45%);
    pointer-events: none;
}

.section-cta-bar .cta-text {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.section-cta-bar h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-cta-bar p {
    font-size: 1.01rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.section-cta-bar .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ip-blue-dark);
    border: none;
    padding: 16px 34px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(20, 40, 70, 0.25);
}

.section-cta-bar .btn:hover {
    background: var(--ip-surface);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .service-hero .container { grid-template-columns: 1fr; }
    .service-hero-visual { display: none; }
    .service-overview { grid-template-columns: 1fr; gap: 32px; }
    .checklist { columns: 2; }
    .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 48px; }
    .feature-row.reverse .feature-row-media { order: 0; }
}

@media (max-width: 768px) {
    .service-hero { min-height: 64vh; padding: 150px 0 80px; }
    .service-section { padding: 64px 0; }
    .checklist, .checklist.cols-2 { columns: 1; }
    .specialist-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 24px; }
    .specialist-photo { margin: 0 auto; }
    .section-cta-bar { padding: 36px 28px; }
    .section-head { margin-bottom: 40px; }
}
