/*
   101API Custom Footer Styles — v1.4
   Figma Match: 4-column horizontal footer
*/

/* ═══════════════════════════════════════════
   RESET — Override any theme interference
   ═══════════════════════════════════════════ */

/* Force the entire footer widget area to be ONE horizontal row */
.footer-widgets {
    background-color: #13181d !important;
    width: 100% !important;
}

.footer-widgets .inside-footer-widgets {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 50px 40px !important;
    box-sizing: border-box !important;
}

/* Kill any GeneratePress float/width on widget areas */
.footer-widgets .footer-widget-1,
.footer-widgets .footer-widget-2,
.footer-widgets .footer-widget-3,
.footer-widgets .footer-widget-4 {
    float: none !important;
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/* Each individual widget inside */
.footer-widgets .inside-footer-widgets > .widget,
.footer-widgets .inside-footer-widgets > [class*="footer-widget"] > .widget {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* If widgets are direct children without wrapper */
.footer-widgets .inside-footer-widgets > *:not([class*="footer-widget"]) {
    flex: 1 1 0 !important;
}

/* ═══════════════════════════════════════════
   SECTION HEADINGS (cyan/teal color)
   ═══════════════════════════════════════════ */
.footer-title {
    color: #00d4ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════
   COLUMN 1 — LOGO SECTION
   ═══════════════════════════════════════════ */
.footer-logo-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-logo img {
    max-width: 160px !important;
    height: auto !important;
    display: block !important;
}

.footer-18-badge {
    margin-bottom: 14px;
}

.footer-18-badge img {
    width: 40px !important;
    height: 40px !important;
    display: block !important;
}

.footer-disclaimer {
    color: #888 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin: 0 0 16px 0 !important;
    max-width: 220px !important;
}

.footer-links-small {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    align-items: center;
}

.footer-links-small a {
    color: #666 !important;
    font-size: 12px !important;
    text-decoration: underline !important;
    transition: color 0.25s !important;
    line-height: 1.4 !important;
}

.footer-links-small a:hover {
    color: #00d4ff !important;
}

/* ═══════════════════════════════════════════
   COLUMNS 2 & 3 — MENU SECTIONS
   ═══════════════════════════════════════════ */
.footer-menu-section {
    display: flex !important;
    flex-direction: column !important;
}

.footer-menu-section .footer-menu-list,
.footer-menu-section ul.menu,
.footer-menu-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu-section .footer-menu-list li,
.footer-menu-section ul.menu li,
.footer-menu-section ul li {
    margin-bottom: 11px !important;
    padding: 0 !important;
}

/* Remove any sub-menu toggles / arrows */
.footer-menu-section .sub-menu {
    display: none !important;
}

.footer-menu-section a,
.footer-menu-section ul.menu a,
.footer-menu-section ul a {
    color: #888 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: color 0.25s, padding-left 0.2s !important;
    display: inline-block !important;
    background: transparent !important;
    padding: 0 !important;
}

.footer-menu-section a:hover,
.footer-menu-section ul.menu a:hover,
.footer-menu-section ul a:hover {
    color: #00d4ff !important;
    padding-left: 4px !important;
    background: transparent !important;
}

/* ═══════════════════════════════════════════
   COLUMN 4 — CONTACT SECTION
   ═══════════════════════════════════════════ */
.footer-contact-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-contact-tagline {
    color: #888 !important;
    font-size: 13px !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.5 !important;
    max-width: 260px !important;
}

/* ═══════════════════════════════════════════
   NEWSLETTER / EMAIL FORM
   ═══════════════════════════════════════════ */
.footer-newsletter-form {
    position: relative !important;
    width: 100% !important;
    max-width: 280px !important;
}

.footer-newsletter-form input[type="email"],
.footer-newsletter-form input[type="text"] {
    background: #1e2530 !important;
    border: 1px solid #2d3a45 !important;
    padding: 13px 52px 13px 18px !important;
    border-radius: 50px !important;
    color: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    outline: none !important;
    transition: border-color 0.25s !important;
}

.footer-newsletter-form input[type="email"]::placeholder,
.footer-newsletter-form input[type="text"]::placeholder {
    color: #666 !important;
}

.footer-newsletter-form input[type="email"]:focus,
.footer-newsletter-form input[type="text"]:focus {
    border-color: #00d4ff !important;
    outline: none !important;
}

.footer-newsletter-form button {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #00d4ff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.25s, box-shadow 0.25s !important;
    color: #0a0f14 !important;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.4) !important;
    flex-shrink: 0 !important;
	padding: 0;
}

.footer-newsletter-form button:hover {
    background: #00b8e6 !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.55) !important;
}

.footer-newsletter-form button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.footer-newsletter-form button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* DRAW CHEVRON WITH BEFORE/AFTER */
.footer-newsletter-form button::after {
    content: "" !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 3px solid #0d1218 !important;
    border-bottom: 3px solid #0d1218 !important;
    transform: rotate(-45deg) !important;
    margin-right: 2px !important; /* Slight shift to center visually */
    pointer-events: none !important;
}

/* ── Form messages ── */
.footer-form-message {
    margin-top: 10px !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
    border-radius: 6px !important;
    display: none !important;
}

.footer-form-message.success {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1) !important;
    display: block !important;
}

.footer-form-message.error {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
    display: block !important;
}

/* ═══════════════════════════════════════════
   COPYRIGHT BAR (Full-Width)
   ═══════════════════════════════════════════ */
.footer-copyright-text {
    color: #555 !important;
    font-size: 11px !important;
    text-align: center !important;
    padding: 30px 40px !important; /* Increased top padding */
    margin: 0 !important;
    background: transparent !important; /* Removed separate bg */
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.8 !important;
    display: block !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important; /* Faint line */
}

/* Force GeneratePress footer bar to wrap full-width */
.site-info, 
.footer-bar-align-center .footer-bar {
    padding: 0 !important;
    background-color: transparent !important;
}

.inside-site-info {
    max-width: 100% !important;
    padding: 0 !important;
}


/* ═══════════════════════════════════════════
   SITE FOOTER BG
   ═══════════════════════════════════════════ */
.site-footer {
    background-color: #13181d !important;
}

/* Ensure no gap between sections */
.footer-widgets,
.site-info,
.footer-bar {
    margin: 0 !important;
    border: none !important;
}

.footer-widgets .inside-footer-widgets {
    padding-bottom: 40px !important; /* Adjust if needed */
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-widgets .inside-footer-widgets {
        flex-wrap: wrap !important;
        gap: 30px !important;
        padding: 40px 24px !important;
    }

    .footer-widgets .footer-widget-1,
    .footer-widgets .footer-widget-2,
    .footer-widgets .footer-widget-3,
    .footer-widgets .footer-widget-4 {
        flex: 1 1 calc(50% - 20px) !important;
    }

    .footer-widgets .inside-footer-widgets > .widget {
        flex: 1 1 calc(50% - 20px) !important;
    }

    .footer-disclaimer {
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (≤560px)
   ═══════════════════════════════════════════ */
@media (max-width: 560px) {
    .footer-widgets .inside-footer-widgets {
        flex-direction: column !important;
        gap: 28px !important;
        padding: 36px 20px !important;
    }

    .footer-widgets .footer-widget-1,
    .footer-widgets .footer-widget-2,
    .footer-widgets .footer-widget-3,
    .footer-widgets .footer-widget-4 {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .footer-widgets .inside-footer-widgets > .widget {
        flex: 1 1 100% !important;
    }

    .footer-newsletter-form {
        max-width: 100% !important;
    }

    .footer-contact-tagline {
        max-width: 100% !important;
    }

    /* Hide Contact Us column on mobile */
    .footer-contact-section {
        display: none !important;
    }
}
