/* Anasayfa — katman sırası: içerik < hızlı menü < header < tam menü (offcanvas) */
:root {
    --sm-z-hero-quick-menu: 9500;
    --sm-z-hero-quick-panel: 9600;
    --sm-z-hero-quick-backdrop: 9450;
    --sm-z-full-menu-overlay: 999990;
}

/* Anasayfa hero — overlay + absolute bar (scroll slider korunur) */
main > .tp-hero-2-wrapper > .tp-hero-2-area {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    position: relative !important;
    display: block !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    contain: none !important;
    overflow: visible !important;
}
main > .tp-hero-2-wrapper .hero-home-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    z-index: 2;
    pointer-events: none;
}
main > .tp-hero-2-wrapper .hero-home-overlay > * { pointer-events: auto; }
.hero-home-overlay #dynamicCityText,
.hero-home-stage #dynamicCityText { display: none !important; min-height: 0 !important; }
.hero-home-overlay .hero-home-stage__title-wrap {
    position: absolute !important;
    top: clamp(88px, 11vh, 118px);
    left: clamp(24px, 5vw, 64px);
    right: clamp(24px, 5vw, 64px);
    bottom: clamp(88px, 11vh, 120px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible;
}
/* Bootstrap idle yüklenmeden önce d-none işlemez — mobilde galeri CLS/LCP kaynağı */
@media (max-width: 767.98px) {
    main > .tp-hero-2-wrapper > .tp-hero-2-img-wrap,
    .tp-hero-2-img-wrap.d-none.d-md-block {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        content-visibility: hidden;
        contain: strict;
    }
}
@media (min-width: 768px) {
    main > .tp-hero-2-wrapper > .tp-hero-2-img-wrap {
        min-height: 2100px;
        contain-intrinsic-size: auto 2100px;
    }
}
main > .tp-hero-2-wrapper .hero-home-stage__bar {
    position: absolute !important;
    left: clamp(24px, 5vw, 64px);
    right: clamp(24px, 5vw, 64px);
    bottom: clamp(32px, 5vh, 52px);
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px;
    z-index: 10 !important;
    pointer-events: auto;
    min-height: 62px;
    contain: layout style;
}
@media (min-width: 768px) {
    .hero-home-stage__cta--floating,
    #heroHomeStageCta {
        position: fixed !important;
        z-index: var(--sm-z-hero-quick-menu) !important;
        bottom: clamp(32px, 5vh, 52px) !important;
        right: clamp(24px, 5vw, 64px) !important;
        left: auto !important;
        margin-left: 0 !important;
        transform: translateX(clamp(-36px, -4.5vw, -72px)) !important;
        pointer-events: auto;
    }
}
.hero-home-stage__cta--floating {
    /* masaüstü float — media query yukarıda; mobil akışta bar içinde kalır */
}
body.is-hero-cta-hidden .hero-home-stage__cta--floating {
    visibility: hidden !important;
    pointer-events: none !important;
}
body.menu-is-open .hero-home-stage__cta--floating:not(:has(.hero-quick-menu.is-open)),
body:has(.tp-offcanvas-2-area.opened) .hero-home-stage__cta--floating:not(:has(.hero-quick-menu.is-open)) {
    z-index: 1 !important;
}
/* Tam menü açıkken hızlı menü offcanvas altında kalsın */
body.menu-is-open .hero-quick-menu,
body:has(.tp-offcanvas-2-area.opened) .hero-quick-menu,
body.menu-is-open .hero-quick-menu__panel,
body:has(.tp-offcanvas-2-area.opened) .hero-quick-menu__panel,
body.menu-is-open .hero-quick-menu__mobile-fab,
body:has(.tp-offcanvas-2-area.opened) .hero-quick-menu__mobile-fab,
body.menu-is-open .hero-quick-menu--mobile-float .hero-quick-menu__backdrop,
body:has(.tp-offcanvas-2-area.opened) .hero-quick-menu--mobile-float .hero-quick-menu__backdrop {
    z-index: 900 !important;
}
body.page-home.menu-is-open:has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper,
body.page-index.menu-is-open:has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper,
body.page-home:has(.tp-offcanvas-2-area.opened):has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper,
body.page-index:has(.tp-offcanvas-2-area.opened):has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper {
    z-index: 2 !important;
}
main > .tp-hero-2-wrapper .hero-home-stage__bar .tp-hero-2-avater-box,
main > .tp-hero-2-wrapper .hero-home-stage__bar .tp-hero-2-btn-box {
    display: flex !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
main > .tp-hero-2-wrapper h1.hero-home-title.tp-hero-2-title {
    font-family: 'League Spartan', 'Space Grotesk', var(--sm-font-hero, sans-serif) !important;
    font-size: clamp(52px, 9.5vw, 172px) !important;
    font-weight: 700 !important;
    line-height: 0.82 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
main > .tp-hero-2-wrapper .hero-title-stretch-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    --hero-scale-x: 0.95;
    --hero-scale-y: 1.92;
    transform: scale(var(--hero-scale-x), var(--hero-scale-y));
    transform-origin: center center !important;
    opacity: 1 !important;
    filter: none !important;
}
#heroHomeTitleText {
    color: rgb(255, 255, 255) !important;
    -webkit-text-fill-color: rgb(255, 255, 255) !important;
    opacity: 0.28 !important;
    transform: none !important;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}
