/* Hizmet detay sayfası — zenginleştirilmiş düzen (single/service, inc/service-detail-*).
   Temanın cam yüzey (seo-rich-content), mor degrade (--grad-accent) ve Manrope dilini kullanır.
   Yalnız "service_facts" alanı dolu hizmetlerde basılan sınıfları hedefler. */

/* Hero eylemleri */
.subpage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.subpage-hero-actions a {
    gap: 0.5rem;
    min-height: 2.75rem;
}

/* Bilgi şeridi hero'nun altına ~2.4rem bindiği için düğmeli hero'da alt pay bırakılır. */
body[data-page="service-category"] .subpage-hero-copy:has(.subpage-hero-actions) {
    padding-bottom: 3.6rem;
}

@media (max-width: 720px) {
    body[data-page="service-category"] .subpage-hero-copy:has(.subpage-hero-actions) {
        padding-bottom: 2.8rem;
    }
}

/* Ortak başlıklar */
.sd-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple-a);
}

.sd-block-title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1021;
}

/* Hızlı bilgi şeridi: hero'nun altına biner */
.sd-facts-wrap {
    position: relative;
    z-index: 3;
    margin-top: -2.4rem;
}

.sd-facts {
    display: grid;
    grid-template-columns: repeat(var(--sd-fact-count, 5), minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg, 0.9rem);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.45);
}

.sd-fact-value {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow-wrap: anywhere;
}

.sd-fact-label {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
}

/* İçerik + yan kart */
.sd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 21.5rem);
    gap: clamp(1rem, 2.4vw, 1.6rem);
    align-items: start;
}

.sd-main {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.4rem);
    min-width: 0;
}

.sd-aside {
    position: sticky;
    top: 6.5rem;
    min-width: 0;
}

.sd-aside-card {
    padding: 1.15rem;
    border-radius: var(--radius-xl, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.66);
    background:
        radial-gradient(320px 180px at 100% 0%, rgba(148, 46, 135, 0.12), transparent 70%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 241, 250, 0.88));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 40px -30px rgba(30, 16, 48, 0.55);
}

.sd-aside-title {
    margin: 0.35rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1021;
}

.sd-aside-text {
    margin: 0.4rem 0 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

.sd-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sd-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(82, 39, 120, 0.18);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.sd-input:focus-visible {
    outline: 2px solid var(--purple-b);
    outline-offset: 1px;
    border-color: transparent;
}

.sd-form .error-text {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    color: #b91c1c;
}

.sd-consent {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--muted);
}

/* Onay satırları varsayılanda koyu hero için beyaz; açık kartta iletişim sayfasındaki tonlar kullanılır. */
.sd-consent .consent-check {
    color: #1e293b;
    font-size: 0.76rem;
}

.sd-consent .consent-link {
    color: #5b2a82;
    font-weight: 700;
}

.sd-consent .consent-link:hover {
    color: #3b1b59;
}

.sd-submit {
    width: 100%;
    min-height: 2.85rem;
}

.sd-success {
    margin: 0;
    font-size: 0.85rem;
    color: #047857;
}

.sd-aside-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    min-height: 2.6rem;
    border-radius: 999px;
    border: 1px solid rgba(82, 39, 120, 0.25);
    color: var(--purple-a);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.sd-aside-whatsapp:hover {
    background: rgba(82, 39, 120, 0.06);
}

.sd-aside-device {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.9rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(82, 39, 120, 0.12);
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
}

.sd-aside-device span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Karar blokları */
.sd-block {
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border-radius: var(--radius-xl, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(145deg, rgba(247, 250, 255, 0.9), rgba(238, 246, 255, 0.82));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 34px -30px rgba(15, 23, 42, 0.28);
}

.sd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.7rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.sd-step {
    position: relative;
    padding: 0.9rem 0.95rem 1rem;
    border-radius: var(--radius-lg, 0.9rem);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(82, 39, 120, 0.1);
}

.sd-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--grad-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.sd-step-title {
    margin: 0.6rem 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0b1021;
}

.sd-step-text {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

.sd-fit,
.sd-prep {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.7rem;
}

.sd-fit-col,
.sd-prep-col {
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg, 0.9rem);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(82, 39, 120, 0.1);
}

.sd-fit-title {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0b1021;
}

.sd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.84rem;
    line-height: 1.3;
}

.sd-fit-col--yes .sd-chips li {
    background: rgba(82, 39, 120, 0.08);
    color: #3b1a59;
}

.sd-fit-col--yes .sd-chips i {
    color: var(--purple-b);
}

.sd-fit-col--wait .sd-chips li {
    background: rgba(148, 163, 184, 0.16);
    color: #334155;
}

.sd-fit-col--wait .sd-chips i {
    color: #64748b;
}

.sd-note {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.sd-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-checklist li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1f2937;
}

.sd-checklist li::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 1.05rem;
    height: 1.05rem;
    background: var(--grad-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sd-faq:empty {
    display: none;
}

/* İlgili içerik */
.sd-related .sd-block-title {
    margin-top: 0.9rem;
}

.sd-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.sd-card {
    min-width: 0;
}

.sd-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 34px -30px rgba(15, 23, 42, 0.45);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sd-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 40px -28px rgba(82, 39, 120, 0.45);
}

.sd-card-link:focus-visible {
    outline: 2px solid var(--purple-b);
    outline-offset: 3px;
}

.sd-card-media {
    display: block;
    aspect-ratio: 3 / 2;
    background:
        radial-gradient(220px 140px at 30% 30%, rgba(148, 46, 135, 0.18), transparent 70%),
        linear-gradient(160deg, #f1edf8, #e4ebf5);
}

.sd-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem 1rem;
}

.sd-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0b1021;
}

.sd-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-a);
}

/* Son çağrı bandı */
.sd-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: 1.5rem;
    background:
        radial-gradient(520px 260px at 90% 10%, rgba(148, 46, 135, 0.55), transparent 70%),
        linear-gradient(135deg, #1e1030, #3b1a59 55%, #522778);
    color: #fff;
    box-shadow: 0 30px 55px -30px rgba(30, 16, 48, 0.75);
}

.sd-cta-title {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sd-cta-text {
    margin: 0.4rem 0 0;
    max-width: 38rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(241, 245, 249, 0.86);
}

.sd-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sd-cta-actions a {
    gap: 0.5rem;
    min-height: 2.75rem;
}

@media (max-width: 1080px) {
    .sd-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-aside {
        position: static;
    }

    .sd-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .sd-facts-wrap {
        margin-top: -1.6rem;
    }

    /* Mobilde bilgi kartları tek sıra, yatay kaydırılır (5 kart 3 satır kaplamasın). */
    .sd-facts {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        margin: 0 -1rem;
        padding: 0 1rem 0.5rem;
        scroll-padding-inline: 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sd-facts::-webkit-scrollbar {
        display: none;
    }

    .sd-fact {
        flex: 0 0 auto;
        min-width: 8.6rem;
        max-width: 11rem;
        padding: 0.7rem 0.8rem;
        scroll-snap-align: start;
    }

    .subpage-hero-actions {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .subpage-hero-actions a {
        flex: 1 1 auto;
        padding-inline: 0.85rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .sd-fit,
    .sd-prep,
    .sd-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-cards {
        display: flex;
        overflow-x: auto;
        gap: 0.7rem;
        padding-bottom: 0.4rem;
        scroll-padding-inline: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .sd-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .sd-cta-actions,
    .sd-cta-actions a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-card-link {
        transition: none;
    }

    .sd-card-link:hover {
        transform: none;
    }
}
