/*
 * Site başlığı (views/web/layouts/header.php): üst bilgi çubuğu + menü tek bir sabit <header> içinde,
 * açılır menü, arama katmanı, yan panel. main.css'teki eski başlık kurallarını "header.site-header"
 * ile geçersiz kılar; main.css'e dokunulmaz (o dosya marka dallarında farklılaşıyor).
 *
 * İki durum:
 *  - Saydam: sayfa bir görselle başlıyorsa (anasayfa slider'ı .hs, iç sayfa başlığı .page-title-section,
 *    blog yazısı .blog-detail-page) başlık onun üstünde; bulanık cam zemin, açık renk yazı, açık logo.
 *  - Beyaz: kaydırınca ("scrolled", main.js + site-header.js) ya da sayfa görselle başlamıyorsa.
 *    Kaydırınca üst bilgi çubuğu da kapanır.
 * Renkler --shh-* değişkenleriyle tek yerden değişir; --shh-solid (0/1) logoları çapraz geçirir.
 */
:root {
    --sh-font: 'Mulish', var(--font-body, 'Inter'), sans-serif;
    --sh-text: #1d1d1f;
    --sh-muted: #4a4a4a;
    --sh-border: #ececec;
    --sh-accent: var(--color-accent, #000000);
    --sh-width: 1200px;
    --sh-height: 92px;
    /* Başlığın kapladığı yükseklik: sayfa başı görsellerinin içeriği bunun altından başlar */
    --sh-topbar-h: 51px;
    --sh-offset: calc(var(--sh-topbar-h) + var(--sh-height));
}

/* Üst bilgi çubuğu basılmadıysa (sosyal medya, adres, e-posta boş) yalnız menü satırı kadar */
:root:not(:has(.sh-topbar)) {
    --sh-topbar-h: 0px;
}

.sh-container {
    width: 100%;
    max-width: var(--sh-width);
    margin: 0 auto;
    padding: 0 15px;
}

.sh-ico {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    flex: none;
}

/* ------------------------------------------------------------------ yükleme perdesi
 * main.css'teki .preloader tüm dosyalar yüklenip 0,8 sn beklenene kadar sayfayı kapatıyordu (yavaş mobilde 7-14 sn siyah
 * ekran). Artık sayfa ayrıştırılınca (altbilgideki satır içi betik) kısa bir geçişle kalkar; betik çalışmasa da 1,5 sn
 * sonra kendiliğinden kalkar. */
.preloader {
    transition: opacity .3s ease-out, visibility .3s ease-out;
    animation: sh-veil-out .3s ease-out 1.5s forwards;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes sh-veil-out {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .preloader { display: none; }
}

/* ------------------------------------------------------------------ üst bilgi çubuğu */
.sh-topbar {
    max-height: 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--shh-line);
    font-size: 15px;
    color: var(--shh-muted);
    transition: max-height .35s ease, opacity .25s ease, border-color .35s ease;
}

header.site-header.scrolled .sh-topbar {
    max-height: 0;
    opacity: 0;
    border-bottom-width: 0;
}

.sh-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.sh-social,
.sh-contact {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-social {
    gap: 22px;
}

.sh-social a {
    color: var(--sh-text);
    font-size: 15px;
    transition: color .25s ease;
}

.sh-topbar .sh-social a {
    color: var(--shh-fg);
}

.sh-social a:hover,
.sh-contact a:hover {
    color: var(--shh-accent, var(--sh-accent));
}

.sh-contact li {
    display: flex;
    align-items: center;
    padding: 0 28px;
    min-height: 50px;
}

.sh-contact li:last-child {
    padding-right: 0;
}

.sh-contact li + li {
    border-left: 1px solid var(--shh-line);
    transition: border-color .35s ease;
}

.sh-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--shh-muted);
    text-decoration: none;
    transition: color .25s ease;
}

