/* Footer Styling — SkyPearl Demo Design */
.site-footer {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    padding: 80px 0 32px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.6fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .brand-logo {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 20px;
}

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

.footer-column ul li a {
    font-size: 0.95rem;
    color: var(--slate-500);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-cyan);
}

/* Newsletter Signup Column */
.footer-newsletter {
    grid-column: 1 / 3;
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.footer-newsletter p {
    color: var(--slate-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-pill);
    padding: 4px 6px 4px 18px;
    max-width: 360px;
    transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.newsletter-input {
    width: 100%;
    font-size: 0.9rem;
    color: var(--slate-900);
}

.newsletter-input::placeholder {
    color: var(--slate-400);
}

.newsletter-submit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.newsletter-submit:hover {
    transform: scale(1.08);
}

.newsletter-submit svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Head Office Location (Right-hand side of row 2) */
.footer-office-location {
    grid-column: 3 / 6;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.footer-office-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-office-header h5 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-office-address {
    margin: 0;
    font-size: 0.83rem;
    color: var(--slate-500);
    line-height: 1.45;
}

.footer-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    background: #f0f9ff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #bae6fd;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.footer-map-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.footer-map-frame {
    width: 100%;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--slate-400);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-brand, .footer-newsletter, .footer-office-location {
        grid-column: span 3 !important;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 40px 0 24px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
        margin-bottom: 30px;
    }
    .footer-brand {
        grid-column: span 2 !important;
        align-items: center;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-newsletter, .footer-office-location {
        grid-column: span 2 !important;
    }
    .footer-newsletter {
        text-align: center;
        margin-top: 8px;
    }
    .newsletter-form {
        margin: 0 auto;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .footer-bottom-links {
        justify-content: center;
    }
}
