/**
 * EBA Footer — reference: emotionalacademy.vercel.app
 * No !important. Compound selectors win over Hello theme.
 */

/* ===== SECTION ===== */
.eba-wrapper.eba-ftr {
    background: #0f1729;
    padding: 64px 24px 32px;
    position: relative;
    isolation: isolate;
}

.eba-wrapper.eba-ftr .eba-container {
    position: relative;
    z-index: 1;
}

/* ===== GRID (Brand + N link cols — N comes from --ftr-col-count inline) ===== */
.eba-ftr__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(var(--ftr-col-count, 4), 1fr);
    gap: 48px;
    padding-bottom: 48px;
}

/* ===== BRAND COLUMN ===== */
.eba-ftr__brand-col {
    display: flex;
    flex-direction: column;
}

.eba-ftr__logo {
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.eba-wrapper.eba-ftr .eba-ftr__brand-name,
.eba-ftr .eba-ftr__brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #f8f6f1;
}

.eba-wrapper.eba-ftr .eba-ftr__tagline,
.eba-ftr .eba-ftr__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(248, 246, 241, 0.7);
    margin: 24px 0 24px;
    max-width: 384px;
}

/* ===== SOCIAL ===== */
.eba-ftr__social {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.eba-wrapper.eba-ftr .eba-ftr__social a,
.eba-wrapper.eba-ftr a.eba-ftr__social-link,
.eba-ftr a.eba-ftr__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 246, 241, 0.8);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: 0;
}

.eba-wrapper.eba-ftr .eba-ftr__social a svg,
.eba-ftr .eba-ftr__social a svg {
    width: 16px;
    height: 16px;
    color: inherit;
    stroke: currentColor;
}

.eba-wrapper.eba-ftr .eba-ftr__social a svg[fill="currentColor"],
.eba-ftr .eba-ftr__social a svg[fill]:not([fill="none"]) {
    fill: currentColor;
}

.eba-wrapper.eba-ftr .eba-ftr__social a:hover,
.eba-ftr .eba-ftr__social a:hover {
    background: #ddab2c;
    color: #0f1729;
    transform: translateY(-2px);
}

/* ===== LINK COLUMNS ===== */
.eba-ftr__col {
    display: flex;
    flex-direction: column;
}

.eba-wrapper.eba-ftr .eba-ftr__col h4,
.eba-ftr .eba-ftr__col h4,
.eba-wrapper.eba-ftr .eba-ftr__newsletter h4,
.eba-ftr .eba-ftr__newsletter h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #ddab2c;
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0;
}

.eba-wrapper.eba-ftr .eba-ftr__col ul,
.eba-ftr .eba-ftr__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eba-wrapper.eba-ftr .eba-ftr__col li,
.eba-ftr .eba-ftr__col li {
    margin: 0;
    padding: 0;
}

.eba-wrapper.eba-ftr .eba-ftr__col a,
.eba-wrapper.eba-ftr .eba-ftr__col a:link,
.eba-wrapper.eba-ftr .eba-ftr__col a:visited,
.eba-wrapper.eba-ftr a.eba-ftr__col-link,
.eba-wrapper.eba-ftr a.eba-ftr__col-link:link,
.eba-wrapper.eba-ftr a.eba-ftr__col-link:visited,
.eba-ftr a.eba-ftr__col-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(248, 246, 241, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.eba-wrapper.eba-ftr .eba-ftr__col a:hover,
.eba-wrapper.eba-ftr a.eba-ftr__col-link:hover,
.eba-ftr a.eba-ftr__col-link:hover {
    color: #ddab2c;
}

/* ===== NEWSLETTER (full-width band) ===== */
.eba-ftr__newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.eba-ftr__newsletter-text {
    flex: 1 1 320px;
    min-width: 0;
}

.eba-wrapper.eba-ftr .eba-ftr__newsletter h4,
.eba-ftr .eba-ftr__newsletter h4 {
    margin: 0 0 4px;
}

.eba-wrapper.eba-ftr .eba-ftr__newsletter p,
.eba-ftr .eba-ftr__newsletter p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(248, 246, 241, 0.7);
    margin: 0;
}

.eba-ftr__form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    max-width: 480px;
    flex-wrap: wrap;
    position: relative;
}
.eba-ftr__msg {
    flex-basis: 100%;
    min-height: 0;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    color: #d9b579;
    transition: color 0.2s ease;
}
.eba-ftr__msg.is-success { color: #7aa08c; }
.eba-ftr__msg.is-error   { color: #e67e6a; }
.eba-ftr__submit[disabled] { opacity: 0.6; cursor: wait; }

.eba-wrapper.eba-ftr .eba-ftr__input,
.eba-ftr .eba-ftr__input {
    flex: 1;
    min-width: 180px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8f6f1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.eba-wrapper.eba-ftr .eba-ftr__input::placeholder,
.eba-ftr .eba-ftr__input::placeholder {
    color: rgba(248, 246, 241, 0.4);
    opacity: 1;
}

.eba-wrapper.eba-ftr .eba-ftr__input:focus,
.eba-ftr .eba-ftr__input:focus {
    outline: none;
    border-color: #ddab2c;
    background: rgba(255, 255, 255, 0.08);
}

.eba-wrapper.eba-ftr .eba-ftr__submit,
.eba-ftr .eba-ftr__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    background: #ddab2c;
    background-image: none;
    color: #000000;
    border: 0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.eba-wrapper.eba-ftr .eba-ftr__submit:hover,
.eba-ftr .eba-ftr__submit:hover {
    background: #c89821;
    transform: translateY(-1px);
}

/* ===== LEGAL NOTICE (long IP protection line) ===== */
.eba-wrapper.eba-ftr .eba-ftr__legal-notice {
    padding: 20px 0 4px;
    border-top: 1px solid rgba(248, 246, 241, 0.08);
    margin-top: 24px;
}
.eba-wrapper.eba-ftr .eba-ftr__legal-notice p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(248, 246, 241, 0.55);
    margin: 0;
    max-width: 1100px;
}

/* ===== BOTTOM BAR ===== */
.eba-ftr__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid transparent;
}

.eba-wrapper.eba-ftr .eba-ftr__copyright p,
.eba-ftr .eba-ftr__copyright p,
.eba-wrapper.eba-ftr .eba-ftr__tagline-right,
.eba-ftr .eba-ftr__tagline-right {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(248, 246, 241, 0.5);
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .eba-ftr__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .eba-ftr__brand-col { grid-column: 1 / -1; max-width: none; }
    .eba-ftr__tagline { max-width: 100%; }
}

@media (max-width: 767px) {
    .eba-wrapper.eba-ftr { padding: 48px 16px 24px; }

    .eba-ftr__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding-bottom: 32px;
    }

    .eba-ftr__brand-col,
    .eba-ftr__col { align-items: center; }

    .eba-ftr__logo,
    .eba-ftr__brand-name { margin: 0 auto; }

    .eba-ftr__social { justify-content: center; }

    .eba-ftr__newsletter {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
        padding: 24px 0;
    }

    /* Critical: stop text container from growing to fill column space */
    .eba-ftr__newsletter-text {
        flex: 0 0 auto;
        min-width: 0;
    }

    .eba-ftr__form {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        flex: 0 0 auto;
        gap: 10px;
    }

    .eba-ftr__bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}
