/* Footer look, built on the iApp logo palette: black badge, bright blue ring,
   orange accent squares. Scoped to .footer-v2 — the single public <footer>. */

footer.footer-v2 {
    /* Brand palette straight off the logo */
    --f-blue: #1b9ce5;
    --f-blue-deep: #1b75bc;
    --f-orange: #f58220;
    --f-ink: #ffffff;
    --f-muted: rgba(255, 255, 255, 0.62);
    --f-card: rgba(255, 255, 255, 0.045);
    --f-card-hover: rgba(255, 255, 255, 0.07);
    --f-line: rgba(255, 255, 255, 0.09);

    overflow: hidden;
    /* The closing CTA band (partials/footer-cta) is a full-bleed white section
       flush with the top edge, so the breathing room moves onto the dark
       container below it. */
    padding-top: 0;
    background:
        radial-gradient(620px 320px at 88% 0%, rgba(27, 156, 229, 0.18), transparent 62%),
        radial-gradient(520px 280px at 4% 100%, rgba(245, 130, 32, 0.1), transparent 62%),
        linear-gradient(180deg, #0a0f14 0%, #070b0f 55%, #050708 100%);
}

footer.footer-v2 > .container.mw-16 {
    padding-top: 40px;
}

/* ---------- Panels ---------- */

footer.footer-v2 .row.footer-section,
footer.footer-v2 .footer-bottom-panel {
    background: var(--f-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid var(--f-line);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    padding-top: 12px;
    padding-bottom: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

footer.footer-v2 .row.footer-section:hover {
    background: var(--f-card-hover);
    border-color: rgba(27, 156, 229, 0.45);
    box-shadow: 0 10px 30px rgba(27, 156, 229, 0.18);
}

footer.footer-v2 .row.footer-section.mt-footer {
    border-top: 1px solid var(--f-line);
    border-bottom: 1px solid var(--f-line);
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

footer.footer-v2 .row.footer-section.mt-footer:hover {
    border-color: rgba(27, 156, 229, 0.45);
}

footer.footer-v2 .footer-bottom-panel {
    padding-top: 26px;
    padding-bottom: 26px;
    margin-bottom: 24px;
}

/* ---------- Type ---------- */

footer.footer-v2 .footer-title {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    color: var(--f-ink) !important;
}

/* Blue-to-orange underline: the two logo accents in one stroke */
footer.footer-v2 .footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 28px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--f-blue), var(--f-orange));
    transition: width 0.3s ease;
}

footer.footer-v2 .footer-title:hover::after,
footer.footer-v2 .footer-collapse-toggle:hover .footer-title::after {
    width: 100%;
}

footer.footer-v2 .container p:not(.footer-title),
footer.footer-v2 .container .text-dark:not(.footer-title),
footer.footer-v2 .container p.boosttext {
    color: var(--f-muted) !important;
}

footer.footer-v2 .container .text-black,
footer.footer-v2 .container a.text-black {
    color: var(--f-ink) !important;
}

footer.footer-v2 .container p.fw-bold {
    color: var(--f-ink) !important;
}

/* ---------- Links (scoped to .container so the floating WhatsApp / chat widgets stay untouched) ---------- */

footer.footer-v2 .container .footer-link,
footer.footer-v2 .container li a {
    position: relative;
    display: inline-block;
    color: var(--f-muted);
    transition: color 0.2s ease, padding-left 0.25s ease;
}

/* A short blue dash slides out ahead of the link on hover */
footer.footer-v2 .container .footer-link::before,
footer.footer-v2 .container li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--f-blue);
    transform: translateY(-50%);
    transition: width 0.25s ease;
}

footer.footer-v2 .container .footer-link:hover,
footer.footer-v2 .container li a:hover {
    color: var(--f-blue) !important;
    padding-left: 16px;
}

footer.footer-v2 .container .footer-link:hover::before,
footer.footer-v2 .container li a:hover::before {
    width: 10px;
}

/* ---------- Scroll reveal ---------- */

footer.footer-v2 .footer-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

footer.footer-v2 .footer-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Accordion headers ---------- */

footer.footer-v2 .footer-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    padding: 6px 0;
    text-align: left;
    cursor: pointer;
}

footer.footer-v2 .footer-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer.footer-v2 .footer-collapse-toggle .footer-title {
    padding-bottom: 4px;
}

