/* Site footer — matches home-3d dark theme */
.site-footer {
    --sf-bg: var(--brand-bg);
    --sf-border: var(--brand-border);
    --sf-text: var(--brand-text);
    --sf-muted: var(--brand-muted);
    --sf-accent: var(--brand-primary);
    background: var(--sf-bg);
    color: var(--sf-text);
    margin-top: 0;
    border-top: 1px solid var(--sf-border);
}

.site-footer .h3d-container {
    width: min(1240px, 92vw);
    margin-inline: auto;
}

.site-footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Cairo", "Tajawal", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1C75BC;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(43, 169, 224, 0.12);
    border: 1px solid rgba(43, 169, 224, 0.22);
}

.site-footer-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2BA9E0;
    box-shadow: 0 0 0 4px rgba(43, 169, 224, 0.2);
    animation: site-footer-cta-pulse 2s ease-in-out infinite;
}

@keyframes site-footer-cta-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.92); }
}

.site-footer-cta {
    padding: clamp(2rem, 5vw, 3rem) 0 0;
    background: transparent;
    border-bottom: none;
}

body.home-academy-active .site-footer-cta {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(180deg, #F4F8FB 0%, #EAF3FA 100%);
}

.site-footer-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(28px, 4vw, 40px);
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid rgba(43, 169, 224, 0.18);
    box-shadow:
        0 24px 56px -28px rgba(17, 36, 58, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-footer-cta-card::before {
    content: "";
    position: absolute;
    inset-inline: 28px;
    top: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(135deg, #2BA9E0 0%, #1C75BC 100%);
}

.site-footer-cta-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-footer-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.site-footer-cta-orb--1 {
    width: 180px;
    height: 180px;
    top: -60px;
    inset-inline-end: -40px;
    background: rgba(43, 169, 224, 0.28);
}

.site-footer-cta-orb--2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    inset-inline-start: -30px;
    background: rgba(28, 117, 188, 0.18);
}

.site-footer-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem 2rem;
}

.site-footer-cta-title {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 900;
    margin: 0 0 0.55rem;
    color: #11243A !important;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.site-footer-cta-copy p {
    margin: 0;
    color: #6A7889;
    max-width: 38rem;
    line-height: 1.7;
    font-size: 15px;
}

.site-footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer-cta-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.site-footer-cta-btn--primary {
    background: linear-gradient(135deg, #2BA9E0 0%, #1C75BC 100%);
    color: #fff !important;
    box-shadow: 0 14px 32px -14px rgba(28, 117, 188, 0.55);
}

.site-footer-cta-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -12px rgba(28, 117, 188, 0.62);
    color: #fff !important;
}

.site-footer-cta-btn--ghost {
    background: #fff;
    border-color: #E3E9F0;
    color: #33485E !important;
}

.site-footer-cta-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(43, 169, 224, 0.45);
    color: #1C75BC !important;
    box-shadow: 0 10px 24px -16px rgba(17, 36, 58, 0.2);
}

/* Dark footer pages (non-academy) — keep CTA readable on dark shell */
body:not(.home-academy-active) .site-footer-cta {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    background: linear-gradient(180deg, rgba(7, 193, 243, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--sf-border);
}

body:not(.home-academy-active) .site-footer-cta-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(7, 193, 243, 0.2);
    box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.45);
}

body:not(.home-academy-active) .site-footer-cta-title {
    color: var(--brand-text-heading) !important;
}

body:not(.home-academy-active) .site-footer-cta-copy p {
    color: var(--sf-muted);
}

body:not(.home-academy-active) .site-footer-cta-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sf-border);
    color: var(--brand-text) !important;
}

.site-footer-main {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

.site-footer-logo img,
.site-footer-brand-img {
    max-height: 56px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(7, 193, 243, 0.2));
}

.site-footer-tagline {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sf-muted);
    max-width: 28ch;
}

.site-footer-col h3 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sf-accent);
    margin: 0 0 1.25rem;
}

.site-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-col li + li {
    margin-top: 0.65rem;
}

.site-footer-col a {
    color: var(--sf-muted) !important;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.25s ease;
}

.site-footer-col a:hover {
    color: var(--sf-accent) !important;
}

.site-footer-contact li {
    color: var(--sf-muted);
    font-size: 0.92rem;
}

.site-footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.site-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--sf-border);
    color: var(--sf-text) !important;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.site-footer-social a:hover {
    border-color: var(--sf-accent);
    color: var(--sf-accent) !important;
    transform: translateY(-2px);
}

.site-footer-bar {
    padding: 1.25rem 0;
    border-top: 1px solid var(--sf-border);
    background: var(--brand-surface);
}

.site-footer-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer-bar p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sf-muted) !important;
}

.site-footer-top {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sf-muted) !important;
    text-decoration: none;
    transition: color 0.25s;
}

.site-footer-top:hover {
    color: var(--sf-accent) !important;
}

body:not(.home-3d-active) .site-footer {
    margin-top: 2rem;
}

/* CTA buttons (also used on home) */
.site-footer .h3d-btn,
.home-3d .h3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.site-footer .h3d-btn--primary,
.home-3d .h3d-btn--primary {
    background: var(--brand-gradient, linear-gradient(135deg, #07c1f3, #1bace3, #37a8df));
    color: #041018 !important;
    box-shadow: 0 4px 24px var(--brand-glow, rgba(7, 193, 243, 0.35));
}

.site-footer-brand-img {
    max-width: min(200px, 70vw);
    height: auto;
    display: block;
}

/* Logo sizing moved to navbar-3d.css */

.h3d-brand-logo {
    max-width: min(300px, 85vw);
    height: auto;
    filter: drop-shadow(0 0 32px rgba(7, 193, 243, 0.2));
}

.site-footer .h3d-btn--outline,
.home-3d .h3d-btn--outline {
    background: var(--brand-surface-solid);
    border-color: var(--brand-border);
    color: var(--brand-text) !important;
}

@media (max-width: 991px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-cta-card {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .site-footer-cta-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .site-footer-cta-btn {
        width: 100%;
    }
}
