/**
 * Footer Styles
 * Management Solutions Footer Component
 */

.site-footer {
    background: var(--dark-hero);
    color: var(--text-inverse);
    padding: 60px 20px 30px;
    margin-top: 0;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER TOP SECTION
   ═══════════════════════════════════════════════════════════════ */

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-divider {
    width: 1px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Info Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact-link {
    color: var(--text-inverse);
    text-decoration: none;
    font-size: var(--h4-size);
    font-weight: var(--font-weight-semibold);
    display: inline-block;
    overflow: hidden;
    height: 1.3em;
    line-height: 1.3em;
}

.footer-contact-link span {
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.footer-contact-link span::before {
    position: absolute;
    top: 100%;
    content: attr(data-hover);
    transform: translate3d(0, 0, 0);
    color: var(--primary);
    width: 100%;
}

.footer-contact-link:hover span,
.footer-contact-link:focus span {
    transform: translateY(-100%);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: var(--radius-sm);
    color: var(--text-inverse);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-newsletter-title {
    font-size: var(--h4-size);
    font-weight: var(--font-weight-semibold);
    color: var(--text-inverse);
    margin: 0 0 var(--space-sm) 0;
}

.footer-newsletter-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-normal);
    margin: 0 0 var(--space-md) 0;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-newsletter-row {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
}

.footer-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--input-padding-y) var(--input-padding-x);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-inverse);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

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

.footer-newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

.footer-newsletter-button {
    padding: var(--input-padding-y) 28px;
    background: var(--text-inverse);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-newsletter-button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.footer-newsletter-disclaimer {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: var(--space-sm) 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER MIDDLE SECTION - Navigation & Info
   ═══════════════════════════════════════════════════════════════ */

.footer-middle {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Company Info */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 240px;
    height: auto;
}

.footer-company-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.footer-certificates {
    display: flex;
    gap: 16px;
    margin-top: var(--space-xs, 10px);
}

.footer-certificate-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.footer-certificate-img {
    height: 54px;
    width: auto;
    filter: grayscale(100%) brightness(0) invert(0.6);
    transition: filter 0.3s ease;
}

.footer-certificate-link:hover .footer-certificate-img {
    filter: grayscale(100%) brightness(0) invert(1);
}

/* Navigation Columns */
.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--space-sm) 0;
    text-transform: none;
    letter-spacing: 0.5px;
}

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

.footer-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    display: inline-block;
    overflow: hidden;
    height: 1.3em;
    /* Adjust based on line-height/font-size */
    line-height: 1.3em;
}

.footer-nav-link span {
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.footer-nav-link span::before {
    position: absolute;
    top: 100%;
    content: attr(data-hover);
    transform: translate3d(0, 0, 0);
    color: var(--primary);
}

.footer-nav-link:hover span,
.footer-nav-link:focus span {
    transform: translateY(-100%);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER BOTTOM SECTION
   ═══════════════════════════════════════════════════════════════ */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-credits {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: var(--font-weight-bold);
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .footer-middle {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }

    .footer-newsletter-row {
        flex-direction: column;
    }

    .footer-newsletter-button {
        width: 100%;
    }
}

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

    .footer-divider {
        width: 100%;
        height: 1px;
    }

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

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

    .footer-newsletter-row {
        flex-direction: column;
    }

    .footer-newsletter-button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-middle {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 0;
    }

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

    .footer-top {
        padding-bottom: 40px;
    }

    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Newsletter Checkbox */
.footer-newsletter-checkbox {
    margin-top: 10px;
    margin-bottom: 10px;
}

.footer-newsletter-checkbox .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.footer-newsletter-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--ms-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-newsletter-checkbox .checkbox-label {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-checkbox .checkbox-label a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: var(--transition);
}

.footer-newsletter-checkbox .checkbox-label a:hover {
    color: var(--ms-primary);
}

.footer-newsletter-form .form-error-message {
    background-color: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    width: 100%;
}
/* Language Switcher Footer Override */
.footer-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-lang-switcher .gt-switcher-dropdown {
    bottom: 100%;
    top: auto;
    margin-bottom: 8px;
    margin-top: 0;
}
