/* ============================================
   Footer Styles — Premium Luxurious Redesign
   ============================================ */

/* ── Animated Gold Top Border ────────────────── */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold-500, #D4A843) 15%,
        var(--gold-300, #F0CC6B) 30%,
        var(--gold-400, #E6B94A) 50%,
        var(--gold-300, #F0CC6B) 70%,
        var(--gold-500, #D4A843) 85%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerGoldShimmer 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes footerGoldShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Main Footer Container ───────────────────── */
.main-footer {
    position: relative;
    background-color: var(--navy-950, #060F1E);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 122, 189, 0.04) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--white, #ffffff);
    padding: var(--s-xl, 4rem) 0 0;
    overflow: hidden;
    font-family: var(--font-body, 'Poppins', sans-serif);
}

/* Subtle inner glow at the top */
.main-footer::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Footer Content Grid ─────────────────────── */
.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: var(--s-xl, 4rem);
    margin-bottom: var(--s-xl, 4rem);
}

/* ── Footer Columns ──────────────────────────── */
.footer-col {
    position: relative;
    z-index: 1;
}

.footer-col:first-child {
    max-width: 420px;
}

.footer-col:not(:first-child) {
    min-width: 200px;
}

/* ── Footer Logo ─────────────────────────────── */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display, 'Playfair Display', serif);
    margin-bottom: var(--s-md, 1.5rem);
    color: var(--white, #ffffff);
    letter-spacing: 0.02em;
}

.footer-logo img {
    height: 54px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 168, 67, 0.2));
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-logo:hover img {
    filter: drop-shadow(0 4px 16px rgba(212, 168, 67, 0.35));
    transform: scale(1.05);
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--gold-500, #D4A843);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-logo:hover i {
    color: var(--gold-300, #F0CC6B);
    text-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}

/* ── Column Paragraph ────────────────────────── */
.footer-col p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--s-md, 1.5rem);
    line-height: 1.85;
    font-size: 0.925rem;
    letter-spacing: 0.01em;
}

/* ── Column Headings with Gold Underline ─────── */
.footer-col h3 {
    color: var(--white, #ffffff);
    font-size: 1.2rem;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-weight: 600;
    margin-bottom: var(--s-md, 1.5rem);
    position: relative;
    padding-bottom: var(--s-sm, 1rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 2.5px;
    border-radius: var(--r-full, 9999px);
    background: linear-gradient(90deg, var(--gold-500, #D4A843), var(--gold-300, #F0CC6B));
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-col:hover h3::after {
    width: 70px;
}

/* ── Links List ──────────────────────────────── */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding-left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                letter-spacing 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.925rem;
    position: relative;
    text-decoration: none;
}

.footer-col ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1.5px;
    background: var(--gold-500, #D4A843);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.footer-col ul li a:hover {
    color: var(--gold-400, #E6B94A);
    padding-left: 6px;
}

.footer-col ul li a:hover::before {
    width: 12px;
}

/* ── Social Links ────────────────────────────── */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--s-md, 1.5rem);
    flex-wrap: wrap;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(212, 168, 67, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500, #D4A843), var(--gold-300, #F0CC6B));
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.social-links a i,
.social-links a svg {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    border-color: var(--gold-400, #E6B94A);
    color: var(--navy-950, #060F1E);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ── Contact Info ────────────────────────────── */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: var(--s-sm, 1rem);
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.contact-info li:hover {
    color: rgba(255, 255, 255, 0.85);
}

.contact-info i {
    color: var(--gold-500, #D4A843);
    margin-top: 0.3rem;
    min-width: 20px;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info li:hover i {
    color: var(--gold-300, #F0CC6B);
    transform: scale(1.15);
}

/* ── Footer Bottom / Copyright Bar ───────────── */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(212, 168, 67, 0.2);
    background: rgba(6, 15, 30, 0.5);
    margin: 0 calc(-1 * var(--s-md, 1.5rem));
    padding: var(--s-md, 1.5rem) var(--s-md, 1.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-md, 1.5rem);
}

/* If footer-bottom is outside container, use full bleed */
.main-footer > .footer-bottom {
    margin: 0;
    padding: var(--s-md, 1.5rem) var(--s-lg, 2.5rem);
    background: var(--navy-950, #060F1E);
    border-top: 1px solid rgba(212, 168, 67, 0.18);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 168, 67, 0.4),
        rgba(240, 204, 107, 0.6),
        rgba(212, 168, 67, 0.4),
        transparent
    );
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.footer-bottom p a {
    color: var(--gold-500, #D4A843);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--gold-300, #F0CC6B);
}

/* ── Footer Links (bottom bar) ───────────────── */
.footer-links {
    display: flex;
    gap: var(--s-md, 1.5rem);
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500, #D4A843);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-links a:hover {
    color: var(--gold-400, #E6B94A);
}

.footer-links a:hover::after {
    width: 100%;
}


/* ============================================
   Responsive — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .main-footer {
        padding: var(--s-lg, 2.5rem) 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-lg, 2.5rem);
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
        padding-bottom: var(--s-lg, 2.5rem);
        border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    }
}


/* ============================================
   Responsive — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    .main-footer {
        padding: var(--s-lg, 2.5rem) 0 0;
    }

    .main-footer::before {
        height: 2px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: var(--s-md, 1.5rem);
    }

    .footer-col:first-child {
        grid-column: 1;
        padding-bottom: var(--s-md, 1.5rem);
        margin-bottom: var(--s-sm, 1rem);
        border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    }

    /* Collapsible footer sections on mobile */
    .footer-col:not(:first-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: var(--s-sm, 1rem);
        min-width: unset;
    }

    .footer-col:not(:first-child) h3 {
        cursor: pointer;
        position: relative;
        padding-right: 35px;
        user-select: none;
        margin-bottom: var(--s-sm, 1rem);
        font-size: 1.05rem;
    }

    .footer-col:not(:first-child) h3::before {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-70%);
        font-size: 1.4rem;
        font-weight: 300;
        color: var(--gold-500, #D4A843);
        font-family: var(--font-body, 'Poppins', sans-serif);
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    color 0.3s ease;
    }

    .footer-col:not(:first-child).active h3::before {
        content: '−';
        color: var(--gold-300, #F0CC6B);
    }

    .footer-col:not(:first-child) ul,
    .footer-col:not(:first-child) .contact-info {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .footer-col:not(:first-child).active ul,
    .footer-col:not(:first-child).active .contact-info {
        max-height: 500px;
    }

    .footer-logo {
        font-size: 1.2rem;
        margin-bottom: var(--s-sm, 1rem);
        gap: 0.65rem;
    }

    .footer-logo img {
        height: 38px;
    }

    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: var(--s-sm, 1rem);
        padding-bottom: 0.75rem;
    }

    .footer-col h3::after {
        width: 35px;
        height: 2px;
    }

    .footer-col:hover h3::after {
        width: 50px;
    }

    .footer-col p {
        font-size: 0.8125rem;
        margin-bottom: var(--s-sm, 1rem);
        line-height: 1.7;
    }

    .footer-col ul li {
        margin-bottom: 0.55rem;
    }

    .footer-col ul li a {
        font-size: 0.8125rem;
    }

    .social-links {
        gap: 0.6rem;
        margin-top: var(--s-sm, 1rem);
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .contact-info li {
        font-size: 0.8125rem;
        margin-bottom: 0.6rem;
        gap: 0.65rem;
    }

    .contact-info i {
        font-size: 0.875rem;
        min-width: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--s-xs, 0.5rem);
        padding: var(--s-sm, 1rem) var(--s-sm, 1rem);
    }

    .main-footer > .footer-bottom {
        padding: var(--s-sm, 1rem) var(--s-md, 1.5rem);
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }

    .footer-links {
        gap: var(--s-sm, 1rem);
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.78rem;
    }
}


/* ============================================
   Responsive — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .main-footer {
        padding-top: var(--s-md, 1.5rem);
    }

    .footer-logo {
        font-size: 1.05rem;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-col p {
        font-size: 0.75rem;
        line-height: 1.65;
    }

    .footer-col h3 {
        font-size: 0.9375rem;
        letter-spacing: 0.02em;
    }

    .footer-col ul li a {
        font-size: 0.75rem;
    }

    .contact-info li {
        font-size: 0.75rem;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.8125rem;
        border-width: 1px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-links a {
        font-size: 0.7rem;
    }

    .footer-bottom::before {
        left: 5%;
        right: 5%;
    }
}
