/* =====================================================================
   KLİNİK TEMASI — Dt. Murat Papak Ağız ve Diş Sağlığı Kliniği
   =====================================================================

   Bu dosya varsayılan temanın stil sayfasını DEVRALMAZ; bağımsız ve
   eksiksiz bir tasarım sistemidir. Yalnızca Bootstrap'ın ızgarası ve
   Swiper'ın çekirdek stilleri dışarıdan gelir.

   Tasarım kararları
   -----------------
   Renk    Sıcak fildişi zemin (#FBFAF7) üzerine derin yeşim (#0F6B60).
           Saf beyaz + doygun mavi kombinasyonu klinik ortamı soğuk ve
           steril gösterir; fildişi zemin metni yormadan sıcaklık verir.
           Yeşim, diş hekimliğinde yaygın buz mavisinden ayrışır ve
           "sağlık" okumasını korur.

   Tipografi  Başlıklar Plus Jakarta Sans (700/800), gövde Inter (400/500).
           İkisi de tam Türkçe diakritik desteği taşır ve x-yüksekliği
           birbirine yakın olduğu için birlikte uyumlu görünür.
           Başlıklarda negatif harf aralığı, gövdede 1.7 satır yüksekliği.

   Yerleşim  Bölümler TEK sütundur. Yarım genişlikte metin + yarım
           genişlikte fotoğraf düzeni, fotoğraf oranı kutuya uymadığında
           görseli eziyor ve metni dar bir şeride sıkıştırıyordu.
           Görsel yalnızca bilgi taşıdığı yerde, sabit en-boy oranıyla
           kullanılır.

   Ölçek   Boşluklar 4px'in katları; tipografi `clamp()` ile akışkan.
           Tek kesme noktası mantığı: 1024px (masaüstü), 768px (tablet).
   ===================================================================== */


/* ─── 1. Tasarım belirteçleri ─────────────────────────────────────── */

:root {
    /* Renk */
    --k-ink:        #14202a;
    --k-ink-soft:   #47606f;
    --k-ink-faint:  #7d94a1;

    --k-brand:      #0f6b60;
    --k-brand-700:  #0b544b;
    --k-brand-900:  #06322c;
    --k-brand-300:  #6cc2b6;
    --k-brand-100:  #ddf0ec;
    --k-brand-50:   #f0f8f6;

    --k-bg:         #fbfaf7;
    --k-surface:    #ffffff;
    --k-line:       #e7e3db;
    --k-line-soft:  #f1eee8;

    --k-wa:         #25d366;
    --k-wa-ink:     #06231a;

    /* Tipografi */
    --k-font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --k-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Ölçü */
    --k-container: 1180px;
    --k-gutter:    clamp(16px, 4vw, 32px);
    --k-section:   clamp(56px, 7vw, 112px);

    --k-radius:    18px;
    --k-radius-sm: 12px;
    --k-radius-pill: 999px;

    --k-shadow:    0 1px 2px rgba(20, 32, 42, .04), 0 8px 24px rgba(20, 32, 42, .06);
    --k-shadow-lg: 0 16px 48px rgba(6, 50, 44, .14);

    --k-header-h:  76px;
}


/* ─── 2. Sıfırlama ve temel ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
    /* `overflow-x: hidden` bir kaydırma kabı oluşturur ve içindeki
       `position: sticky` öğeleri çalışmaz hâle getirir — bu yüzden
       başlık kaydırma sırasında yukarıda kalmıyordu. `clip` aynı taşma
       korumasını verir ama kaydırma kabı OLUŞTURMAZ, sticky çalışır. */
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--k-header-h) + 16px);
}

body {
    margin: 0;
    background: var(--k-bg);
    color: var(--k-ink-soft);
    font-family: var(--k-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    font-family: var(--k-font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--k-ink);
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + .9vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--k-brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--k-brand-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }
li { margin-bottom: .4em; }

strong, b { color: var(--k-ink); font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--k-line); margin: 2.5rem 0; }

::selection { background: var(--k-brand-100); color: var(--k-brand-900); }

