/* =============================================================================
   Pasta — Premium Header (clnh-*)
   Mobile-first. Tek bir ad alanı; eski .mech-header / .mech-nav katmanlarıyla
   hiç çakışmaz. Masaüstü düzeni 1100px'ten itibaren devreye girer.
   ========================================================================== */

/* Sticky header yüksekliği kadar çapa (anchor) boşluğu. */
html {
    scroll-padding-top: 76px;
}

.clnh,
.clnh-drawer,
.clnh-promo {
    --clnh-ink: #0B1B24;
    --clnh-ink-soft: #2E4350;
    --clnh-muted: #5F7380;
    --clnh-line: rgba(11, 27, 36, .10);
    --clnh-line-soft: rgba(11, 27, 36, .06);
    --clnh-teal: #0E8E83;
    --clnh-teal-2: #14B8A6;
    --clnh-teal-ink: #06564F;
    --clnh-teal-wash: rgba(20, 184, 166, .10);
    --clnh-coral: #FF7043;
    --clnh-coral-2: #F0480F;
    --clnh-coral-wash: rgba(255, 112, 67, .10);
    --clnh-surface: rgba(255, 255, 255, .88);
    --clnh-bar-h: 60px;
    --clnh-ctl-h: 34px;
    --clnh-radius: 12px;
    --clnh-font: 'Plus Jakarta Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Üst duyuru şeridi ---------- */
.clnh-promo {
    position: relative;
    background: linear-gradient(95deg, #06564F 0%, #0E8E83 46%, #14B8A6 100%);
    color: #EAFFFB;
    font-family: var(--clnh-font);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.45;
    padding: .46rem 0;
}

.clnh-promo__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem .55rem;
    text-align: center;
}

.clnh-promo strong {
    font-weight: 700;
    color: #fff;
}

.clnh-promo__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD9CA;
    box-shadow: 0 0 0 3px rgba(255, 217, 202, .22);
    flex: 0 0 auto;
}

.clnh-promo__sep {
    display: none;
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .34);
}

.clnh-promo__muted {
    color: rgba(234, 255, 251, .82);
}

/* ---------- Header kabuğu ---------- */
.clnh {
    position: sticky;
    top: 0;
    z-index: 120;
    font-family: var(--clnh-font);
    background: var(--clnh-surface);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid var(--clnh-line);
    box-shadow: 0 1px 0 rgba(11, 27, 36, .02);
    transition: box-shadow .28s ease, background-color .28s ease;
}

.clnh::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(14, 142, 131, 0) 0%, var(--clnh-teal-2) 22%, var(--clnh-teal) 50%, var(--clnh-coral) 86%, rgba(255, 112, 67, 0) 100%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.clnh.is-stuck {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px -14px rgba(11, 27, 36, .22);
}

.clnh.is-stuck::after {
    opacity: .85;
}

/* ---------- Üst servis şeridi (yalnızca masaüstü) ---------- */
.clnh__utility {
    display: none;
    border-bottom: 1px solid var(--clnh-line-soft);
}

.clnh__utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 38px;
}

.clnh__trust {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.clnh__trust li {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .005em;
    color: var(--clnh-muted);
    white-space: nowrap;
}

.clnh__trust svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    color: var(--clnh-teal);
}

