/**
 * DAF Marketplace — Footer Styling
 * Location: /wp-content/plugins/daf-marketplace/assets/css/footer.css
 *
 * Purpose:
 * - Global plugin-based footer styling
 * - Premium support CTA banner section
 * - Footer links, payments, social icons and copyright row
 */

.daf-mp-footer { margin-top: 64px; }

/* ===== SUPPORT CTA SECTION ===== */

.daf-mp-footer-support {
    position: relative;
    background: #eef4df;
    border-top: 1px solid #dde6c9;
    border-bottom: 1px solid #dde6c9;
    overflow: hidden;
}

.daf-mp-footer-support .daf-mp-container { 
    max-width: none !important; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

.daf-mp-footer-support__inner {
    position: relative;
    min-height: 220px;
    padding: 34px 0;
    isolation: isolate;
}

.daf-mp-footer-support__banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #eef4df;
    /* Assumes image is in assets/images/ folder */
    background-image: url("../images/need help growing with HyperDAF.webp");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.daf-mp-footer-support__banner:before { display: none; }

.daf-mp-footer-support__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
    gap: 24px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.daf-mp-footer-support__content,
.daf-mp-footer-support__form-area {
    position: relative;
    z-index: 2;
}

.daf-mp-footer-support__content { max-width: 760px; }
.daf-mp-footer-support__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #f59e0b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.daf-mp-footer-support__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-shadow: none;
}

.daf-mp-footer-support__text {
    margin: 0;
    max-width: 640px;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
    text-shadow: none;
}

/* ===== FORM ===== */

.daf-mp-footer-support__form-area { width: 100%; }
.daf-mp-footer-support__form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.daf-mp-footer-support__input {
    min-width: 0;
    flex: 1 1 auto;
    height: 44px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a;
    font-size: 14px;
}

.daf-mp-footer-support__input::placeholder { color: #94a3b8; }

.daf-mp-footer-support__button,
.daf-mp-footer-support__button.daf-mp-btn,
.daf-mp-footer-support__button.daf-mp-btn--primary {
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 44px;
    border: 1px solid #7fb23a;
    border-radius: 8px;
    background: #7fb23a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.daf-mp-footer-support__button:hover,
.daf-mp-footer-support__button.daf-mp-btn:hover,
.daf-mp-footer-support__button.daf-mp-btn--primary:hover {
    border-color: #73a331;
    background: #73a331;
    color: #ffffff;
}

/* ===== MAIN FOOTER ===== */

.daf-mp-footer-main {
    background: #eef4df;
    border-top: 1px solid #dde6c9;
    padding-top: 40px;
    padding-bottom: 40px;
}

.daf-mp-footer-main__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(130px, 1fr)) minmax(270px, 1fr);
    gap: 36px;
    align-items: start;
}

/* ===== BRAND ===== */

.daf-mp-footer-brand { min-width: 0; }
.daf-mp-footer-brand__logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 18px;
    text-decoration: none;
}

.daf-mp-footer-brand__logo img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 52px;
}

.daf-mp-footer-brand__name {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.daf-mp-footer-brand__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.daf-mp-footer-brand__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cfd8bf;
    border-radius: 10px;
    background: #f8fbf1;
    color: #475569;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.daf-mp-footer-brand__social-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.daf-mp-footer-brand__social-link svg { width: 16px; height: 16px; display: block; }
.daf-mp-footer-brand__social-link:hover {
    color: #000000;
    background: #ffffff;
    border-color: #cfd8bf;
    transform: translateY(-1px);
}

/* ===== NAV ===== */

.daf-mp-footer-nav { min-width: 0; }
.daf-mp-footer-nav__title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.daf-mp-footer-nav__list { margin: 0; padding: 0; list-style: none; }
.daf-mp-footer-nav__list li + li { margin-top: 10px; }
.daf-mp-footer-nav__list a {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease;
}

.daf-mp-footer-nav__list a:hover {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== RIGHT META ===== */

.daf-mp-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 18px;
    min-width: 0;
}

.daf-mp-footer-meta__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.daf-mp-footer-meta__links a {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.daf-mp-footer-meta__links a:hover {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.daf-mp-footer-meta__payments {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
}

.daf-mp-footer-meta__payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 72px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

.daf-mp-footer-meta__payment img {
    display: block;
    width: 72px;
    height: 44px;
    max-width: 72px;
    max-height: 44px;
    object-fit: contain;
}

/* ===== BOTTOM COPYRIGHT ===== */

.daf-mp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 26px;
    margin-top: 26px;
    border-top: 1px solid #d8e1c3;
}

.daf-mp-footer-bottom__copyright {
    margin: 0;
    text-align: center;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1199px) {
    .daf-mp-footer-main__grid {
        grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(140px, 1fr));
        gap: 28px;
    }
    .daf-mp-footer-meta {
        grid-column: 1/-1;
        align-items: flex-start;
    }
    .daf-mp-footer-meta__links,
    .daf-mp-footer-meta__payments { justify-content: flex-start; }
}

@media (max-width: 1024px) {
    .daf-mp-footer-support__banner { background-size: cover; background-position: center; }
    .daf-mp-footer-support__grid { grid-template-columns: 1fr; padding: 0 20px; }
    .daf-mp-footer-main__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .daf-mp-footer { margin-top: 48px; }
    .daf-mp-footer-support__inner { min-height: 0; padding: 24px 0; }
    .daf-mp-footer-support__banner { background-size: cover; background-position: center; }
    .daf-mp-footer-support__grid { gap: 18px; padding: 0 16px; }
    .daf-mp-footer-support__form { flex-direction: column; align-items: stretch; padding: 12px; }
    .daf-mp-footer-support__button { width: 100%; min-width: 0; }
    .daf-mp-footer-main { padding-top: 32px; padding-bottom: 32px; }
    .daf-mp-footer-main__grid { grid-template-columns: 1fr; gap: 24px; }
    .daf-mp-footer-meta,
    .daf-mp-footer-meta__links,
    .daf-mp-footer-meta__payments { align-items: flex-start; justify-content: flex-start; }
    .daf-mp-footer-meta__payments { flex-wrap: wrap; }
    .daf-mp-footer-bottom { padding-top: 22px; margin-top: 22px; }
}