/* =========================================================================
   GLOBAL — beyaz tema nötr başlık + sakin vurgu; altın aksan korunur
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&family=Open+Sans:wght@400;600&display=swap');

/* Scrollbar alanı sabit kalsın; kaydırınca veya overflow kilitlenince üst bar sağa kaymasın */
html {
    scrollbar-gutter: stable;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--clr-action) #f1f1f1;
}

:root {
    /* Beyaz tema: başlık/menü antrasit; aksiyon çelik-lacivert (parlak mavi azaltıldı) */
    --clr-primary: #1c2128;
    --clr-action: #3d5c78;
    --clr-action-hover: #2f4a63;
    --clr-accent-soft: #5c758c;
    --clr-primary-bright: #4a677d;
    --clr-secondary: #f19511; /* Altın/Sarı */
    --clr-dark: #111111;
    --clr-light: #ffffff;
    --clr-bg-page: #ffffff;
    --clr-surface: #ffffff;
    --clr-bg-alt: #f3f4f6;
    --clr-text: #4a4a4a;
    --clr-muted: #5c5c5c;
    --clr-text-soft: #4b5563;
    --clr-placeholder: #999999;
    --clr-border: #e8eaed;
    --clr-sidebar-tile: #3a4f63;
    --clr-nav-drawer: #2e3d4d;
    --clr-on-gold: #1c2128;
    /* Koyu sidebar karoları üzerindeki yazı/ikon (light temada da beyaz) */
    --clr-sidebar-ink: #ffffff;
    
    /* Tipografi */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Global Ayarlar */
    --transition: 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
    --header-h: 80px;
    /* imes-logo.png — yatay kurumsal logo (siyah zeminli kaynak) */
    --logo-viewbox-w: 1024;
    --logo-viewbox-h: 434;
}

.header.is-sticky { --header-h: 60px; }

/* ── Custom Scrollbar (thin) ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: var(--clr-action);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-action-hover); }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg-page);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-weight: 800;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-white { background-color: var(--clr-surface); }

/* ── Mobil: üstte sayfa kaydırma ilerleme çubuğu ─────────────────────────── */
.scroll-progress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10002;
    pointer-events: none;
    background: rgba(45, 60, 78, 0.1);
}
.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-action), var(--clr-accent-soft));
    box-shadow: 0 0 10px rgba(45, 60, 78, 0.22);
}
@media (max-width: 1024px) {
    .scroll-progress {
        display: block;
    }
}

/* ── Sticky Header ───────────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--clr-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, var(--transition);
}

.header.is-sticky {
    padding: 0.5rem 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 100%;
    transition: var(--transition);
}

.header.is-sticky .header__inner { height: 60px; }

.header__logo {
    font-family: var(--font-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.header__logo-img {
    display: block;
    height: 60px;
    width: auto;
    max-height: 72px;
    aspect-ratio: var(--logo-viewbox-w) / var(--logo-viewbox-h);
    max-width: min(200px, 48vw);
    object-fit: contain;
    object-position: left center;
}

.header__logo-img--dark {
    display: none;
}
html[data-theme="dark"] .header__logo-img--light {
    display: none;
}
html[data-theme="dark"] .header__logo-img--dark {
    display: block;
}

.header.is-sticky .header__logo-img {
    height: 42px;
    max-height: 48px;
}

@media (max-width: 1024px) {
    .header__logo-img {
        height: 42px;
        max-height: 48px;
        max-width: min(240px, 58vw);
    }
    .header.is-sticky .header__logo-img {
        height: 38px;
        max-height: 44px;
    }
}

/* Orta sütun: taşmayı önle, dar ekranda sıkılaş */
@media (min-width: 1025px) {
    .nav {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
    }
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.35rem;
    gap: 2rem;
    list-style: none;
}

