/* ==========================================================================
   Braifi International School — Site Footer (fresh build)
   Scoped under .bis-footer to avoid conflicts.
   ========================================================================== */

.bis-footer,
.bis-footer * {
    box-sizing: border-box;
}

.bis-footer {
    position: relative;
    font-family: var(--bis-header-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, var(--bis-gray-900) 0%, var(--bis-gray-800) 60%, var(--bis-gray-900) 100%);
    overflow: hidden;
}

.bis-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bis-footer a:hover {
    color: var(--bis-gold, #ffb84d);
}

.bis-footer__wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* Decorative pattern overlay */
.bis-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(700px 350px at 100% 0%, rgba(255, 184, 77, 0.10), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(243, 146, 0, 0.12), transparent 65%);
    pointer-events: none;
    z-index: 1;
}

/* ===============================================================
   1. Pre-footer CTA strip
   =============================================================== */
.bis-footer-cta {
    position: relative;
    background: linear-gradient(120deg, var(--bis-orange) 0%, var(--bis-orange-dark) 55%, var(--bis-gray-900) 130%);
    color: #fff;
    overflow: hidden;
}

.bis-footer-cta::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.4) 0%, transparent 65%);
    pointer-events: none;
}

.bis-footer-cta::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bis-footer-cta__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bis-footer-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.bis-footer-cta__eyebrow i {
    color: var(--bis-gold, #ffb84d);
}

.bis-footer-cta h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.5rem;
}

.bis-footer-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 36rem;
}

.bis-footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

/* Footer CTA buttons use the unified .bis-btn classes — see buttons.css. */

/* ===============================================================
   2. Main footer grid
   =============================================================== */
.bis-footer-main {
    padding: 4.5rem 0 2.5rem;
}

.bis-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 3rem;
    align-items: flex-start;
}

.bis-footer__brand .bis-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.bis-footer__brand .bis-footer__logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.bis-footer__brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.bis-footer__brand-name strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.bis-footer__brand-name small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bis-gold, #ffb84d);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 0.15rem;
}

.bis-footer__about {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0 0 1.5rem;
    max-width: 32ch;
}

.bis-footer__contact-mini {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bis-footer__contact-mini a {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.bis-footer__contact-mini a i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--bis-gold, #ffb84d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.bis-footer__contact-mini a:hover i {
    background: var(--bis-gold, #ffb84d);
    color: #1f1f1f;
}

/* Footer columns */
.bis-footer__col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.2rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.bis-footer__col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--bis-gold, #ffb84d);
    border-radius: 3px;
}

.bis-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bis-footer__col li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
}

.bis-footer__col li a::before {
    content: "›";
    color: var(--bis-gold, #ffb84d);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.bis-footer__col li a:hover {
    color: #fff;
    transform: translateX(2px);
}

.bis-footer__col li a:hover::before {
    transform: translateX(2px);
}

/* Newsletter column */
.bis-footer__newsletter h4 {
    margin-bottom: 0.85rem;
    padding-bottom: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
}
.bis-footer__newsletter h4::after { display: none; }

.bis-footer__newsletter > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1.1rem;
}

.bis-footer__newsletter form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bis-footer__newsletter form:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bis-gold, #ffb84d);
}

.bis-footer__newsletter form i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-right: 0.4rem;
}

.bis-footer__newsletter input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.55rem 0;
    min-width: 0;
}

.bis-footer__newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.bis-footer__newsletter button {
    border: 0;
    background: var(--bis-gold, #ffb84d);
    color: #1f1f1f;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bis-footer__newsletter button:hover {
    background: #fff;
    transform: scale(1.05);
}

.bis-footer__newsletter button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
}

.bis-footer__newsletter-message {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.4;
    display: none;
}

.bis-footer__newsletter-message.is-visible { display: block; }

.bis-footer__newsletter-message small {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.bis-footer__newsletter-message .text-success { color: #34d399; }
.bis-footer__newsletter-message .text-warning { color: #fbbf24; }
.bis-footer__newsletter-message .text-danger  { color: #fca5a5; }

/* Socials in newsletter column */
.bis-footer__socials {
    margin-top: 1.4rem;
}

.bis-footer__socials > span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.65rem;
}

.bis-footer__socials-icons {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bis-footer__socials-icons a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.bis-footer__socials-icons a:hover {
    background: var(--bis-gold, #ffb84d);
    border-color: var(--bis-gold, #ffb84d);
    color: #1f1f1f;
    transform: translateY(-3px);
}

/* Portal access pills */
.bis-footer__portals {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bis-footer__portal-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bis-footer__portal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bis-gold, #ffb84d);
    transform: translateY(-2px);
    color: inherit;
}

.bis-footer__portal-btn i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bis-orange-light) 0%, var(--bis-orange-dark) 100%);
    color: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bis-footer__portal-btn-text { display: flex; flex-direction: column; }

.bis-footer__portal-btn-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.bis-footer__portal-btn-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.bis-footer__portal-btn-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, color 0.2s ease;
}

.bis-footer__portal-btn:hover .bis-footer__portal-btn-arrow {
    color: var(--bis-gold, #ffb84d);
    transform: translateX(3px);
}

/* ===============================================================
   3. Bottom bar
   =============================================================== */
.bis-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.bis-footer-bottom__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bis-footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.bis-footer-bottom p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.bis-footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.bis-footer-bottom__links a {
    color: rgba(255, 255, 255, 0.55);
}

.bis-footer-bottom__links a:hover {
    color: #fff;
}

.bis-footer-bottom__credit {
    color: rgba(255, 255, 255, 0.5);
}

.bis-footer-bottom__credit a {
    color: var(--bis-gold, #ffb84d);
    font-weight: 700;
}

/* ===============================================================
   4. Floating actions (WhatsApp + back to top)
   =============================================================== */
.bis-float-actions {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-end;
}

.bis-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.bis-float-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.bis-float-btn--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation: bisWhatsappPulse 2.5s infinite;
}

@keyframes bisWhatsappPulse {
    0%   { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.bis-float-btn--top {
    background: var(--bis-orange);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
}

.bis-float-btn--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bis-float-btn--top:hover {
    background: var(--bis-orange-dark);
    transform: translateY(-3px);
}

/* ===============================================================
   5. Responsive
   =============================================================== */
@media (max-width: 1199px) {
    .bis-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2.5rem;
    }

    .bis-footer__newsletter {
        grid-column: 1 / -1;
        max-width: 540px;
    }
}

@media (max-width: 767px) {
    .bis-footer-cta__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .bis-footer-cta__actions { justify-content: flex-start; }

    .bis-footer-main { padding: 3rem 0 2rem; }

    .bis-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .bis-footer__brand,
    .bis-footer__newsletter {
        grid-column: 1 / -1;
    }

    .bis-footer-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
    }

    .bis-footer-bottom__links { justify-content: center; }

    .bis-float-actions { right: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
    .bis-footer__grid { grid-template-columns: 1fr; }
    .bis-footer-cta__actions .bis-btn { width: 100%; }
}
