/* ─── Footer ─── */

.site-footer {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    background: #2B5351;
    /* Muted dark teal */
    border-top: none;
    border-radius: 0;
    padding: 5rem 5% 2rem;
    position: relative;
    margin-top: 0;
}

[data-theme="dark"] .site-footer {
    background: #0d1a19;
    border-top: 1px solid var(--border-color);
}

/* ─── Newsletter ─── */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 6rem;
}

.footer-newsletter-title {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    margin-bottom: 1rem;
}

.footer-newsletter-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-bottom: 2.5rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 1.5rem;
    width: 100%;
    max-width: 480px;
}

.footer-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333333;
    outline: none;
}

.footer-input::placeholder {
    color: #999999;
    font-weight: 400;
}

[data-theme="dark"] .footer-newsletter-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-input {
    color: var(--text-color);
}

[data-theme="dark"] .footer-input::placeholder {
    color: var(--text-muted);
}

.footer-submit-btn {
    background: linear-gradient(90deg, #94C3C5 0%, #A6D394 100%);
    border: none;
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-submit-btn span {
    background: linear-gradient(90deg, #1E4E50 0%, #416835 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(148, 195, 197, 0.4);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col h4 {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: normal;
    text-transform: none;
    color: #ffffff;
    margin-bottom: 2rem;
}

.footer-col:nth-child(2) {
    justify-self: center;
}

.footer-col:nth-child(3) {
    justify-self: end;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    color: #2B5351;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .social-icon {
    background: var(--card-bg);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.5;
}

/* ─── Status + Copyright ─── */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
}

.footer-brand .logo {
    height: 32px;
    width: auto;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-actions .theme-toggle-btn,
.footer-actions .lang-toggle-btn {
    color: rgba(255, 255, 255, 0.75);
}

.footer-actions .theme-toggle-btn:hover,
.footer-actions .lang-toggle-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-actions .lang-dropdown {
    position: relative;
}

.footer-actions .lang-menu {
    top: auto;
    bottom: 120%;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 6% 3rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-col:nth-child(2) {
        justify-self: start;
    }

    .footer-col:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-newsletter-form {
        flex-direction: column;
        background: transparent !important;
        border: none !important;
        padding: 0;
        gap: 0.8rem;
    }

    .footer-input {
        background: #ffffff;
        border-radius: 50px;
        padding: 1rem 1.5rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    [data-theme="dark"] .footer-input {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }

    .footer-submit-btn {
        width: 100%;
        border-radius: 50px;
        height: 54px;
    }

    .footer-newsletter-title {
        font-size: 2.5rem;
    }
}