/* Dar laptop / küçük masaüstü (ör. 13–14"): menü ve üst bar çok sıkışmasın */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        padding-left: clamp(1.35rem, 3.5vw, 2rem);
        padding-right: clamp(1.35rem, 3.5vw, 2rem);
    }
    .header__inner {
        gap: 0.85rem;
    }
    .header__logo-img {
        max-width: min(220px, 30vw);
        height: 42px;
        max-height: 48px;
    }
    .header.is-sticky .header__logo-img {
        height: 38px;
        max-height: 44px;
    }
    .nav__list {
        gap: clamp(0.85rem, 1.6vw, 1.35rem);
        row-gap: 0.45rem;
        justify-content: center;
    }
    .nav__link {
        font-size: clamp(0.74rem, 0.22vw + 0.68rem, 0.85rem);
        letter-spacing: 0.04em;
    }
    .header .header__extra a.btn-primary.header__cta-btn {
        padding: 0.52rem 1.15rem;
        font-size: clamp(0.7rem, 0.15vw + 0.65rem, 0.78rem);
    }
    .header__extra {
        gap: 0.55rem;
    }
}

.nav__link {
    text-decoration: none;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover { color: var(--clr-action-hover); }

/* Beyaz tema: sadece üst bar — yatay menüde hafif mavi hover (site geneline yayılmaz) */
html:not([data-theme="dark"]) .header .nav__list > .nav__item > .nav__link:hover,
html:not([data-theme="dark"]) .header .nav__list > .nav__item > .nav__link:focus-visible {
    color: #3a6d8e;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--clr-secondary);
    transition: var(--transition);
}

.nav__link:hover::after { width: 100%; }

/* Üst menü: AI — site sarısı */
button.nav__link {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    padding: 0;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav__link--ai {
    color: var(--clr-on-gold) !important;
    background: var(--clr-secondary);
    padding: 0.4rem 0.85rem !important;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(241, 149, 17, 0.38);
    text-transform: none;
    letter-spacing: 0.1em;
    font-weight: 800;
    line-height: 1.2;
}

.nav__link--ai::after {
    display: none;
}

.nav__link--ai:hover {
    color: var(--clr-on-gold) !important;
    background: #d9830f;
    box-shadow: 0 4px 16px rgba(241, 149, 17, 0.48);
}

/* ── Dropdown Menu ───────────────────────────────────────────────────────── */
.nav__item { position: relative; }
.nav__dropdown {
    position: absolute;
    top: 100%; left: 0;
    width: 240px;
    background: var(--clr-surface);
    list-style: none;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--clr-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}
.nav__item--has-dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--clr-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
/* Açılır alt menü: yalnızca beyaz tema + masaüstü header (koyu tema themes.css’te) */
html:not([data-theme="dark"]) .header .nav__dropdown li a:hover {
    background: rgba(45, 95, 140, 0.12);
    color: #2a5f86;
    padding-left: 2rem;
}

/* ── Sticky Sidebar: ince rail (mobil + masaüstü) ──────────────────────────── */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    z-index: 999;
    filter: drop-shadow(-3px 4px 12px rgba(0, 0, 0, 0.14));
}

.right-sidebar__panel-wrap {
    display: block;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.28s ease;
}

.right-sidebar.is-open .right-sidebar__panel-wrap {
    max-width: 36px;
}

.right-sidebar__panel {
    display: flex;
    flex-direction: column;
    width: 36px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 0 0 10px;
    box-shadow: -2px 4px 14px rgba(0, 0, 0, 0.1);
}

.right-sidebar__tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 52px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: #121212;
    color: #fff;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 3px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.right-sidebar:not(.is-open) .right-sidebar__tab {
    border-radius: 10px 0 0 10px;
}

.right-sidebar.is-open .right-sidebar__tab {
    border-radius: 10px 0 0 0;
}

.right-sidebar__tab:hover {
    background: #2a2a2a;
    color: #fff;
}

.right-sidebar__tab-icon {
    font-size: 0.72rem;
    line-height: 1;
}

