/* footer.css */
.app-footer {
    --f-bg: #041038;
    --f-text-primary: #b9c3ff;
    --f-text-surface: #dce1ff;
    --f-surface-container: #1d274f;
    --f-divider: rgba(69, 70, 78, 0.2);

    background-color: var(--f-bg);
    color: var(--f-text-surface);
    padding: 8rem 3rem 2rem;
    /* Add top padding to accommodate overlapping CTA */
    margin-top: 12rem;
    /* Allow space for floating CTA */
    position: relative;
    /* Context for absolute CTA */
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: inherit;
}

.app-footer .footer-top {
    max-width: 1280px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .app-footer .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand .footer-logo {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--f-text-surface);
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.footer-brand .footer-desc {
    color: var(--f-text-surface);
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: var(--f-surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f-text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--f-text-primary);
    color: #00228b;
    transform: translateY(-2px);
}

.footer-links h4 {
    color: var(--f-text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

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

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--f-text-surface);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--f-text-primary);
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-divider {
    height: 1px;
    background-color: var(--f-divider);
    width: 100%;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--f-text-surface);
    opacity: 0.7;
    margin: 0;
}

.footer-copyright {
    color: var(--f-text-surface);
    opacity: 0.4;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* ======== CTA Card inside Footer ======== */
.footer-cta-card {
    position: absolute;
    top: -12rem;
    left: 5%;
    right: 5%;
    max-width: 1080px;
    margin: 0 auto;
    background: linear-gradient(135deg, #741313 0%, #911515 100%);

    /* background-color: #911515; */
    /* Deep purple-blue from image */
    border-radius: 2rem;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.cta-content {
    max-width: 600px;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 500;
}

.btn-get-started {
    display: inline-block;
    background-color: #FFFFFF;
    color: #1E1F3D;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* Background circles decoration for CTA */
.cta-decoration {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    background-color: #00238b00;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.199);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-decoration .btn-get-started {
    pointer-events: auto;
    /* Required because parent has pointer-events: none */
    position: relative;
    z-index: 10;
}

.cta-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.237);
}

.cta-decoration .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.cta-decoration .dot:nth-child(1) {
    top: 30%;
    left: 40%;
}

.cta-decoration .dot:nth-child(2) {
    top: 40%;
    left: 60%;
}

.cta-decoration .dot:nth-child(3) {
    top: 60%;
    left: 30%;
}

.cta-decoration .dot:nth-child(4) {
    top: 70%;
    left: 50%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cta-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .app-footer {
        margin-top: 18rem;
        padding-top: 15rem;
    }

    .footer-cta-card {
        top: -14rem;
        padding: 3rem 2rem;
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        margin-bottom: 0;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-decoration {
        display: none;
    }
}