#heroHomeTitleText .hero-title-word {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    opacity: 1 !important;
    transform: none !important;
}
main > .tp-hero-2-wrapper h1.hero-home-title .static-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(14px, 2.4vw, 32px) !important;
    max-width: min(94vw, 1180px);
}
@media (max-width: 767px) {
    main > .tp-hero-2-wrapper .hero-home-overlay { height: 100% !important; min-height: 100% !important; }
    .hero-home-overlay .hero-home-stage__title-wrap {
        top: clamp(72px, 10vh, 96px);
        left: 16px; right: 16px;
        bottom: clamp(32px, 6vh, 56px);
        align-items: center;
        justify-content: center;
    }
    main > .tp-hero-2-wrapper .hero-home-stage__bar {
        display: none !important;
    }
    main > .tp-hero-2-wrapper,
    main > .tp-hero-2-wrapper > .tp-hero-2-area {
        min-height: 100svh !important;
        min-height: 100dvh !important;
        height: 100svh !important;
        height: 100dvh !important;
        padding-bottom: 0 !important;
    }
    main > .tp-hero-2-wrapper + .des-about-band,
    .des-about-band {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 24px !important;
    }
    .des-about-band .des-about-orbit {
        min-height: 0 !important;
        height: auto !important;
    }
    .des-about-band .des-about-orbit--left {
        padding-bottom: 0 !important;
    }
    .des-about-band .des-about-text {
        padding: 0 0 8px !important;
    }
    .des-about-band .des-about-heading.mb-30 {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
    .mobile-hero-scroll {
        margin-top: 8px !important;
    }
    main > .tp-hero-2-wrapper h1.hero-home-title.tp-hero-2-title {
        font-size: clamp(76px, 19vw, 168px) !important;
        line-height: 1 !important;
        letter-spacing: 0.03em !important;
        min-height: 5.2em;
        contain: layout style;
    }
    main > .tp-hero-2-wrapper h1.hero-home-title .static-text,
    main > .tp-hero-2-wrapper h1.hero-home-title .hero-title-stretch,
    #heroHomeTitleText {
        flex-direction: column !important;
        align-items: center !important;
        white-space: normal !important;
        gap: clamp(8px, 2vw, 16px) !important;
        line-height: 1 !important;
        opacity: 1 !important;
    }
    #heroHomeTitleText {
        opacity: 1 !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        text-shadow: none !important;
    }
    #heroHomeTitleText .hero-title-word {
        opacity: 1 !important;
        transform: none !important;
    }
    #heroHomeTitleText .hero-title-word:not(.hero-title-word--accent) {
        color: rgba(255, 255, 255, 0.82) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
    }
    #heroHomeTitleText .hero-title-word--accent {
        color: #ffbc00 !important;
        -webkit-text-fill-color: #ffbc00 !important;
        text-shadow: 0 2px 16px rgba(255, 188, 0, 0.35) !important;
    }
    main > .tp-hero-2-wrapper h1.hero-home-title .hero-title-word {
        display: block !important;
        line-height: 1 !important;
    }
    main > .tp-hero-2-wrapper .hero-title-stretch-wrap {
        transform: none !important;
        --hero-scale-x: 1;
        --hero-scale-y: 1;
    }
}
#index-ads-shorts.sm-ads-shorts {
    min-height: clamp(280px, 34vw, 360px);
    contain: layout style;
}
#index-ads-shorts .sm-ads-shorts__item {
    aspect-ratio: 9 / 16;
}
.hero-home-stage__cta-placeholder {
    visibility: hidden;
    pointer-events: none;
}
.google-reviews-section .google-reviews-swiper {
    min-height: 240px;
}
.google-review-item--skeleton {
    pointer-events: none;
}
.google-review-skeleton-head {
    width: 42%;
    height: 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
}
.google-review-skeleton-line {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.06);
}
.google-review-skeleton-line--short {
    width: 72%;
}
.cx-reels-track,
.instagram-track {
    display: flex;
    align-items: stretch;
}
body.page-home .tp_fade_anim,
body.page-index .tp_fade_anim {
    visibility: visible;
}

