/* ============================================================================
   PUBLIC FOOTER — SESCOM classy edition
   Solid charcoal background, green→amber gradient accent stripe, restrained
   typography, amber accent on hover. Designed to read as a single coherent
   block — no busy gradients or competing visual cues.
   ============================================================================ */

.footer-section {
    background: var(--neutral-color);
    color: rgba(255, 255, 255, 0.65);
    padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Top accent: thin green→amber gradient line */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Subtle radial wash near the top for depth (no gradient on the body itself) */
.footer-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26, 122, 60, 0.10) 0%, transparent 70%);
}

.footer-section > .container { position: relative; z-index: 1; }

/* ── Widget block ─────────────────────────────────────────────────────── */
.footer-widget { margin-bottom: 2rem; }

/* ── Brand ────────────────────────────────────────────────────────────── */
.footer-logo { display: flex; align-items: center; margin-bottom: 1rem; }

/* Most logos are dark; invert on the dark footer for legibility. If the
   uploaded logo is already light, override with a class on the partial. */
.footer-logo .app-logo-img {
    max-height: 44px;
    width: auto;
    filter: brightness(0) invert(1) brightness(0.95);
}

.footer-description {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

/* ── Social icons (rounded squares, amber-on-hover) ───────────────────── */
.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--neutral-color);
    transform: translateY(-2px);
}

/* ── Section titles ───────────────────────────────────────────────────── */
.footer-title {
    color: #ffffff;
    font-family: 'Sora', var(--font-family);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ── Link list (Quick Links, Services) ───────────────────────────────── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* ── Contact list (icon + text rows) ─────────────────────────────────── */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.footer-contact-list li i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-contact-list a:hover { color: var(--accent-color); }

/* ── Bottom strip ─────────────────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    padding-bottom: 0.25rem;
    font-size: 0.82rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Credentials line — TIN, CRB, EWURA, etc. */
.footer-creds {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.footer-creds .sep {
    margin: 0 0.55rem;
    color: rgba(255, 255, 255, 0.22);
}

/* Legal links (Privacy / Terms) */
.footer-legal {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.18s ease;
}

.footer-legal a:hover { color: var(--accent-color); }

.footer-legal .separator { color: rgba(255, 255, 255, 0.22); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-section { padding-top: 3rem; }
    .footer-legal {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
    .footer-title::after { width: 24px; }
    .social-link { width: 36px; height: 36px; font-size: 0.95rem; }
}
