/* ============================================================
   layout-modern.css - Modern header + footer (_LayoutModern)
   Tema #header/#footer'a dokunmaz; yeni .mh-* markup'ini biçimler.
   ============================================================ */

:root {
    --mh-red: #E84545;
    --mh-red-d: #cf3636;
    --mh-navy: #0a192f;
    --mh-navy-2: #112240;
    --mh-teal: #26a69a;
    --mh-ink: #0f1b2d;
    --mh-slate: #5b6684;
    --mh-line: #e7ebf3;
}

body.mh-body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--mh-ink);
    padding-top: 72px; /* sabit header yuksekligi */
}

.mh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- HEADER ---------------- */
.mh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(15, 27, 45, .07);
    transition: box-shadow .25s ease, background .25s ease;
}

    .mh-header.mh-scrolled {
        box-shadow: 0 8px 30px rgba(15, 27, 45, .09);
        background: rgba(255, 255, 255, .96);
    }

.mh-header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.mh-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .mh-logo img {
        height: 34px;
        width: auto;
        display: block;
    }

/* nav */
.mh-nav {
    flex: 1;
}

    .mh-nav > ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mh-nav li {
        position: relative;
    }

    .mh-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        font-size: .96rem;
        font-weight: 500;
        color: #2c384e;
        text-decoration: none;
        border-radius: 9px;
        white-space: nowrap;
        transition: color .18s ease, background .18s ease;
    }

        .mh-nav > ul > li > a:hover {
            color: var(--mh-red);
            background: rgba(232, 69, 69, .06);
        }

    .mh-nav .mh-has-sub > a::after {
        content: "\25BE"; /* asagi ucgen, font-bagimsiz */
        font-size: .7rem;
        opacity: .55;
        margin-left: 2px;
    }

/* dropdown */
.mh-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 232px;
    background: #fff;
    border: 1px solid var(--mh-line);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(15, 27, 45, .14);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.mh-nav li:hover > .mh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mh-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: .92rem;
    font-weight: 500;
    color: #38445c;
    text-decoration: none;
    border-radius: 9px;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

    .mh-dropdown a:hover {
        background: #f4f6fb;
        color: var(--mh-red);
    }

/* actions */
.mh-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mh-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .84rem;
    font-weight: 600;
}

    .mh-lang a {
        color: #9aa4ba;
        text-decoration: none;
        padding: 4px 6px;
        border-radius: 6px;
        transition: color .16s ease;
    }

        .mh-lang a:hover {
            color: var(--mh-ink);
        }

    .mh-lang a.mh-lang-active {
        color: var(--mh-red);
    }

    .mh-lang .mh-lang-sep {
        color: #d3d9e6;
    }

.mh-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mh-red);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(232, 69, 69, .28);
    transition: transform .18s ease, background .18s ease;
    white-space: nowrap;
}

    .mh-cta:hover {
        background: var(--mh-red-d);
        color: #fff;
        transform: translateY(-1px);
    }

.mh-burger {
    display: none;
    width: 44px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

    .mh-burger span {
        display: block;
        height: 2.5px;
        width: 24px;
        margin: 0 auto;
        background: var(--mh-ink);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }

.mh-body.mh-menu-open .mh-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mh-body.mh-menu-open .mh-burger span:nth-child(2) { opacity: 0; }
.mh-body.mh-menu-open .mh-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- FOOTER ---------------- */
.mh-footer {
    background: var(--mh-navy);
    color: #b9c4da;
    padding: 66px 0 0;
}

.mh-foot-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 34px;
}

.mh-foot-brand img {
    height: 34px;
    margin-bottom: 18px;
}

.mh-foot-brand p {
    font-size: .95rem;
    line-height: 1.7;
    color: #8ea3c4;
    margin: 0 0 20px;
    max-width: 300px;
}

.mh-social {
    display: flex;
    gap: 10px;
}

    .mh-social a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .06);
        color: #cdd8ee;
        text-decoration: none;
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }

        .mh-social a:hover {
            background: var(--mh-red);
            color: #fff;
            transform: translateY(-2px);
        }

.mh-foot-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px;
}

.mh-foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mh-foot-col li {
    margin-bottom: 10px;
}

.mh-foot-col a {
    color: #94a4c2;
    text-decoration: none;
    font-size: .92rem;
    transition: color .16s ease;
}

    .mh-foot-col a:hover {
        color: #fff;
    }

.mh-foot-bottom {
    margin-top: 54px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    text-align: center;
    font-size: .86rem;
    color: #7d8eae;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
    .mh-burger { display: flex; }

    .mh-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex: none;
        padding: 18px 20px 40px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,.1);
    }

    .mh-body.mh-menu-open .mh-nav {
        transform: translateX(0);
    }

    .mh-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

        .mh-nav > ul > li > a {
            padding: 14px 12px;
            font-size: 1.05rem;
            border-radius: 10px;
        }

    /* mobilde alt menuler acik gosterilir */
    .mh-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--mh-line);
        border-radius: 0;
        margin: 2px 0 8px 14px;
        padding: 2px 0;
        min-width: 0;
    }

    .mh-nav .mh-has-sub > a::after { display: none; }

    .mh-foot-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mh-foot-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .mh-foot-top { grid-template-columns: 1fr; }
    .mh-cta span.mh-cta-txt { display: none; } /* dar ekranda sadece ikon */
    .mh-container { padding: 0 18px; }
}
