/* ════════════════════════════════════════════════════
   KIU FOOTER — LIGHT / BRACU-INSPIRED

   NOTE ON !important: this file used to carry 374 of them, one on
   essentially every declaration. None were load-bearing. Every rule here
   is already rooted at .kiu-footer, main.css loads earlier so equal
   specificity already resolves in this file's favour, and none of
   main.css's own !important rules can match footer markup — they target
   template classes (rs-*, main-menu, mean-container, swiper-*) and the
   footer uses only kiu-* classes. Bootstrap's utility !important rules
   are irrelevant for the same reason: the markup uses no utility classes.

   Do not reintroduce them. If a declaration here is losing to something,
   the fix is to find what is winning and why, not to escalate.

   NOTE ON UNITS: main.css sets `html { font-size: 10px }`,
   so 1rem = 10px sitewide. Every size in this file is therefore
   declared in explicit px — do not reintroduce rem here.

   Palette:
     Surface    : #f5f6f9   
     Ink        : #0e274e   (headings + links)
     Teal       : #0dd6f0   (KIU accent — icons, borders)
     Teal deep  : #247a94;   (accessible teal for text/hover)
     Accent     : #00A393
════════════════════════════════════════════════════ */

footer.kiu-footer {
    --kiu-f-surface:   #f5f6f9;
    --kiu-f-card:      #ffffff;
    --kiu-f-ink:       #0e274e;
    --kiu-f-ink-mute:  rgba(14, 39, 78, 0.65);
    --kiu-f-ink-faint: rgba(14, 39, 78, 0.45);
    --kiu-f-hairline:  rgba(14, 39, 78, 0.12);
    --kiu-f-teal:      #0dd6f0;
    --kiu-f-teal-deep: #247a94;
    --kiu-f-accent:      #00A393;

    position: relative;
    overflow: hidden;
    background: var(--kiu-f-surface);
    border-top: 1px solid rgba(0, 163, 147, 0.4);
    font-family: var(--rs-ff-body);
    color: var(--kiu-f-ink);
    box-sizing: border-box;
}
footer.kiu-footer * {
    box-sizing: border-box;
}

/* ── Background orbs ─────────────────────────────── */
.kiu-footer-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(110px);
    z-index: 0;
}
.kiu-footer-bg-orb--teal {
    width: 650px;
    height: 650px;
    background: #00b4a6;
    top: -250px;
    left: -180px;
    opacity: 0.05;
}
.kiu-footer-bg-orb--navy {
    width: 500px;
    height: 500px;
    background: #1c4470;
    bottom: -160px;
    right: 8%;
    opacity: 0.06;
}
.kiu-footer-bg-orb--accent {
    width: 320px;
    height: 320px;
    background: #c8a946;
    top: 40%;
    right: -60px;
    opacity: 0.04;
}

/* ── Inner container ─────────────────────────────── */
.kiu-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
    padding: 60px 60px 50px;
}

/* ══════════════════════════════════════════════════
   AGGRESSIVE 4K / TV SCALING
══════════════════════════════════════════════════ */
@media (min-width: 2560px) {
    .kiu-footer-inner {
        max-width: 90%;
        padding: 80px 40px 64px;
    }

    /* Massive Brand Identity */
    .kiu-footer-logo { height: 170px; }
    .kiu-footer-brand-name { font-size: 42px; }
    .kiu-footer-brand-tagline { font-size: 21px; }

    /* Massive Contact Pills */
    .kiu-footer-contact-pill {
        font-size: 24px;
        padding: 16px 32px;
    }
    .kiu-footer-contact-pill__icon,
    .kiu-footer-contact-pill__icon svg {
        width: 32px;
        height: 32px;
    }

    /* Massive Navigation Grid */
    .kiu-footer-nav-col__heading {
        font-size: 32px;
    }
    .kiu-footer-nav-col__summary {
        margin-bottom: 32px;
    }
    .kiu-footer-nav-col__heading-icon {
        width: 42px;
        height: 42px;
    }
    .kiu-footer-nav-col__heading-icon svg {
        width: 22px;
        height: 22px;
    }
    .kiu-footer-nav-list a {
        font-size: 26px;
        line-height: 2;
    }

    /* Massive Map Card */
    .kiu-footer-map-card__title { font-size: 32px; }
    .kiu-footer-map-card__subtitle { font-size: 24px; }
    .kiu-footer-map-btn {
        font-size: 24px;
        padding: 16px 35px;
    }
    .kiu-footer-map-card__header { padding: 32px 40px; }
    .kiu-footer-map-btn svg { width: 24px; height: 24px; }

    /* Massive Bottom Bar */
    .kiu-footer-social__label { font-size: 22px; margin-right: 24px;}
    .kiu-footer-social__link {
        width: 70px;
        height: 70px;
    }
    .kiu-footer-social__icon {
        width: 32px;
        height: 32px;
    }
    .kiu-footer-copyright { font-size: 22px; }
}

