/* =========================================================
   DIRLIKLI SIGORTA
   NAVBAR / HEADER
========================================================= */


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    position: relative;
    z-index: 50;

    width: 100%;

    background: #063e44;
    color: rgba(255, 255, 255, 0.82);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


.topbar-inner {
    width: calc(100% - 40px);
    max-width: 1480px;

    height: 38px;

    margin: 0 auto;

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

    gap: 24px;

    font-size: 11px;
    line-height: 1;
}


.topbar-contact,
.topbar-location {
    display: flex;
    align-items: center;

    gap: 10px;

    white-space: nowrap;
}


.topbar a {
    color: inherit;

    text-decoration: none;

    transition:
        color 160ms ease;
}


.topbar a:hover,
.topbar a:focus-visible {
    color: #ffffff;
}


.topbar-contact > span,
.topbar-location > span[aria-hidden="true"] {
    opacity: 0.35;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 40;

    width: 100%;

    background: rgba(255, 255, 255, 0.99);

    border-bottom: 1px solid rgba(20, 50, 55, 0.08);

    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.035);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


/* =========================================================
   NAVBAR LAYOUT
========================================================= */

.nav-inner {
    position: relative;

    width: calc(100% - 48px);
    max-width: 1480px;

    min-height: 80px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    column-gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.navbar-brand {
    grid-column: 1;

    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    color: inherit;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   LOGO
========================================================= */

.navbar-logo {
    display: block;

    width: auto;
    height: 51px;

    max-width: 165px;

    flex: 0 0 auto;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   BRAND DIVIDER
========================================================= */

.navbar-brand-divider {
    width: 1px;
    height: 31px;

    flex: 0 0 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(10, 138, 149, 0.32),
            transparent
        );
}


/* =========================================================
   SLOGAN
========================================================= */

.navbar-slogan {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 4px;

    flex: 0 0 auto;

    white-space: nowrap;
}


.navbar-slogan-small {
    color: #808d90;

    font-size: 7px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.19em;

    text-transform: uppercase;
}


.navbar-slogan-main {
    color: #354448;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.025em;

    text-transform: uppercase;
}


/* =========================================================
   MAIN NAV
========================================================= */

.main-nav {
    grid-column: 2;

    min-width: 0;

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

    gap: 4px;

    white-space: nowrap;
}


/* =========================================================
   NAV LINK
========================================================= */

.main-nav > a {
    position: relative;

    height: 44px;

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

    padding: 0 10px;

    border-radius: 9px;

    color: #203b40;

    font-size: 11.5px;
    font-weight: 650;

    line-height: 1;

    text-decoration: none;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}


/* =========================================================
   NAV UNDERLINE
========================================================= */

.main-nav > a::after {
    content: "";

    position: absolute;

    left: 11px;
    right: 11px;
    bottom: 3px;

    height: 2px;

    border-radius: 999px;

    background: #0b929d;

    opacity: 0;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform 170ms ease,
        opacity 170ms ease;
}


.main-nav > a:hover,
.main-nav > a:focus-visible {
    color: #087d87;

    background: rgba(10, 139, 150, 0.05);
}


.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
    opacity: 1;

    transform: scaleX(1);
}


/* =========================================================
   ACTIVE NAV ITEM
========================================================= */

.main-nav > a.is-active,
.main-nav > a[aria-current="page"] {
    color: #087d87;
}


.main-nav > a.is-active::after,
.main-nav > a[aria-current="page"]::after {
    opacity: 1;

    transform: scaleX(1);
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.navbar-actions {
    grid-column: 3;

    display: flex;
    align-items: center;

    justify-self: end;

    gap: 8px;

    white-space: nowrap;
}


/* =========================================================
   TEKLIF AL
========================================================= */

.navbar-quote {
    height: 42px;

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

    padding: 0 17px;

    border: 1px solid #0a8994;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0c98a4,
            #098792
        );

    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(11, 144, 155, 0.17);

    font-size: 11px;
    font-weight: 750;

    line-height: 1;

    text-decoration: none;

    transition:
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}


.navbar-quote:hover,
.navbar-quote:focus-visible {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0a8792,
            #08757f
        );

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(11, 144, 155, 0.23);
}


/* =========================================================
   ACCOUNT
========================================================= */

.navbar-account {
    height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 0 11px 0 5px;

    border: 1px solid rgba(25, 58, 63, 0.12);
    border-radius: 10px;

    background: #ffffff;

    color: #243e43;

    text-decoration: none;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}


.navbar-account:hover,
.navbar-account:focus-visible {
    border-color: rgba(8, 133, 144, 0.25);

    background: rgba(8, 133, 144, 0.025);

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.05);
}


.navbar-account-avatar {
    width: 31px;
    height: 31px;

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

    flex: 0 0 31px;

    border-radius: 8px;

    background: #e7f7f8;

    color: #078995;

    font-size: 9px;
    font-weight: 800;
}


