/* ======================================
   FOOTER
====================================== */

.fil-footer {
    background-color: #06064E;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fil-footer__inner {
    max-width: 1680px;
    padding: 60px 12px 32px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ======================================
   DECORATIVE CREST
====================================== */

.fil-footer__crest {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 420px;
    height: auto;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
}

.fil-footer__crest img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom right;
    filter: brightness(0) invert(1);
}

/* ======================================
   TOP — BRAND + NEWSLETTER
====================================== */

.fil-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.fil-footer__brand {
    flex: 1;
}

.fil-footer__brand h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Newsletter */
.fil-footer__newsletter {
    flex: 0 0 340px;
    max-width: 340px;
    padding-top: 8px;
}

.fil-footer__newsletter-label {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.fil-footer__newsletter-label strong {
    color: #ffffff;
    font-weight: 700;
}

.fil-footer__newsletter-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    padding: 4px 4px 4px 14px;
}

.fil-footer__newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: #333333;
    background: transparent;
    padding: 8px 0;
}

.fil-footer__newsletter-form input[type="email"]::placeholder {
    color: #999999;
}

.fil-footer__newsletter-form button {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #D2221A;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.fil-footer__newsletter-form button:hover {
    background: #b01a13;
}

.fil-footer__newsletter-form button svg {
    width: 18px;
    height: 18px;
}

/* ======================================
   DIVIDER
====================================== */

.fil-footer__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 48px;
}

/* ======================================
   BODY — 4 COLUMNS
====================================== */

.fil-footer__body {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.fil-footer__col-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

.fil-footer__col p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #ffffff;
    margin: 0 0 20px;
}

.fil-footer__col h4 + p,
.fil-footer__col h4 + a {
    margin-top: 0;
}

.fil-footer__col > h4:not(:first-child) {
    margin-top: 20px;
}

/* Links */
.fil-footer__link {
    font-size: 0.875rem;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.fil-footer__link:hover {
    color: #ffffff;
}

/* Helpful links list */
.fil-footer__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fil-footer__links-list li {
    margin-bottom: 8px;
}

/* ======================================
   SOCIAL ICONS
====================================== */

.fil-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.fil-footer__social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 0.8rem;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.fil-footer__social-link:hover {
    background-color: #AFAFFF;
    border-color: #AFAFFF;
    color: #ffffff;
}

/* ======================================
   COPYRIGHT
====================================== */

.fil-footer__copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.78rem;
    color: #ffffff;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 1199.98px) {
    .fil-footer__body {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .fil-footer__brand h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .fil-footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .fil-footer__newsletter {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .fil-footer__brand h2 {
        font-size: 1.85rem;
    }

    .fil-footer__inner {
        padding: 48px 20px 28px;
    }

    .fil-footer__crest {
        width: 260px;
        opacity: 0.12;
    }
}

@media (max-width: 575.98px) {
    .fil-footer__body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fil-footer__brand h2 {
        font-size: 1.6rem;
    }
}
