/* ═══════════════════════════════════════════════════════════════════
   Footer Modern - CityStone Theme
   An elegant, minimal, and modern footer design
   ═══════════════════════════════════════════════════════════════════ */

/* CSS Variables for Footer */
:root {
    --footer-bg-start: #1a252f;
    --footer-bg-end: #0d1318;
    --footer-text: rgba(255, 255, 255, 0.75);
    --footer-heading: #fff;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-accent: var(--secondary-color, #d4af37);
}

/* Main Footer Container */
.footer-modern {
    background: linear-gradient(180deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: var(--footer-text);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Pattern */
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--footer-accent), var(--primary-color), var(--footer-accent));
}

/* ═══════════════════════════════════════════════════════════════════
   Footer Main Content
   ═══════════════════════════════════════════════════════════════════ */

.footer-main {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Column */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer Headings */
.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin: 0 0 10px 0;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   About Column (Logo & Description)
   ═══════════════════════════════════════════════════════════════════ */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.footer-brand-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--footer-text);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Quick Links
   ═══════════════════════════════════════════════════════════════════ */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--footer-accent);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-links li a:hover i {
    transform: translateX(-5px);
}

/* ═══════════════════════════════════════════════════════════════════
   Contact Info
   ═══════════════════════════════════════════════════════════════════ */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-contact-icon i {
    font-size: 1rem;
    color: var(--footer-accent);
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--footer-accent);
}

.footer-contact-item:hover .footer-contact-icon i {
    color: #fff;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-value {
    font-size: 0.95rem;
    color: #fff;
    transition: color 0.3s ease;
}

a.footer-contact-value:hover {
    color: var(--footer-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   Social Links
   ═══════════════════════════════════════════════════════════════════ */

.footer-social-section {
    padding: 30px 0;
    border-top: 1px solid var(--footer-border);
    border-bottom: 1px solid var(--footer-border);
}

.footer-social-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.footer-social-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--footer-accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 14px;
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

.footer-social-link:hover {
    color: #fff;
    transform: translateY(-4px);
}

.footer-social-link:hover::before {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   Copyright Bar
   ═══════════════════════════════════════════════════════════════════ */

.footer-copyright {
    padding: 25px 0;
    text-align: center;
}

.footer-copyright-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.copyright-text a {
    color: var(--footer-accent);
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: #fff;
}

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
    color: var(--footer-accent);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   Scroll to Top Button
   ═══════════════════════════════════════════════════════════════════ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 50px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }

    .footer-heading::after {
        right: auto;
        left: 0;
    }

    .footer-copyright-inner {
        flex-direction: column;
        text-align: center;
    }

    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .footer-social-link {
        width: 44px;
        height: 44px;
    }

    .footer-contact-icon {
        width: 38px;
        height: 38px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Floating Contact Widget
   ═══════════════════════════════════════════════════════════════════ */

.contact-widget {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
}

.contact-widget-left {
    left: 30px;
}

.contact-widget-right {
    right: 30px;
}

.contact-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    border: none;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.contact-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.5);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    animation: pulse-animation 2s infinite;
    pointer-events: none;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.contact-popup {
    position: absolute;
    bottom: 75px;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-widget-left .contact-popup {
    left: 0;
}

.contact-widget-right .contact-popup {
    right: 0;
}

.contact-widget.active .contact-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-widget.active .contact-toggle-btn {
    transform: rotate(45deg);
    background: #e74c3c;
}

.contact-widget.active .pulse-ring {
    display: none;
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    padding: 25px 20px;
    text-align: center;
    color: #fff;
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-option:last-of-type {
    margin-bottom: 0;
}

.contact-option:hover {
    background: #eef1f5;
    border-color: rgba(44, 62, 80, 0.1);
    transform: translateX(-5px);
}

.contact-option .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.phone-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
}

.working-hours {
    text-align: center;
    font-size: 13px;
    color: #888;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.working-hours i {
    color: var(--footer-accent);
    margin-left: 6px;
}

/* Responsive Contact Widget */
@media (max-width: 768px) {
    .contact-widget {
        bottom: 20px;
    }

    .contact-widget-left {
        left: 20px;
    }

    .contact-widget-right {
        right: 20px;
    }

    .contact-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .contact-popup {
        width: 290px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Modern Keywords Ticker
   ═══════════════════════════════════════════════════════════════════ */

.footer-ticker-modern {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--footer-border);
    border-bottom: 1px solid var(--footer-border);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.ticker-wrapper-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-label-modern {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--footer-accent);
    white-space: nowrap;
    position: relative;
    padding-left: 15px;
}

.ticker-label-modern::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 15px;
    background: var(--footer-border);
}

.ticker-content-modern {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
}

.ticker-content-modern::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.ticker-item-modern {
    font-size: 0.85rem;
    color: var(--footer-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid transparent;
}

.ticker-item-modern:hover {
    color: #fff;
    background: var(--footer-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .ticker-wrapper-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ticker-label-modern::after {
        display: none;
    }
}