/* Modern Footer CSS for Samui Fix */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
}

/* Main Footer Content */
.footer-main {
    padding: 3rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

/* Company Info Column */
.footer-column .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 8px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.25rem;
}

.footer-brand-tagline {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-about p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-logo {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cert-logo:hover {
    opacity: 1;
}

/* Footer Titles */
.footer-title {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e74c3c;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #e74c3c;
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 0.5rem;
    width: 16px;
    font-size: 0.9rem;
}

.emergency-link {
    background: rgba(231, 76, 60, 0.1);
    padding: 0.5rem !important;
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.emergency-link:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateX(0);
}

/* Contact Info */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.footer-contact .contact-item i {
    color: #e74c3c;
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    width: 20px;
}

.contact-details strong {
    display: block;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #e74c3c;
}

/* Map */
.footer-map {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.footer-social h5 {
    color: #ecf0f1;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.facebook {
    background: #3b5998;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.line {
    background: #00c300;
    color: white;
}

.social-link.rss {
    background: #ff6600;
    color: white;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Emergency Contact Strip */
.footer-emergency {
    background: #e74c3c;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.footer-emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.emergency-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.emergency-info {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
}

.emergency-info i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.emergency-actions {
    display: flex;
    gap: 1rem;
}

.emergency-call,
.emergency-line {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.emergency-call:hover,
.emergency-line:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.emergency-call i,
.emergency-line i {
    margin-right: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.address {
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .emergency-strip {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-actions {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .emergency-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .emergency-call,
    .emergency-line {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}