/* ── Global: yatay kaymayı önle ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Nav her zaman tıklanabilir kalsın */
nav.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000 !important;
    pointer-events: auto;
    isolation: isolate;
}

nav.glass-nav .mobile-header-controls,
nav.glass-nav #mobile-menu-btn,
nav.glass-nav .lang-toggle {
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

/* ── Mobile header controls ── */
.mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-header-controls {
        display: none !important;
    }
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex !important;
        align-items: center;
    }
}

/* ── Language toggle ── */
.lang-toggle {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lang-toggle:hover {
    color: #D4AF37;
}

#mobile-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#mobile-menu-btn:active {
    background: rgba(212, 175, 55, 0.35);
}

#mobile-menu-icon {
    pointer-events: none;
}

/* ── Mobile drawer ── */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001 !important;
    pointer-events: none;
}

#mobile-menu.is-open {
    display: block !important;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(100%, 300px);
    background: #1c1c1c;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    will-change: transform;
    z-index: 2;
}

#mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 1;
}

#mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: #D4AF37;
}

body.menu-open {
    overflow: hidden !important;
}

/* ── Marquee: yatay taşma önleme ── */
.marquee-container {
    overflow: hidden !important;
    max-width: 100%;
}

.marquee-track {
    will-change: transform;
}

/* ── Mobile layout ── */
@media (max-width: 767px) {
    .hero-bg,
    .page-header-bg {
        background-attachment: scroll !important;
    }

    nav.glass-nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav img[alt*="Logo"],
    nav img[alt*="logo"] {
        height: 2.25rem !important;
        max-width: 9rem;
    }

    header.hero-bg,
    header.page-header-bg {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        min-height: 50svh;
        height: auto !important;
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header.hero-bg > div,
    header.page-header-bg > div {
        width: 100%;
        max-width: 100%;
    }

    header.hero-bg h1,
    header.page-header-bg h1 {
        font-size: clamp(1.5rem, 6.5vw, 2.1rem) !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    header.hero-bg p,
    header.page-header-bg p {
        font-size: 0.875rem !important;
        line-height: 1.55 !important;
    }

    header.hero-bg .flex.flex-col,
    header.hero-bg .flex.sm\:flex-row {
        width: 100%;
        max-width: 100%;
    }

    header.hero-bg a,
    header.page-header-bg a {
        width: 100%;
        max-width: 100%;
    }

    section.py-24 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    section.py-20 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    #hizmetler .grid {
        gap: 1rem;
    }

    footer .grid {
        gap: 2rem;
    }

    .service-card {
        min-height: 13rem;
    }

    .service-card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .logo-grid-card img {
        display: block;
        max-height: 4.5rem;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        object-fit: contain;
    }
}

/* ── Service cards & logo grids (all breakpoints) ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-grid-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-grid-card img {
    display: block;
    max-height: 5rem;
    width: auto;
    max-width: 90%;
    object-fit: contain;
}
