/* ==========================================================
   MARZYAR - GLOBAL BRAND, NAVIGATION & FOOTER
========================================================== */

.marzyar-logo-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0ea5a8;
    filter: drop-shadow(0 5px 10px rgba(10, 88, 111, .16));
}

.marzyar-logo-symbol svg {
    width: 100%;
    height: 100%;
}

.marzyar-logo-symbol-small {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.mobile-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-bar-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.mobile-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #0b2741;
}

.mobile-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-brand-copy strong {
    direction: ltr;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.mobile-brand-copy small {
    margin-top: .2rem;
    overflow: hidden;
    color: #64748b;
    font-size: .62rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-home-link {
    margin-inline-start: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border-radius: 10px;
    color: #0b596d;
    background: #eefafb;
    font-size: .82rem;
    font-weight: 700;
}

.mobile-home-link svg {
    width: 18px;
    height: 18px;
}

.desktop-brand-item {
    display: none;
}

.nav-brand-link {
    gap: .55rem;
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-copy strong {
    direction: ltr;
    text-align: right;
    color: #0b2741;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.nav-brand-copy small {
    margin-top: .15rem;
    color: #64748b;
    font-size: .62rem;
    font-weight: 600;
}

.main-nav .nav-home-link {
    gap: .4rem;
}

.main-nav .nav-home-link svg {
    width: 18px;
    height: 18px;
}

.site-footer {
    color: #dbe8f4;
    background: #071c2e;
    border-top: 0;
}

.site-footer .footer-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
    justify-content: stretch;
    gap: 2.2rem;
    padding-block: 2rem 1.6rem;
}

.footer-brand-block {
    min-width: 0;
}

.footer-brand-line {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.footer-brand-line .marzyar-logo-symbol {
    color: #33c5c9;
}

.footer-brand-line > div {
    display: flex;
    flex-direction: column;
}

.footer-brand-line strong {
    direction: ltr;
    text-align: right;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.footer-brand-line span {
    color: #9fb6c9;
    font-size: .78rem;
}

.site-footer .footer-brand-block p {
    max-width: 620px;
    margin-top: .75rem;
    color: #9fb6c9;
    font-size: .86rem;
    line-height: 1.9;
}

.footer-links > strong {
    display: block;
    margin-bottom: .75rem;
    color: #ffffff;
    font-size: .95rem;
}

.footer-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .65rem;
}

.footer-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem .7rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    color: #c8d7e5;
    background: rgba(255, 255, 255, .045);
    font-size: .78rem;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.footer-link-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 197, 201, .5);
    color: #ffffff;
    background: rgba(51, 197, 201, .1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .1);
}

.site-footer .footer-bottom-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #8fa7ba;
    font-size: .78rem;
}

.footer-company-name {
    color: #dbe8f4;
}

.site-footer .footer-inner-simple {
    direction: ltr;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "company links";
    align-items: center;
    gap: 1rem;
    padding-block: .72rem;
}

.footer-links-right {
    direction: rtl;
    grid-area: links;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    gap: .7rem;
}

.footer-links-right > strong {
    flex: 0 0 auto;
    margin: 0;
    font-size: .82rem;
    white-space: nowrap;
}

.footer-links-right .footer-link-list {
    direction: rtl;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: .4rem;
    overflow: visible;
}

.footer-links-right .footer-link-list a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: .25rem .55rem;
    border-radius: 8px;
    font-size: .7rem;
    white-space: nowrap;
}

.footer-company-block {
    direction: rtl;
    grid-area: company;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .3rem;
    color: #9fb6c9;
    font-size: .75rem;
    white-space: nowrap;
}

.footer-company-block strong {
    color: #ffffff;
}

@media (min-width: 992px) {
    .mobile-nav-bar {
        display: none;
    }

    .main-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .main-nav > ul {
        min-height: 68px;
        gap: .12rem;
    }

    .desktop-brand-item {
        display: block;
        margin-inline-end: .25rem;
        padding-inline-end: .7rem;
        border-inline-end: 1px solid #e5e7eb;
    }

    .main-nav .nav-brand-link {
        min-height: 54px;
        padding: .2rem .25rem .2rem .65rem;
        border-radius: 12px;
    }

    .main-nav .nav-brand-link:hover {
        color: inherit;
        background: transparent;
    }

    .main-nav > ul > li:last-child {
        margin-inline-start: auto;
    }
}

@media (max-width: 991px) {
    .main-nav .desktop-brand-item {
        display: none;
    }

    .main-nav .mobile-nav-header .marzyar-logo-symbol {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        color: #ffffff;
    }

    .mobile-nav-header-brand {
        display: flex;
        align-items: center;
        gap: .55rem;
    }

    .mobile-nav-header-brand > div {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-block: 1.6rem 1.3rem;
    }

    .site-footer .footer-bottom-inner {
        min-height: 62px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: .15rem;
        padding-block: .65rem;
    }

    .site-footer .footer-inner-simple {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "links"
            "company";
        gap: .7rem;
        padding-block: .8rem;
    }

    .footer-links-right {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
    }

    .footer-links-right .footer-link-list {
        width: 100%;
    }

    .footer-company-block {
        justify-self: start;
    }
}

@media (max-width: 430px) {
    .mobile-brand-copy small {
        display: none;
    }

    .mobile-home-link span {
        display: none;
    }

    .mobile-home-link {
        width: 40px;
        justify-content: center;
        padding: 0;
    }
}

.marzyar-logo-full {
    display: block;
    width: 155px;
    height: auto;
    object-fit: contain;
}

.mobile-brand .marzyar-logo-full {
    width: 145px;
    max-height: 54px;
}

.nav-brand-link .marzyar-logo-full {
    width: 155px;
    max-height: 54px;
}

.marzyar-symbol-image {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 42px;
}

@media (max-width: 430px) {
    .mobile-brand .marzyar-logo-full {
        width: 125px;
    }
}