/* Odak halkası — klavye kullanıcısı konumunu asla kaybetmemeli */
:focus-visible {
    outline: 3px solid var(--k-brand-300);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Şablonun animasyon sınıfları betik olmadan içeriği gizli bırakmasın */
.wow { visibility: visible !important; }

/* İmleç efekti ve önyükleyici bu temada kullanılmaz */
.mouse-cursor, #magic-cursor, #ball, .cb-cursor, .preloader { display: none !important; }


/* ─── 3. Yerleşim yardımcıları ────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--k-container);
    margin-inline: auto;
    padding-inline: var(--k-gutter);
}

.k-section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.k-section-head--center { margin-inline: auto; text-align: center; }

.k-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .7rem;
    color: var(--k-brand);
    font-family: var(--k-font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.k-eyebrow::before {
    content: "";
    width: 24px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.k-section-head--center .k-eyebrow::after {
    content: "";
    width: 24px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.k-section-title { margin-bottom: .5rem; }

.k-section-lead {
    font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem);
    color: var(--k-ink-soft);
    max-width: 62ch;
}
.k-section-head--center .k-section-lead { margin-inline: auto; }

.k-section-foot { margin-top: clamp(28px, 4vw, 44px); text-align: center; }

.k-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.k-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023.98px) {
    .k-grid--3, .k-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
    .k-grid--2, .k-grid--3, .k-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Bölüm zemin ritmi: fildişi → beyaz → fildişi */
section { padding-block: var(--k-section); }
.k-services, .k-posts { background: var(--k-surface); }
.k-intro, .k-process { background: var(--k-bg); }


/* ─── 4. Butonlar ─────────────────────────────────────────────────── */

.k-btn, .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: var(--k-radius-pill);
    background: var(--k-brand);
    color: #fff;
    font-family: var(--k-font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.k-btn:hover, .btn-default:hover,
.k-btn:focus, .btn-default:focus {
    background: var(--k-brand-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--k-shadow);
}
.k-btn:active, .btn-default:active { transform: translateY(0); }

.k-btn--ghost {
    background: transparent;
    color: var(--k-brand);
    border-color: var(--k-line);
}
.k-btn--ghost:hover, .k-btn--ghost:focus {
    background: var(--k-brand-50);
    color: var(--k-brand-700);
    border-color: var(--k-brand-300);
}

.k-btn--light { background: #fff; color: var(--k-brand-900); }
.k-btn--light:hover, .k-btn--light:focus { background: var(--k-brand-100); color: var(--k-brand-900); }

.k-btn--wa { background: var(--k-wa); color: var(--k-wa-ink); }
.k-btn--wa:hover, .k-btn--wa:focus { background: #1cb457; color: var(--k-wa-ink); }
.k-btn--wa i { font-size: 1.3em; }

.k-btn--block { width: 100%; }


/* ─── 5. Erişilebilirlik bağlantısı ───────────────────────────────── */

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 14px 22px;
    background: var(--k-brand-900);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 var(--k-radius-sm) 0;
}
.skip-to-content:focus { left: 0; color: #fff; }


/* ─── 6. Başlık / gezinme ─────────────────────────────────────────── */

.k-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 250, 247, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--k-line-soft);
}

.k-header-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    min-height: var(--k-header-h);
}

.k-logo { flex: 0 0 auto; display: inline-flex; }
.k-logo img { height: 42px; width: auto; }

.k-nav { margin-left: auto; }
.k-nav-list {
    display: flex;
    align-items: center;
    /* Altı menü öğesi iki satıra taşıyor ve başlığı büyütüyordu. */
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: clamp(4px, 1.4vw, 20px);
    margin: 0; padding: 0;
    list-style: none;
}
.k-nav-list li { margin: 0; }
.k-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    color: var(--k-ink);
    font-family: var(--k-font-head);
    font-size: .98rem;
    font-weight: 600;
}
.k-nav-link::after {
    content: "";
    position: absolute;
    left: 6px; right: 6px; bottom: 14px;
    height: 2px;
    background: var(--k-brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.k-nav-link:hover::after,
.k-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.k-nav-link[aria-current="page"] { color: var(--k-brand); }

/* ── Açılır alt menü ────────────────────────────────────────────────
   Yalnızca CSS: `:hover` fare için, `:focus-within` klavye için.
   Menü `visibility` ile gizlenir; `display:none` olsaydı geçiş
   animasyonu çalışmaz ve ekran okuyucu odak sırası bozulurdu. */
.k-nav-caret {
    margin-left: 6px;
    font-size: .62em;
    opacity: .55;
    transition: transform .2s ease;
}
.k-has-sub:hover > .k-nav-link .k-nav-caret,
.k-has-sub:focus-within > .k-nav-link .k-nav-caret { transform: rotate(180deg); }

.k-subnav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    min-width: 268px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--k-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(20, 32, 42, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.k-has-sub { position: relative; }

.k-has-sub:hover > .k-subnav,
.k-has-sub:focus-within > .k-subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.k-subnav-link {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--k-ink);
    font-size: .93rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    transition: background .16s ease, color .16s ease;
}
.k-subnav-link:hover,
.k-subnav-link:focus-visible { background: var(--k-brand-50); color: var(--k-brand); }
.k-subnav-link[aria-current="page"] { background: var(--k-brand-50); color: var(--k-brand); }

.k-header-actions { display: flex; align-items: center; gap: 10px; }

.k-lang {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: var(--k-line-soft);
    border-radius: var(--k-radius-pill);
}
.k-lang a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--k-radius-pill);
    color: var(--k-ink-soft);
    font-size: .86rem;
    font-weight: 650;
    text-transform: uppercase;
}
.k-lang a[aria-current="true"] { background: var(--k-surface); color: var(--k-brand); box-shadow: var(--k-shadow); }