.clnh__utility-right {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

/* Panel kısayolları */
.clnh__panel {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    height: var(--clnh-ctl-h);
    padding: 0 .68rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .005em;
    line-height: 1;
    color: var(--clnh-teal-ink);
    background: var(--clnh-teal-wash);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.clnh__panel svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    opacity: .85;
}

.clnh__panel:hover {
    background: rgba(20, 184, 166, .18);
    border-color: rgba(14, 142, 131, .24);
}

.clnh__panel--pro {
    color: #AF3410;
    background: var(--clnh-coral-wash);
}

.clnh__panel--pro:hover {
    background: rgba(255, 112, 67, .18);
    border-color: rgba(240, 72, 15, .24);
}

/* Dil seçici — segment kontrol */
.clnh-locale {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: var(--clnh-ctl-h);
    padding: 3px;
    margin: 0;
    border: 1px solid var(--clnh-line);
    border-radius: 999px;
    background: rgba(11, 27, 36, .035);
}

.clnh-locale__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    height: 100%;
    min-width: 32px;
    padding: 0 .5rem;
    border-radius: 999px;
    background: transparent;
    color: var(--clnh-muted);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.clnh-locale__btn:hover {
    color: var(--clnh-teal-ink);
}

.clnh-locale__btn.is-active {
    background: #fff;
    color: var(--clnh-teal-ink);
    box-shadow: 0 1px 3px rgba(11, 27, 36, .12);
}

/* Telefon */
.clnh__phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: var(--clnh-ctl-h);
    padding-left: .7rem;
    margin-left: .2rem;
    border-left: 1px solid var(--clnh-line);
    text-decoration: none;
    white-space: nowrap;
}

.clnh__phone-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--clnh-teal) 0%, var(--clnh-teal-2) 100%);
    color: #fff;
    box-shadow: 0 4px 10px -3px rgba(14, 142, 131, .5);
}

.clnh__phone-ico svg {
    width: 13px;
    height: 13px;
}

.clnh__phone-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.clnh__phone-txt small {
    font-size: .6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--clnh-muted);
}

.clnh__phone-txt strong {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: -.005em;
    color: var(--clnh-teal-ink);
}

.clnh__phone:hover .clnh__phone-txt strong {
    color: var(--clnh-teal);
}

/* ---------- Ana çubuk ---------- */
.clnh__bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: var(--clnh-bar-h);
}

.clnh__brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 62%;
    text-decoration: none;
    line-height: 1;
}

.clnh__brand-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

.clnh__brand-text {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--clnh-teal-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.clnh__brand-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--clnh-teal-2), var(--clnh-coral));
}

/* Masaüstü menü — mobilde gizli */
.clnh__nav,
.clnh__actions {
    display: none;
}

/* Mobil aksiyonlar */
.clnh__mobile {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.clnh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--clnh-line);
    border-radius: var(--clnh-radius);
    background: #fff;
    color: var(--clnh-ink);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.clnh-icon-btn svg {
    width: 19px;
    height: 19px;
}

.clnh-icon-btn:hover,
.clnh-icon-btn:focus-visible {
    background: var(--clnh-teal-wash);
    border-color: rgba(14, 142, 131, .28);
    color: var(--clnh-teal-ink);
}

.clnh-icon-btn--call {
    background: linear-gradient(140deg, var(--clnh-teal) 0%, var(--clnh-teal-2) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(14, 142, 131, .7);
}

.clnh-icon-btn--call:hover,
.clnh-icon-btn--call:focus-visible {
    background: linear-gradient(140deg, var(--clnh-teal-ink) 0%, var(--clnh-teal) 100%);
    border-color: transparent;
    color: #fff;
}

/* Hamburger */
.clnh-burger {
    position: relative;
    flex-direction: column;
    gap: 4px;
}

.clnh-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s ease, opacity .2s ease;
}

/* ---------- Buton sistemi ---------- */
.clnh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: var(--clnh-radius);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: -.005em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.clnh-btn svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.clnh-btn--ghost {
    background: #fff;
    border-color: rgba(14, 142, 131, .28);
    color: var(--clnh-teal-ink);
    box-shadow: 0 1px 2px rgba(11, 27, 36, .04);
}

.clnh-btn--ghost:hover {
    background: var(--clnh-teal-wash);
    border-color: rgba(14, 142, 131, .5);
    transform: translateY(-1px);
}

.clnh-btn--solid {
    background: linear-gradient(135deg, var(--clnh-coral) 0%, var(--clnh-coral-2) 100%);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(240, 72, 15, .85);
}

.clnh-btn--solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(240, 72, 15, .95);
}

.clnh-btn--teal {
    background: linear-gradient(135deg, var(--clnh-teal) 0%, var(--clnh-teal-2) 100%);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(14, 142, 131, .9);
}

