﻿/* ============ ABTIN — Modern Light/Navy Tinted Navbar (optimized for your logo) ============ */
:root {
    --logo-navy: #0b2a6f; /* سرمه‌ای لوگو */
    --logo-red: #e63946; /* قرمز شعله لوگو */
    --ink-900: #0b2a3a; /* متن تیره خوانا */
    --ink-700: #334155;
    --tint-1: rgba(11,42,111,.10); /* هاله‌ی خیلی کم‌رنگ سرمه‌ای */
    --tint-2: rgba(11,42,111,.06);
    --paper-1: #eef3ff; /* آبی خیلی روشن */
    --paper-2: #f9fbff; /* روشن‌تر برای گرادیان */
    --divider: #dfe6fb; /* خط زیر نوار */
    --shadow: rgba(11,42,111,.16);
    --chip-bg: rgba(11,42,111,.08);
    --chip-bd: rgba(11,42,111,.16);
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    background: repeating-linear-gradient( 135deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 10px, rgba(11,42,111,0.025) 10px, rgba(11,42,111,0.025) 20px ), radial-gradient(120% 160% at 85% -25%, var(--tint-1) 0%, rgba(11,42,111,0) 55%), radial-gradient(140% 120% at 10% -30%, var(--tint-2) 0%, rgba(11,42,111,0) 60%), linear-gradient(180deg, var(--paper-1) 0%, var(--paper-2) 100%) !important;
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 10px 26px var(--shadow);
    -webkit-backdrop-filter: saturate(1.05);
    backdrop-filter: saturate(1.05);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    /* خط سایه‌ی خیلی ملایم زیر نوار برای عمق */
    .navbar::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 12px;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(11,42,111,.08), rgba(11,42,111,0));
    }

    /* حالت پس از اسکرول (اگر JS کلاس is-scrolled را اضافه کند) */
    .navbar.is-scrolled {
        background: repeating-linear-gradient( 135deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 10px, rgba(11,42,111,0.03) 10px, rgba(11,42,111,0.03) 20px ), radial-gradient(120% 160% at 70% -30%, rgba(11,42,111,.12) 0%, rgba(11,42,111,0) 60%), linear-gradient(180deg, #e8eeff 0%, #ffffff 100%) !important;
        border-bottom-color: #d4dcf4;
        box-shadow: 0 14px 34px rgba(11,42,111,.2);
    }

/* لوگو روی این زمینه خواناست؛ کمی drop-shadow برای ایستادگی */
.navbar-brand img {
    max-height: 50px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}

/* لینک‌ها */
.navbar .nav-link {
    position: relative;
    color: var(--ink-900) !important;
    padding: .6rem 1rem;
    border-radius: 999px;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: var(--logo-navy) !important;
        background: var(--chip-bg);
        box-shadow: inset 0 0 0 1px var(--chip-bd);
        transform: translateY(-1px);
    }

    /* نشانگر فعال به رنگ قرمز لوگو */
    .navbar .nav-link.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        transform: translateX(-50%);
        width: 34px;
        height: 3px;
        border-radius: 2px;
        background: var(--logo-red);
    }

/* سوییچر زبان */
.language-switch a {
    color: var(--ink-700);
    opacity: .9;
}

    .language-switch a:hover {
        opacity: 1;
    }

/* همبرگری */
.navbar .navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

    .navbar .navbar-toggler .fa,
    .navbar .navbar-toggler .navbar-toggler-icon {
        color: var(--ink-900);
    }

/* چینش دسکتاپ */
@media (min-width: 992px) {
    .navbar .nav-link {
        margin: 0 .05rem;
    }

    .navbar .nav-item:first-child .nav-link {
        margin-right: .25rem;
    }

    .navbar .nav-item:last-child .nav-link {
        margin-left: .25rem;
    }
}

/* منوی موبایل */
@media (max-width: 991.98px) {
    .navbar {
        background: repeating-linear-gradient( 135deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 10px, rgba(11,42,111,0.035) 10px, rgba(11,42,111,0.035) 20px ), radial-gradient(140% 160% at 80% -20%, rgba(11,42,111,.14) 0%, rgba(11,42,111,0) 60%), linear-gradient(180deg, #eaf0ff 0%, #ffffff 100%) !important;
    }

        .navbar .navbar-collapse {
            background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
            border: 1px solid var(--divider);
            border-top: 0;
            margin: .5rem -1rem 0;
            padding: .5rem 1rem .9rem;
            border-radius: 0 0 16px 16px;
            box-shadow: 0 16px 40px rgba(11,42,111,.18);
        }

        .navbar .nav-link {
            margin: .15rem 0;
        }

            .navbar .nav-link.active::after {
                bottom: -4px;
            }
}

/* ================= FOOTER (رنگ همان قبلی، بدون تغییر) ================= */
#footer {
    position: relative;
    background: #0f5132;
}

    #footer .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.5));
        pointer-events: none;
    }

    #footer .footer-widget h3 {
        font-size: 1rem;
        margin-bottom: .75rem;
    }

    #footer .footer-links li + li {
        margin-top: .35rem;
    }

    #footer .footer-brand {
        font-weight: 700;
        letter-spacing: .2px;
    }

    #footer .footer-copy {
        border-top: 1px solid rgba(255,255,255,.12);
        margin-top: 1rem;
        padding-top: 1rem;
    }

/* --- Social icons --- */
.footer-widget .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    transition: transform .2s, box-shadow .2s, background .2s;
}

    .footer-widget .social a:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.12);
        box-shadow: 0 8px 18px rgba(0,0,0,.2);
    }

.footer-widget .social i {
    font-size: 16px;
    color: #fff;
    line-height: 1;
}

    .footer-widget .social i.fa-instagram {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.footer-widget .social a:hover i.fa-instagram {
    filter: brightness(1.05) contrast(1.05);
}

/* ===== Footer Map — fully responsive, no overflow ===== */
.footer-map {
    width: 100%;
    max-width: 100%;
    margin-top: 1.25rem;
    border-radius: 14px;
    overflow: hidden; /* جلوی بیرون‌زدن */
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.15);
    -webkit-mask-image: radial-gradient(#000 99%, transparent 100%);
    mask-image: radial-gradient(#000 99%, transparent 100%);
}

    .footer-map .map-ratio {
        position: relative;
        width: 100%;
        max-width: 100%;
    }

        .footer-map .map-ratio::before {
            content: "";
            display: block;
            padding-top: 56.25%;
        }
    /* 16:9 */
    .footer-map iframe {
        position: absolute;
        inset: 0;
        display: block;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        border: 0;
    }
        /* اگر سرویس‌دهنده width/height اینلاین بدهد، خنثی شود */
        .footer-map iframe[style] {
            width: 100% !important;
            height: 100% !important;
        }
/* موبایل: سایه سبک‌تر و گوشه کمی کوچک‌تر */
@media (max-width: 576px) {
    .footer-map {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.16);
        margin-right: auto;
        margin-left: auto;
    }
    /* اگر ارتفاع بیشتری خواستی یکی از نسبت‌ها را فعال کن: */
    /* .footer-map .map-ratio::before{ padding-top: 62%; }  */ /* 16:10 */
    /* .footer-map .map-ratio::before{ padding-top: 75%; }  */ /* 4:3  */
}
/* تضمین باکس‌سایز صحیح تا بیرون نزند */
.footer-map, .footer-map *, .footer-map *::before, .footer-map *::after {
    box-sizing: border-box;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #198754;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

/* Footer/Navbar paddings on mobile */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar .nav-link {
        padding: .5rem 1rem;
    }

    .language-switch {
        padding: .5rem 1rem;
    }
}