/* ------------------------------------------------------------------ başlık */
header.site-header {
    --shh-fg: #fff;
    --shh-muted: rgba(255, 255, 255, .86);
    --shh-line: rgba(255, 255, 255, .2);
    /* Görsel üstündeki saydam başlıkta vurgu: siyah vurgu orada okunmaz */
    --shh-accent: var(--color-accent-on-dark, #fff);
    --shh-solid: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: none;
    background-color: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--shh-line);
    font-family: var(--sh-font);
    transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

header.site-header.scrolled,
body:not(:has(> main > :is(.hs:not(.hm-boxed), .page-title-section, .blog-detail-page):first-of-type)) header.site-header {
    --shh-fg: var(--sh-text);
    --shh-muted: var(--sh-muted);
    --shh-line: var(--sh-border);
    --shh-accent: var(--sh-accent);
    --shh-solid: 1;
    background-color: #fff;
    border-bottom-color: transparent;
    box-shadow: 0 8px 30px rgba(20, 20, 20, .07);
}

/* Görselle başlamayan sayfada içerik sabit başlığın altından başlar (kutu içindeki slider, .hs.hm-boxed, görsel
   başlık sayılmaz: başlık onun üstüne saydam binmez) */
main:not(:has(> :is(.hs:not(.hm-boxed), .page-title-section, .blog-detail-page):first-of-type)) {
    padding-top: var(--sh-offset);
}

.sh-main {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--sh-height);
}

.sh-logo {
    display: inline-grid;
    align-items: center;
    justify-items: start;
    flex: none;
}

.sh-logo img {
    grid-area: 1 / 1;
    display: block;
    height: 46px;
    width: auto;
    max-width: 220px;
    /* !important: main.css'teki genel img[src]:not(…)×3 kuralı (object-fit: cover) daha özgül; geniş bir logo (2400×443)
       220 px'e sığmayınca iki yanından kırpılıyordu */
    object-fit: contain !important;
    object-position: left center !important;
    transition: opacity .35s ease;
}

/* Saydam başlıkta header_white_logo, beyaz başlıkta header_black_logo */
.sh-logo-white {
    opacity: calc(1 - var(--shh-solid));
}

.sh-logo-black {
    opacity: var(--shh-solid);
}

/* Logo görseli girilmemişse site adı (logo_text) yazı olarak; altbilgide de kullanılır */
.sh-logo-text {
    font-family: var(--sh-font);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    color: var(--shh-fg, var(--sh-text));
    white-space: nowrap;
    transition: color .35s ease;
}

footer .footer-logo-text {
    display: inline-block;
    margin-bottom: 16px;
    color: #fff;
}

.sh-nav {
    margin-left: auto;
}

.sh-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-item {
    position: relative;
}

.sh-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 34px 0;
    color: var(--shh-fg);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease;
}

.sh-caret {
    font-size: 10px;
    transition: transform .25s ease;
}

.sh-item:hover > .sh-link,
.sh-item:focus-within > .sh-link,
.sh-item.is-active > .sh-link {
    color: var(--shh-accent, var(--sh-accent));
}

.sh-item:hover .sh-caret,
.sh-item:focus-within .sh-caret {
    transform: rotate(180deg);
}

.sh-dropdown {
    position: absolute;
    top: 100%;
    left: -24px;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    background: #fff;
    border-top: 2px solid var(--sh-accent);
    box-shadow: 0 18px 40px rgba(20, 20, 20, .10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 5;
}

.sh-item:hover > .sh-dropdown,
.sh-item:focus-within > .sh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sh-dropdown a {
    display: block;
    padding: 9px 24px;
    color: var(--sh-muted);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.sh-dropdown a:hover,
.sh-dropdown .is-active a {
    color: var(--sh-accent);
    padding-left: 30px;
}

.sh-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 10px;
}

.sh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shh-fg);
    cursor: pointer;
    transition: color .25s ease;
}

.sh-icon-btn:hover {
    color: var(--shh-accent, var(--sh-accent));
}

.sh-icon-btn svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.sh-burger {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 30px;
    height: 27px;
}

.sh-burger span {
    display: block;
    width: 30px;
    height: 1.5px;
    background: currentColor;
    transition: width .25s ease;
}

.sh-burger span:nth-child(2) {
    width: 20px;
}

.sh-burger:hover span:nth-child(2) {
    width: 30px;
}

/* ------------------------------------------------------------------ arama katmanı */
.sh-search {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, .97);
    font-family: var(--sh-font);
}

.sh-search[hidden] {
    display: none;
}

.sh-search-form {
    width: 100%;
    max-width: 760px;
}

.sh-search-label {
    display: block;
    margin-bottom: 18px;
    color: var(--sh-muted);
    font-size: 16px;
    letter-spacing: .02em;
}

.sh-search-field {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--sh-text);
}

.sh-search-field input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--sh-text);
    font-family: inherit;
    font-size: clamp(24px, 4vw, 40px);
}