.navbar-account-name {
    max-width: 72px;

    overflow: hidden;

    color: #243e43;

    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   LOGIN
========================================================= */

.navbar-login {
    height: 42px;

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

    padding: 0 14px;

    border: 1px solid rgba(25, 58, 63, 0.12);
    border-radius: 10px;

    background: #ffffff;

    color: #243e43;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}


.navbar-login:hover,
.navbar-login:focus-visible {
    color: #087d87;

    border-color: rgba(8, 133, 144, 0.25);

    background: rgba(8, 133, 144, 0.04);
}


/* =========================================================
   MENU TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 8px;

    border: 1px solid rgba(8, 132, 143, 0.18);
    border-radius: 9px;

    background: rgba(8, 132, 143, 0.05);

    cursor: pointer;

    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}


.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: rgba(8, 132, 143, 0.30);

    background: rgba(8, 132, 143, 0.08);
}


.menu-toggle > span:not(.sr-only) {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    border-radius: 999px;

    background: #174249;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}


.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   1500PX
========================================================= */

@media (max-width: 1500px) {

    .nav-inner,
    .topbar-inner {
        width: calc(100% - 36px);
    }


    .nav-inner {
        column-gap: 22px;
    }


    .navbar-logo {
        height: 48px;
        max-width: 155px;
    }


    .navbar-brand {
        gap: 11px;
    }


    .navbar-brand-divider {
        height: 29px;
    }


    .navbar-slogan-main {
        font-size: 10px;
    }


    .main-nav {
        gap: 2px;
    }


    .main-nav > a {
        height: 42px;

        padding: 0 8px;

        font-size: 10.75px;
    }


    .navbar-quote {
        height: 40px;

        padding: 0 14px;

        font-size: 10.5px;
    }


    .navbar-account,
    .navbar-login {
        height: 40px;
    }
}


/* =========================================================
   1380PX
========================================================= */

@media (max-width: 1380px) {

    .nav-inner {
        column-gap: 16px;
    }


    .navbar-logo {
        height: 46px;
        max-width: 150px;
    }


    .navbar-slogan-small {
        font-size: 6px;
    }


    .navbar-slogan-main {
        font-size: 9px;
    }


    .main-nav > a {
        padding: 0 7px;

        font-size: 10px;
    }


    .navbar-actions {
        gap: 6px;
    }
}


/* =========================================================
   1300PX
   SLOGAN GİZLENİR
========================================================= */

@media (max-width: 1300px) {

    .navbar-brand-divider,
    .navbar-slogan {
        display: none;
    }


    .navbar-logo {
        height: 49px;
        max-width: 165px;
    }


    .nav-inner {
        column-gap: 18px;
    }


    .main-nav {
        gap: 2px;
    }


    .main-nav > a {
        padding: 0 8px;

        font-size: 10.5px;
    }
}


/* =========================================================
   1180PX
   HAMBURGER MODE
========================================================= */

@media (max-width: 1180px) {

    .nav-inner {
        min-height: 68px;

        display: flex;
        align-items: center;

        gap: 8px;
    }


    .navbar-brand {
        flex: 0 0 auto;
    }


    .navbar-logo {
        height: 46px;
        max-width: 160px;
    }


    .navbar-actions {
        margin-left: auto;

        flex: 0 0 auto;
    }


    .menu-toggle {
        display: block;

        flex: 0 0 40px;

        margin-left: 2px;
    }


    /* =====================================================
       DROPDOWN MENU
    ====================================================== */

    .main-nav {
        position: absolute;

        top: 100%;
        right: 0;
        left: 0;

        z-index: 100;

        display: none;

        margin: 0;

        padding: 10px;

        border: 1px solid rgba(20, 54, 59, 0.09);
        border-top: 0;

        border-radius:
            0
            0
            14px
            14px;

        background: #ffffff;

        box-shadow:
            0 20px 38px rgba(15, 23, 42, 0.11);
    }


    .main-nav.is-open {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 2px;
    }


    .main-nav > a {
        width: 100%;
        height: 44px;

        justify-content: flex-start;

        padding: 0 14px;

        border-radius: 8px;

        font-size: 13px;
    }


    .main-nav > a::after {
        display: none;
    }


    .main-nav > a:hover,
    .main-nav > a:focus-visible {
        background: rgba(8, 132, 143, 0.06);
    }
}


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

@media (max-width: 760px) {

    .topbar-inner,
    .nav-inner {
        width: calc(100% - 28px);
    }


    .navbar-logo {
        height: 43px;
        max-width: 150px;
    }


    .navbar-quote {
        display: none;
    }


    .navbar-account-name {
        display: none;
    }


    .navbar-account {
        width: 40px;

        padding: 4px;

        justify-content: center;
    }


    .navbar-account-avatar {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .topbar-inner {
        width: calc(100% - 24px);

        height: 36px;

        justify-content: center;
    }


    .topbar-location {
        display: none;
    }


    .topbar-contact {
        width: 100%;

        justify-content: center;
    }


    .topbar-contact > span,
    .topbar-contact a:last-child {
        display: none;
    }


    .nav-inner {
        width: calc(100% - 24px);

        min-height: 62px;

        gap: 7px;
    }


    .navbar-logo {
        height: 40px;
        max-width: 140px;
    }


    .navbar-login {
        height: 38px;

        padding: 0 10px;

        font-size: 10px;
    }


    .navbar-account {
        width: 38px;
        height: 38px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        padding: 8px;
    }


    .main-nav {
        right: -12px;
        left: -12px;

        padding:
            9px
            12px
            12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .nav-inner {
        width: calc(100% - 20px);
    }


    .navbar-logo {
        height: 37px;
        max-width: 130px;
    }


    .navbar-login {
        padding: 0 8px;

        font-size: 9px;
    }


    .menu-toggle {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }
}