/* =========================================
   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: 2fr 1fr 1fr 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); color: #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: 1fr 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 ul { display: flex; gap: 20px; }

/* --- 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: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0; }
.corp-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 25px; font-weight: 800; }

/* --- STYLE 5: BOLD ACCENT --- */
.footer-style-5 { background: var(--accent) !important; color: rgba(255,255,255,0.9); padding: 80px 0 0; }
.footer-style-5 .footer-col h3 { color: #fff; }
.footer-style-5 .social-link { background: rgba(0,0,0,0.1); border-color: transparent; }
.footer-style-5 .social-link:hover { background: #fff; color: var(--accent) !important; }

/* --- 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); 
}

/* Updated Responsive Grid for Style 6 */
.footer-style-6 .footer-grid { 
    display: flex; /* Switch to flexbox for better dynamic spacing */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 3rem; 
    margin-bottom: 3rem; 
    justify-content: space-between; /* Spread remaining columns out */
}

/* Make columns flex dynamically */
.footer-style-6 .footer-col {
    flex: 1; /* Default to equal width */
    min-width: 200px; /* Prevent them from getting too squished before wrapping */
}

/* If the first column exists (logo/desc), give it more room on desktop */
.footer-style-6 .footer-col.footer-col-first {
    flex: 2; /* Takes up 2x the space of a normal column */
    min-width: 300px; 
    padding-right: 1.5rem;
}

/* Hide the first column completely if it has no content inside */
.footer-style-6 .footer-col.footer-col-first:empty {
    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-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.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); }

/* Responsive */
@media (max-width: 992px) {
    .footer-grid, .corporate-middle { grid-template-columns: repeat(2, 1fr); }
    .editorial-top { grid-template-columns: 1fr; text-align: center; }
    .editorial-bottom { flex-direction: column; }
}

@media (max-width: 600px) {
    .footer-grid, .corporate-middle { grid-template-columns: 1fr; text-align: center; }
    .editorial-form { flex-direction: column; }
    .corporate-top { flex-direction: column; }
    .footer-socials { justify-content: center; }
}