/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.modern-footer {
    background-color: var(--surface-color);
    background-image: radial-gradient(color-mix(in srgb, var(--accent-color) 15%, transparent) 1px, transparent 1px);
    background-size: 25px 25px;
    position: relative;
    padding-top: 5rem;
    border-top: 4px solid var(--second-accent-color);
    color: var(--dark-text-color);
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    /* هاله‌ی رنگی بالای فوتر از رنگ دوم */
    background: radial-gradient(ellipse at top, color-mix(in srgb, var(--second-accent-color) 22%, transparent), transparent 70%);
    pointer-events: none;
}

.modern-footer .footer-brand .footer-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.modern-footer .footer-brand p {
    font-size: var(--font-size-14);
    line-height: 1.9;
    color: var(--dark-text-color);
}

.modern-footer .footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modern-footer .footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
    color: var(--accent-color);
    border-radius: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-footer .footer-socials a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.modern-footer .footer-title {
    font-size: var(--font-size-18);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 1.8rem;
    position: relative;
    padding-right: 15px;
}

.modern-footer .footer-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 4px;
}

/*--------------------------------------------------------------
# Footer Quick Links Menu (WordPress Menu)
# Modern, bullet-free, animated line on hover
--------------------------------------------------------------*/
.modern-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-footer .footer-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

/* Remove any inherited bullet markers */
.modern-footer .footer-menu li::marker,
.modern-footer .footer-menu li::before {
    content: none;
    display: none;
}

.modern-footer .footer-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--dark-text-color);
    font-size: var(--font-size-14);
    font-weight: 500;
    line-height: 1.8;
    padding: 3px 0;
    text-decoration: none;
    transition: color 0.28s ease, transform 0.28s ease;
}

.modern-footer .footer-menu a::before {
    content: "";
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--second-accent-color);
    transition: width 0.28s ease, margin 0.28s ease;
    flex-shrink: 0;
    display: inline-block;
}

.modern-footer .footer-menu a:hover,
.modern-footer .footer-menu a:focus-visible {
    color: var(--accent-color);
    outline: none;
}

.modern-footer .footer-menu a:hover::before,
.modern-footer .footer-menu a:focus-visible::before {
    width: 18px;
    margin-inline-end: 8px;
}

/* Active menu item indicator */
.modern-footer .footer-menu .current-menu-item > a,
.modern-footer .footer-menu .active > a {
    color: var(--accent-color);
    font-weight: 700;
}

.modern-footer .footer-menu .current-menu-item > a::before,
.modern-footer .footer-menu .active > a::before {
    width: 18px;
    margin-inline-end: 8px;
    background: var(--accent-color);
}

/* Fallback text when no menu is assigned */
.modern-footer .footer-menu-empty {
    font-size: 0.85rem;
    color: #8a8f99;
    line-height: 1.9;
    margin: 0;
}

.modern-footer .footer-menu-empty strong {
    color: var(--dark-heading-color);
}

/*--------------------------------------------------------------
# Contact Cards
--------------------------------------------------------------*/
.modern-footer .contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.modern-footer .contact-card:hover {
    transform: translateY(-3px);
}

.modern-footer .contact-card .icon-box {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-footer .contact-card .icon-box i {
    padding: 0 !important;
    margin: 0 !important;
}

.modern-footer .contact-card .info p {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #888;
}

.modern-footer .contact-card .info a,
.modern-footer .contact-card .info span {
    margin: 0;
    font-size: var(--font-size-14);
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

/*--------------------------------------------------------------
# Footer Bottom Bar
--------------------------------------------------------------*/
.modern-footer .footer-bottom-bar {
    background: color-mix(in srgb, var(--surface-color) 95%, #000);
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-footer .footer-bottom-bar .copyright-text {
    font-size: var(--font-size-14);
}

.modern-footer .footer-to-top-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.modern-footer .footer-to-top-btn:hover {
    background: var(--second-accent-color);
    transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Floating Navigation (unchanged)
--------------------------------------------------------------*/
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 60px;
    background: rgba(200, 200, 200, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 7000;
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow: visible;
}

.floating-nav.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-nav::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 0;
    border-radius: 40px;
    background: linear-gradient(
            270deg,
            var(--second-axillary-color) 0%,
            var(--second-axillary-color) var(--progress, 0%),
            transparent var(--progress, 0%),
            transparent 100%
    ) border-box;
    z-index: -1;
    transition: none;
    box-shadow: 0 0 5px var(--default-color);
    opacity: 0.5;
    backdrop-filter: blur(8px);
}

.floating-nav .nav-item {
    flex: 1;
    max-width: 60px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-18);
    transition: transform 0.2s ease;
}

.floating-nav .nav-item i {
    color: var(--default-color);
}

.floating-nav .nav-item:hover {
    transform: scale(1.1);
}

.floating-nav .call-button {
    background: var(--second-accent-color);
    width: 100%;
    height: 75px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.floating-nav .call-button i {
    color: var(--contrast-color);
    font-size: var(--font-size-20);
}

@media screen and (max-width: 576px) {
    .floating-nav {
        width: 300px;
        height: 55px;
        padding: 0 10px;
    }
    .floating-nav .call-button {
        width: 60px;
        height: 60px;
    }
    .floating-nav .nav-item {
        max-width: 50px;
        font-size: var(--font-size-16);
    }
    .floating-nav .call-button i {
        font-size: var(--font-size-18);
    }
}

.tooltip {
    z-index: 7100 !important;
}

.tooltip .tooltip-inner {
    background-color: var(--second-accent-color);
    color: var(--contrast-color);
    font-size: var(--font-size-12);
    padding: 5px 10px;
    border-radius: 4px;
}

/*--------------------------------------------------------------
# Location Popover Box (unchanged)
--------------------------------------------------------------*/
.location-popover-box {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: 450px;
    max-width: calc(100vw - 30px);
    z-index: 6990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-popover-box.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.location-popover-box .glass-box {
    background: rgba(200, 200, 200, 0.5) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.location-popover-box .bg-white-50 {
    background-color: rgba(255, 255, 255, 0.65) !important;
}

.location-popover-box .fs-7 {
    font-size: 0.85rem !important;
}

.location-popover-box .fs-8 {
    font-size: 0.75rem !important;
}

.location-popover-box .contact-card {
    transition: all 0.2s ease;
}

.location-popover-box .contact-card:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.location-popover-box .map-wrapper {
    height: 160px;
    width: 100%;
}

.location-popover-box .map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 576px) {
    .location-popover-box {
        width: 300px;
        bottom: 80px;
    }
}

/*--------------------------------------------------------------
# Reduced Motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    .modern-footer .footer-menu a,
    .modern-footer .footer-menu a::before,
    .modern-footer .footer-socials a,
    .modern-footer .contact-card,
    .modern-footer .footer-to-top-btn {
        transition: none !important;
        transform: none !important;
    }
}