.k-header-cta { display: inline-flex; }

/* Çekmece içindeki tam genişlik CTA yalnızca mobilde vardır; masaüstünde
   başlıktaki buton zaten görünür durumda. */
.k-nav-cta { display: none; }

.k-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    padding: 0;
    border: 1px solid var(--k-line);
    border-radius: 14px;
    background: var(--k-surface);
    color: var(--k-ink);
    font-size: 1.15rem;
    cursor: pointer;
}

/* Başlık kesme noktası, ızgara kesme noktasından AYRIDIR: altı menü
   öğesi 1200px altında tek satıra sığmadığı için çekmece daha erken
   devreye girer. */
@media (max-width: 1199.98px) {
    .k-burger { display: inline-flex; }
    .k-header-cta { display: none; }

    /* Mobil çekmece.

       Kapalıyken `transform: translateX(100%)` ile ekran dışına
       taşınıyordu; sabit konumlu öğe görünür alanın sağına taştığı için
       doküman genişliyor ve sayfada yatay kaydırma çubuğu oluşuyordu
       (390px ekranda scrollWidth 725px). Kapalı durumda öğe tamamen
       düzenden çıkarılır; açılış hareketi görünür alan içinde yapılır. */
    .k-nav {
        display: none;
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 340px);
        /* `top: 0; bottom: 0` ikilisine güvenmek yerine yükseklik açıkça
           verilir: çekmece 128px'e büzülüyordu. `dvh`, mobil tarayıcıların
           adres çubuğu açılıp kapandığında yüksekliği de düzeltir. */
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: calc(var(--k-header-h) + 20px) 24px 32px;
        background: var(--k-surface);
        border-left: 1px solid var(--k-line);
        box-shadow: var(--k-shadow-lg);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1100;
    }
    .k-nav[data-open="true"] {
        display: block;
        animation: k-drawer-in .24s ease both;
    }

    @keyframes k-drawer-in {
        from { opacity: 0; transform: translateX(14px); }
        to   { opacity: 1; transform: none; }
    }

    .k-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .k-nav-link {
        min-height: 52px;
        padding: 0 12px;
        border-radius: var(--k-radius-sm);
        font-size: 1.05rem;
    }
    .k-nav-link::after { display: none; }
    .k-nav-link:hover, .k-nav-link[aria-current="page"] { background: var(--k-brand-50); }

    /* Çekmecede açılır menü yoktur: alt bağlantılar girintili ve sürekli
       açık bir liste olarak durur. Dokunmatikte `:hover` güvenilir
       olmadığı için açılıp kapanan bir katman burada tuzak olurdu. */
    .k-subnav {
        position: static;
        min-width: 0;
        margin: 2px 0 6px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 2px solid var(--k-line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .k-subnav-link { min-height: 44px; display: flex; align-items: center; font-size: .98rem; }
    .k-nav-caret { display: none; }

    .k-nav-cta { display: block; margin-top: 20px; }

    /* Karartma katmanı, başlığın ALTINDA kalmalıdır.

       Çekmece `.k-header` içinde yer alır ve başlık kendi yığın bağlamını
       (z-index: 1000) oluşturur; karartma 1050 olduğunda çekmecenin de
       üstüne biniyor, menü şeffaf görünüyordu. 999 ile hem sayfa kararır
       hem çekmece opak kalır. */
    .k-scrim {
        position: fixed; inset: 0;
        background: rgba(20, 32, 42, .45);
        opacity: 0;
        transition: opacity .24s ease;
        z-index: 999;
    }
    .k-scrim[data-open="true"] { opacity: 1; }
}


/* ─── 7. Hero / slider ────────────────────────────────────────────── */

.k-hero { padding: 0; position: relative; }
.k-hero .swiper { width: 100%; }

.k-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(78vh, 700px);
    padding-block: clamp(64px, 10vw, 120px);
    background-size: cover;
    background-position: center;
}
.k-hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(6, 50, 44, .92) 0%,
        rgba(6, 50, 44, .78) 40%,
        rgba(6, 50, 44, .34) 74%,
        rgba(6, 50, 44, .12) 100%);
}
.k-hero-slide > .container { position: relative; z-index: 2; }