.sh-search-field button {
    padding: 0 0 0 12px;
    border: 0;
    background: none;
    color: var(--sh-text);
    cursor: pointer;
}

.sh-search-field svg,
.sh-close svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.sh-close {
    border: 0;
    background: none;
    color: var(--sh-text);
    cursor: pointer;
    padding: 4px;
}

.sh-search > .sh-close {
    position: absolute;
    top: 28px;
    right: 32px;
}

/* ------------------------------------------------------------------ yan panel */
.sh-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(10, 10, 12, .45);
    opacity: 0;
    transition: opacity .3s ease;
}

.sh-backdrop.is-open {
    opacity: 1;
}

.sh-backdrop[hidden] {
    display: none;
}

.sh-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1095;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: min(420px, 100%);
    padding: 34px 38px 40px;
    overflow-y: auto;
    background: #fff;
    font-family: var(--sh-font);
    color: var(--sh-muted);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility .4s;
}

.sh-offcanvas.is-open {
    transform: translateX(0);
    visibility: visible;
}

.sh-offcanvas-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-offcanvas-head .sh-logo img {
    height: 40px;
}

.sh-offcanvas-nav {
    display: none;
}

.sh-offcanvas-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-offcanvas-nav > ul > li {
    border-bottom: 1px solid var(--sh-border);
}

.sh-oc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-oc-row a,
.sh-oc-row span {
    flex: 1;
    padding: 13px 0;
    color: var(--sh-text);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.sh-offcanvas-nav .is-active > .sh-oc-row a {
    color: var(--sh-accent);
}

.sh-oc-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--sh-text);
    cursor: pointer;
}

.sh-oc-toggle i {
    font-size: 12px;
    transition: transform .25s ease;
}

.sh-oc-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sh-oc-sub {
    padding: 0 0 10px 14px !important;
}

.sh-oc-sub a {
    display: block;
    padding: 7px 0;
    color: var(--sh-muted);
    font-size: 15px;
    text-decoration: none;
}

.sh-oc-about {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

.sh-oc-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-oc-contact li {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.sh-oc-contact i {
    width: 18px;
    margin-top: 4px;
    color: var(--sh-accent);
}

.sh-oc-contact a {
    color: var(--sh-muted);
    text-decoration: none;
}

.sh-oc-contact a:hover {
    color: var(--sh-accent);
}

.sh-oc-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sh-border);
    border-radius: 50%;
}

.sh-oc-social {
    gap: 10px;
}

.sh-oc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding: 16px 24px;
    background: var(--sh-text);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease;
}

.sh-oc-cta:hover {
    background: var(--sh-accent);
    color: #fff;
}

body.sh-locked {
    overflow: hidden;
}

/* ------------------------------------------------------------------ sayfa başı görselleri
   Sabit başlık görselin üstüne biner: başlık kadar üst boşluk bırakılır, içerik kalan alanda ortalanır. */
.page-title-section {
    height: auto;
    min-height: calc(var(--sh-offset) + 250px);
    padding-top: var(--sh-offset);
}

.blog-detail-header {
    padding-top: calc(var(--sh-offset) + 56px);
}

/* ------------------------------------------------------------------ duyarlı */
@media (max-width: 1399px) {
    .sh-menu {
        gap: 22px;
    }

    .sh-link {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .sh-nav {
        display: none;
    }

    .sh-actions {
        margin-left: auto;
    }

    .sh-offcanvas-nav {
        display: block;
    }
}

@media (max-width: 991px) {
    :root {
        --sh-topbar-h: 0px;
    }

    .sh-topbar {
        display: none;
    }

    .page-title-section {
        min-height: calc(var(--sh-offset) + 200px);
    }

    .blog-detail-header {
        padding-top: calc(var(--sh-offset) + 36px);
    }
}

@media (max-width: 575px) {
    :root {
        --sh-height: 72px;
    }

    .sh-logo img {
        height: 38px;
        max-width: 170px;
    }

    .page-title-section {
        min-height: calc(var(--sh-offset) + 170px);
    }

    .blog-detail-header {
        padding-top: calc(var(--sh-offset) + 24px);
    }

    .sh-actions {
        gap: 20px;
    }

    .sh-icon-btn svg {
        width: 24px;
        height: 24px;
    }

    .sh-offcanvas {
        padding: 26px 24px 30px;
    }
}
