/*
  footer.css
  Cleaned and unified footer stylesheet.
  - Consolidates social icons rules (no separate footer-social-icons.css)
  - Removes duplicate/unused rules
  - Keeps responsive and accessibility-friendly styles
*/

/* ======================
   Base footer layout
   ====================== */
.ftco-footer {
    background: #2c343a;
    color: #ffffff;
    padding: 3rem 0 1rem;
    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial;
}

.ftco-footer .container {
    max-width: 1200px;
}

.ftco-footer .row.mb-5 {
    margin-bottom: 2rem;
}

.ftco-footer-widget {
    margin-bottom: 2rem;
}

.ftco-footer-widget h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ftco-footer-widget p {
    color: #cccccc;
    line-height: 1.6;
}

/* Links in lists inside footer widgets */
.ftco-footer-widget ul.list-unstyled li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.25s ease;
}
.ftco-footer-widget ul.list-unstyled li a:hover,
.ftco-footer-widget ul.list-unstyled li a:focus {
    color: #f96d00; /* Accent color */
    outline: none;
}

/* block-23: contact list */
.block-23 ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.block-23 ul li {
    margin-bottom: 0.5rem;
}
.block-23 ul li a {
    color: #cccccc;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.block-23 ul li a:hover,
.block-23 ul li a:focus {
    color: #f96d00;
}
.block-23 .icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ======================
   Social icons (unified)
   - Force white icons
   - Remove orange hover animation; use subtle scale + translucent bg
   - Center icons horizontally in footer
   - High specificity to override other theme rules
   ====================== */

/* Container layout */
.ftco-footer .ftco-footer-social {
    display: flex;
    justify-content: center; /* center icons horizontally by default */
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 0;
}

/* Reset list styles for social list */
.ftco-footer .ftco-footer-social li {
    margin: 0 !important;
    list-style: none;
}

/* Link (icon) base */
.ftco-footer .ftco-footer-social li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1 !important;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease !important;
    font-size: 18px !important;
}

/* Ensure any inner icon element stays white */
.ftco-footer .ftco-footer-social li a i,
.ftco-footer .ftco-footer-social li a span,
.ftco-footer .ftco-footer-social li a .fab,
.ftco-footer .ftco-footer-social li a::before {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* Hover/focus: subtle, non-orange effect */
.ftco-footer .ftco-footer-social li a:hover,
.ftco-footer .ftco-footer-social li a:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    transform: scale(1.05) !important;
    color: #ffffff !important;
}

/* Keep inner icon white on hover/focus */
.ftco-footer .ftco-footer-social li a:hover i,
.ftco-footer .ftco-footer-social li a:hover span,
.ftco-footer .ftco-footer-social li a:focus i,
.ftco-footer .ftco-footer-social li a:focus span {
    color: #ffffff !important;
}

/* Extra selector specificity for common social links (defensive) */
.ftco-footer .ftco-footer-social li a[href*="whatsapp"] i,
.ftco-footer .ftco-footer-social li a[href*="facebook"] i,
.ftco-footer .ftco-footer-social li a[href*="instagram"] i {
    color: #ffffff !important;
    background: none !important;
    text-shadow: none !important;
}

/* Accessibility: visible focus ring */
.ftco-footer .ftco-footer-social li a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45) !important;
    outline-offset: 3px !important;
}

/* Small size adjustments for icons */
@media (max-width: 768px) {
    .ftco-footer .ftco-footer-social li a {
        width: 36px !important;
        height: 36px !important;
        border-width: 1.6px !important;
    }
    .ftco-footer .ftco-footer-social li a i {
        font-size: 16px !important;
    }
}

/* ======================
   Fine-grain spacing tweaks
   (kept small rules that might be referenced elsewhere)
   ====================== */
.ftco-footer-social li a {
    /* kept for compatibility with other selectors that may reference .ftco-footer-social directly */
    font-size: 1.25rem;
}

/* ======================
   Footer small layout & responsiveness
   ====================== */

/* BETWEEN 768px and 1199.98px: tighten spacing */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .ftco-footer .row.mb-5 > [class*="col-"] {
        margin-bottom: 1rem;
    }

    .ftco-footer .row.mb-5 {
        margin-bottom: 1rem;
    }

    .ftco-footer-widget {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 0.75rem;
        text-align: left !important;
    }

    .ftco-footer-widget h2 {
        font-size: 1.12rem;
    }

    .ftco-footer-widget p,
    .block-23 ul li a {
        color: #d1d1d1;
    }

    /* Keep social icons centered in this band as well for visual balance */
    .ftco-footer .ftco-footer-social {
        justify-content: center;
        float: none !important;
    }
}

/* Narrow mobile viewports: reduce spacing progressively */
@media (max-width: 767.98px) {
    .ftco-footer {
        padding: 1.25rem 0 0.6rem;
    }

    .ftco-footer .row.mb-5 {
        margin-bottom: 0.5rem;
    }

    .ftco-footer-widget {
        margin-bottom: 0.25rem;
        padding-left: 8px;
        padding-right: 8px;
        text-align: left !important;
    }

    .ftco-footer-widget h2 {
        font-size: 1.05rem;
    }

    .block-23 ul li {
        margin-bottom: 0.35rem;
    }

    /* On narrow viewports, allow slight right margin between social items (overrides list reset above) */
    .ftco-footer .ftco-footer-social li {
        margin-right: 0.375rem;
    }
}

/* Extra small fine tuning */
@media (max-width: 420px) {
    .ftco-footer-widget h2 {
        font-size: 1rem;
    }
    .ftco-footer-widget p,
    .block-23 ul li a {
        font-size: 0.94rem;
    }
}

/* Minor visual tweaks */
.ftco-footer-widget ul.list-unstyled {
    padding-left: 0;
}
.ftco-footer-widget ul.list-unstyled li {
    line-height: 1.6;
}

/* End of footer.css */