.clnh-btn--teal:hover {
    transform: translateY(-1px);
}

.clnh-btn__short {
    display: none;
}

/* Aktif sayfadaki aksiyon butonu */
.clnh-btn--ghost.is-current {
    background: var(--clnh-teal-wash);
    border-color: rgba(14, 142, 131, .55);
    color: var(--clnh-teal-ink);
    box-shadow: inset 0 0 0 1px rgba(14, 142, 131, .18);
}

.clnh-btn--solid.is-current {
    background: linear-gradient(135deg, var(--clnh-coral-2) 0%, #C9380B 100%);
}

/* ---------- Mobil çekmece ---------- */
.clnh-scrim {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 22, 29, .52);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.clnh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    width: min(90vw, 376px);
    display: flex;
    flex-direction: column;
    font-family: var(--clnh-font);
    background: #fff;
    box-shadow: -24px 0 60px -24px rgba(6, 22, 29, .45);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility .34s ease;
    overscroll-behavior: contain;
}

.clnh-drawer[hidden] {
    display: none;
}

.clnh-nav-open .clnh-scrim {
    opacity: 1;
    visibility: visible;
}

.clnh-nav-open .clnh-drawer {
    transform: translateX(0);
    visibility: visible;
}

.clnh-nav-open {
    overflow: hidden;
}

.clnh-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--clnh-line-soft);
    flex: 0 0 auto;
}

.clnh-drawer__brand {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    text-decoration: none;
}

.clnh-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.clnh-drawer__label {
    display: block;
    margin: 0 0 .5rem;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #90A2AC;
}

.clnh-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clnh-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    min-height: 50px;
    padding: .5rem .8rem;
    border-radius: var(--clnh-radius);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--clnh-ink-soft);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.clnh-drawer__link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    opacity: .4;
}

.clnh-drawer__link:hover {
    background: rgba(11, 27, 36, .04);
    color: var(--clnh-ink);
}

.clnh-drawer__link.is-active {
    background: var(--clnh-teal-wash);
    color: var(--clnh-teal-ink);
    font-weight: 700;
}

.clnh-drawer__link.is-active svg {
    opacity: .9;
    color: var(--clnh-teal);
}

.clnh-drawer__panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
}

.clnh-drawer__panel {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid rgba(14, 142, 131, .2);
    border-radius: var(--clnh-radius);
    background: var(--clnh-teal-wash);
    text-decoration: none;
    min-width: 0;
}

.clnh-drawer__panel-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #fff;
    color: var(--clnh-teal);
    box-shadow: 0 2px 6px rgba(11, 27, 36, .08);
}

.clnh-drawer__panel-ico svg {
    width: 16px;
    height: 16px;
}

.clnh-drawer__panel-txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.clnh-drawer__panel-txt strong {
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--clnh-teal-ink);
}

.clnh-drawer__panel-txt small {
    font-size: .68rem;
    color: var(--clnh-muted);
}

.clnh-drawer__panel--pro {
    border-color: rgba(240, 72, 15, .2);
    background: var(--clnh-coral-wash);
}

.clnh-drawer__panel--pro .clnh-drawer__panel-ico {
    color: var(--clnh-coral-2);
}

.clnh-drawer__panel--pro .clnh-drawer__panel-txt strong {
    color: #AF3410;
}

.clnh-drawer__ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
}

.clnh-drawer__ctas .clnh-btn {
    width: 100%;
    height: 46px;
    font-size: .875rem;
}

.clnh-drawer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: .9rem;
    border-top: 1px solid var(--clnh-line-soft);
}

.clnh-drawer__phone {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    min-width: 0;
}

.clnh-drawer__trust {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clnh-drawer__trust li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 500;
    color: var(--clnh-muted);
}

.clnh-drawer__trust svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--clnh-teal);
}