/* ── Sol rail: sağ rail ile aynı blok (ikon kolonu üstte, sekme altta); column kullanıyoruz
   çünkü column-reverse + [panel, tab] DOM’da sekmeyi üste iter ─────────────────── */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    z-index: 999;
    filter: drop-shadow(3px 4px 12px rgba(0, 0, 0, 0.14));
}
.left-sidebar__panel-wrap {
    display: block;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.28s ease;
}
.left-sidebar.is-open .left-sidebar__panel-wrap {
    max-width: 36px;
}
.left-sidebar__panel {
    display: flex;
    flex-direction: column;
    width: 36px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 0 10px 0;
    box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.1);
}
.left-sidebar__tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 52px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: #121212;
    color: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.left-sidebar:not(.is-open) .left-sidebar__tab {
    border-radius: 0 10px 10px 0;
}
.left-sidebar.is-open .left-sidebar__tab {
    border-radius: 0 10px 0 0;
}
.left-sidebar__tab:hover {
    background: #2a2a2a;
    color: #fff;
}
.left-sidebar__tab-icon {
    font-size: 0.72rem;
    line-height: 1;
}
.left-sidebar__panel .sidebar__item--partner {
    height: auto;
    min-height: 40px;
    padding: 6px 4px;
}
.left-sidebar__partner-logo {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    object-fit: contain;
}

.right-sidebar__panel .right-sidebar__theme.theme-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-shrink: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--clr-sidebar-tile);
    color: var(--clr-sidebar-ink);
    font-size: 0.88rem;
}
.right-sidebar__panel .right-sidebar__theme.theme-toggle:hover {
    background: var(--clr-secondary);
    color: var(--clr-on-gold);
    border-color: transparent;
}
.right-sidebar__panel .right-sidebar__theme.theme-toggle:focus-visible {
    outline: 2px solid var(--clr-secondary);
    outline-offset: -2px;
    z-index: 1;
}

.sidebar__lang {
    display: flex;
    flex-direction: column;
    border-bottom: none;
}

.sidebar__lang-item {
    background: var(--clr-sidebar-tile);
    color: var(--clr-sidebar-ink);
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-sizing: border-box;
}

.sidebar__lang-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

a.sidebar__lang-item:hover {
    background: var(--clr-secondary);
    color: var(--clr-on-gold);
    width: 36px;
}

.sidebar__lang-item--current {
    background: var(--clr-secondary);
    color: var(--clr-on-gold);
    cursor: default;
}

.sidebar__item {
    background: var(--clr-sidebar-tile);
    color: var(--clr-sidebar-ink);
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar__item:last-child {
    border-bottom: none;
}

.sidebar__item:hover {
    background: var(--clr-secondary);
    color: var(--clr-on-gold);
    width: 36px;
}

.sidebar__item i {
    font-size: 0.88rem;
}

.sidebar__item--rail-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    min-height: 72px;
    height: auto;
    padding: 10px 0;
    background: var(--clr-secondary);
    color: var(--clr-on-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(28, 33, 40, 0.1);
}

.sidebar__item--rail-cta:hover {
    width: 36px;
    background: #f5c400;
    color: var(--clr-on-gold);
}

.sidebar__rail-cta-text {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    max-height: 5.5rem;
    overflow: hidden;
}

.sidebar__item--rail-cta i {
    font-size: 0.82rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    background: var(--clr-light);
    color: var(--clr-primary);
    padding: 6rem 0 0;
    margin-top: auto;
    border-top: 1px solid var(--clr-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer__logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 0.35rem;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}
.footer__logo-img {
    display: block;
    height: 52px;
    width: auto;
    aspect-ratio: var(--logo-viewbox-w) / var(--logo-viewbox-h);
    max-width: min(280px, 90vw);
    object-fit: contain;
    object-position: left center;
}

.footer__logo-img--dark {
    display: none;
}
html[data-theme="dark"] .footer__logo-img--light {
    display: none;
}
html[data-theme="dark"] .footer__logo-img--dark {
    display: block;
}

.footer__tagline {
    color: var(--clr-muted);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer__title {
    color: var(--clr-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__title--company {
    font-size: 0.96rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
}

.footer__title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 3px; background: var(--clr-secondary);
}

.footer__link {
    color: var(--clr-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer__link:hover {
    color: var(--clr-secondary);
    padding-left: 8px;
}

.footer__bottom {
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.35rem 0 1.5rem;
    text-align: center;
    background: var(--clr-light);
    border-top: 1px solid var(--clr-border);
}
.footer__copyright {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
    letter-spacing: 0.02em;
}

.footer__credit {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-primary);
}
.footer__credit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.footer__credit-link:hover {
    color: var(--clr-secondary);
}
.footer__credit-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

/* ── Footer Social Media ──────────────────────────────────────────────────── */
.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    background: var(--clr-bg-alt);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--clr-border);
    font-size: 0.9rem;
}

.footer__social-link:hover {
    background: var(--clr-secondary);
    color: var(--clr-primary);
    border-color: var(--clr-secondary);
    transform: translateY(-3px);
}

/* ── Mobile Header & Extra ─────────────────────────────────────────────────── */
.header__extra { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; position: relative; z-index: 2; }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--clr-border);
    border-radius: 4px;
    background: var(--clr-bg-alt);
    color: var(--clr-action);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
    border-color: var(--clr-action-hover);
    color: var(--clr-action-hover);
}
.theme-toggle .fa-moon { display: inline-block; }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 2rem; font-family: var(--font-heading); font-weight: 700;
    text-decoration: none; border-radius: 4px; transition: var(--transition);
    cursor: pointer; font-size: 0.9rem; text-transform: uppercase;
}
.btn-primary {
    background: var(--clr-action);
    color: #fff;
    border: 2px solid var(--clr-action);
}
.btn-primary:hover {
    background: var(--clr-action-hover);
    border-color: var(--clr-action-hover);
    color: #fff;
    box-shadow: 0 10px 26px rgba(45, 60, 78, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--clr-action);
    border: 2px solid var(--clr-action);
}
.btn-outline:hover {
    background: var(--clr-action-hover);
    color: #fff;
    border-color: var(--clr-action-hover);
}

