/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-white);
}

/* Newsletter Section */
.newsletter {
    border-bottom: 1px solid var(--color-gray-800);
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .newsletter-content {
        flex-direction: row;
        padding: 3rem 0;
    }
}

.newsletter-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .newsletter-text {
        text-align: left;
    }
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .newsletter-title {
        font-size: 1.5rem;
    }
}

.newsletter-desc {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

@media (min-width: 640px) {
    .newsletter-desc {
        font-size: 1rem;
    }
}

.newsletter-form {
    display: flex;
    width: 100%;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .newsletter-form {
        width: auto;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--color-white);
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-700);
    border-radius: 9999px;
    outline: none;
    transition: border-color var(--transition-fast);
}

@media (min-width: 1024px) {
    .newsletter-input {
        width: 18rem;
    }
}

.newsletter-input::placeholder {
    color: var(--color-gray-500);
}

.newsletter-input:focus {
    border-color: var(--color-teal);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(to right, var(--color-teal), var(--color-secondary));
    border-radius: 9999px;
    white-space: nowrap;
    transition: all var(--transition-base);
}

.newsletter-btn:hover {
    box-shadow: var(--shadow-lg);
}

/* Main Footer Content */
.footer-main {
    padding: 2.5rem 0;
}

@media (min-width: 640px) {
    .footer-main {
        padding: 3rem 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Company Info */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, var(--color-teal), var(--color-secondary));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
    .footer-logo-icon {
        width: 3rem;
        height: 3rem;
    }
}

.footer-logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-white);
}

@media (min-width: 640px) {
    .footer-logo-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .footer-logo-text {
        font-size: 1.25rem;
    }
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    line-height: 1.625;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-800);
    border-radius: 9999px;
    transition: all var(--transition-base);
}

@media (min-width: 640px) {
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-white);
}

@media (min-width: 640px) {
    .social-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.linkedin:hover { background: #0a66c2; }
.social-link.youtube:hover { background: #ff0000; }

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .footer-heading {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

@media (min-width: 640px) {
    .footer-list {
        gap: 0.5rem;
    }
}

.footer-link {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-400);
    text-align: left;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-white);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-gray-400);
}

/* Bottom Footer */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-800);
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-copyright {
        font-size: 0.875rem;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-legal {
        gap: 1.5rem;
    }
}

.footer-legal-link {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

@media (min-width: 640px) {
    .footer-legal-link {
        font-size: 0.875rem;
    }
}

.footer-legal-link:hover {
    color: var(--color-white);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: linear-gradient(to right, var(--color-teal), var(--color-secondary));
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 40;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
