/* ==========================================
   SİTE ÜST MENÜSÜ
   Kutusuz açık şerit: logo · numaralı menü · koyu
   iletişim butonu + sarı menü düğmesi. Alt menüler beyaz "mega panel"
   olarak açılır (dev kelimeler + görsel önizleme). Kaydırınca
   şerit ortada yüzen bulanık bir kapsüle dönüşür. Tek font: Montserrat.
   ========================================== */

:root {
    /* Akış içindeki üst menü yüksekliği; ana sayfa hero'su bununla tek ekrana sığar */
    --site-header-h: 80px;
    --hero-offset: var(--site-header-h);
}

.sh {
    --ink: #0d0d0d;
    --brand: #ffdd00;
    --muted: rgba(13, 13, 13, 0.45);
    --line: rgba(13, 13, 13, 0.08);
    --gutter: calc(12px + clamp(16px, 2.5vw, 32px));
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    z-index: 100;
    height: var(--site-header-h);
    color: var(--ink);
    font-family: var(--font-main, 'Montserrat', sans-serif);
}

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

/* Düşük öncelikli sıfırlama: bileşen sınıfları rahatça ezebilsin */
:where(.sh) button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sh a:focus-visible,
.sh button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- Şerit --- */
.sh__bar {
    position: relative;
    inset-inline: 0;
    height: var(--site-header-h);
    padding: 0 var(--gutter);
    transition:
        transform 0.5s var(--ease),
        height 0.4s var(--ease),
        padding 0.4s var(--ease),
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-radius 0.4s var(--ease);
}

.sh__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    height: 100%;
}

.sh__start,
.sh__end {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sh__end {
    justify-content: flex-end;
    gap: 10px;
}

/* --- Logo --- */
.sh-logo {
    display: inline-flex;
    flex: none;
    text-decoration: none;
    transition: transform 0.4s var(--ease);
}

.sh-logo img {
    display: block;
    width: auto;
    height: 40px;
    transition: height 0.4s var(--ease);
}

.sh-logo:hover {
    transform: rotate(-3deg) scale(1.03);
}

/* --- Numaralı menü --- */
.sh-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.sh-link sup {
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 3px;
    border-radius: 4px;
    color: var(--muted);
    transition: background 0.25s ease, color 0.25s ease;
}

/* Sarı fosforlu kalem alt çizgisi */
.sh-link__text {
    background-image: linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0% 0.42em;
    transition: background-size 0.4s var(--ease);
}

.sh-link:hover .sh-link__text,
.sh-link[aria-expanded="true"] .sh-link__text,
.sh-nav__item.is-active .sh-link__text {
    background-size: 100% 0.42em;
}

.sh-nav__item.is-active .sh-link sup,
.sh-link[aria-expanded="true"] sup {
    background: var(--ink);
    color: var(--brand);
}

.sh-link__plus {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    align-self: center;
    transition: transform 0.4s var(--ease);
}

.sh-link__plus svg {
    width: 10px;
    height: 10px;
}

.sh-link[aria-expanded="true"] .sh-link__plus {
    transform: rotate(45deg);
}

/* --- İletişim butonu (hero'daki koyu kutu tarzında) --- */
.sh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 6px 0 16px;
    border-radius: 12px;
    background: #1c1c1c;
    color: #f2f2f2;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, height 0.4s var(--ease), box-shadow 0.3s ease;
}

.sh-cta:hover {
    transform: translateY(-2px);
}

.sh-cta__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
}

.sh-cta__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4a4a4a;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, transform 0.45s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease);
}

.sh-cta__icon svg {
    width: 16px;
    height: 16px;
}

.sh-cta:hover .sh-cta__icon,
.sh-cta[aria-current="page"] .sh-cta__icon {
    background: var(--brand);
    color: var(--ink);
    transform: rotate(45deg);
}

/* --- Menü düğmesi (sarı kare) --- */
.sh-burger {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--brand);
    color: var(--ink);
    transition: transform 0.3s ease, width 0.4s var(--ease), height 0.4s var(--ease), border-radius 0.4s var(--ease);
}

.sh-burger:hover {
    transform: rotate(-6deg);
}

.sh-burger__lines {
    position: relative;
    display: block;
    width: 18px;
    height: 10px;
}

.sh-burger__lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.4s var(--ease), top 0.4s var(--ease), width 0.3s ease;
}

.sh-burger__lines span:first-child { top: 0; }
.sh-burger__lines span:last-child { top: 8px; width: 60%; left: auto; right: 0; }

.sh-burger:hover .sh-burger__lines span:last-child {
    width: 100%;
}

.sh-burger[aria-expanded="true"] .sh-burger__lines span,
.sh-burger.is-open .sh-burger__lines span {
    top: 4px;
    width: 100%;
}

.sh-burger[aria-expanded="true"] .sh-burger__lines span:first-child,
.sh-burger.is-open .sh-burger__lines span:first-child { transform: rotate(45deg); }

