/* =========================================
   FOOTER STYLES (Premium Dark Aesthetic)
   ========================================= */

.site-footer {
    background-color: #2f394a; /* Premium Dark Blue-Gray */
    color: #ffffff;
    padding: 2.25rem 0 1.4rem; /* Reduced by 30% */
    font-family: var(--font-body);
    font-size: 0.7rem; /* Set base font size for scaling */
    line-height: 1.4;
}

.footer-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Top Section --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.8rem; /* Reduced by 30% */
    gap: 1.5rem;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.75rem; /* Reduced by 30% from 2.5rem */
    font-weight: 700;
    line-height: 1.1;
    max-width: 350px; /* Reduced by 30% */
    color: #ffffff;
}

.footer-typewriter {
    color: #10b981; /* Emerald Green */
    display: inline-block;
    min-width: 140px; /* Prevent layout shift */
}

.footer-subscribe {
    max-width: 280px; /* Reduced by 30% */
    width: 100%;
}

.subscribe-label {
    display: block;
    font-size: 0.8rem; /* Reduced by 30% */
    font-weight: 500;
    margin-bottom: 0.7rem;
}

.subscribe-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.35rem; /* Reduced */
    transition: all 0.3s ease;
}

.subscribe-form:focus-within {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
}

.subscribe-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem; /* Reduced */
    flex: 1;
    font-size: 0.8rem; /* Reduced */
    outline: none;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    background: #10b981; /* Green like the reference */
    color: white;
    border: none;
    padding: 0.5rem 1.4rem; /* Reduced */
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced */
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.subscribe-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* --- Middle Section --- */
.footer-middle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; /* Reduced */
    margin-bottom: 1.8rem; /* Reduced */
}

.footer-column-title {
    font-size: 0.7rem; /* Reduced */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.7rem; /* Reduced */
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-links-list li {
    margin-bottom: 0.8rem; /* Increased for better touch target and spacing */
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.95); /* Increased contrast */
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem; /* Increased size for accessibility and legibility */
    padding: 0.3rem 0; /* Added vertical padding for larger touch target */
}

.footer-links-list a:hover {
    color: #ffffff;
}

/* Contact Info Specific */
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.45rem; /* Reduced */
    font-size: 0.75rem; /* Reduced */
}

.contact-icon {
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon-link {
    width: 44px; /* Increased to meet accessibility target size standards */
    height: 44px; /* Increased to meet accessibility target size standards */
    background: #ffffff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
    background: var(--accent-purple);
    color: white;
}

/* --- Bottom Section --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.3rem; /* Increased by 30% */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.7rem; /* Reduced */
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a {
    font-size: 0.7rem; /* Reduced */
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-heading {
        font-size: 1.4rem;
    }
    .footer-middle {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-heading {
        font-size: 1.5rem;
        max-width: 100%;
    }
    .footer-subscribe {
        max-width: 100%;
        width: 100%;
    }
    .subscribe-form {
        display: flex;
        flex-direction: row; 
    }
    .subscribe-input {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    .subscribe-btn {
        padding: 0.8rem 1.5rem;
    }
    .footer-middle {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
