/* ══════════════════════════════════════
   EduCoach Footer — public/css/footer.css
══════════════════════════════════════ */

.ec-footer {
    background: linear-gradient(180deg, #0d1117 0%, #0a1628 100%);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.ec-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232,101,26,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26,58,107,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Top Grid ── */
.ec-footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    position: relative;
}

/* ── Column 1: Brand ── */
.ec-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.ec-footer-logo span { color: #e8651a; }

.ec-footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ── Social Links ── */
.ec-social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ec-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.ec-social-btn:hover {
    background: rgba(232,101,26,0.2);
    border-color: #e8651a;
    color: #e8651a;
    transform: translateY(-2px);
}
.ec-whatsapp-btn:hover {
    background: rgba(37,211,102,0.15);
    border-color: #25d366;
    color: #25d366;
}

/* ── Column Headings ── */
.ec-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e8651a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(232,101,26,0.25);
}

/* ── Quick Links List ── */
.ec-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.ec-footer-list li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ec-footer-list li a::before {
    content: '→';
    font-size: 0.75rem;
    color: #e8651a;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}
.ec-footer-list li a:hover {
    color: #fff;
    padding-left: 4px;
}
.ec-footer-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ── Contact List ── */
.ec-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.ec-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
}
.ec-contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(232,101,26,0.12);
    border: 1px solid rgba(232,101,26,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8651a;
    flex-shrink: 0;
    margin-top: -2px;
}
.ec-footer-contact li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.ec-footer-contact li a:hover { color: #e8651a; }

/* ── Divider ── */
.ec-footer-divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ── Bottom Bar ── */
.ec-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
}
.ec-footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}
.ec-footer-copy a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.ec-footer-copy a:hover { color: #e8651a; }
.ec-footer-copy-sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}
.ec-footer-bottom-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.ec-footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.ec-footer-bottom-links a:hover { color: #e8651a; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .ec-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .ec-footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .ec-footer { padding: 3rem 0 0; }
    .ec-footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem 2rem;
    }
    .ec-footer-brand { grid-column: auto; }
    .ec-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1.25rem;
    }
    .ec-footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }
    .ec-footer-copy-sep { display: none; }
    .ec-footer-copy { text-align: center; }
}

/* Small mobile */
@media (max-width: 400px) {
    .ec-social-links { gap: 0.5rem; }
    .ec-social-btn { width: 34px; height: 34px; }
}