/* home.css vb. sonradan gelen .btn-primary padding’ini üst bar CTA’sında uygulama */
.header .header__extra a.btn-primary.header__cta-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Mobil: sade — çerçeve/kutu yok, çizgiler currentColor ile */
.hamburger-btn {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--clr-action);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}
.hamburger-btn:hover {
    opacity: 0.82;
}
.hamburger-btn:active {
    transform: scale(0.94);
}
.hamburger-btn__lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hamburger-btn__line {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.25s ease;
    transform-origin: center;
}
.hamburger-btn__line:nth-child(2) {
    width: 13px;
}
.hamburger-btn.is-active .hamburger-btn__line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-btn__line:nth-child(2) {
    opacity: 0;
    width: 22px;
    transform: scaleX(0);
}
.hamburger-btn.is-active .hamburger-btn__line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Floating Utilities (WP Left, Scroll Top Right) ──────────────────────── */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-action);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 22px rgba(45, 60, 78, 0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid rgba(61, 92, 120, 0.35);
}
.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 28px rgba(45, 60, 78, 0.35);
    color: #fff;
    background-color: var(--clr-action-hover);
    border-color: rgba(61, 92, 120, 0.5);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--clr-action);
    color: #fff;
    border: 2px solid var(--clr-action);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 18px rgba(45, 60, 78, 0.28);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover {
    background-color: var(--clr-action-hover);
    color: #fff;
    border-color: var(--clr-action-hover);
    box-shadow: 0 8px 24px rgba(45, 60, 78, 0.32);
}

