/* ═══════════════════════════════════════════════════════════
   ECOG CORE TECHNOLOGIES — PREMIUM FOOTER
   White background, clean typographic layout
   ═══════════════════════════════════════════════════════════ */

.ecog-footer {
    background: #ffffff;
    color: #1F2937;
    font-family: inherit;
    position: relative;
    border-top: 1px solid #E5E7EB;
}

/* Subtle top accent line */
.ecog-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #3A7BD5 30%,
        #00D2FF 60%,
        transparent 100%);
}

/* ── Top section: logo + columns ── */
.ecog-footer-top {
    padding: 72px 80px 56px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid #E5E7EB;
}

/* Brand column */
.ecog-footer-logo {
    display: block;
    margin-bottom: 24px;
}

.ecog-footer-logo img {
    height: 52px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ecog-footer-logo:hover img { opacity: 0.85; }

.ecog-footer-tagline {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: #6B7280;
    max-width: 280px;
    margin-bottom: 32px;
}

/* Newsletter */
.ecog-footer-newsletter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 12px;
    display: block;
}

.ecog-footer-newsletter-form {
    display: flex;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.ecog-footer-newsletter-form:focus-within {
    border-color: #3A7BD5;
    box-shadow: 0 0 0 3px rgba(58,123,213,0.1);
}

.ecog-footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #1F2937;
    min-width: 0;
}

.ecog-footer-newsletter-form input::placeholder {
    color: #9CA3AF;
}

.ecog-footer-newsletter-form button {
    background: #3A7BD5;
    border: none;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.ecog-footer-newsletter-form button:hover {
    background: #2563EB;
}

/* Link columns */
.ecog-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 20px;
    display: block;
}

.ecog-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecog-footer-col ul li a {
    font-size: 14px;
    font-weight: 400;
    color: #4B5563;
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
    position: relative;
}

.ecog-footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3A7BD5;
    transition: width 0.3s ease;
}

.ecog-footer-col ul li a:hover {
    color: #3A7BD5;
}

.ecog-footer-col ul li a:hover::after {
    width: 100%;
}

/* ── Middle section: social icons ── */
.ecog-footer-social-bar {
    padding: 28px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E5E7EB;
    gap: 24px;
    flex-wrap: wrap;
    background: #F9FAFB;
}

.ecog-footer-social-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9CA3AF;
    white-space: nowrap;
}

.ecog-footer-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecog-footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    color: #6B7280;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    background: #ffffff;
}

.ecog-footer-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ecog-footer-social-icon.si-instagram:hover  { border-color: #E4405F; color: #E4405F; }
.ecog-footer-social-icon.si-facebook:hover   { border-color: #1877F2; color: #1877F2; }
.ecog-footer-social-icon.si-youtube:hover    { border-color: #FF0000; color: #FF0000; }
.ecog-footer-social-icon.si-twitter:hover    { border-color: #111827; color: #111827; }
.ecog-footer-social-icon.si-linkedin:hover   { border-color: #0A66C2; color: #0A66C2; }
.ecog-footer-social-icon.si-whatsapp:hover   { border-color: #25D366; color: #25D366; }

/* Contact info right side */
.ecog-footer-contact-inline {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ecog-footer-contact-inline a {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s ease;
}

.ecog-footer-contact-inline a i {
    font-size: 12px;
    color: #3A7BD5;
}

.ecog-footer-contact-inline a:hover { color: #1F2937; }

/* ── Bottom bar: legal links + copyright ── */
.ecog-footer-bottom {
    padding: 20px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: #ffffff;
}

.ecog-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ecog-footer-legal a {
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    text-decoration: none;
    padding: 0 16px;
    border-right: 1px solid #E5E7EB;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.ecog-footer-legal a:first-child { padding-left: 0; }
.ecog-footer-legal a:last-child  { border-right: none; }
.ecog-footer-legal a:hover { color: #3A7BD5; }

.ecog-footer-copyright {
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    white-space: nowrap;
}

.ecog-footer-copyright span {
    color: #6B7280;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .ecog-footer-top {
        padding: 56px 40px 48px;
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 36px;
    }

    .ecog-footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .ecog-footer-social-bar,
    .ecog-footer-bottom { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 1024px) {
    .ecog-footer-top {
        padding: 48px 32px 40px;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .ecog-footer-brand {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .ecog-footer-social-bar,
    .ecog-footer-bottom { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
    .ecog-footer-top {
        padding: 40px 24px 32px;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .ecog-footer-brand {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .ecog-footer-tagline { max-width: 100%; }

    .ecog-footer-social-bar {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ecog-footer-contact-inline { gap: 16px; }

    .ecog-footer-bottom {
        padding: 18px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ecog-footer-legal { flex-wrap: wrap; gap: 4px 0; }

    .ecog-footer-legal a {
        padding: 4px 12px;
        font-size: 11.5px;
    }
}

@media (max-width: 576px) {
    .ecog-footer-top {
        padding: 32px 16px 28px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ecog-footer-social-bar,
    .ecog-footer-bottom { padding-left: 16px; padding-right: 16px; }

    .ecog-footer-social-icon { width: 36px; height: 36px; font-size: 14px; }

    .ecog-footer-legal a { font-size: 11px; padding: 4px 10px; }
}

@media print {
    .ecog-footer { display: none !important; }
}
