/* ============================================================
   NAVBAR.CSS
   Bootstrap responsive visibility ile uyumlu sürüm
   ============================================================ */

/* ── WRAP ── */
.nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
    background-color: #e8e8e8;
    transition: background-color 0.4s ease-in-out;
}

.nav-wrap.scrolled {
    background-color: transparent;
}

body {
    padding-top: 110px;
}

/* ── KAPSÜL ── */
.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(11, 60, 93, 0.12);
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    overflow: visible;
    width: 100%;
}

/* ── LOGO ── */
.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 58px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* ── DESKTOP NAV ── */
.desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.desktop-nav .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
    min-width: 0;
}

/* ── NAV LINKS ── */
.navbar-nav .nav-item {
    position: relative;
    flex: 0 0 auto;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.82);
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
    color: #0b3c5d;
}

/* underline */
.navbar-nav .nav-link::before,
.navbar-nav .dropdown-toggle::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(11, 60, 93, 0.85);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before,
.navbar-nav .dropdown-toggle:hover::before,
.navbar-nav .dropdown-toggle.show::before,
.navbar-nav .dropdown-toggle.active::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Bootstrap caret kapat */
.navbar .dropdown-toggle::after,
.navbar .dropdown-toggle.nav-no-caret::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    margin: 0 !important;
}

/* ── SAĞ BLOK ── */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 14px;
}

/* ── CTA BUTTON ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #0f2443;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.22s cubic-bezier(.4,0,.2,1),
        box-shadow 0.22s cubic-bezier(.4,0,.2,1),
        filter 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (hover:hover) {
    .cta-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
        filter: brightness(1.04);
    }
}

.cta-btn:active,
.cta-btn:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.cta-btn.cta-pill {
    gap: 10px;
    padding: 12px 18px;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f2443 0%, #0b2b52 55%, #091f3a 100%);
    box-shadow: 0 10px 22px rgba(15, 36, 67, 0.22), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cta-btn.cta-pill i {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0.5px);
}

/* ── HAMBURGER ── */
.menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(11, 60, 93, 0.14);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.menu-btn .menu-icon {
    color: #0b3c5d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── DROPDOWN ── */
.navbar .dropdown-menu.nav-dd {
    --dd-bg: rgba(255,255,255,0.96);
    --dd-border: rgba(11, 60, 93, 0.10);
    --dd-shadow1: rgba(11, 60, 93, 0.15);
    --dd-shadow2: rgba(0,0,0,0.05);
    --dd-blue: #0b3c5d;
    --dd-gold: #c5a059;

    border: 1px solid var(--dd-border) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    min-width: 280px;
    background: var(--dd-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px var(--dd-shadow1), 0 5px 15px var(--dd-shadow2) !important;
    transform-origin: top center;
    animation: dropFadeIn 0.20s ease-out forwards;
    z-index: 3000;
}

@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-menu.nav-dd::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--dd-bg);
    transform: rotate(45deg);
    border-top: 1px solid var(--dd-border);
    border-left: 1px solid var(--dd-border);
}

.navbar .dropdown-menu.nav-dd .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    white-space: normal;
    font-weight: 800;
    color: rgba(11, 60, 93, 0.92);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.navbar .dropdown-menu.nav-dd .dropdown-item:hover,
.navbar .dropdown-menu.nav-dd .dropdown-item:focus {
    background: rgba(11, 60, 93, 0.04);
    transform: translateX(4px);
}

.navbar .dropdown-menu.nav-dd .dropdown-item.active,
.navbar .dropdown-menu.nav-dd .dropdown-item:active {
    background: rgba(197, 160, 89, 0.15) !important;
    border: 1px solid rgba(197, 160, 89, 0.20);
}

/* ikon / metin */
.dd-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 60, 93, 0.08);
    color: var(--dd-blue);
    border-radius: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar .dropdown-menu.nav-dd .dropdown-item:hover .dd-icon {
    background: var(--dd-blue);
    color: #fff;
    box-shadow: 0 4px 10px rgba(11, 60, 93, 0.30);
}

.dd-text {
    display: flex;
    flex-direction: column;
}

.dd-text .title {
    font-weight: 800;
    color: var(--dd-blue);
    font-size: 0.95rem;
    line-height: 1.2;
}

.dd-text .desc {
    font-size: 0.75rem;
    color: rgba(11,60,93,0.58);
    margin-top: 2px;
    font-weight: 600;
}