/* ══════════════════════════════════════════════════
   BRAND STRIP
══════════════════════════════════════════════════ */
.kiu-footer-brand-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.kiu-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.kiu-footer-logo {
    height: 80px;
    width: auto;
    filter: none;          /* no glow */
    transition: transform 0.3s ease;
    display: block;
}
.kiu-footer-logo:hover {
    transform: scale(1.06) rotate(-1deg);
}
.kiu-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.kiu-footer-brand-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--kiu-f-ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: block;
}
.kiu-footer-brand-tagline {
    font-size: 13px;
    color: var(--kiu-f-ink-mute);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
}
.kiu-footer-brand-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.kiu-footer-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--kiu-f-card);
    border: 1px solid var(--kiu-f-hairline);
    color: var(--kiu-f-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
a.kiu-footer-contact-pill:hover {
    background: rgba(0, 180, 166, 0.08);
    border-color: var(--kiu-f-teal);
    color: var(--kiu-f-teal-deep);
    transform: translateY(-1px);
}
.kiu-footer-contact-pill--static {
    cursor: default;
}
.kiu-footer-contact-pill__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--kiu-f-teal-deep);
    display: inline-flex;
    align-items: center;
}
.kiu-footer-contact-pill__icon svg {
    width: 16px;
    height: 16px;
}

/* ══════════════════════════════════════════════════
   DIVIDERS
══════════════════════════════════════════════════ */
.kiu-footer-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0;
}
.kiu-footer-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,149,47,0.45), transparent);
    display: block;
}
.kiu-footer-divider--slim {
    margin: 32px 0 24px;
}
.kiu-footer-divider__line--teal {
    background: linear-gradient(90deg, transparent, rgba(14,39,78,0.16), transparent);
}

/* ══════════════════════════════════════════════════
   BODY: MAP + NAV
══════════════════════════════════════════════════ */
.kiu-footer-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;      /* replaces the removed top divider's spacing */
}
@media (min-width: 1024px) {
    .kiu-footer-body {
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.15fr);
        gap: 64px;
        align-items: stretch;
    }
}

/* ── Map Card ─────────────────────────────── */
.kiu-footer-map-col {
    display: flex;
    flex-direction: column;
}
.kiu-footer-map-card {
    background: var(--kiu-f-card);
    border: 1px solid var(--kiu-f-hairline);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(14,39,78,0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}
.kiu-footer-map-card:hover {
    box-shadow: 0 8px 28px rgba(14,39,78,0.10);
}
.kiu-footer-map-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--kiu-f-hairline);
}
.kiu-footer-map-card__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #006d65, #00857b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kiu-footer-map-card__icon svg {
    width: 18px;
    height: 18px;
}
.kiu-footer-map-card__titles {
    flex: 1;
}
.kiu-footer-map-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--kiu-f-ink);
    margin: 0 0 2px;
    line-height: 1.3;
}
.kiu-footer-map-card__subtitle {
    font-size: 15px;
    color: var(--kiu-f-ink-mute);
    margin: 0;
}
.kiu-footer-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    background: linear-gradient(145deg, #003359, #0f5495);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.kiu-footer-map-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}
.kiu-footer-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,109,101,0.28);
    background: linear-gradient(135deg, #00857b, #00998d);
    color: #ffffff;
}
.kiu-footer-map-frame-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 220px; 
}
.kiu-footer-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;  
    border: 0;
    display: block;
    filter: none;
}
.kiu-footer-map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(245,246,249,0.35) 0%,
        transparent 16%,
        transparent 84%,
        rgba(245,246,249,0.35) 100%);
}

/* ── Nav Grid ─────────── */
.kiu-footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    align-content: start;  
}
@media (max-width: 1799px) {
    
    .kiu-footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}
.kiu-footer-nav-col {
    display: flex;
    flex-direction: column;
}


