/* =========================================================
   AİLE ÖZEL DEDEKTİFLİK - YENİ HEADER
   Masaüstü / Tablet: %25 Logo - %35 Orta - %40 Sağ
   Mobil: Logo + Hamburger
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-header {
    width: 100%;
    position: relative;
    z-index: 9999;
    background: #ffffff;
}


/* =========================================================
   ÜST KOYU İLETİŞİM BAR
   ========================================================= */

.top-contact-bar {
    width: 100%;
    background: #07172c;
    color: #ffffff;
}

.top-contact-inner {
    width: 100%;
    max-width: 1920px;
    min-height: 64px;
    margin: 0 auto;

    display: flex;
    align-items: stretch;

    padding: 0 18px;
}


/* Sosyal medya bölümü */
.top-socials {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-right: 16px;
    margin-right: 4px;

    border-right: 1px solid rgba(255,255,255,0.18);
}

.top-socials a {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1265a5;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}

.top-socials a:hover {
    transform: translateY(-2px);
    background: #1d80c5;
}


/* İletişim kartları */
.contact-card {
    min-width: 0;

    flex: 1 1 auto;

    display: flex;
    align-items: center;

    padding: 0 14px;

    color: #ffffff;
    text-decoration: none;

    border-right: 1px solid rgba(255,255,255,0.14);

    transition: background .2s ease;
}

.contact-card:hover {
    background: rgba(255,255,255,0.06);
}

.contact-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    margin-right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1974bd;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    text-align: center;
}

.contact-icon.whatsapp {
    background: #20c75a;
}

.contact-icon.telegram {
    background: #2797d6;
}

.contact-icon.skype {
    background: #178ed1;
}

.contact-icon.email {
    background: #ffffff;
    color: #d8492d;
}

.contact-icon.address {
    background: #ffffff;
    color: #1b3556;
    font-size: 13px;
}

.top-socials .fa,
.contact-icon .fa {
    line-height: 1;
    display: block;
    font-size: 20px;
}

.contact-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1.15;
}

.contact-text strong {
    display: block;

    margin-bottom: 2px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.contact-text small {
    display: block;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;

    white-space: nowrap;
}


/* Adres biraz daha geniş */
.address-card {
    flex: 1.35 1 auto;
    border-right: 0;
}


/* =========================================================
   MASAÜSTÜ / TABLET
   ========================================================= */

.desktop-header {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background-image: url("../images/header-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;

    /* İSTENEN ORANLAR */
    grid-template-columns: 30% 40% 30%;

    align-items: stretch;

    background: url("../images/header-bg.png") no-repeat cover center;
    overflow: hidden;
}

.header-piece {
    min-width: 0;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.header-piece a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.header-piece img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
}


/* =========================================================
   SOL - LOGO %25
   ========================================================= */

.header-logo {
    width: 100%;
    padding: 10px;
}

.header-logo img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* =========================================================
   ORTA - %35
   ========================================================= */

.header-center {
    width: 100%;
    padding: 5px 4px;
}

.header-center img {
    width: 100%;
    object-fit: contain;
}


/* =========================================================
   SAĞ - %40
   ========================================================= */

.header-right {
    width: 100%;
    padding: 0;
}

.header-right img {
    width: 100%;
    object-fit: contain;
}



/* =========================================================
   MASAÜSTÜ MENÜ
   ========================================================= */

.desktop-navigation {
    width: 100%;

    background: linear-gradient(
        90deg,
        #bf0101 0%,
        #590100 100%
    );

    position: relative;
    z-index: 9998;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);
}

.desktop-navigation-inner {
    width: 100%;
    max-width: 1920px;
    min-height: 58px;

    margin: 0 auto;

    display: flex;
    align-items: stretch;
    justify-content: center;
}

.desktop-menu {
    width: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    list-style: none;

    margin: 0;
    padding: 0 10px;
}

.desktop-menu li {
    position: relative;

    display: flex;
    align-items: stretch;

    margin: 0;
    padding: 0;
}

.desktop-menu li + li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 1px;
    height: 24px;

    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.28);
}

.desktop-menu a {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 18px;

    color: #ffffff;

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.desktop-menu a i {
    width: 18px;

    text-align: center;

    font-size: 16px;

    color: #ffffff;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.desktop-menu a:hover,
.desktop-menu a:focus {
    background: rgba(0, 0, 0, 0.20);
    color: #ffffff;

    outline: none;

    box-shadow:
        inset 0 -3px 0 rgba(255, 255, 255, 0.85);
}

.desktop-menu a:hover i,
.desktop-menu a:focus i {
    color: #ffffff;

    transform: translateY(-1px);
}


/* Aktif menü */
.desktop-menu li.active > a {
    background: rgba(0, 0, 0, 0.18);

    box-shadow:
        inset 0 -3px 0 #ffffff;
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .header-center {
        padding: 4px 2px;
    }
    .desktop-navigation {
        display: none;
    }
    .desktop-header{
        display: none;
    }
    .top-contact-bar {
        display: none;
    }
    .mobile-header{
        display: flex!important;
    }

}



/* =========================================================
   MOBİLDE MASAÜSTÜ MENÜYÜ GİZLE
   ========================================================= */

@media (max-width: 767px) {

    .desktop-navigation {
        display: none;
    }
}

/* =========================================================
   MOBİL
   ========================================================= */

.mobile-header {
    display: none;

    width: 100%;
    min-height: 74px;
    padding: 8px 15px;

    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.mobile-logo {
    display: block;
    width: auto;
    max-width: 72%;
}

.mobile-logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.menu-toggle {
    width: 48px;
    height: 48px;
    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    border: 0;
    border-radius: 4px;
    background: #8d0000;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 3px;

    background: #ffffff;
    border-radius: 3px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =========================================================
   MOBİL MENÜ
   ========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;

    visibility: hidden;
    opacity: 0;

    background: rgba(0, 0, 0, 0.55);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;

    width: min(360px, 88%);
    height: 100%;

    padding: 25px 25px 40px;

    overflow-y: auto;

    background: #ffffff;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.mobile-menu-close {
    display: block;

    width: 42px;
    height: 42px;

    margin: 0 0 30px auto;

    border: 0;
    background: transparent;

    color: #8d0000;
    font-size: 36px;
    line-height: 36px;

    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin: 0;
    padding: 0;

    border-bottom: 1px solid #eeeeee;
}

.mobile-menu li a {
    display: block;

    padding: 17px 5px;

    color: #222222;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-menu li a:hover {
    color: #8d0000;
    padding-left: 10px;
}


/* =========================================================
   MOBİL BREAKPOINT
   ========================================================= */

@media (max-width: 767px) {

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

}


/* =========================================================
   MOBİL
   Üst iletişim barı ve masaüstü header tamamen gizlenir.
   ========================================================= */

@media (max-width: 767px) {

    .top-contact-bar {
        display: none;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }
}


/* =========================================================
   KÜÇÜK TELEFON
   ========================================================= */

@media (max-width: 380px) {

    .mobile-header {
        min-height: 68px;
        padding: 7px 12px;
    }

    .mobile-logo img {
        height: 52px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }
}