.navbar .dropdown-menu.nav-dd .dropdown-item.active .dd-icon {
    background: var(--dd-gold);
    color: #fff;
}

.navbar .dropdown-menu.nav-dd .dropdown-item.active .dd-text .title {
    color: #8f6e30;
}

/* ============================================================
   SIDE DRAWER
   ============================================================ */

body.drawer-lock {
    overflow: hidden;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    background: #fff;
    z-index: 10999;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(11,60,93,0.08);
    flex-shrink: 0;
}

.drawer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.drawer-logo {
    height: 52px;
    width: auto;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(11,60,93,0.14);
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #0b3c5d;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: #e8edf2;
    transform: rotate(90deg);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(11,60,93,0.15) transparent;
}

.drawer-nav::-webkit-scrollbar {
    width: 4px;
}

.drawer-nav::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-nav::-webkit-scrollbar-thumb {
    background: rgba(11,60,93,0.15);
    border-radius: 4px;
}

.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.drawer-link i:first-child {
    font-size: 17px;
    color: #0b3c5d;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.drawer-link:hover {
    background: rgba(11,60,93,0.05);
    color: #0b3c5d;
    transform: translateX(3px);
}

.drawer-link.is-active {
    background: rgba(11,60,93,0.08);
    color: #0b3c5d;
}

.drawer-link.is-active i:first-child {
    color: #0b3c5d;
}

.drawer-chevron {
    font-size: 13px !important;
    width: auto !important;
    color: rgba(11,60,93,0.45) !important;
    transition: transform 0.25s ease !important;
}

.drawer-accordion-toggle[aria-expanded="true"] .drawer-chevron {
    transform: rotate(180deg);
}

.drawer-sub {
    list-style: none;
    margin: 4px 0 4px 34px;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.drawer-sub.open {
    display: flex;
}

.drawer-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(11,60,93,0.75);
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 2px solid rgba(11,60,93,0.12);
}

.drawer-sub-link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.drawer-sub-link:hover {
    background: rgba(11,60,93,0.05);
    color: #0b3c5d;
    border-left-color: #0b3c5d;
}

.drawer-sub-link.is-active {
    color: #0b3c5d;
    font-weight: 700;
    border-left-color: #c5a059;
    background: rgba(197,160,89,0.08);
}

/* drawer alt */
.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(11,60,93,0.08);
    flex-shrink: 0;
}

.drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f2443 0%, #0b2b52 55%, #091f3a 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 36, 67, 0.25);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-cta:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 36, 67, 0.32);
}

.drawer-cta i {
    font-size: 16px;
}

/* ============================================================
   DESKTOP DROPDOWN FIX
   ============================================================ */
@media (min-width: 1200px) {
    .side-drawer,
    .drawer-overlay {
        display: none !important;
    }

    .nav-pill,
    .navbar,
    .desktop-nav,
    .desktop-nav .navbar-nav,
    .navbar-nav .nav-item,
    .navbar-nav .dropdown,
    .navbar .dropdown-menu.nav-dd {
        overflow: visible !important;
    }

    .navbar .dropdown-menu.nav-dd {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        display: none;
    }

    .navbar .dropdown-menu.nav-dd.show {
        display: block;
    }
}

/* ============================================================
   TABLET / MOBILE
   Sadece boyut ayarı, görünürlük Bootstrap'ta
   ============================================================ */
@media (max-width: 1199.98px) {
    body {
        padding-top: 100px;
    }

    .nav-wrap {
        padding: 12px 0;
    }

    .nav-pill {
        gap: 12px;
        border-radius: 28px;
        padding: 10px 14px;
    }

    .navbar-logo {
        height: 54px;
    }

    .nav-right {
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 92px;
    }

    .nav-wrap {
        padding: 10px 0;
    }

    .nav-pill {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 22px;
    }

    .navbar-logo {
        height: 46px;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .side-drawer {
        width: min(320px, 92vw);
    }

    .drawer-header {
        padding: 14px 16px;
    }

    .drawer-footer {
        padding: 14px 16px;
    }
}

@media (max-width: 479.98px) {
    .navbar-logo {
        height: 40px;
    }

    .nav-pill {
        padding: 8px 10px;
    }

    .menu-btn {
        width: 40px;
        height: 40px;
    }
}