.k-hero-content { max-width: 40rem; }
/* Yalnızca ilk slayt H1'dir; sonrakiler H2 olduğu hâlde aynı görünür. */
.k-hero-content h1,
.k-hero-content h2 {
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);   /* global h1 ile birebir */
    color: #fff;
    margin-bottom: .55em;
}

.k-hero-content h1 span,
.k-hero-content h2 span { color: var(--k-brand-300); }
.k-hero-content p {
    color: rgba(255, 255, 255, .90);
    font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem);
    margin-bottom: 1.9rem;
}
.k-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Yalnızca aktif slaydın metni görünür; çapraz geçişte iki başlık
   üst üste binmemeli. */
.k-hero .swiper-slide .k-hero-content {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
}
.k-hero .swiper-slide-active .k-hero-content {
    opacity: 1;
    transform: none;
    transition-delay: .3s;
}

.k-hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 26px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.k-hero-dots .swiper-pagination-bullet {
    width: 9px; height: 9px;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    border-radius: 999px;
    transition: width .25s ease, background .25s ease;
}
.k-hero-dots .swiper-pagination-bullet-active { width: 28px; background: #fff; }


/* ─── 8. Kart ─────────────────────────────────────────────────────── */

.k-card {
    display: flex;
    flex-direction: column;
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.k-card:hover {
    transform: translateY(-4px);
    border-color: var(--k-brand-100);
    box-shadow: var(--k-shadow);
}

/* Sabit oran: hangi görsel gelirse gelsin ezilmez, kırpılır */
.k-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--k-brand-50);
    overflow: hidden;
}
.k-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.k-card:hover .k-card-media img { transform: scale(1.04); }

.k-card-body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: clamp(18px, 2.2vw, 26px);
    flex: 1;
}
.k-card-meta {
    color: var(--k-ink-faint);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.k-card-title { margin: 0; font-size: 1.15rem; }
.k-card-title a { color: var(--k-ink); }
.k-card-title a:hover { color: var(--k-brand); }
.k-card-text { margin: 0; font-size: .96rem; color: var(--k-ink-soft); }
.k-card-link {
    margin-top: auto;
    padding-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--k-brand);
    font-family: var(--k-font-head);
    font-weight: 700;
    font-size: .94rem;
}
.k-card-link::after { content: "→"; transition: transform .2s ease; }
.k-card:hover .k-card-link::after { transform: translateX(4px); }

/* Kartın tamamı tıklanabilir olsun; başlık bağlantısı yayılır */
.k-card-title a::after { content: ""; position: absolute; inset: 0; }
.k-card { position: relative; }
.k-card-media { position: static; }


/* ─── 9. Klinik tanıtımı ──────────────────────────────────────────── */

.k-intro-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
@media (max-width: 1023.98px) {
    .k-intro-grid { grid-template-columns: minmax(0, 1fr); }
    /* Mobilde önce metin, sonra görsel */
    .k-intro-media { order: 2; }
}

.k-intro-body { color: var(--k-ink-soft); }

.k-intro-media {
    margin: 0;
    border-radius: var(--k-radius);
    overflow: hidden;
    box-shadow: var(--k-shadow);
}
.k-intro-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.k-facts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 40px);
    margin: 1.6rem 0 1.9rem;
    padding: 1.4rem 0 0;
    border-top: 1px solid var(--k-line);
    list-style: none;
}
.k-facts li { display: flex; flex-direction: column; margin: 0; }
.k-facts strong {
    font-family: var(--k-font-head);
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
    font-weight: 800;
    color: var(--k-brand);
    line-height: 1.1;
}
.k-facts span { font-size: .88rem; color: var(--k-ink-faint); }