@media (max-width: 1024px) {
    :root {
        --header-h: 70px;
    }

    /* Menü açık: sayfa karartması — tıklanabilir (dışarı dokununca kapanır) */
    body.nav-mobile-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(15, 23, 42, 0.35);
        pointer-events: auto;
        cursor: pointer;
        animation: imesNavDim 0.35s ease forwards;
    }
    @keyframes imesNavDim {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Mobil menü açıkken yüzen WA / yukarı çık üstte kalmasın (aynı z-index + DOM sırası) */
    body.nav-mobile-open .floating-wa,
    body.nav-mobile-open .scroll-top-btn,
    body.nav-mobile-open .scroll-top-btn.is-visible {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(16px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }
    body.nav-mobile-open .left-sidebar {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-50%) translateX(-12px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .hamburger-btn { display: inline-flex; }

    /* Panel (9999) üstünde kalsın: çarpı görünsün ve tıklanabilsin */
    .header__inner:has(.nav.is-open) .header__extra {
        position: relative;
        z-index: 10050;
    }
    .header__inner:has(.nav.is-open) .hamburger-btn {
        z-index: 1;
    }

    /* Menü açıkken çizgiler her zaman okunaklı (ana sayfa beyaz çizgi + beyaz header) */
    body.nav-mobile-open .hamburger-btn {
        color: var(--clr-action);
        filter: none;
    }
    
    .header__inner { height: 70px; }
    .header .header__extra a.btn-primary.header__cta-btn {
        display: none;
    }
    
    .nav { 
        display: flex; 
        position: fixed; 
        top: 0; 
        right: 0; 
        /* Dar panel: daha az ekran kaplar, arkada daha fazla içerik görünür */
        width: min(17rem, 78vw);
        max-width: 100%;
        min-height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column; 
        align-items: stretch; 
        justify-content: flex-start; 
        padding: 4rem 0 1.25rem;
        border-left: 3px solid var(--clr-secondary);
        transform: translateX(100%); 
        opacity: 0; 
        visibility: hidden;
        pointer-events: none; 
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s;
        z-index: 9999; 
        box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
    }
    .nav.is-open { 
        transform: translateX(0); 
        opacity: 1; 
        visibility: visible;
        pointer-events: auto; 
    }
    
    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
        list-style: none;
        padding: 0 0.85rem;
    }
    /* Mobil: İletişim en üstte (masaüstü sırası değişmez) */
    .nav__list > .nav__item--contact {
        order: -1;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
    .nav__item {
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
    .nav__link {
        display: block;
        font-size: 0.98rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: var(--clr-primary);
        border-bottom: none !important;
        padding: 0.8rem 0.35rem 0.8rem 0.15rem;
    }
    .nav__link::after { display: none; }
    .nav__link:hover,
    .nav__link:focus-visible {
        color: var(--clr-secondary);
    }

    .nav__link--ai {
        width: calc(100% - 0.5rem);
        margin: 0.35rem 0.25rem;
        text-align: center;
        padding: 0.75rem 1rem !important;
    }
    .nav__link--ai:hover,
    .nav__link--ai:focus-visible {
        color: var(--clr-on-gold) !important;
        background: #d9830f;
    }
    
    .nav__dropdown { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        background: rgba(15, 23, 42, 0.04); 
        box-shadow: none; 
        border-top: none; 
        padding: 0; 
        height: 0; 
        overflow: hidden; 
        width: 100%;
        border-radius: 0 0 6px 6px;
        transition: height 0.32s ease;
    }
    .nav__item--has-dropdown.is-active .nav__dropdown { height: auto; padding: 0.35rem 0 0.85rem; }
    .nav__dropdown li a {
        color: #475569;
        font-size: 0.95rem;
        padding: 0.55rem 0.75rem 0.55rem 1rem;
        border-radius: 4px;
    }
    .nav__dropdown li a:hover {
        background: rgba(234, 182, 0, 0.15);
        color: var(--clr-secondary);
    }
    
    .floating-wa { width: 50px; height: 50px; font-size: 1.8rem; left: 15px; bottom: 15px; }
    .scroll-top-btn { width: 45px; height: 45px; font-size: 1.2rem; right: 15px; bottom: 15px; }

    .right-sidebar,
    .left-sidebar {
        top: 44%;
    }
}

/* ── Utility: Blueprint Pattern ────────────────────────────────────────── */
.bg-blueprint {
    background-color: #fff;
    background-image:
        linear-gradient(rgba(28, 33, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 33, 40, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Gallery Simple Hover ────────────────────────────────────────────────── */
.gallery-item:hover img { transform: none; }
.gallery-item:hover .gallery-overlay { opacity: 1 !important; }

/* ── Fade-Up (Aşağı indikçe yükleme efekti) ──────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ── Utility Classes ─────────────────────────────────────────────────────── */
.bg-navy { background-color: var(--clr-primary) !important; color: #fff !important; }
/* Başlıklar global h1–h4 rengini alıyor; zemin de --clr-primary olunca yazı görünmez */
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: #fff !important;
}
.bg-light { background-color: var(--clr-bg-alt) !important; }
.text-white { color: #fff !important; }
.text-secondary { color: var(--clr-secondary) !important; }
