/* ============================================================
   FOOTER — completely mobile-first, bulletproof
   ============================================================ */

.footer {
    background: linear-gradient(180deg, var(--navy) 0%, #16215a 100%);
    color: #b9c4e6;
    position: relative;
    /* Prevent any child from stretching past the viewport */
    max-width: 100%;
    overflow: hidden;
}

/* Decorative top accent line */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric) 0%, var(--sky) 50%, var(--electric) 100%);
}

/* ---------- Layout grid: MOBILE = 1 column ---------- */

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 32px;
}

.footer-col {
    min-width: 0;   /* Prevent grid overflow */
}

/* ---------- Brand column ---------- */

.footer-brand .logo-img {
    max-width: 140px;
    height: auto;
}

.footer-tagline {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #c4cee8;
    max-width: 40ch;
}

.footer-since {
    margin-top: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sky);
}

/* ---------- Section headings ---------- */

.footer h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 12px;
    position: relative;
}

.footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--electric);
    border-radius: 2px;
}

/* ---------- Lists ---------- */

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #b9c4e6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer a {
    color: #b9c4e6;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--sky);
}

/* ---------- Contact list with icons ---------- */

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-ic {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    margin-top: 1px;
}

.footer-ic svg {
    width: 16px;
    height: 16px;
}

/* ---------- Base strip (copyright + tagline) ---------- */

.foot-base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #96a2c8;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.foot-tag {
    letter-spacing: 0.08em;
    color: #8e9bc4;
}

/* ============================================================
   Tablet (≥ 640px)
   ============================================================ */

@media (min-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 52px 0 36px;
    }

    /* Brand spans both columns on tablet */
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 500px;
    }

    .footer-brand .logo-img {
        max-width: 160px;
    }

    .foot-base {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
        padding: 20px 0;
        font-size: 12.5px;
    }
}

/* ============================================================
   Desktop (≥ 900px)
   ============================================================ */

@media (min-width: 900px) {
    .footer-inner {
        grid-template-columns: 1.6fr 1fr 1.4fr;
        gap: 56px;
        padding: 64px 0 40px;
    }

    /* Reset brand column on desktop */
    .footer-brand {
        grid-column: auto;
        max-width: none;
    }

    .footer-brand .logo-img {
        max-width: 180px;
    }

    .footer h4 {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    .footer-tagline {
        font-size: 14.5px;
    }

    .footer li {
        font-size: 14.5px;
    }
}