/* ─── 10. Tedavi süreci ───────────────────────────────────────────── */

.k-steps {
    display: grid;
    gap: clamp(16px, 2.4vw, 26px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0; padding: 0;
    list-style: none;
    counter-reset: none;
}
@media (max-width: 1023.98px) { .k-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px)  { .k-steps { grid-template-columns: minmax(0, 1fr); } }

.k-step {
    position: relative;
    margin: 0;
    padding: clamp(22px, 2.6vw, 30px);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
}
.k-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--k-brand-100);
    color: var(--k-brand-700);
    font-family: var(--k-font-head);
    font-weight: 800;
}
.k-step-title { font-size: 1.08rem; margin-bottom: .4rem; }
.k-step-text { font-size: .95rem; margin: 0; }


/* ─── 11. Sıkça sorulan sorular ───────────────────────────────────── */

.k-faq { background: var(--k-surface); }

/* Tek sütun, okunabilir ölçü. Yanına fotoğraf konmaz. */
.k-faq-list { max-width: 860px; margin-inline: auto; }

.k-faq-item {
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-sm);
    background: var(--k-bg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.k-faq-item:has(.k-faq-trigger:not(.collapsed)) {
    border-color: var(--k-brand-300);
    background: var(--k-brand-50);
}

.k-faq-question { margin: 0; font-size: inherit; }

.k-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: var(--k-ink);
    font-family: var(--k-font-head);
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}
.k-faq-trigger i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    color: var(--k-brand);
    font-size: .8rem;
    transition: transform .25s ease, background .2s ease, color .2s ease;
}
.k-faq-trigger:not(.collapsed) { color: var(--k-brand-700); }
.k-faq-trigger:not(.collapsed) i {
    transform: rotate(45deg);
    background: var(--k-brand);
    border-color: var(--k-brand);
    color: #fff;
}

.k-faq-answer {
    padding: 0 20px 20px;
    color: var(--k-ink-soft);
    font-size: .99rem;
}
.k-faq-answer p:last-child { margin-bottom: 0; }


/* ─── 12. WhatsApp çağrı bloğu ────────────────────────────────────── */

.k-cta { background: var(--k-bg); }

.k-cta-card {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    padding: clamp(28px, 4.5vw, 60px);
    border-radius: clamp(20px, 2.6vw, 28px);
    background: linear-gradient(135deg, var(--k-brand-900) 0%, var(--k-brand) 100%);
    box-shadow: var(--k-shadow-lg);
    color: rgba(255, 255, 255, .92);
}
@media (max-width: 1023.98px) { .k-cta-card { grid-template-columns: minmax(0, 1fr); } }