footer.footer-v2 .footer-count {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--f-blue);
    background: rgba(27, 156, 229, 0.16);
    border-radius: 999px;
    padding: 5px 10px;
    transition: background 0.25s ease, color 0.25s ease;
}

footer.footer-v2 .footer-collapse-toggle:hover .footer-count {
    background: var(--f-blue);
    color: #04070a;
}

footer.footer-v2 .footer-collapse-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--f-blue);
    background: rgba(27, 156, 229, 0.16);
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

footer.footer-v2 .footer-collapse-toggle:hover .footer-collapse-icon {
    background: var(--f-blue);
    color: #04070a;
}

footer.footer-v2 .footer-collapse-toggle.collapsed .footer-collapse-icon {
    transform: rotate(-90deg);
}

/* Links stagger in column by column once a section opens */
footer.footer-v2 .collapse.show [class*="col-lg-"] {
    animation: footerColIn 0.45s ease both;
}

footer.footer-v2 .collapse.show [class*="col-lg-"]:nth-child(1) { animation-delay: 0.02s; }
footer.footer-v2 .collapse.show [class*="col-lg-"]:nth-child(2) { animation-delay: 0.08s; }
footer.footer-v2 .collapse.show [class*="col-lg-"]:nth-child(3) { animation-delay: 0.14s; }
footer.footer-v2 .collapse.show [class*="col-lg-"]:nth-child(4) { animation-delay: 0.20s; }
footer.footer-v2 .collapse.show [class*="col-lg-"]:nth-child(5) { animation-delay: 0.26s; }

@keyframes footerColIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Social icons ---------- */

footer.footer-v2 .social-icon-head {
    gap: 12px !important;
}

footer.footer-v2 .social-icon-head li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
}

footer.footer-v2 .social-icon-head li a::before {
    display: none;
}

footer.footer-v2 .social-icon-head li a:hover {
    transform: translateY(-4px);
    padding-left: 0;
    border-color: transparent;
}

/* Each icon lights up in its own brand colour */
footer.footer-v2 .social-icon-head li:nth-child(1) a:hover {
    background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}

footer.footer-v2 .social-icon-head li:nth-child(2) a:hover {
    background: #25d366;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

footer.footer-v2 .social-icon-head li:nth-child(3) a:hover {
    background: #1877f2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

footer.footer-v2 .social-icon-head li:nth-child(4) a:hover {
    background: #0a66c2;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
}

/* The source SVGs are black glyphs — flip them white for the dark ground */
footer.footer-v2 .social-icon-head .footer-social-image {
    max-width: 20px;
    filter: brightness(0) invert(1);
}

footer.footer-v2 .social-icon-head li.linkdin-icon-header i {
    font-size: 20px;
    color: var(--f-ink);
}

/* ---------- Subscribe ---------- */

footer.footer-v2 .subs_label input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--f-ink);
    font-size: 15px;
    padding: 14px 62px 14px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

footer.footer-v2 .subs_label input::placeholder {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.38);
}

footer.footer-v2 .subs_label input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--f-blue);
    box-shadow: 0 0 0 4px rgba(27, 156, 229, 0.18);
    outline: none;
}

footer.footer-v2 .subs_label .send_btn1 {
    top: 5px;
    right: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--f-blue), var(--f-blue-deep));
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

footer.footer-v2 .subs_label .send_btn1:hover {
    transform: scale(1.07);
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(27, 156, 229, 0.5);
}

footer.footer-v2 .subs_label .send_btn1 svg {
    width: 20px;
    height: 20px;
}

/* ---------- Back to top ---------- */

footer.footer-v2 .footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--f-line);
}

footer.footer-v2 .footer-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: var(--f-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
}

footer.footer-v2 .footer-top-btn:hover {
    background: linear-gradient(135deg, var(--f-blue), var(--f-blue-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(27, 156, 229, 0.4);
}

footer.footer-v2 .footer-top-btn:hover svg {
    animation: footerArrowUp 0.8s ease infinite;
}

@keyframes footerArrowUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    footer.footer-v2 * {
        animation: none !important;
        transition: none !important;
    }
}

/* style.css spreads every `.row.footer-section .row` with space-between, which
   suits the sections whose columns don't add up to 12. The App Development list
   does fill the grid — twenty links, six to a line — so space-between strands
   its last line's final link against the right edge. Selector carries four
   classes so it outranks that rule. */
.row.footer-section .row.footer-links-grid {
    justify-content: flex-start;
}