/* ---------- Erişilebilirlik ---------- */
.clnh a:focus-visible,
.clnh button:focus-visible,
.clnh-drawer a:focus-visible,
.clnh-drawer button:focus-visible {
    outline: 2px solid var(--clnh-teal-2);
    outline-offset: 2px;
    border-radius: 10px;
}

.clnh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =========================================================================
   >= 480px — küçük telefon üstü: duyuru şeridinde ayraç görünür
   ====================================================================== */
@media (min-width: 480px) {
    .clnh-promo {
        font-size: .78rem;
    }

    .clnh-promo__sep {
        display: block;
    }

    .clnh-drawer__panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clnh-drawer__panel {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}

/* =========================================================================
   >= 1100px — masaüstü düzeni: tek satır menü, iki kademeli header
   ====================================================================== */
@media (min-width: 1100px) {
    html {
        scroll-padding-top: 124px;
    }

    .clnh {
        --clnh-bar-h: 68px;
    }

    .clnh__utility {
        display: block;
    }

    .clnh__mobile {
        display: none;
    }

    .clnh__bar {
        gap: clamp(1rem, 2.2vw, 2.1rem);
    }

    .clnh__brand {
        max-width: 210px;
    }

    .clnh__brand-img {
        max-height: 42px;
    }

    .clnh__nav {
        display: flex;
        align-items: center;
        gap: .1rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .clnh__link {
        position: relative;
        display: inline-flex;
        align-items: center;
        height: 40px;
        padding: 0 .72rem;
        border-radius: 10px;
        font-size: .835rem;
        font-weight: 600;
        letter-spacing: -.005em;
        line-height: 1;
        color: var(--clnh-ink-soft);
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s ease, background .2s ease;
    }

    .clnh__link::after {
        content: "";
        position: absolute;
        left: .72rem;
        right: .72rem;
        bottom: 4px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--clnh-teal) 0%, var(--clnh-teal-2) 100%);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    }

    .clnh__link:hover {
        color: var(--clnh-teal-ink);
        background: rgba(20, 184, 166, .07);
    }

    .clnh__link:hover::after {
        transform: scaleX(1);
    }

    .clnh__link.is-active {
        color: var(--clnh-teal-ink);
        font-weight: 700;
    }

    .clnh__link.is-active::after {
        transform: scaleX(1);
    }

    .clnh__actions {
        display: flex;
        align-items: center;
        gap: .45rem;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .clnh-scrim,
    .clnh-drawer {
        display: none !important;
    }
}

/* 1100–1279px: menü ve butonlarda güvenli sıkıştırma */
@media (min-width: 1100px) and (max-width: 1279px) {
    .clnh__bar {
        gap: 1rem;
    }

    .clnh__brand {
        max-width: 168px;
    }

    .clnh__link {
        padding: 0 .55rem;
        font-size: .8rem;
    }

    .clnh__link::after {
        left: .55rem;
        right: .55rem;
    }

    .clnh-btn {
        height: 38px;
        padding: 0 .8rem;
        font-size: .775rem;
    }

    .clnh-btn__full {
        display: none;
    }

    .clnh-btn__short {
        display: inline;
    }

    .clnh__trust li:nth-child(n + 3) {
        display: none;
    }

    .clnh__panel {
        font-size: .715rem;
        padding: 0 .58rem;
    }
}

/* >= 1440px: daha ferah ritim */
@media (min-width: 1440px) {
    .clnh {
        --clnh-bar-h: 72px;
    }

    .clnh__link {
        padding: 0 .85rem;
        font-size: .86rem;
    }

    .clnh__link::after {
        left: .85rem;
        right: .85rem;
    }

    .clnh-btn {
        height: 42px;
        padding: 0 1.15rem;
        font-size: .82rem;
    }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {

    .clnh,
    .clnh::after,
    .clnh-btn,
    .clnh-drawer,
    .clnh-scrim,
    .clnh__link::after,
    .clnh-icon-btn,
    .clnh-burger span {
        transition-duration: .01ms !important;
    }

    .clnh-btn:hover {
        transform: none;
    }
}
