/* ==========================================================================
   TOP HEADER STYLES
   ========================================================================== */

.mepa-topheader {
    background-color: #fff;
    color: #333;
    font-size: 1.3rem;
    padding: 0;
    height: 35px;
    position: relative;
    z-index: 1001;
}

.mepa-topheader .mepa-container {
    padding-right: 35px;
}

.mepa-topheader-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.mepa-contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mepa-location,
.mepa-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
}

.mepa-phone:hover {
    color: var(--mepa-primary-color, #00a8e2);
    text-decoration: none;
}

.mepa-social-media {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mepa-topheader-custom-text {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* GTranslate bayraklarını hızlı teklif bağlantısının hemen yanında tut. */
.mepa-topheader-language {
    display: flex;
    align-items: center;
    min-height: 28px;
}

.mepa-topheader-language .gt_switcher_wrapper {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1002;
}

.mepa-quick-quote {
    position: fixed;
    z-index: 99999;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}

.mepa-quick-quote.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mepa-quick-quote__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(10, 20, 35, 0.58);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .3s ease;
}

.mepa-quick-quote.is-open .mepa-quick-quote__backdrop { opacity: 1; }

.mepa-quick-quote__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 480px);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    box-shadow: -15px 0 40px rgba(0, 0, 0, .2);
    transform: translateX(100%);
    transition: transform .35s ease;
}

.mepa-quick-quote.is-open .mepa-quick-quote__panel { transform: translateX(0); }

.mepa-quick-quote__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    background: var(--mepa-primary-color, #00a8e2);
    color: #fff;
}

.mepa-quick-quote__header h2 { margin: 0; color: #fff; font-size: 25px; }
.mepa-quick-quote__close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 18px; cursor: pointer; }
.mepa-quick-quote__form { padding: 25px; }
.mepa-quick-quote__form label { display: block; margin-bottom: 16px; color: #25324a; font-size: 14px; font-weight: 600; }
.mepa-quick-quote__form input, .mepa-quick-quote__form textarea { box-sizing: border-box; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #cbd6e5; border-radius: 8px; color: #243047; font: inherit; font-weight: 400; }
.mepa-quick-quote__form textarea { resize: vertical; }
.mepa-quick-quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mepa-quick-quote__services { margin: 0 0 22px; padding: 16px; border: 1px solid #dbe4f0; border-radius: 10px; }
.mepa-quick-quote__services legend { padding: 0 5px; color: #25324a; font-weight: 700; }
.mepa-quick-quote__service-list { display: grid; gap: 9px; margin-top: 8px; }
.mepa-quick-quote__service-list label { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 500; cursor: pointer; }
.mepa-quick-quote__service-list input { width: 17px; height: 17px; margin: 0; accent-color: var(--mepa-primary-color, #00a8e2); }
.mepa-quick-quote__empty { color: #6e7a90; font-size: 13px; }
.mepa-quick-quote__submit, .mepa-quick-quote__whatsapp { width: 100%; padding: 15px; border: 0; border-radius: 8px; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mepa-quick-quote__submit { margin-top: 3px; background: var(--mepa-primary-color, #00a8e2); }
.mepa-quick-quote__whatsapp { margin-top: 11px; background: #25d366; }
.mepa-quick-quote__message { display: none; margin-top: 13px; padding: 10px; border-radius: 7px; font-size: 13px; }
.mepa-quick-quote__message.is-success, .mepa-quick-quote__message.is-error { display: block; }
.mepa-quick-quote__message.is-success { background: #e8f8ed; color: #16743a; }
.mepa-quick-quote__message.is-error { background: #fff0f0; color: #a12727; }
body.mepa-quick-quote-open { overflow: hidden; }

@media (max-width: 520px) {
    .mepa-quick-quote__form { padding: 20px; }
    .mepa-quick-quote__row { grid-template-columns: 1fr; gap: 0; }
}

.mepa-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mepa-social-link:hover {
    color: var(--mepa-primary-color, #00a8e2);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.mepa-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.mepa-header.is-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    animation: mepa-header-slide-down .2s ease-out;
}

/* Havada Menü: Yalnızca ana sayfada dış header saydam, iç menü alanı beyazdır. */
body.mepa-floating-menu-home .mepa-header {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    width: 100%;
}

body.mepa-floating-menu-home .mepa-header .mepa-header-inner {
    height: 88px;
    margin: 18px 0;
    padding: 0 34px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

body.mepa-floating-menu-home .mepa-header.is-fixed {
    position: fixed;
    top: 0;
}

@media (max-width: 1200px) {
    body.mepa-floating-menu-home .mepa-header .mepa-header-inner {
        height: 74px !important;
        margin: 12px 0;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    body.mepa-floating-menu-home .mepa-header {
        position: relative;
    }

    body.mepa-floating-menu-home .mepa-header .mepa-header-inner {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@keyframes mepa-header-slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.mepa-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 116px;
    padding: 0;
    flex-wrap: nowrap;
    flex-direction: row;
}

.mepa-logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
}

/* Site Logo */
.mepa-site-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.mepa-site-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.mepa-site-logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mepa-site-logo .mepa-site-tagline {
    display: block;
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.3rem;
}

/* WordPress Custom Logo */
.custom-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Site Title (fallback) */
.mepa-site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   NAVIGATION - Dropdown stilleri mepa-megamenu.css'te
   ========================================================================== */
