/* =========================================
   EXPERTPULSE FOOTER STYLES
   Styles 1-6
   ========================================= */

.site-footer {
    background: var(--footer-bg, #000000); 
    color: var(--footer-text, #a0a0a0);
    position: relative;
    z-index: 10;
    margin-top: 80px;
}
.site-footer a { color: inherit; transition: 0.3s; }
.site-footer a:hover { color: var(--accent); }

/* Components */
.footer-text-logo { color: #fff !important; font-size: 1.8rem; display: flex; align-items: center; gap: 8px; margin-bottom: 20px;}
.footer-text-logo span { color: var(--accent); }

.footer-socials { display: flex; gap: 12px;  margin-top: 15px; flex-wrap: wrap; }
.social-link {
    width: 42px; height: 42px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
    color: #ffffff !important; font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.15);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-5px); }

/* --- STYLE 1: STANDARD CLASSIC --- */
.footer-style-1 { padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 50px; padding-bottom: 60px; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 25px; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { line-height: 1.7; font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { display: flex; align-items: center; font-weight: 500; font-size: 0.95rem; }

.footer-subscribe { 
    display: flex; flex-wrap: nowrap; width: 100%;
    background: rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); 
}
.footer-subscribe input { 
    flex-grow: 1; flex-shrink: 1; min-width: 0; 
    background: transparent; border: none; padding: 12px 15px; color: #fff; outline: none; 
}
.footer-subscribe button { 
    flex-basis: 54px; flex-shrink: 0; flex-grow: 0; width: 54px; height: auto;
    background: var(--accent-fill, var(--accent)); color: var(--on-accent-fill, #fff); border: none; padding: 0; margin: 0; cursor: pointer; font-size: 1.2rem; 
    display: flex; align-items: center; justify-content: center;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; text-align: center; font-size: 0.9rem; }

/* --- STYLE 2: MINIMAL CENTERED --- */
.footer-style-2 { padding: 80px 0; text-align: center; }
.footer-minimal-logo { display: flex; justify-content: center; margin-bottom: 40px; }
.footer-minimal-nav ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-minimal-nav a { font-size: 1rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.footer-minimal-socials { display: flex; justify-content: center; margin-bottom: 40px; }

/* --- STYLE 3: MODERN EDITORIAL --- */
.footer-style-3 { padding: 80px 0 0; }
.editorial-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; padding-bottom: 80px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.editorial-cta h2 { font-size: 3rem; color: #fff; font-weight: 900; margin-bottom: 10px; line-height: 1.1; }
.editorial-form { display: flex; gap: 15px; }
.editorial-form input { flex: 1; padding: 15px 20px; border-radius: 50px; border: none; outline: none; background: rgba(255,255,255,0.1); color: #fff; }
.editorial-bottom { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; flex-wrap: wrap; gap: 30px; }
.editorial-links { min-width: 0; max-width: 100%; }
.editorial-links ul { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; } /* long footer menus wrap instead of widening the page on phones */

/* --- STYLE 4: CORPORATE GRID --- */
.footer-style-4 { padding: 60px 0 0; }
.corporate-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 20px; }
.corporate-middle { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 60px 0; }
.corp-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; font-weight: 800; }

/* --- STYLE 6: NEWS / LINKS --- */
.footer-style-6 {
    background: var(--bg-section-alt);
    border-top: 4px solid var(--accent);
    padding: 4rem 0 2rem;
    color: var(--text-main);
}

/* Flexible columns: adapts to any mix of logo, 1–3 menus and the subscribe box */
.footer-style-6 .footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; margin-bottom: 2rem; padding-bottom: 0; }
.footer-style-6 .footer-col { flex: 1 1 150px; min-width: 0; }
.footer-style-6 .footer-col.footer-col-first { flex: 2 1 260px; padding-right: 1.5rem; }
.footer-style-6 .footer-col.col-subscribe { flex: 1.6 1 240px; }
.footer-style-6 .footer-col.footer-col-first:empty { display: none; }
.footer-style-6 .footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-style-6 .footer-col ul li { margin: 0 0 0.85rem; }
.footer-style-6 .footer-col .sub-menu { display: none; }

.footer-style-6 .footer-text-logo { color: var(--text-main) !important; }
.footer-style-6 .footer-text-logo span { color: var(--accent) !important; }
.footer-style-6 h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--text-main); }
.footer-style-6 a { color: var(--text-muted); font-weight: 600; }
.footer-style-6 a:hover { color: var(--accent); }
.footer-style-6 .footer-bottom { border-top: 1px solid var(--border); color: var(--text-muted); }
.footer-style-6 .footer-copy { margin: 0; }

@media (max-width: 992px) {
    .footer-style-6 .footer-col.footer-col-first,
    .footer-style-6 .footer-col.col-subscribe { flex-basis: 100%; padding-right: 0; }
}
@media (max-width: 600px) {
    .footer-style-6 { padding: 3rem 0 1.5rem; }
    .footer-style-6 .footer-grid { gap: 2rem 1.5rem; text-align: left; }
    .footer-style-6 .footer-col { flex: 1 1 calc(50% - 1.5rem); }
    .footer-style-6 .footer-col.footer-col-first,
    .footer-style-6 .footer-col.col-subscribe { flex-basis: 100%; }
    .site-footer.footer-style-6 .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
    .footer-style-6 .footer-bottom-links { flex-wrap: wrap; gap: 0.75rem 1.5rem; }
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid, .corporate-middle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-top { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .editorial-bottom { flex-direction: column; }
    .editorial-links ul { justify-content: center; }
}

@media (max-width: 600px) {
    .footer-grid, .corporate-middle { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .editorial-form { flex-direction: column; }
    .corporate-top { flex-direction: column; }
    .footer-socials { justify-content: center; }
}

@media (max-width: 380px) {
    /* Subscribe form: stack button below input on very small screens */
    .footer-subscribe-form { flex-wrap: wrap; }
    .footer-subscribe-input { min-width: 0; flex-basis: 100%; }
    .footer-subscribe-btn { flex-basis: 100%; width: 100%; height: 44px; border-radius: 0 0 8px 8px; }

    /* Footer text: tighten font size */
    .footer-text-logo { font-size: 1.4rem; }
    .footer-subscribe-text { font-size: 0.85rem; }

    /* Grid min-width: 0 so columns don't blow out */
    .footer-grid > *,
    .corporate-middle > * { min-width: 0; }
}

/* ==========================================================================
   UTILITY CLASSES — Replaces inline styles in footer templates
   ========================================================================== */

/* --- Style 6: Logo & description --- */
.footer-news-logo { margin-bottom: 1rem; }
.footer-news-logo-inner { color: var(--text-main); }
.footer-style-6 .footer-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.7; }
.footer-style-6 .footer-subscribe-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* --- Style 6: Subscribe form (light theme override) --- */
.footer-style-6 .footer-subscribe {
    background: var(--bg-card);
    border-color: var(--border);
}
.footer-style-6 .footer-subscribe input { color: var(--text-main); }
.footer-style-6 .footer-subscribe button { padding: 0 20px; font-size: 1.2rem; }

/* --- Style 6: Footer bottom bar --- */
.footer-style-6 .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0;
    text-align: left;
}
.footer-style-6 .footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    color: var(--text-secondary, var(--text-muted));
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* --- Style 3: editorial copyright --- */
.editorial-copy { display: block; margin-top: 15px; }