/* ============================================================
   SERVICE DETAIL PAGE — sd-* styles
   ============================================================ */

/* ── Intro section ─────────────────────────────────────────── */
.sd-intro {
    padding: var(--space-7) 0 var(--space-6);
}

.sd-intro__subheading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-4);
}

.sd-intro-logo {
    background: #fff;
    padding: var(--space-9) 0;
    text-align: center;
}

.sd-intro-logo__img {
    display: inline-block;
    max-width: 320px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sd-intro__body {
    font-size: 1rem;
    color: #444;
    /* line-height/margin-bottom come from .bell-prose */
}

.sd-intro__body h2,
.sd-intro__body h3,
.sd-intro__body h4 {
    color: var(--color-card-title, #1a1a1a);
    margin: var(--space-6) 0 var(--space-3);
}
.sd-intro__body h2:first-child,
.sd-intro__body h3:first-child,
.sd-intro__body h4:first-child { margin-top: 0; }

/* Rich-text lists — bell-site.css resets ul/ol to list-style:none sitewide,
   which otherwise makes RichTextEditor bullet/numbered lists invisible. */
.sd-intro__body ul,
.sd-intro__body ol {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-6);
}
.sd-intro__body ul { list-style: disc; }
.sd-intro__body ol { list-style: decimal; }
.sd-intro__body li { margin-bottom: 0.35rem; }

.sd-intro__body a {
    color: var(--color-primary, #FFC200);
    text-decoration: underline;
    font-weight: 600;
}
.sd-intro__body a:hover { text-decoration: none; }

/* ── 75/25 split when side image is set ───────────────────── */
.sd-intro__split {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--space-7);
    align-items: start;
}

.sd-intro__side-img {
    flex-shrink: 0;
    padding-left: 100px;
}

.sd-intro__side-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.sd-intro__btn-wrap {
    margin-top: var(--space-6);
    text-align: right;
}

/* ── YouTube video embed ───────────────────────────────────── */
.sd-intro__video {
    margin-top: var(--space-7);
    position: relative;
    width: 75%;
    aspect-ratio: 16 / 9;
}

.sd-intro__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* ── Contact line ──────────────────────────────────────────── */
.sd-intro__contact {
    margin-top: var(--space-5);
    font-size: 0.95rem;
    color: #444;
}

.sd-intro__contact a {
    color: var(--color-primary, #1a1a1a);
    font-weight: 600;
}

.sd-intro__note {
    color: #666;
}

/* ── Feature cards ─────────────────────────────────────────── */
.sd-features {
    padding: var(--space-6) 0 var(--space-7);
    background: #f5f5f5;
}

.sd-features__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-6);
}

.sd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.sd-feature-card {
    background: #fff;
    border-radius: 6px;
    padding: var(--space-5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.sd-feature-card__btn-wrap {
    margin-top: auto;
    padding-top: var(--space-3);
    padding-right: 5px;
    padding-bottom: 5px;
    text-align: right;
}

.sd-feature-card__img {
    width: 100%;
    margin-bottom: var(--space-3);
    border-radius: 4px;
    overflow: hidden;
}

.sd-feature-card__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sd-feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-card-title, #1a1a1a);
    margin: 0 0 var(--space-2);
}

.sd-feature-card__divider {
    width: 40px;
    height: 3px;
    background: var(--color-primary, #FFC200);
    margin-bottom: var(--space-3);
}

.sd-feature-card__body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}
.sd-feature-card__body p { margin: 0 0 0.6rem; }
.sd-feature-card__body p:last-child { margin-bottom: 0; }
/* Rich-text lists — bell-site.css resets ul/ol to list-style:none sitewide,
   which otherwise makes RichTextEditor bullet/numbered lists invisible. */
.sd-feature-card__body ul,
.sd-feature-card__body ol {
    margin: 0 0 0.6rem;
    padding-left: 1.3rem;
}
.sd-feature-card__body ul { list-style: disc; }
.sd-feature-card__body ol { list-style: decimal; }
.sd-feature-card__body li { margin-bottom: var(--space-1); }
.sd-feature-card__body ul:last-child,
.sd-feature-card__body ol:last-child { margin-bottom: 0; }

/* ── Horizontal card layout ────────────────────────────────── */
.sd-features-grid--horizontal {
    grid-template-columns: 1fr;
    gap: var(--space-9);
}

.sd-features-grid--horizontal .sd-feature-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: rgba(0,0,0,0.1) 0 0 15px 5px;
    height: 250px;
    overflow: hidden;
}

.sd-features-grid--horizontal .sd-feature-card__img {
    flex: 0 0 30%;
    width: 30%;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
}

.sd-features-grid--horizontal .sd-feature-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-features-grid--horizontal .sd-feature-card__body-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sd-features-grid--horizontal .sd-feature-card__title {
    background: #f0f0f0;
    margin: 0;
    padding: var(--space-5);
    font-size: 1.25rem;
    text-align: center;
}

.sd-features-grid--horizontal .sd-feature-card__divider {
    display: none;
}

.sd-features-grid--horizontal .sd-feature-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-5);
    flex: 1;
    font-size: 1rem;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.sd-faq {
    padding: 0 0 var(--space-7);
}

.sd-faq .bell-about-heading-row {
    margin-top: 0 !important;
    margin-bottom: var(--space-7);
}

.sd-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.sd-faq__item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.sd-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    gap: var(--space-4);
}

.sd-faq__question::-webkit-details-marker { display: none; }

.sd-faq__chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: #555;
    transition: transform 0.2s ease;
}

.sd-faq__item[open] .sd-faq__chevron {
    transform: rotate(180deg);
}

.sd-faq__answer {
    padding: 0 var(--space-5) var(--space-4);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.sd-faq__answer p { margin-bottom: var(--space-2); }
.sd-faq__answer p:last-child { margin-bottom: 0; }

/* ── Related services ──────────────────────────────────────── */
.sd-related {
    padding-bottom: var(--space-7);
}

.sd-related .bell-about-heading-row {
    margin-top: var(--space-9) !important;
}

.sd-related__grid-wrap {
    padding-top: var(--space-6);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .sd-intro__split {
        grid-template-columns: 1fr;
    }

    .sd-intro__side-img {
        max-width: 60%;
        /* padding-left:100px above is desktop-only spacing meant to separate
           the image from the text column — leftover once stacked to 1 column,
           it squeezes/pushes the image off-centre on narrow screens */
        padding-left: 0;
        margin: 0 auto;
    }

    .sd-intro__video {
        width: 100%;
    }

    .sd-features-grid--horizontal .sd-feature-card {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sd-features-grid--horizontal .sd-feature-card__img {
        flex: none;
        width: 100%;
    }

    .sd-features-grid--horizontal .sd-feature-card__img img {
        height: 220px;
    }

    .sd-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .sd-features-grid {
        grid-template-columns: 1fr;
    }

    .sd-intro__side-img {
        max-width: 100%;
    }
}

/* Rich-text bodies are pasted from Word/web editors and carry inline colours, so the same
   copy renders in different greys/blacks. Force them back to the body text colour; links keep theirs. */
.sd-intro__body :is(span, em, strong, p, li)[style*="color"],
.sd-feature-card__body :is(span, em, strong, p, li)[style*="color"],
.sd-faq__answer :is(span, em, strong, p, li)[style*="color"] {
  color: inherit !important;
  background-color: transparent !important;
}