.k-cta-card .k-eyebrow { color: var(--k-brand-300); }
.k-cta-card .k-section-title { color: #fff; }
.k-cta-card .k-section-lead { color: rgba(255, 255, 255, .88); }
.k-cta-card .k-section-head { margin-bottom: 0; }

.k-cta-actions { display: flex; flex-direction: column; gap: 12px; }

.k-cta-call {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: var(--k-radius-pill);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    transition: background .2s ease;
}
.k-cta-call:hover, .k-cta-call:focus { background: rgba(255, 255, 255, .18); color: #fff; }
.k-cta-call i { font-size: 1.1rem; }
.k-cta-call span { display: flex; flex-direction: column; line-height: 1.25; }
.k-cta-call small { font-size: .78rem; opacity: .82; }
.k-cta-call strong { font-family: var(--k-font-head); font-size: 1.05rem; color: #fff; }

.k-cta-hours {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .2rem 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .78);
}


/* ─── 13. Sayfa başlığı / kırıntı yolu ────────────────────────────── */

/* Sayfa başlığı düz zemindir.

   Arka plan fotoğrafı kullanılmaz: mevcut sayfa görselleri 1920x450'lik
   bantlar olduğu için tam genişlikte gerilip bozuluyordu. Düz marka
   rengi hem daha temiz durur hem de başlığın kontrastını garantiler. */
.k-pagehead {
    position: relative;
    padding-block: clamp(48px, 7vw, 92px);
    background: var(--k-brand-900);
    color: #fff;
}
/* İnce bir doku: markanın açık tonundan sağ üste yumuşak bir ışık */
.k-pagehead::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(90% 140% at 88% -10%, rgba(108, 194, 182, .22), transparent 60%);
    pointer-events: none;
}
.k-pagehead > .container { position: relative; z-index: 2; }
.k-pagehead h1 { color: #fff; margin-bottom: .4em; }

.k-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0; padding: 0;
    list-style: none;
    font-size: .92rem;
}
.k-crumbs li { margin: 0; color: rgba(255, 255, 255, .70); }
.k-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.k-crumbs a { color: rgba(255, 255, 255, .88); }
.k-crumbs a:hover { color: #fff; text-decoration: underline; }
.k-crumbs [aria-current="page"] { color: #fff; font-weight: 600; }


/* ─── 14. Zengin metin (yasal sayfalar, blog, tedavi detayı) ──────── */

/* Ana sayfada blok bölümlerin arasına girer; kendi üst/alt boşluğunu
   taşır ki bitişik bölümlere yapışmasın. */
.k-answer-wrap { padding-block: clamp(28px, 4vw, 48px) 0; }

/* ── Cevap özeti (AEO) ──────────────────────────────────────────────
   Sayfanın en üstünde, asıl metinden önce duran kısa cevap. Arama
   motorunun öne çıkan cevabı ve üretken motorların alıntısı buradan
   seçilir, bu yüzden görsel olarak da ilk okunan blok olmalıdır. */
.k-answer {
    margin: 0 0 2.2rem;
    padding: clamp(1.1rem, .8rem + 1.2vw, 1.7rem) clamp(1.2rem, .9rem + 1.4vw, 1.9rem);
    background: var(--k-brand-50);
    border-left: 4px solid var(--k-brand);
    border-radius: var(--k-radius-sm);
}

.k-answer .seo-answer-summary {
    margin: 0;
    color: var(--k-ink);
    font-family: var(--k-font-head);
    font-size: clamp(1.02rem, .97rem + .35vw, 1.16rem);
    font-weight: 600;
    line-height: 1.6;
}

.k-answer .seo-key-takeaways {
    margin: 1.05rem 0 0;
    padding: 0;
    list-style: none;
}

.k-answer .seo-key-takeaways li {
    position: relative;
    margin: 0 0 .5em;
    padding-left: 1.65rem;
    font-size: .97rem;
    line-height: 1.62;
}
.k-answer .seo-key-takeaways li:last-child { margin-bottom: 0; }

/* İşaret `::before` ile çizilir: madde imi metne dahil olmadığı için
   kopyalanan ya da sesli okunan metni kirletmez. */
.k-answer .seo-key-takeaways li::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--k-brand);
    border-radius: 50%;
}

/* ── Bilimsel arka plan ve tarihçe bloğu ────────────────────────────
   Sayfanın altında, asıl içerikten sonra gelen referans niteliğinde
   bir bölüm. Tanıtım metniyle karışmaması için ayrı bir zemine ve bir
   tık küçük yazı ölçüsüne oturur; sayfanın ana mesajını bastırmaz. */
.k-research {
    margin-top: 3.4rem;
    padding: clamp(1.4rem, .8rem + 2vw, 2.4rem);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    font-size: .955rem;
}
.k-research > :first-child { margin-top: 0; }
.k-research > :last-child { margin-bottom: 0; }

.k-research h2 {
    margin-top: 0;
    margin-bottom: .9em;
    padding-bottom: .55em;
    border-bottom: 2px solid var(--k-brand-300);
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
}
.k-research h3 {
    margin-top: 1.9em;
    font-size: 1.04rem;
    color: var(--k-brand-900);
}
.k-research p { margin-bottom: .95em; line-height: 1.72; }

/* Tarih ve araştırmacı adları taranabilir kalsın. */
.k-research strong { color: var(--k-ink); font-weight: 700; }
.k-research em { color: var(--k-ink-soft); }

.k-prose { max-width: 74ch; }
.k-prose h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.k-prose h3 { margin-top: 1.8em; }
.k-prose h4 { margin-top: 1.5em; color: var(--k-ink); }
.k-prose > :first-child { margin-top: 0; }
.k-prose ul, .k-prose ol { padding-left: 1.35rem; }
.k-prose li { margin-bottom: .5em; }
.k-prose img { border-radius: var(--k-radius); margin-block: 1.6em; }
.k-prose a { text-decoration: underline; text-underline-offset: 3px; }
.k-prose blockquote {
    margin: 1.8em 0;
    padding: 1.1em 1.4em;
    border-left: 3px solid var(--k-brand-300);
    background: var(--k-brand-50);
    border-radius: 0 var(--k-radius-sm) var(--k-radius-sm) 0;
    color: var(--k-ink);
}
.k-prose table { width: 100%; border-collapse: collapse; }
.k-prose .k-table-wrap { overflow-x: auto; }
.k-prose th, .k-prose td { padding: .7em .9em; border: 1px solid var(--k-line); text-align: left; }
.k-prose th { background: var(--k-brand-50); color: var(--k-ink); }


/* ─── 15. İletişim ────────────────────────────────────────────────── */

.k-contact-grid {
    display: grid;
    gap: clamp(20px, 3vw, 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 839.98px) { .k-contact-grid { grid-template-columns: minmax(0, 1fr); } }

.k-contact-item {
    padding: clamp(20px, 2.6vw, 28px);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
}
.k-contact-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin-bottom: .9rem;
    border-radius: 14px;
    background: var(--k-brand-100);
    color: var(--k-brand-700);
}
.k-contact-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.k-contact-item a { color: var(--k-ink-soft); }
.k-contact-item a:hover { color: var(--k-brand); }

.k-map {
    margin-top: clamp(24px, 3vw, 40px);
    border-radius: var(--k-radius);
    overflow: hidden;
    border: 1px solid var(--k-line);
    line-height: 0;
}
.k-map iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; }


