/* ============================================================
   Services Landing (/services) + Single Category (/services/{slug})
   Layout: compact hero → sticky chip nav → stacked product rows
   (Best Sellers, Offers, per-category) → FAQ → Doctors → Testimonials
   → bottom CTA. Reuses .package-card from style.css for cards.
   ============================================================ */

/* -------- Compact hero -------- */
.srv-hero {
    padding: 36px 0 22px;
    background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 100%);
}
.srv-hero-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.srv-hero-text { flex: 1; min-width: 260px; }
.srv-hero-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.75;
    margin-bottom: 8px;
}
.srv-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
    line-height: 1.15;
}
.srv-hero-sub {
    font-size: 14.5px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0;
    line-height: 1.6;
}

/* Inline promo chip — sits to the right of the hero text on wide screens,
   wraps to its own line on narrow viewports. */
.srv-promo-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(26, 42, 108, 0.22);
    transition: transform .18s, box-shadow .18s;
    white-space: nowrap;
}
.srv-promo-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(26, 42, 108, 0.32);
    color: #fff;
}
.srv-promo-chip i { font-size: 13px; }
.srv-promo-chip i:last-child { opacity: 0.8; font-size: 11px; }

/* -------- Sticky category quick-nav (chips strip) -------- */
.srv-quicknav {
    position: sticky;
    top: 72px;                            /* clear the main header */
    z-index: 600;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 42, 108, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.srv-quicknav-inner {
    padding: 0 !important;
    overflow: hidden;
}
.srv-quicknav-scroll {
    display: flex;
    gap: 8px;
    padding: 26px 24px 22px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.srv-quicknav-scroll::-webkit-scrollbar { display: none; }

.srv-quicknav-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f3fa;
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s, color .15s, transform .15s;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.srv-quicknav-chip:hover {
    background: #e7eaf6;
    color: var(--color-primary);
}
.srv-quicknav-chip.is-active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26, 42, 108, 0.28);
}
.srv-quicknav-chip i { font-size: 12px; opacity: 0.9; }

/* -------- Per-row section -------- */
.srv-section {
    padding: 36px 0;
    background: #ffffff;
    scroll-margin-top: 132px;            /* keeps title visible under sticky nav */
}
.srv-section--soft {
    background: linear-gradient(180deg, #fbfcff 0%, #f4f6fc 100%);
}

.srv-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.srv-section-head-text { flex: 1; min-width: 240px; }

.srv-section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 4px;
    line-height: 1.2;
}
.srv-section-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #eef0ff;
    color: var(--color-primary);
    display: grid; place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}
.srv-section-icon--accent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
}
.srv-section-sub {
    font-size: 13.5px;
    color: var(--color-text-muted);
    margin: 4px 0 0;
    line-height: 1.5;
}

.srv-section-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid rgba(26, 42, 108, 0.18);
    border-radius: 999px;
    transition: gap .15s, background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.srv-section-all:hover {
    gap: 11px;
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.srv-section-all i { font-size: 10px; }

.srv-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* -------- FAQ -------- */
.srv-faq-container { max-width: 880px; }
.srv-faq-head { text-align: center; margin-bottom: 22px; }
.srv-faq-head .srv-section-title { justify-content: center; }
.srv-faq-head .srv-section-sub   { margin-top: 6px; }

.srv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.srv-faq-item {
    background: #ffffff;
    border: 1px solid rgba(26, 42, 108, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.srv-faq-item:hover {
    border-color: rgba(26, 42, 108, 0.18);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}
.srv-faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.08);
}

.srv-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    line-height: 1.4;
}
.srv-faq-q::-webkit-details-marker { display: none; }
.srv-faq-chevron {
    font-size: 12px;
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
    opacity: 0.6;
    flex-shrink: 0;
}
.srv-faq-item[open] .srv-faq-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.srv-faq-a {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* -------- Bottom CTA band -------- */
.srv-cta-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, #14206b 100%);
    color: #fff;
    padding: 44px 0;
}
.srv-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.srv-cta-text { flex: 1; min-width: 280px; }
.srv-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}
.srv-cta-sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.55;
}
.srv-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.srv-cta-actions .btn-primary-solid {
    background: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.srv-cta-actions .btn-primary-solid:hover {
    background: #f4f6fc;
    color: var(--color-primary);
    border-color: #f4f6fc;
}
.srv-cta-actions .btn-primary-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.srv-cta-actions .btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   Category page (/services/{slug}) — KEEP these (category.php uses them)
   ============================================================ */
.srv-cat-hero {
    padding: 48px 0 28px;
    background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 100%);
}
.srv-cat-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.srv-cat-hero-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;
    display: grid; place-items: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(26, 42, 108, 0.22);
}
.srv-cat-hero-text { flex: 1; min-width: 0; }
.srv-cat-hero-eyebrow {
    display: block;
    font-family: 'Montserrat', var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.7;
    margin-bottom: 6px;
}
.srv-cat-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
    line-height: 1.15;
}
.srv-cat-hero-sub {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
    max-width: 720px;
}
.srv-cat-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.srv-cat-breadcrumb a { color: inherit; text-decoration: none; transition: color .15s; }
.srv-cat-breadcrumb a:hover { color: var(--color-primary); }
.srv-cat-breadcrumb i { font-size: 10px; opacity: 0.6; }

.srv-cat-products { padding: 32px 0 72px; background: #ffffff; }
.srv-cat-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.srv-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 60px 16px;
    grid-column: 1 / -1;
}
.srv-empty i {
    font-size: 36px;
    color: rgba(26, 42, 108, 0.25);
    margin-bottom: 12px;
}

/* -------- Responsive -------- */
@media (max-width: 991px) {
    .srv-hero { padding: 28px 0 18px; }
    .srv-hero-title { font-size: 28px; }
    .srv-section-grid,
    .srv-cat-products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .srv-section-title { font-size: 20px; }
    .srv-cat-hero-title { font-size: 28px; }
    .srv-cta-title { font-size: 24px; }
}
@media (max-width: 640px) {
    .srv-hero-inner { gap: 14px; }
    .srv-hero-title { font-size: 24px; }
    .srv-hero-sub   { font-size: 13.5px; }
    .srv-promo-chip { font-size: 12.5px; padding: 8px 14px; }
    .srv-quicknav { top: 60px; }
    .srv-quicknav-scroll { padding: 20px 16px 16px; }
    .srv-section-grid,
    .srv-cat-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .srv-section-head { gap: 10px; }
    .srv-section-all  { padding: 6px 12px; font-size: 12.5px; }
    .srv-faq-q        { padding: 14px 16px; font-size: 14px; }
    .srv-faq-a        { padding: 0 16px 14px; font-size: 13.5px; }
    .srv-cta-band     { padding: 32px 0; }
    .srv-cta-title    { font-size: 22px; }
}
