/* ============================================================
   Natura Dental — Service Detail Page
   Design System: Editorial Clinical Excellence
   Palette: #4441cc / #13134b / #575993 / #f5f2ff / #e1e0ff
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.sd-hero {
    background: linear-gradient(135deg, #13134b 0%, #1e1b6e 55%, #5e5ce6 100%);
    padding: 80px 11% 64px;
    color: white;
}

.sd-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .5);
}

.sd-hero-breadcrumb a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.sd-hero-breadcrumb a:hover {
    color: rgba(255, 255, 255, .9);
}

.sd-hero-breadcrumb span {
    color: rgba(255, 255, 255, .25);
}

.sd-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .85);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.sd-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -.02em;
}

.sd-hero-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, .7);
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
}

/* ── Body Layout ────────────────────────────────────────── */
.sd-body {
    padding: 72px 11%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.sd-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: start;
}

/* ── Main Content ───────────────────────────────────────── */
.sd-content-block {
    margin-bottom: 56px;
}

.sd-content-block:last-child {
    margin-bottom: 0;
}

.sd-section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #4441cc;
    margin-bottom: 12px;
    display: block;
}

.sd-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #13134b;
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.sd-text {
    font-size: .9375rem;
    color: #575993;
    line-height: 1.8;
    margin: 0;
}

.sd-text p {
    margin: 0 0 16px;
}

.sd-text p:last-child {
    margin-bottom: 0;
}

.sd-divider {
    height: 1px;
    background: #e1e0ff;
    margin: 48px 0;
}

/* ── Timeline Steps ─────────────────────────────────────── */
.sd-steps {
    position: relative;
    padding-left: 40px;
    margin-top: 8px;
}

.sd-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: #e1e0ff;
}

.sd-step {
    position: relative;
    margin-bottom: 32px;
}

.sd-step:last-child {
    margin-bottom: 0;
}

.sd-step-num {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #4441cc;
    color: white;
    font-weight: 800;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #13134b;
    margin: 4px 0 6px;
    line-height: 1.4;
}

.sd-step-text {
    font-size: .875rem;
    color: #575993;
    line-height: 1.7;
    margin: 0;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sd-sidebar {
    position: sticky;
    top: 32px;
}

.sd-sidebar-card {
    background: #f5f2ff;
    padding: 32px;
    margin-bottom: 24px;
}

.sd-sidebar-card:last-child {
    margin-bottom: 0;
}

.sd-sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: #13134b;
    margin: 0 0 12px;
    line-height: 1.3;
}

.sd-sidebar-card p {
    font-size: .875rem;
    color: #575993;
    line-height: 1.65;
    margin: 0;
}

.sd-cta-btn {
    display: block;
    background: #4441cc;
    color: white;
    text-align: center;
    padding: 14px 24px;
    font-weight: 700;
    font-size: .9375rem;
    text-decoration: none;
    border-radius: 9999px;
    margin-top: 16px;
    transition: background .2s, transform .15s;
}

.sd-cta-btn:hover {
    background: #5e5ce6;
    transform: translateY(-1px);
}

/* Phone link in sidebar */
.sd-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #13134b;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-top: 12px;
    transition: color .2s;
}

.sd-phone-link:hover {
    color: #4441cc;
}

.sd-phone-icon {
    width: 40px;
    height: 40px;
    background: #4441cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-phone-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Related list inside sidebar */
.sd-related-list {
    margin-top: 8px;
}

.sd-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e1e0ff;
    text-decoration: none;
    color: #4b4e6e;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}

.sd-related-list a:last-child {
    border-bottom: none;
}

.sd-related-list a:hover {
    color: #4441cc;
}

.sd-related-list a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: .45;
    transition: opacity .2s, transform .2s;
}

.sd-related-list a:hover svg {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Related Services Grid (bottom) ────────────────────── */
.sd-related {
    padding: 56px 11%;
    background: #f5f2ff;
}

.sd-related-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
}

.sd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.sd-related-card {
    background: white;
    padding: 28px;
    text-decoration: none;
    display: block;
    transition: transform .2s, box-shadow .2s, border-top-color .2s;
    border-top: 3px solid transparent;
}

.sd-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(68, 65, 204, .1);
    border-top-color: #4441cc;
}

.sd-related-card-icon {
    width: 40px;
    height: 40px;
    background: #e1e0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sd-related-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: #4441cc;
}

.sd-related-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #13134b;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sd-related-card-desc {
    font-size: .8125rem;
    color: #575993;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sd-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .sd-sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sd-hero {
        padding: 56px 5% 48px;
    }

    .sd-body {
        padding: 48px 5%;
    }

    .sd-related {
        padding: 40px 5%;
    }

    .sd-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sd-sidebar {
        grid-template-columns: 1fr;
    }

    .sd-hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .sd-steps {
        padding-left: 32px;
    }

    .sd-step-num {
        left: -32px;
        width: 26px;
        height: 26px;
        font-size: .7rem;
    }

    .sd-steps::before {
        left: 12px;
    }
}
