/* ============================================================
   Premium Footer Redesign — Citizen Opinion
   Glassmorphism, Gradient Accents, Micro-animations
   Matches the Premium Header aesthetic
   ============================================================ */

/* ── Footer: Deep Glass Background ────────────────── */
.footer {
    background: linear-gradient(180deg,
            rgba(8, 20, 40, 0.95) 0%,
            rgba(5, 14, 30, 0.98) 50%,
            rgba(3, 10, 22, 1) 100%) !important;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 0 var(--space-8) !important;
    position: relative;
    overflow: hidden;
}

/* Saffron gradient top divider */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #ff9900 20%,
            #ffb347 40%,
            #ff9900 60%,
            #e67e00 80%,
            transparent 100%);
    opacity: 0.7;
    animation: footerLineShine 5s ease-in-out infinite alternate;
}

@keyframes footerLineShine {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.9;
    }
}

/* Ambient glow behind footer */
.footer::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255, 153, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Newsletter CTA Section ───────────────────────── */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.08), rgba(255, 153, 0, 0.03));
    border: 1px solid rgba(255, 153, 0, 0.12);
    border-radius: 20px;
    padding: 32px 40px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-newsletter-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.footer-newsletter-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.footer-newsletter-form input {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    width: 260px;
    outline: none;
    transition: all 0.3s ease;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-form input:focus {
    border-color: rgba(255, 153, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.1);
}

.footer-newsletter-form button {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff9900, #e67e00);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.3);
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 153, 0, 0.45);
}

/* ── Footer Grid Enhancement ──────────────────────── */
.footer-grid {
    gap: var(--space-10) !important;
    margin-bottom: 48px !important;
    padding-top: 48px;
    position: relative;
    z-index: 1;
}

/* ── Brand Column ─────────────────────────────────── */
.footer-brand .logo-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    color: #fff !important;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    max-width: 280px;
}

.footer-brand .logo img {
    border: 2px solid rgba(255, 153, 0, 0.25) !important;
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.15);
    transition: all 0.3s ease;
}

.footer-brand .logo:hover img {
    border-color: rgba(255, 153, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.25);
}

/* ── Column Headings: Saffron Accent ──────────────── */
.footer-col h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ff9900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #ff9900, transparent);
    border-radius: 2px;
}

/* ── Footer Links: Smooth Hover ───────────────────── */
.footer-col ul li {
    margin-bottom: 10px !important;
}

.footer-col ul li a {
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 0;
}

.footer-col ul li a:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    padding-left: 8px;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid #ff9900;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    left: -2px;
}

/* ── Social Icons: Glass Circles ──────────────────── */
.footer-social {
    gap: 10px !important;
    margin-top: 20px !important;
}

.footer-social a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.footer-social a:hover {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.15), rgba(255, 153, 0, 0.08)) !important;
    border-color: rgba(255, 153, 0, 0.25) !important;
    color: #ff9900 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.15) !important;
}

/* ── Bottom Bar: Premium Divider ──────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 24px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 153, 0, 0.2),
            transparent);
}

/* "Made in India" badge styling */
.footer-bottom span:last-child {
    background: rgba(255, 153, 0, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 153, 0, 0.1);
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* ── Back to Top Button ───────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.9), rgba(230, 126, 0, 0.9));
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 153, 0, 0.4);
}

/* ── Responsive: Mobile ───────────────────────────── */
@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .footer-newsletter-form input {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 12px;
        text-align: center;
    }

    .back-to-top {
        bottom: 70px;
        right: 16px;
    }
}