/* ==========================================================================
   Kimaya Footer — Complete Layout System
   Three-level footer:
     Level 1: 3-column content (Brand | Find Us | Our Services)
     Level 2: Centered navigation row
     Level 3: Copyright bar
   ========================================================================== */

/* ── Root Footer Wrapper ────────────────────────────────────────────────── */
.kimaya-footer {
    position: relative;
    overflow: hidden;
    background: #6e3d68;
    color: #ebd6e6;
    font-family: inherit;
    padding-top: 40px;
}

/* ── Decorative Background Elements ──────────────────────────────────────── */
.kf-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.kf-deco--cross {
    top: -20px;
    left: -30px;
    width: 160px;
}

.kf-deco--flower {
    bottom: 0;
    right: -20px;
    width: 220px;
    opacity: 0.06;
}

/* ── LEVEL 1 — Three-Column Content ─────────────────────────────────────── */
.kf-main {
    position: relative;
    z-index: 1;
    width: 100%;
}

.kf-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

/* ── Column Base ─────────────────────────────────────────────────────────── */
.kf-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── Column 1 — Brand ───────────────────────────────────────────────────── */
.kf-logo {
    margin-bottom: 16px;
}

.kf-logo__img {
    max-width: 210px;
    height: auto;
    display: block;
    filter: brightness(1.1);
}

.kf-brand__desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #f3e6f0;
    margin: 0;
    max-width: 280px;
}

/* ── Column 2 — Find Us ─────────────────────────────────────────────────── */
.kf-col__heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.kf-col__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #ffb3cc, #e07fa0);
    border-radius: 2px;
}

.kf-map-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
    /* Limit max-width so it doesn't overflow on smaller desktops */
    max-width: 400px;
}

.kf-map {
    display: block;
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 10px;
}

.kf-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.875rem;
    color: #f3e6f0;
    margin: 0;
    line-height: 1.5;
}

.kf-address__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ffb3cc;
}

/* ── Column 3 — Our Services ────────────────────────────────────────────── */
.kf-col--services {
    justify-self: end;
    align-items: flex-start;
    text-align: left;
}

.kf-col--services .kf-col__heading::after {
    left: 0;
    right: auto;
}

.kf-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.kf-services-list li {
    color: #f3e6f0;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.kf-services-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffb3cc;
    flex-shrink: 0;
}

/* ── LEVEL 2 — Navigation Row ───────────────────────────────────────────── */
.kf-nav {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding: 10px 24px;
    text-align: center;
}

.kf-nav__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
}

.kf-nav__link {
    color: #f3e6f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 12px;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.kf-nav__link:hover {
    color: #ffb3cc;
}

.kf-nav__sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    user-select: none;
}

/* ── LEVEL 3 — Copyright Bar ────────────────────────────────────────────── */
.kf-bottom {
    position: relative;
    z-index: 1;
    padding: 0 24px 20px;
}

.kf-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 0 16px 0;
}

.kf-bottom__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-copyright {
    font-size: 0.85rem;
    color: #ebd6e6;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* ── Tablet: adapt 3-col to narrower viewports ──────────────────────────── */
@media (max-width: 1024px) {
    .kf-inner {
        gap: 36px;
    }

    .kf-map {
        height: 210px;
    }
}

@media (max-width: 900px) {
    .kf-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    /* Brand spans full width on 2-col layout */
    .kf-col--brand {
        grid-column: 1 / -1;
    }

    .kf-brand__desc {
        max-width: 100%;
    }
}

/* ── Mobile: single column stack ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .kimaya-footer {
        padding-top: 44px;
    }

    .kf-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    .kf-col--brand {
        grid-column: 1;
    }

    .kf-brand__desc {
        max-width: 100%;
    }

    .kf-logo__img {
        max-width: 170px;
    }

    .kf-map-wrap {
        max-width: 100%;
    }

    .kf-map {
        height: 200px;
    }

    .kf-nav {
        margin-top: 32px;
        padding: 16px 20px;
    }

    .kf-nav__list {
        gap: 8px 8px;
    }

    .kf-nav__sep {
        display: none;
    }

    .kf-nav__link {
        font-size: 0.875rem;
        padding: 4px 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 4px;
    }

    .kf-bottom {
        padding: 0 20px 24px;
    }

    .kf-copyright {
        font-size: 0.8rem;
    }

    /* Reset Our Services to left alignment on mobile stack */
    .kf-col--services {
        justify-self: start;
        align-items: flex-start;
        text-align: left;
    }

    .kf-col--services .kf-col__heading::after {
        left: 0;
        right: auto;
    }

    .kf-services-list {
        align-items: flex-start;
    }
}
