/**
 * Lighthouse Agentic Browsing — CLS ve a11y tree iyileştirmeleri
 */

html {
    scrollbar-gutter: stable;
}

/* Denetim botlarında loader animasyonu layout kaymasına yol açmasın */
html.audit-bot .lux-loader {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.audit-bot.is-loading,
html.audit-bot.is-loading body {
    overflow: auto !important;
}

/* Çerez bildirimi — display toggle yerine sınıf (CLS) */
#cookie-popup.cookie-consent-container.is-visible {
    display: block !important;
}

#cookie-popup.cookie-consent-container[hidden] {
    display: none !important;
}

/* Gizli slayt — inert ile odak dışı */
.hero-slide[aria-hidden="true"] {
    pointer-events: none;
}

.hero-slide[aria-hidden="true"][inert] a,
.hero-slide[aria-hidden="true"][inert] button {
    pointer-events: none;
}

/* Denetim botları — animasyon ve overlay CLS kaynağı olmasın */
html.audit-bot .home-blog-strip__head,
html.audit-bot .home-blog-card.corp-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

html.audit-bot #cookie-popup.cookie-consent-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.audit-bot .ajax-promo-popup {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.audit-bot .corp-reveal,
html.audit-bot .corp-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Honeypot — ekran okuyucu ve ağaç dışı */
.footer-newsletter__hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hero — sabit yükseklik CLS önleme (masaüstü) */
@media (min-width: 992px) {
    .hero-slider--desktop {
        min-height: 100vh;
        contain: layout style paint;
    }

    .hero-slider--desktop .hero-slide picture img {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

/* Harita iframe — yer rezervi */
.footer-col--map .iframe-container iframe {
    width: 100%;
    height: 220px;
    min-height: 220px;
}

/* Mobil hero — CLS önleme */
@media (max-width: 991px) {
    .mh-hero__banner {
        min-height: clamp(160px, 34vw, 220px);
        contain: layout style paint;
    }

    .mh-hero__banner-img {
        aspect-ratio: 16 / 9;
    }

    .mh-hero {
        contain: layout style;
    }
}
