/* Footer - Purple/Pink Modern Theme */
/* Shared across all pages: index.php, thankyou.php, track_order.php */

footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #008060, #52b88a, #006e52);
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-logo i {
    font-size: 2rem;
    color: #008060;
}

.brand-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.brand-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #52b88a;
    margin: 0 0 16px 0;
}

.brand-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 24px 0;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: rgba(0, 128, 96, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52b88a;
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #52b88a;
}

/* Footer Links Section */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #008060;
    border-radius: 3px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 6px 0;
    display: inline-block;
}

.footer-col a:hover {
    color: #52b88a;
    padding-left: 8px;
}

/* Newsletter */
.newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(0, 128, 96, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: #008060;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 128, 96, 0.1);
}

.newsletter-form button {
    padding: 12px 20px;
    background: #008060;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 128, 96, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(0, 128, 96, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52b88a;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #008060;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 128, 96, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-icon-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.credits strong {
    color: #52b88a;
    font-weight: 700;
}

.credits a {
    color: #52b88a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.credits a:hover {
    color: #008060;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 60px 0 40px;
        gap: 40px;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-logo h2 {
        font-size: 1.5rem;
    }
    
    .brand-tagline {
        font-size: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 14px;
    }
    
    .footer-bottom {
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .brand-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .brand-logo i {
        font-size: 1.5rem;
    }
    
    .brand-logo h2 {
        font-size: 1.3rem;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}