.sh-burger[aria-expanded="true"] .sh-burger__lines span:last-child,
.sh-burger.is-open .sh-burger__lines span:last-child { transform: rotate(-45deg); }

.sh-burger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- Mega panel --- */
.sh-mega {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    z-index: 99;
    visibility: hidden;
    pointer-events: none;
}

.sh-mega__card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: clamp(20px, 3vw, 40px);
    height: clamp(360px, 54vh, 500px);
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(13, 13, 13, 0.06);
    clip-path: inset(0 0 100% 0 round 28px);
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.sh-mega.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sh-mega.is-open .sh-mega__card {
    clip-path: inset(0 0 0 0 round 28px);
}

.sh-mega__side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sh-mega__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sh-mega__eyebrow span {
    width: 8px;
    height: 8px;
    background: var(--brand);
    box-shadow: 0 0 0 1px var(--ink);
}

.sh-mega__list {
    margin: auto 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: none;
}

.sh-mega__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 2px 0;
    color: rgba(13, 13, 13, 0.22);
    text-decoration: none;
    opacity: 0;
    translate: 0 16px;
    transition: color 0.25s ease, opacity 0.4s ease, translate 0.6s var(--ease);
}

.sh-mega.is-open .sh-mega__link {
    opacity: 1;
    translate: 0 0;
    transition-delay: 0s, calc(0.12s + var(--i) * 40ms), calc(0.12s + var(--i) * 40ms);
}

.sh-mega__link em {
    flex: none;
    width: 2em;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
}

.sh-mega__link span {
    font-size: clamp(1.4rem, 2.6vw, 2.7rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.05em;
    transition: translate 0.4s var(--ease);
}

.sh-mega__link:hover,
.sh-mega__link:focus-visible,
.sh-mega__link.is-hover,
.sh-mega__link.is-current {
    color: var(--ink);
}

.sh-mega__link:hover span,
.sh-mega__link.is-hover span {
    translate: 8px 0;
}

.sh-mega__preview {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background-color: #e8e7e5;
    background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1.2px);
    background-size: 16px 16px;
    isolation: isolate;
}

.sh-mega__preview img {
    position: absolute;
    inset: 20px 20px 84px;
    width: calc(100% - 40px);
    height: calc(100% - 104px);
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.05);
    transition: opacity 0.25s ease, scale 0.5s var(--ease);
}

.sh-mega__preview img.is-logo {
    inset: 30%;
    width: 40%;
    height: 40%;
}

.sh-mega__preview img.is-swapping {
    opacity: 0;
    scale: 0.94;
}

.sh-mega__all {
    position: absolute;
    left: 50%;
    bottom: 16px;
    translate: -50% 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 6px 0 16px;
    border-radius: 12px;
    background: #1c1c1c;
    color: #f2f2f2;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sh-mega__all:hover .sh-cta__icon {
    background: var(--brand);
    color: var(--ink);
    transform: rotate(45deg);
}

/* --- Kaydırınca yüzen kapsül --- */
.sh.is-stuck .sh__bar {
    position: fixed;
    top: 10px;
    left: 12px;
    right: 12px;
    max-width: 1180px;
    margin-inline: auto;
    height: 64px;
    padding: 0 8px 0 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--line);
}

.sh.is-stuck .sh-logo img {
    height: 32px;
}

.sh.is-stuck .sh-cta {
    height: 48px;
}

.sh.is-stuck .sh-burger {
    width: 48px;
    height: 48px;
}

.sh.is-stuck .sh-mega {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

.sh.is-stuck.is-hidden .sh__bar {
    transform: translateY(calc(-100% - 20px));
}

.sh.no-anim .sh__bar {
    transition: none;
}

/* --- Tam ekran menü --- */
.sh-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 12px;
    visibility: hidden;
    pointer-events: none;
}

.sh-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.35);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sh-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sh-menu.is-open::before {
    opacity: 1;
}

.sh-menu__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(16px, 2.4vw, 32px);
    overflow-y: auto;
    border-radius: 28px;
    background-color: #ffffff;
    background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1.2px);
    background-size: 16px 16px;
    clip-path: inset(0 0 100% 0 round 28px);
    transition: clip-path 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.sh-menu.is-open .sh-menu__card {
    clip-path: inset(0 0 0 0 round 28px);
}

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

.sh-menu__list {
    margin: auto 0;
    padding: clamp(20px, 4vh, 40px) 0;
    list-style: none;
}

.sh-menu__row {
    display: flex;
    align-items: baseline;
    gap: clamp(12px, 1.6vw, 20px);
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.4s ease, translate 0.7s var(--ease);
}

.sh-menu.is-open .sh-menu__row {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(0.25s + var(--i) * 50ms);
}

