/* ============================================================
   hizmet-detay.css — Hizmet detay sayfası
   Ana style.css değişkenlerini kullanır ve güvenli fallback içerir.
   ============================================================ */

/* Hero */
.det-hero {
    position: relative;
    padding-top: 70px;
    overflow: hidden;
    background: var(--dark, #17110f);
}

.det-hero__media {
    position: relative;
    width: 100%;
    height: clamp(430px, 58vw, 720px);
    overflow: hidden;
}

.det-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(23, 17, 15, .25), transparent 48%);
    pointer-events: none;
}

.det-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s ease;
}

.det-hero:hover .det-hero__media img {
    transform: scale(1.025);
}

/* Görselin altındaki hizmet bilgileri */
.det-intro {
    padding: clamp(52px, 6vw, 82px) 0;
    background: var(--dark, #17110f);
}

.det-intro .wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.det-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .42);
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.det-hero__breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.det-hero__breadcrumb a:hover {
    color: var(--gold, #c7a36b);
}

.det-hero__breadcrumb-sep {
    color: rgba(255, 255, 255, .2);
}

.det-hero__eyebrow {
    margin: 0 0 17px;
}

.det-hero__title {
    max-width: 900px;
    margin: 0 0 22px;
    color: #fff;
    font-family: var(--ff-d, Georgia, serif);
    font-size: clamp(3rem, 5.2vw, 5.5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.det-hero__lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
}

/* Sayfa gövdesi */
.det-body {
    padding: clamp(70px, 8vw, 118px) 0;
    background: var(--bg, #fbf8f5);
}

.det-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(42px, 6vw, 78px);
    align-items: start;
}

.det-main {
    min-width: 0;
}

.det-main__head {
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--brd, #e4dbd5);
}

.det-main__head .eyebrow {
    margin-bottom: 12px;
}

.det-main__title {
    margin: 0;
    color: var(--ink, #241f1d);
    font-family: var(--ff-d, Georgia, serif);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    font-weight: 400;
    line-height: 1.15;
}

/* Editörden gelen hizmet içeriği */
.det-prose {
    max-width: 850px;
    color: var(--ink2, #5e5652);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.det-prose > :first-child {
    margin-top: 0 !important;
}

.det-prose > :last-child {
    margin-bottom: 0 !important;
}

.det-prose p {
    margin: 0 0 20px;
}

.det-prose h2,
.det-prose h3,
.det-prose h4,
.det-prose h5 {
    color: var(--ink, #241f1d);
    font-family: var(--ff-d, Georgia, serif);
    font-weight: 500;
    line-height: 1.25;
}

.det-prose h2 {
    margin: 48px 0 18px;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.det-prose h3 {
    margin: 38px 0 15px;
    font-size: 1.55rem;
}

.det-prose h4,
.det-prose h5 {
    margin: 30px 0 12px;
    font-size: 1.2rem;
}

.det-prose strong,
.det-prose b {
    color: var(--ink, #241f1d);
    font-weight: 600;
}

.det-prose em {
    color: var(--ink, #241f1d);
}

.det-prose a {
    color: var(--rose, #bd7960);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.det-prose ul,
.det-prose ol {
    margin: 0 0 25px;
    padding-left: 24px;
}

.det-prose li {
    margin-bottom: 9px;
    padding-left: 5px;
}

.det-prose li::marker {
    color: var(--rose, #bd7960);
}

.det-prose blockquote {
    margin: 34px 0;
    padding: 23px 27px;
    color: var(--ink, #241f1d);
    background: var(--surf, #f2ebe7);
    border-left: 3px solid var(--rose, #bd7960);
    font-family: var(--ff-d, Georgia, serif);
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.75;
}

.det-prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
}

.det-prose iframe,
.det-prose video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 32px 0;
    border: 0;
}

.det-prose table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: .9rem;
}

.det-prose th,
.det-prose td {
    padding: 13px 15px;
    text-align: left;
    border: 1px solid var(--brd, #e4dbd5);
}

.det-prose th {
    color: var(--ink, #241f1d);
    background: var(--surf, #f2ebe7);
    font-weight: 600;
}

/* Sidebar */
.det-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.det-sidebar__card {
    padding: 30px 27px;
    background: #fff;
    border: 1px solid var(--brd, #e4dbd5);
    box-shadow: 0 16px 46px rgba(32, 23, 20, .055);
}

.det-sidebar__card--appointment {
    color: #fff;
    background: var(--dark, #17110f);
    border-color: var(--dark, #17110f);
}

.det-sidebar__title {
    margin: 0 0 15px;
    padding-bottom: 14px;
    color: var(--ink, #241f1d);
    border-bottom: 1px solid var(--brd, #e4dbd5);
    font-family: var(--ff-d, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
}

.det-sidebar__card--appointment .det-sidebar__title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .13);
}

.det-sidebar__text {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .62);
    font-size: .86rem;
    line-height: 1.75;
}

.det-sidebar__card .btn-p {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.det-related {
    display: flex;
    flex-direction: column;
}

.det-rel-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
    gap: 13px;
    align-items: center;
    padding: 13px 0;
    color: inherit;
    border-bottom: 1px solid var(--brd, #e4dbd5);
    text-decoration: none;
}

.det-rel-item:first-child {
    padding-top: 3px;
}

.det-rel-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.det-rel-item__img {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: cover;
    background: var(--surf, #f2ebe7);
}

.det-rel-item__body {
    min-width: 0;
}

.det-rel-item__name {
    display: block;
    color: var(--ink, #241f1d);
    font-family: var(--ff-d, Georgia, serif);
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.32;
    transition: color .25s ease;
}

.det-rel-item__tag {
    display: block;
    margin-top: 5px;
    color: var(--ink3, #938984);
    font-size: .57rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.det-rel-item__arrow {
    color: var(--rose, #bd7960);
    font-size: 1.1rem;
    transition: transform .25s ease;
}

.det-rel-item:hover .det-rel-item__name {
    color: var(--rose, #bd7960);
}

.det-rel-item:hover .det-rel-item__arrow {
    transform: translateX(4px);
}

.det-empty {
    margin: 0;
    color: var(--ink3, #938984);
    font-size: .84rem;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 1024px) {
    .det-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
    }
}

/* Mobil */
@media (max-width: 820px) {
    .det-hero__media {
        height: clamp(320px, 68vw, 520px);
    }

    .det-layout {
        grid-template-columns: 1fr;
    }

    .det-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .det-hero {
        padding-top: 64px;
    }

    .det-hero__media {
        height: 330px;
    }

    .det-intro {
        padding: 45px 0 52px;
    }

    .det-hero__breadcrumb {
        margin-bottom: 22px;
    }

    .det-hero__title {
        font-size: clamp(2.55rem, 13vw, 3.6rem);
    }

    .det-body {
        padding: 60px 0;
    }

    .det-main__head {
        margin-bottom: 27px;
    }

    .det-prose {
        font-size: .94rem;
        line-height: 1.85;
    }

    .det-prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .det-sidebar__card {
        padding: 25px 22px;
    }
}