/* ─── 16. Alt bilgi ───────────────────────────────────────────────── */

.k-footer {
    padding-block: clamp(48px, 6vw, 76px) 0;
    background: var(--k-brand-900);
    color: rgba(255, 255, 255, .74);
}
.k-footer-grid {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 1023.98px) { .k-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px)  { .k-footer-grid { grid-template-columns: minmax(0, 1fr); } }

.k-footer h3 {
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
/* Logo 250x100 oranındadır. Yalnızca yükseklik sabitlenip genişlik
   serbest bırakılmazsa (ya da HTML'deki width/height nitelikleri gerçek
   orandan farklıysa) görsel dikeyde eziliyordu. */
.k-footer-logo img { height: 46px; width: auto; margin-bottom: 1.1rem; }
.k-footer p { color: rgba(255, 255, 255, .72); font-size: .96rem; }

.k-footer-links { list-style: none; margin: 0; padding: 0; }
.k-footer-links li { margin-bottom: .2rem; }
.k-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: rgba(255, 255, 255, .74);
    font-size: .96rem;
}
.k-footer-links a:hover { color: var(--k-brand-300); }

.k-footer-contact { list-style: none; margin: 0; padding: 0; font-size: .96rem; }
.k-footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.k-footer-contact i { color: var(--k-brand-300); margin-top: .35rem; }
.k-footer-contact a { color: rgba(255, 255, 255, .78); }
.k-footer-contact a:hover { color: #fff; }

.k-social { display: flex; gap: 10px; margin-top: 1.1rem; }
.k-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    color: #fff;
}
.k-social a:hover { background: var(--k-brand-300); color: var(--k-brand-900); }

.k-footer-bottom {
    margin-top: clamp(32px, 4vw, 52px);
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    font-size: .88rem;
    color: rgba(255, 255, 255, .60);
}
.k-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.k-footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: rgba(255, 255, 255, .68);
}
.k-footer-legal a:hover { color: #fff; }


/* ─── 17. Mobil iletişim çubuğu ───────────────────────────────────── */

.klinik-mobile-bar { display: none; }

@media (max-width: 1023.98px) {
    .klinik-mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1200;
        background: var(--k-surface);
        border-top: 1px solid var(--k-line);
        box-shadow: 0 -6px 24px rgba(20, 32, 42, .12);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .klinik-mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        min-height: 56px;
        color: var(--k-brand-900);
        font-family: var(--k-font-head);
        font-weight: 700;
        font-size: .98rem;
    }
    .klinik-mobile-bar a + a { background: var(--k-wa); color: var(--k-wa-ink); }
    .klinik-mobile-bar i { font-size: 1.2rem; }

    body { padding-bottom: 56px; }
}


/* ─── 18. Formlar (yorum, abonelik) ───────────────────────────────── */