/* Hızlı Menü — kritik panel (index.css defer öncesi) */
.hero-quick-menu {
    position: relative;
    display: inline-block;
    z-index: var(--sm-z-hero-quick-menu);
}
.hero-quick-menu__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: var(--sm-z-hero-quick-panel);
    width: min(348px, calc(100vw - 40px));
    padding: 8px;
    border-radius: 14px;
    background: rgba(6, 6, 8, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.hero-quick-menu.is-open .hero-quick-menu__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hero-quick-menu__panel[hidden] {
    display: block;
}
.hero-quick-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.hero-quick-menu__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 9px 5px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.82) !important;
    pointer-events: auto;
}
@media (min-width: 768px) {
    body.page-home:has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper,
    body.page-index:has(.hero-quick-menu.is-open) > main > .tp-hero-2-wrapper {
        z-index: var(--sm-z-hero-quick-menu) !important;
        isolation: auto !important;
    }

    .hero-quick-menu:not(.hero-quick-menu--mobile-float).is-open {
        z-index: var(--sm-z-hero-quick-menu);
    }

    .hero-quick-menu:not(.hero-quick-menu--mobile-float).is-open .hero-quick-menu__panel {
        position: fixed !important;
        right: clamp(24px, 5vw, 64px) !important;
        bottom: clamp(96px, 12vh, 128px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--sm-z-hero-quick-panel) !important;
        max-height: min(380px, calc(100dvh - 168px));
        overflow-y: auto;
    }

    body.page-home .hero-home-stage__cta--floating:has(.hero-quick-menu.is-open),
    body.page-index .hero-home-stage__cta--floating:has(.hero-quick-menu.is-open) {
        z-index: var(--sm-z-hero-quick-menu) !important;
    }
}
/* Mobil Hızlı Menü FAB — stage bar gizliyken bile body'ye taşınmış menü görünür */
@media (max-width: 767.98px) {
    .hero-quick-menu--mobile-float {
        position: fixed !important;
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 88px));
        z-index: var(--sm-z-hero-quick-menu) !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 48px;
        pointer-events: auto;
    }
    .hero-quick-menu--mobile-float .hero-quick-menu__toggle {
        display: none !important;
    }
    .hero-quick-menu__mobile-fab {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1.5px solid rgba(255, 188, 0, 0.55);
        background: linear-gradient(145deg, rgba(26, 26, 28, 0.96) 0%, rgba(10, 10, 12, 0.98) 100%);
        color: #ffbc00;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
        -webkit-tap-highlight-color: transparent;
    }
}
