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

:root {
    --footer-bg: #f8faf9;
    --footer-bg-soft: #eefbf3;
    --footer-card: #ffffff;
    --footer-border: #dcebe2;
    --footer-text: #334155;
    --footer-muted: #64748b;
    --footer-heading: #0f172a;
    --footer-primary: #16a34a;
    --footer-primary-dark: #16a34a;
    --footer-primary-soft: rgba(34, 197, 94, .14);
}

.custom-footer {
    position: relative;
    overflow: hidden;
    margin-top: 88px;
    padding: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 197, 94, .14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--footer-bg) 48%, var(--footer-bg-soft) 100%);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
    font-family: 'Inter', sans-serif;
}

.custom-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 80%);
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, .7fr)) minmax(260px, 1fr);
    gap: 44px;
    padding: 64px 0 52px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 390px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--footer-border);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.footer-brand-title {
    margin: 0;
    color: var(--footer-heading);
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

.footer-brand-subtitle {
    margin: 5px 0 0;
    color: var(--footer-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 340px;
    margin: 0;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.75;
}

.footer-section-title {
    margin: 0 0 18px;
    color: var(--footer-heading);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .25s ease, transform .25s ease;
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .32);
    transition: background .25s ease, box-shadow .25s ease;
}

.footer-links a:hover {
    color: var(--footer-heading);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    background: var(--footer-primary);
    box-shadow: 0 0 0 5px var(--footer-primary-soft);
}

.footer-newsletter {
    padding: 22px;
    border: 1px solid var(--footer-border);
    border-radius: 18px;
    background: var(--footer-card);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.footer-newsletter-text {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.6;
}

.newsletter-form {
    margin-top: 18px;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.newsletter-input-group:focus-within {
    border-color: rgba(34, 197, 94, .72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.newsletter-input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--footer-heading);
    padding: 10px 8px;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-dark) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, .28);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--footer-border), transparent);
}

.footer-bottom {
    padding: 22px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
}

.footer-social,
.footer-bottom-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--footer-border);
    background: var(--footer-card);
    color: var(--footer-primary);
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--footer-primary-soft);
    color: var(--footer-primary-dark);
}

@media (max-width: 991px) {
    .custom-footer {
        margin-top: 68px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 34px;
        padding: 52px 0 44px;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .custom-footer {
        margin-top: 52px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 42px 0 34px;
    }

    .footer-logo {
        width: 48px;
        height: 48px;
    }

    .footer-brand-title {
        font-size: 19px;
    }

    .footer-newsletter {
        padding: 18px;
        border-radius: 14px;
    }

    .newsletter-input-group {
        align-items: stretch;
    }

    .newsletter-btn {
        flex: 0 0 42px;
    }

    .footer-bottom {
        padding: 20px 0;
    }
}
