/* Service detail page (/services/{slug}) — scoped under .sd */
body {
    background: #F8FAFC !important; /* Header.css sets a gradient on body; keep page sections clean */
}

.sd {
    --sd-ink: var(--se-dark, #0f172a);
    --sd-text: #475569;
    --sd-muted: #64748B;
    --sd-line: #E2E8F0;
    --sd-soft: #F8FAFC;
    --sd-brand: var(--se-primary, #2563eb);
    --sd-brand-dark: var(--se-primary-hover, #1d4ed8);
    --sd-brand-soft: rgba(37, 99, 235, 0.08);
    --sd-radius: 18px;
    --sd-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.14);
    font-family: 'Inter', sans-serif;
    color: var(--sd-text);
    background: var(--sd-soft);
}

.sd *, .sd *::before, .sd *::after { box-sizing: border-box; }
.sd ul, .sd ol { padding-left: 0; margin: 0; list-style: none; }

.sd-section { padding: 88px 0; }
.sd-section--white { background: #fff; border-top: 1px solid var(--sd-line); border-bottom: 1px solid var(--sd-line); }

.sd-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--sd-brand); font-weight: 700; font-size: .8rem;
    letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px;
}
.sd-kicker::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

.sd-title {
    font-weight: 800; color: var(--sd-ink); letter-spacing: -.5px; line-height: 1.2;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px;
}
.sd-lead { font-size: 1.08rem; line-height: 1.75; color: var(--sd-text); max-width: 720px; }
.sd-head { margin-bottom: 40px; }
.sd-head.text-center .sd-lead { margin-left: auto; margin-right: auto; }

.sd-card { background: #fff; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); box-shadow: var(--sd-shadow); }

.sd-icon {
    width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sd-brand-soft); color: var(--sd-brand); font-size: 1.15rem;
}

.sd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.sd-btn:hover { transform: translateY(-2px); }
.sd-btn--primary { background: var(--sd-brand); color: #fff !important; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .7); }
.sd-btn--primary:hover { background: var(--sd-brand-dark); }
.sd-btn--ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.sd-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.sd-btn--white { background: #fff; color: var(--sd-brand) !important; }

/* ---------- Hero ---------- */
.sd-hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--se-hero-bg, #060552);
    padding: 140px 0 96px;
}
.sd-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}
.sd-hero .container { position: relative; z-index: 1; }

.sd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #94A3B8; margin-bottom: 22px; }
.sd-crumbs a { color: #CBD5E1; text-decoration: none; }
.sd-crumbs a:hover { color: #fff; }

.sd-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 50px;
    background: rgba(96, 165, 250, .12); border: 1px solid rgba(96, 165, 250, .3);
    color: #93C5FD; font-weight: 600; font-size: .85rem; margin-bottom: 18px;
}
.sd-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 18px; }
.sd-hero-desc { font-size: 1.12rem; color: #94A3B8; line-height: 1.8; max-width: 620px; margin-bottom: 28px; }
.sd-hero-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.sd-hero-tech li { font-size: .82rem; font-weight: 600; color: #E2E8F0; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sd-hero-media { position: relative; max-width: 520px; margin-left: auto; }
.sd-hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 26px; border: 2px solid rgba(96, 165, 250, .3); }
.sd-hero-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); background: #111827; }

/* ---------- Deliverables ---------- */
.sd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sd-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--sd-line); border-radius: 16px; font-weight: 600; color: var(--sd-ink); }
.sd-checks i { color: #10B981; margin-top: 3px; }

/* ---------- Features ---------- */
.sd-feature { padding: 28px; height: 100%; transition: transform .2s ease, border-color .2s ease; }
.sd-feature:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .35); }
.sd-feature h3 { font-size: 1.12rem; font-weight: 700; color: var(--sd-ink); margin: 18px 0 8px; }
.sd-feature p { margin: 0; line-height: 1.7; color: var(--sd-muted); }

/* ---------- Tech ---------- */
.sd-tech { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sd-tech li { padding: 10px 18px; border-radius: 12px; background: var(--sd-soft); border: 1px solid var(--sd-line); font-weight: 700; color: var(--sd-ink); }

/* ---------- Engagement ---------- */
.sd-engage { padding: 30px; height: 100%; }
.sd-engage h3 { font-size: 1.15rem; font-weight: 700; color: var(--sd-ink); margin: 18px 0 8px; }
.sd-engage p { margin: 0 0 14px; line-height: 1.7; color: var(--sd-muted); }
.sd-engage ul li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: .95rem; }
.sd-engage ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--sd-brand); font-weight: 700; }

/* ---------- Process ---------- */
.sd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.sd-step { padding: 26px; position: relative; }
.sd-step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; font-size: 2rem; font-weight: 800; color: rgba(37, 99, 235, .18); line-height: 1; margin-bottom: 12px;
}
.sd-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--sd-ink); margin-bottom: 6px; }
.sd-step p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--sd-muted); }

/* ---------- FAQ ---------- */
.sd-faq { max-width: 860px; margin: 0 auto; }
.sd-faq details { background: #fff; border: 1px solid var(--sd-line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.sd-faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--sd-ink); position: relative; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sd-brand); transition: transform .2s ease; }
.sd-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sd-faq .sd-faq-a { padding: 0 22px 20px; line-height: 1.75; }

/* ---------- Related ---------- */
.sd-related { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.sd-related:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .35); }
.sd-related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #E2E8F0; }
.sd-related-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.sd-related-cat { font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sd-brand); }
.sd-related h3 { font-size: 1.12rem; font-weight: 700; color: var(--sd-ink); margin: 6px 0 8px; }
.sd-related p { font-size: .93rem; line-height: 1.6; color: var(--sd-muted); flex: 1; }
.sd-related-link { font-weight: 700; color: var(--sd-brand); }

/* ---------- CTA ---------- */
.sd-cta {
    border-radius: 26px; padding: 56px; color: #fff;
    background: radial-gradient(700px 300px at 90% 0%, rgba(56, 189, 248, .35), transparent 60%), linear-gradient(135deg, #1E3A8A 0%, var(--sd-brand) 100%);
    box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .8);
}
.sd-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.sd-cta p { color: #DBEAFE; font-size: 1.05rem; margin: 0; max-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sd-hero { padding: 120px 0 72px; text-align: center; }
    .sd-crumbs, .sd-hero-tech, .sd-actions { justify-content: center; }
    .sd-hero-desc { margin-left: auto; margin-right: auto; }
    .sd-hero-media { margin: 0 auto 8px; max-width: 460px; }
    .sd-section { padding: 68px 0; }
    .sd-steps { grid-template-columns: repeat(2, 1fr); }
    .sd-cta { padding: 40px; text-align: center; }
    .sd-cta p { margin: 0 auto 24px; }
}
@media (max-width: 575.98px) {
    .sd-hero { padding: 100px 0 56px; }
    .sd-hero-media::before { inset: 12px -12px -12px 12px; }
    .sd-actions .sd-btn { width: 100%; }
    .sd-section { padding: 52px 0; }
    .sd-steps { grid-template-columns: 1fr; }
    .sd-feature, .sd-engage { padding: 22px; }
    .sd-cta { padding: 32px 22px; }
}

/* Location line under the hero buttons */
.sd-hero-location { margin: 22px 0 0; font-size: .9rem; color: #cbd5e1; }
.sd-hero-location i { color: #7dd3fc; margin-right: 6px; }
