/*
 * cs-footer.css — Scoped footer styling for Cleared Systems
 * P-107 (2026-05-22)
 *
 * All rules are scoped to .footer-area so this never affects anything
 * outside the footer. Loaded AFTER vendor style.css so it can override
 * specific vendor rules without !important except where vendor uses
 * pixel line-heights that need to be neutralised.
 *
 * Served from /var/www/cs-cms-staging/assets/ via Apache Alias.
 * Do NOT edit theme-colors.css to change footer colors — it's auto-
 * regenerated by SettingObserver. Add overrides here instead.
 */

/* ========================================================================
   Overlay + section rhythm
   ======================================================================== */
.footer-area .footer-overlay {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-area .footer-widgets {
    align-items: flex-start;
}

/* ========================================================================
   Unified heading style across all four columns
   ======================================================================== */
.footer-area .widget-item-1 .cs-footer__brand,
.footer-area .widget-item-2 .title,
.footer-area .widget-item-3 .title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 1.5rem;
    padding: 0;
    letter-spacing: 0.01em;
}

/* ========================================================================
   Column 1 — logo, blurb, social row
   ======================================================================== */
.footer-area .widget-item-1 {
    color: #c2d1e2;
}

.footer-area .widget-item-1 img {
    display: block;
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-area .widget-item-1 p {
    color: #c2d1e2;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    padding: 0;
    max-width: 100%;
    font-size: 0.95rem;
}

/* Social icons row */
.footer-area .cs-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    list-style: none;
    padding: 0;
}

.footer-area .cs-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #c2d1e2;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.footer-area .cs-footer__social a:hover,
.footer-area .cs-footer__social a:focus-visible {
    background-color: #0c59db;
    border-color: #0c59db;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

/* ========================================================================
   Column 2 — Contact Us list
   Column 3 — Links list
   Shared list styling with consistent vertical rhythm
   ======================================================================== */
.footer-area .widget-item-2 ul,
.footer-area .widget-item-3 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;       /* override vendor inline-block */
    line-height: 1.5;     /* override vendor 50px */
}

.footer-area .widget-item-2 ul li,
.footer-area .widget-item-3 ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0 0 0.85rem;
    padding: 0;
    color: #c2d1e2;
    line-height: 1.5;     /* override vendor 50px */
    font-size: 0.95rem;
}

.footer-area .widget-item-2 ul li:last-child,
.footer-area .widget-item-3 ul li:last-child {
    margin-bottom: 0;
}

.footer-area .widget-item-2 ul li i,
.footer-area .widget-item-3 ul li i {
    color: #0c59db;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    padding-top: 0.3rem;  /* aligns icon with first line of multi-line text */
    padding-right: 0;     /* override vendor */
    line-height: 1;
}

.footer-area .widget-item-2 ul li a,
.footer-area .widget-item-3 ul li a {
    color: #c2d1e2;
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.5;
}

.footer-area .widget-item-2 ul li a:hover,
.footer-area .widget-item-3 ul li a:hover {
    color: #0c59db;
}

/* Contact column — handle the two phone numbers stacking neatly within one <li> */
.footer-area .widget-item-2 ul li .d-block {
    display: block !important;
    margin-bottom: 0.4rem;
}

.footer-area .widget-item-2 ul li .d-block:last-child {
    margin-bottom: 0;
}

/* Address line — multi-line, allow wrapping */
.footer-area .cs-footer__address {
    white-space: normal;
}

/* ========================================================================
   Column 4 — Newsletter form
   Consistent vertical rhythm between description, field, Turnstile, button
   ======================================================================== */
.footer-area .widget-item-3 .features-sub {
    background: none;
    padding: 0;
}

.footer-area .cs-newsletter__description {
    color: #c2d1e2;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.footer-area .cs-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-area .cs-newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-area .cs-newsletter__label {
    color: #c2d1e2;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-area .cs-newsletter__input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.footer-area .cs-newsletter__input::placeholder {
    color: rgba(194, 209, 226, 0.6);
}

.footer-area .cs-newsletter__input:focus {
    outline: none;
    border-color: #0c59db;
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-area .cs-newsletter__error {
    color: #ff8888;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

/* Turnstile wrapper — keep the widget from bleeding past column edge */
.footer-area .cs-newsletter__turnstile {
    max-width: 100%;
    min-height: 65px;
    overflow: hidden;
}

.footer-area .cs-newsletter__turnstile .cf-turnstile {
    max-width: 100%;
}

.footer-area .cs-newsletter__submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease;
}

.footer-area .cs-newsletter__submit:hover {
    transform: translateY(-1px);
}

/* ========================================================================
   Copyright bar
   ======================================================================== */
.footer-area .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0 0;
    text-align: center;
    color: #c2d1e2;
    font-size: 0.875rem;
}

.footer-area .footer-copyright .py-3 {
    padding: 0 !important;
}

.footer-area .footer-copyright a {
    color: #c2d1e2;
    text-decoration: none;
}

.footer-area .footer-copyright a:hover {
    color: #0c59db;
}

/* ========================================================================
   Responsive — md breakpoint (columns stack)
   ======================================================================== */
@media (max-width: 991px) {
    .footer-area .footer-overlay {
        padding-top: 4rem;
    }

    .footer-area .widget-item-1,
    .footer-area .widget-item-2,
    .footer-area .widget-item-3 {
        margin-bottom: 2.5rem;
    }

    .footer-area .col-lg-3:last-child .widget-item-3,
    .footer-area .col-lg-4:last-child .widget-item-3 {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .footer-area .footer-overlay {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    .footer-area .widget-item-1 .cs-footer__brand,
    .footer-area .widget-item-2 .title,
    .footer-area .widget-item-3 .title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }

    .footer-area .cs-newsletter__turnstile {
        transform: scale(0.95);
        transform-origin: left center;
    }
}
