@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');

/* Main Footer wrapper */
.site-footer {
    position: relative;
    background: #fff;
    padding: 100px 20px 0;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Legal bar — single line at the very bottom of the footer */
.footer-legal {
    position: relative;
    z-index: 5;
    margin-top: 32px;
    padding: 22px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal a:hover { color: #00A896; }

.footer-legal-sep {
    color: #cbd5e1;
    font-weight: 700;
}

@media (max-width: 540px) {
    .footer-legal { font-size: 0.8rem; gap: 4px 10px; padding: 18px 16px; }
}

/* Massive watermark text on background */
.footer-watermark {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16rem;
    font-weight: 800;
    color: #f4f4f5; /* Very subtle light gray */
    z-index: 1;
    pointer-events: none;
    letter-spacing: -4px;
    line-height: 1;
    white-space: nowrap;
}

/* Container locking content width & sitting above watermark */
.footer-cards-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 5;
    flex-wrap: wrap; /* responsive safety */
}

/* Base Card Style */
.fc-card {
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

/* --- Left Blue Card --- */
.fc-primary {
    background: linear-gradient(145deg, #004d45 0%, #00A896 50%, #00d4bc 100%);
    color: #fff;
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fc-prim-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 60px;
}
.fc-prim-logo svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}
.fc-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.fc-prim-desc {
    font-size: 1.25rem;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 60px;
}

.fc-prim-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fc-cursive {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.fc-socials {
    display: flex;
    gap: 8px;
}

.fc-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #18181b;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.fc-socials a:hover {
    transform: translateY(-2px);
    background: #27272a;
}
.fc-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* --- Right Light Gray Card --- */
.fc-secondary {
    background: #f8f8f9;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Floating 3D Graphic */
.fc-floating-badge {
    position: absolute;
    top: -40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(12deg);
    z-index: 10;
}

.fc-3d-box {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.fc-3d-box svg {
    width: 45px;
    height: 45px;
    fill: #fff;
    transform: rotate(-12deg);
}
.fc-3d-box-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.fc-floating-text {
    font-family: 'Caveat', cursive;
    color: #a1a1aa;
    font-size: 1.25rem;
}

/* Secondary Card Content Grid */
.fc-sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
    margin-bottom: 40px;
}

.fc-links-col h4 {
    font-family: 'Caveat', cursive;
    color: #71717a;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.fc-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-links-col a {
    color: #18181b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.fc-links-col a:hover {
    color: #3182ce;
}

/* Subscribe Row */
.fc-sec-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.fc-copyright {
    color: #a1a1aa;
    font-size: 0.8rem;
    font-weight: 500;
}

.fc-subscribe-area {
    max-width: 350px;
    width: 100%;
}

.fc-subscribe-area .sub-title {
    color: #a1a1aa;
    font-weight: 500;
    margin-bottom: 4px;
}

.fc-subscribe-area .sub-headline {
    color: #18181b;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.fc-form {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.fc-form input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #18181b;
    outline: none;
    background: transparent;
}

.fc-form input::placeholder {
    color: #a1a1aa;
}

.fc-form button {
    background: #18181b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.fc-form button:disabled { opacity: 0.6; cursor: wait; }
.fc-form-msg { margin: 8px 0 0; font-size: 0.78rem; min-height: 1em; color: #94a3b8; }

.fc-form button:hover {
    background: #27272a;
}

/* ── Tablet ── */
@media (max-width: 900px) {
    .site-footer {
        padding: 60px 16px 40px;
    }

    .footer-cards-container {
        flex-direction: column;
        gap: 16px;
    }

    .fc-primary {
        flex: none;
        width: 100%;
    }

    .fc-prim-logo {
        margin-bottom: 24px;
    }

    .fc-prim-desc {
        margin-bottom: 32px;
        font-size: 1.1rem;
    }

    .fc-secondary {
        padding: 40px 24px 32px;
    }

    .fc-floating-badge {
        top: -36px;
        right: 24px;
    }

    .fc-sec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .fc-sec-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .fc-subscribe-area {
        max-width: 100%;
        width: 100%;
    }

    .footer-watermark {
        font-size: 8rem;
    }
}

/* ── Mobile ── */
@media (max-width: 560px) {
    .fc-floating-badge {
        display: none;
    }
    .site-footer {
        padding: 48px 12px 32px;
    }

    .fc-card {
        padding: 28px 20px;
    }

    .fc-sec-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fc-floating-badge {
        top: -30px;
        right: 16px;
    }

    .fc-3d-box-img {
        width: 52px;
        height: 52px;
    }

    .fc-prim-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fc-form {
        flex-direction: column;
        gap: 8px;
    }

    .fc-form input {
        width: 100%;
    }

    .fc-form button {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
    }

    .footer-watermark {
        font-size: 4.5rem;
    }
}