/* ── Footer Shell ── */
.footer {
    position: relative;
    margin-top: 0;
    padding: 90px 0 0;
    width: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(253,190,51,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(253,190,51,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #030a1a 0%, #020617 60%, #01040f 100%);
    color: var(--text-secondary);
    border-top: 1px solid rgba(253,190,51,0.12);
    overflow: hidden;
}

/* Subtle mesh overlay */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Gold top accent line */
.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent);
    opacity: 0.6;
}

.footer .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

/* ── Footer Columns ── */
.footer .footer-contact,
.footer .footer-link,
.footer .newsletter {
    position: relative;
    margin-bottom: 50px;
    padding-right: 20px;
}

/* ── Footer Headings ── */
.footer h2 {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.footer h2::after {
    position: absolute;
    content: "";
    width: 32px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* ── Footer Links ── */
.footer .footer-link a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #8fa3be;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.footer .footer-link a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer .footer-link a:hover {
    color: var(--text-primary);
    padding-left: 6px;
}

.footer .footer-link a:hover::before {
    opacity: 1;
    box-shadow: 0 0 8px rgba(253, 190, 51, 0.6);
    transform: scale(1.3);
}

/* ── Contact Info ── */
.footer .footer-contact p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #8fa3be;
}

.footer .footer-contact p i {
    width: 18px;
    min-width: 18px;
    color: var(--accent-gold);
    font-size: 14px;
    margin-top: 3px;
    opacity: 0.85;
}

.footer .footer-contact p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-contact p a:hover {
    color: var(--accent-gold);
}

/* ── Social Icons ── */
.footer .footer-social {
    position: relative;
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.footer .footer-social a i {
    font-size: 14px;
    color: #8fa3be;
    transition: all 0.3s ease;
}

.footer .footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(253,190,51,0.3);
    transform: translateY(-4px);
}

.footer .footer-social a:hover i {
    color: #020617;
}

/* ── Newsletter ── */
.footer .newsletter p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 22px;
    color: #8fa3be;
}

.footer .newsletter .form {
    position: relative;
    max-width: 100%;
    margin: 0;
}

.footer .newsletter input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    padding: 0 130px 0 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.footer .newsletter input::placeholder {
    color: #556070;
}

.footer .newsletter input:focus {
    border-color: rgba(253,190,51,0.4);
    box-shadow: 0 0 20px rgba(253,190,51,0.08);
    outline: none;
    background: rgba(255,255,255,0.05);
}

.footer .newsletter .btn {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 40px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #020617;
    background: linear-gradient(135deg, var(--accent-gold), #e5a91c);
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(253,190,51,0.25);
}

.footer .newsletter .btn:hover {
    background: linear-gradient(135deg, #ffe066, var(--accent-gold));
    box-shadow: 0 6px 22px rgba(253,190,51,0.4);
    transform: translateY(-1px);
}

/* ── Footer Divider Row ── */
.footer .footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
    margin: 0 0 0;
}

/* ── Footer Bottom Menu (hidden by comment in HTML but styled if re-enabled) ── */
.footer .footer-menu .f-menu {
    position: relative;
    padding: 22px 0;
    font-size: 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer .footer-menu .f-menu a {
    color: #8fa3be;
    font-size: 13px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer .footer-menu .f-menu a:hover {
    color: var(--accent-gold);
}

.footer .footer-menu .f-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* ── Copyright Bar ── */
.footer .copyright {
    position: relative;
    padding: 28px 0;
    margin-top: 0;
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.footer .copyright p {
    margin: 0;
    color: #556070;
    font-size: 13px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.footer .copyright .col-md-6:last-child p {
    text-align: right;
}

.footer .copyright p a {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .copyright p a:hover {
    color: #fff;
}

/* ── Footer Responsive ── */
@media (max-width: 991.98px) {
    .footer {
        padding-top: 70px;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding-top: 60px;
    }

    .footer .footer-contact,
    .footer .footer-link,
    .footer .newsletter {
        margin-bottom: 36px;
        padding-right: 0;
    }

    .footer .copyright p,
    .footer .copyright .col-md-6:last-child p {
        text-align: center;
        margin: 4px 0;
    }
}

/* Footer — light mode */
html.light-mode .footer {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(212,160,23,0.04) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(212,160,23,0.03) 0%, transparent 50%),
        linear-gradient(180deg, #e8ecf1 0%, #dde2e8 60%, #d4d9e0 100%);
    border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .footer::before {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

html.light-mode .footer::after {
    background: linear-gradient(90deg, transparent, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent);
}

html.light-mode .footer .footer-link a,
html.light-mode .footer .footer-contact p,
html.light-mode .footer .newsletter p {
    color: #4a5568;
}

html.light-mode .footer .footer-social a {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .footer .footer-social a i {
    color: #4a5568;
}

html.light-mode .footer .newsletter input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

html.light-mode .footer .newsletter input::placeholder {
    color: #718096;
}

html.light-mode .footer .copyright {
    background: rgba(0, 0, 0, 0.04);
    border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .footer .copyright p {
    color: #718096;
}