.kiu-footer-nav-col__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--kiu-f-hairline);
    list-style: none;
}
.kiu-footer-nav-col__summary::-webkit-details-marker {
    display: none;
}
.kiu-footer-nav-col__summary::marker {
    content: '';
}
.kiu-footer-nav-col__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: var(--kiu-f-ink);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    border: 0;
}
.kiu-footer-nav-col__chevron {
    display: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--kiu-f-ink-mute);
    transition: transform 0.25s ease;
}
.kiu-footer-nav-col__chevron svg {
    width: 20px;
    height: 20px;
}
.kiu-footer-nav-col__heading-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0,180,166,0.10);
    border: 1px solid rgba(0,180,166,0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.kiu-footer-nav-col__heading-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--kiu-f-teal-deep);
}
.kiu-footer-nav-col:hover .kiu-footer-nav-col__heading-icon {
    background: rgba(0,180,166,0.18);
    border-color: var(--kiu-f-teal);
}
.kiu-footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 8px;
}

.kiu-footer-nav-col:not([open]) .kiu-footer-nav-list {
    display: none;
}
.kiu-footer-nav-col[open] .kiu-footer-nav-list {
    display: flex;
}
.kiu-footer-nav-list li {
    list-style: none;
}
.kiu-footer-nav-list a,
.kiu-footer-nav-list .is-inactive {
    font-size: 18px;
    color: var(--kiu-f-ink);
    text-decoration: none;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    line-height: 28px;
    position: relative;
}
.kiu-footer-nav-list .is-inactive {
    color: var(--kiu-f-ink-mute, #7A8699);
    cursor: default;
    user-select: none;
}
.kiu-footer-nav-list a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--kiu-f-teal-deep);
    margin-right: 0;
    transition: width 0.22s ease, margin-right 0.22s ease;
    flex-shrink: 0;
    display: inline-block;
    align-self: center;
}
.kiu-footer-nav-list a:hover {
    color: var(--kiu-f-teal-deep);
}
.kiu-footer-nav-list a:hover::before {
    width: 10px;
    margin-right: 5px;
}
.kiu-footer-nav-list__highlight {
    color: var(--kiu-f-accent);
    font-weight: 600;
}
.kiu-footer-nav-list__highlight:hover {
    color: #8f7322;
}
.kiu-footer-nav-list__highlight::before {
    background: var(--kiu-f-accent);
}


@media (min-width: 640px) {
    .kiu-footer-nav-col__summary {
        pointer-events: none;
        cursor: default;
    }
    .kiu-footer-nav-col__chevron {
        display: none;
    }
}

/* ═════BOTTOM BAR═════ */
.kiu-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.kiu-footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.kiu-footer-social__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--kiu-f-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 8px;
}
.kiu-footer-social__link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--kiu-f-card);
    border: 1px solid var(--kiu-f-hairline);
    color: var(--kiu-f-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}
.kiu-footer-social__link:hover {
    background: linear-gradient(135deg, #006d65, #00998d);
    border-color: #006d65;
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 18px rgba(0,109,101,0.25);
}
.kiu-footer-social__icon {
    width: 18px;
    height: 18px;
}
.kiu-footer-copyright {
    font-size: 14px;
    line-height: 22px;
    color: var(--kiu-f-ink-mute);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.kiu-footer-copyright__sep {
    color: var(--kiu-f-ink-faint);
}
.kiu-footer-copyright__link {
    color: var(--kiu-f-ink-mute);
    text-decoration: none;
    transition: color 0.22s ease;
}
.kiu-footer-copyright__link:hover {
    color: var(--kiu-f-teal-deep);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — phones ≤767px
══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .kiu-footer-inner {
        padding: 40px 20px 24px;
    }
    .kiu-footer-brand-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .kiu-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .kiu-footer-map-card__header {
        flex-wrap: wrap;
    }
    .kiu-footer-map-btn {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 639px) {
    .kiu-footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .kiu-footer-nav-col {
        border-bottom: 1px solid var(--kiu-f-hairline);
    }
    .kiu-footer-nav-col__summary {
        justify-content: space-between;
        min-height: 48px;      /* tap target */
        margin: 0;
        padding: 10px 0;
        border-bottom: 0;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
    .kiu-footer-nav-col__summary:focus-visible {
        outline: 2px solid var(--kiu-f-teal-deep);
        outline-offset: 2px;
    }
    .kiu-footer-nav-col__heading {
        font-size: 18px;
    }
    .kiu-footer-nav-col__chevron {
        display: inline-flex;
    }
    .kiu-footer-nav-col[open] .kiu-footer-nav-col__chevron {
        transform: rotate(180deg);
    }
    .kiu-footer-nav-col[open] .kiu-footer-nav-list {
        padding: 4px 0 16px;
    }
}
