/* ===================================
   FOOTER STYLES
   =================================== */

/* Footer Wrapper */
.footer-wrapper {
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.9));
    overflow: hidden;
}

.footer-wrapper .bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(31, 59, 92, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-wrapper .subtle-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 2px, rgba(255, 255, 255, 0.02) 3px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 2px, rgba(255, 255, 255, 0.02) 3px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.4;
}

/* Main Footer */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 90px 5% 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.9s ease-out;
}

.footer-content {
    background: rgba(17, 28, 51, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 65px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.footer-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.3) 25%, rgba(13, 148, 136, 0.3) 75%, transparent);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.6fr;
    gap: 60px;
    margin-bottom: 55px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

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

.footer-wrapper .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 1px solid var(--accent);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-wrapper .logo-icon::before {
    content: "";
    position: absolute;
    inset: 2.5px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 11px;
}

.footer-wrapper .logo-icon i {
    position: relative;
    z-index: 1;
    font-size: 24px;
    color: var(--accent);
}

.footer-wrapper .logo-text {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.footer-wrapper .logo-text span {
    color: var(--text-secondary);
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 340px;
    font-weight: 500;
}

.brand-mission {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 6px;
}

.mission-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.mission-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Footer Sections */
.footer-section h4,
.footer-section h3 {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-weight: 500;
}

.footer-links a::before {
    content: "→";
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--accent);
    font-size: 16px;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter Section */
.newsletter-section h4,
.newsletter-section h3 {
    margin-bottom: 18px;
}

.newsletter-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 22px;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-wrapper .email-input {
    width: 100%;
    padding: 13px 17px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-wrapper .email-input::placeholder {
    color: var(--text-muted);
}

.footer-wrapper .email-input:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.subscribe-btn {
    padding: 13px 26px;
    background: var(--accent);
    border: none;
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.subscribe-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    background: #00d4b4;
}

.subscribe-btn:hover::before {
    left: 100%;
}

.subscribe-btn:active {
    transform: translateY(-1px);
}

/* Social Section */
.social-wrapper {
    margin-top: 32px;
}

.social-wrapper h4,
.social-wrapper h3 {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--hover-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    transform: translateY(-7px) scale(1.08);
    border-color: var(--accent);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    color: var(--text-primary);
    transform: scale(1.15);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
    margin: 48px 0 38px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-legal a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.35s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.8fr;
        gap: 50px;
    }

    .social-wrapper {
        grid-column: 1 / 2;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .newsletter-section {
        grid-column: 1 / -1;
    }

    .social-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 0;
    }

    .footer-content {
        padding: 40px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Smaller font sizes on mobile */
    .brand-tagline {
        font-size: 13.5px;
        max-width: 100%;
    }

    .mission-text {
        font-size: 12px;
    }

    .footer-section h4, .footer-section h3, .newsletter-section h4, .newsletter-section h3 {
        font-size: 11px;
        margin-bottom: 18px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .newsletter-desc {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .footer-wrapper .email-input {
        padding: 11px 14px;
        font-size: 13px;
    }

    .subscribe-btn {
        padding: 11px 20px;
        font-size: 12.5px;
    }

    .copyright {
        font-size: 12px;
    }

    .footer-legal {
        gap: 18px;
    }

    .footer-legal a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 35px 15px;
    }

    .footer-wrapper .logo-text {
        font-size: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}