.sh-menu__num {
    flex: none;
    width: 2.2em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

.sh-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    /* Ekran yüksekliğine göre de ölçeklenir; tüm öğeler tek ekrana sığar */
    font-size: clamp(2rem, min(6vw, 8.2vh), 5.4rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.055em;
    color: rgba(13, 13, 13, 0.2);
    text-decoration: none;
    text-align: left;
    transition: color 0.25s ease, translate 0.4s var(--ease);
}

.sh-menu__link:hover,
.sh-menu__link:focus-visible,
.sh-menu__link[aria-expanded="true"],
.sh-menu__item.is-active .sh-menu__link {
    color: var(--ink);
}

.sh-menu__link:hover {
    translate: 10px 0;
}

.sh-menu__plus {
    display: grid;
    place-items: center;
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
    transition: transform 0.4s var(--ease);
}

.sh-menu__plus svg {
    width: 45%;
    height: 45%;
}

.sh-menu__link[aria-expanded="true"] .sh-menu__plus {
    transform: rotate(45deg);
}

.sh-menu__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.sh-menu__sub.is-open {
    grid-template-rows: 1fr;
}

.sh-menu__sub > ul {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0 0 0 calc(2.2em + clamp(12px, 1.6vw, 20px));
    list-style: none;
}

.sh-menu__sub.is-open > ul {
    padding-block: 12px 18px;
}

.sh-menu__sub a {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sh-menu__sub a:hover,
.sh-menu__sub a[aria-current="page"] {
    background: var(--brand);
}

.sh-menu__sub .sh-menu__all {
    background: #1c1c1c;
    color: #fff;
}

.sh-menu__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(13, 13, 13, 0.1);
}

.sh-menu__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    margin: 0;
}

.sh-menu__contact dt {
    margin-bottom: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sh-menu__contact dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.sh-menu__contact a {
    color: inherit;
    text-decoration: none;
}

.sh-menu__contact a:hover {
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 3px;
}

.sh-menu__address dd {
    max-width: 32ch;
    font-weight: 600;
}

.sh-menu__badge {
    flex: none;
    width: clamp(88px, 8vw, 120px);
    overflow: visible;
}

.sh-menu__badge text {
    font-size: 9.4px;
    font-weight: 800;
    letter-spacing: 0.08em;
    fill: var(--ink);
    transform-origin: 60px 60px;
    animation: sh-spin 16s linear infinite;
}

.sh-menu__badge circle {
    fill: var(--brand);
    stroke: var(--ink);
    stroke-width: 1.5;
}

.sh-menu__badge path:not([id]) {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes sh-spin {
    to { transform: rotate(360deg); }
}

/* Geniş ekranda iki sütun: solda dev liste, sağda iletişim + rozet */
@media (min-width: 1024px) {
    .sh-menu__card {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
        grid-template-rows: auto 1fr;
        column-gap: 40px;
    }

    .sh-menu__head {
        grid-column: 1 / -1;
    }

    .sh-menu__list {
        align-self: center;
    }

    .sh-menu__foot {
        align-self: end;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 28px;
        padding: 0 0 8px 28px;
        border-top: 0;
        border-left: 1px solid rgba(13, 13, 13, 0.1);
    }

    .sh-menu__contact {
        flex-direction: column;
    }
}

html.sh-lock,
html.sh-lock body {
    overflow: hidden;
}

/* --- Dar ekran --- */
@media (max-width: 1023px) {
    :root {
        --site-header-h: 72px;
    }

    .sh {
        --gutter: 20px;
    }

    .sh__inner {
        grid-template-columns: auto 1fr;
    }

    .sh-nav {
        display: none;
    }

    .sh-mega {
        display: none;
    }

    .sh-logo img {
        height: 34px;
    }

    .sh.is-stuck .sh__bar {
        top: 8px;
        left: 8px;
        right: 8px;
        height: 58px;
        padding: 0 6px 0 14px;
        border-radius: 18px;
    }

    .sh.is-stuck .sh-logo img {
        height: 28px;
    }

    .sh.is-stuck .sh-cta,
    .sh.is-stuck .sh-burger {
        height: 46px;
    }

    .sh.is-stuck .sh-burger {
        width: 46px;
    }
}

@media (max-width: 560px) {
    .sh-cta {
        height: 46px;
        padding: 0 4px 0 12px;
        font-size: 0.78rem;
    }

    .sh-cta__dot {
        display: none;
    }

    .sh-cta__icon {
        width: 34px;
        height: 34px;
    }

    .sh-burger {
        width: 46px;
        height: 46px;
    }

    .sh-menu {
        padding: 8px;
    }

    .sh-menu__card {
        border-radius: 22px;
    }

    .sh-menu__foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .sh-menu__badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh__bar,
    .sh-mega__card,
    .sh-mega__link,
    .sh-menu__card,
    .sh-menu__row,
    .sh-menu__sub {
        transition: none;
    }

    .sh-menu__badge text {
        animation: none;
    }

    .sh.is-stuck.is-hidden .sh__bar {
        transform: none;
    }
}