.form-label, .k-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--k-ink);
    font-family: var(--k-font-head);
    font-size: .92rem;
    font-weight: 650;
}
.form-control, .form-select, .k-input {
    width: 100%;
    min-height: 52px;
    padding: .8rem 1rem;
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-sm);
    background: var(--k-surface);
    color: var(--k-ink);
    font-family: var(--k-font-body);
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
textarea.form-control { min-height: 130px; }
.form-control::placeholder { color: var(--k-ink-faint); }
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--k-brand-300);
    box-shadow: 0 0 0 4px var(--k-brand-100);
}
.form-control.is-invalid { border-color: #c0392b; }
.invalid-feedback, .text-danger { color: #a5281b; font-size: .88rem; }


/* ─── 19. Sayfalama ───────────────────────────────────────────────── */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--k-line);
    border-radius: 12px;
    background: var(--k-surface);
    color: var(--k-ink-soft);
    font-weight: 600;
}
.page-item.active .page-link { background: var(--k-brand); border-color: var(--k-brand); color: #fff; }
.page-item .page-link:hover { border-color: var(--k-brand-300); color: var(--k-brand); }


/* ─── 20. Yardımcılar ─────────────────────────────────────────────── */

.k-stack > * + * { margin-top: 1.2rem; }
.k-center { text-align: center; }
.k-muted { color: var(--k-ink-faint); }
.sr-only, .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ─── 21. Detay sayfaları (tedavi / blog) ─────────────────────────── */

.k-detail { background: var(--k-surface); }

.k-detail-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}
@media (max-width: 1023.98px) {
    .k-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.k-detail-hero {
    margin: 0 0 clamp(20px, 3vw, 32px);
    border-radius: var(--k-radius);
    overflow: hidden;
}
.k-detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.k-detail-subtitle { margin: 2.4rem 0 1.2rem; }

.k-gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 639.98px) { .k-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.k-gallery figure { margin: 0; border-radius: var(--k-radius-sm); overflow: hidden; }
.k-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Kenar çubuğu — masaüstünde kaydırmayla birlikte takip eder */
.k-detail-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
    .k-detail-side { position: sticky; top: calc(var(--k-header-h) + 24px); }
}

.k-side-card, .k-side-cta {
    padding: clamp(20px, 2.4vw, 26px);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    background: var(--k-bg);
}
.k-side-title {
    margin-bottom: 1rem;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--k-brand);
}
.k-side-list { list-style: none; margin: 0; padding: 0; }
.k-side-list li { margin: 0; border-top: 1px solid var(--k-line-soft); }
.k-side-list li:first-child { border-top: 0; }
.k-side-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 0;
    color: var(--k-ink);
    font-size: .97rem;
    font-weight: 550;
}
.k-side-list a:hover { color: var(--k-brand); }
.k-side-list a[aria-current="page"] { color: var(--k-brand); font-weight: 700; }

.k-side-cta {
    background: linear-gradient(150deg, var(--k-brand-900), var(--k-brand));
    border-color: transparent;
    color: rgba(255, 255, 255, .88);
}
.k-side-cta h2 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.k-side-cta p { font-size: .94rem; color: rgba(255, 255, 255, .86); margin-bottom: 1.1rem; }
.k-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    margin-top: 10px;
    color: #fff;
    font-weight: 650;
    /* Uzun numara satır içinde kırılmasın */
    white-space: nowrap;
}
.k-side-phone:hover { color: var(--k-brand-300); }

.k-article { background: var(--k-surface); }
.k-article .k-prose { margin-inline: auto; }


/* ─── 22. Yükleniyor göstergesi ───────────────────────────────────────
   `#waitModel` işaretlemesi `class="show"` ile geliyor ve Bootstrap'ın
   `.modal-content` kuralı ona zemin verdiği için sayfanın altında siyah
   bir blok olarak duruyordu. Varsayılan olarak gizlenir; form gönderimi
   sırasında betik `d-block` ekleyerek gösterir. */

#waitModel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    align-items: center;
    justify-content: center;
    background: rgba(20, 32, 42, .55);
    backdrop-filter: blur(2px);
}
#waitModel.d-block,
#waitModel[style*="display: block"] { display: flex !important; }
#waitModel .modal-content {
    max-width: 320px;
    border: 0;
    border-radius: var(--k-radius);
    background: var(--k-surface);
    box-shadow: var(--k-shadow-lg);
}
#waitModel .spinner-grow { color: var(--k-brand) !important; }


/* ─── 23. Sayfa başlığında uzun başlıklar ─────────────────────────── */

.k-pagehead h1 { max-width: 22ch; }
@media (max-width: 767.98px) { .k-pagehead h1 { max-width: none; } }
