/* ============================================
   Footer - Shared Across All Pages
   Modern, centered, balanced layout
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0F1A2E 0%, #1A2744 100%);
    color: #ffffff;
    padding: 72px 0 0;
    position: relative;
    z-index: 3;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Footer Top - Brand block (centered)
   ============================================ */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.footer-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0 auto;
    max-width: 560px;
}

/* ============================================
   Footer Grid - Link columns
   ============================================ */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 48px 0 40px;
    text-align: left;
}

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

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col ul li a,
.footer-col ul li span {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
    color: #ffffff;
    padding-left: 4px;
}

/* Labeled contact rows (WhatsApp / Email) in the Contact column */
.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-item a:hover,
.footer-contact-item a:focus-visible {
    color: #ffffff;
    padding-left: 0;
}

/* ============================================
   Footer Network - Group / related websites
   ============================================ */
.footer-network {
    margin-top: 8px;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-network-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-network-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 auto 22px;
    max-width: 480px;
    line-height: 1.6;
}

.footer-network-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.footer-network-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-network-link:hover,
.footer-network-link:focus-visible {
    background-color: rgba(0, 102, 255, 0.14);
    border-color: rgba(0, 102, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-network-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-network-link:hover svg,
.footer-network-link:focus-visible svg {
    transform: translate(2px, -2px);
}

/* ============================================
   Footer Bottom - Copyright
   ============================================ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
    color: #ffffff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 56px 0 0;
    }

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

    .footer-col {
        align-items: center;
    }

    .footer-col ul {
        align-items: center;
    }

    .footer-col ul li a:hover,
    .footer-col ul li a:focus-visible {
        padding-left: 0;
    }

    .footer-network {
        padding: 32px 0;
    }

    .footer-network-links {
        gap: 12px;
    }

    .footer-network-link {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 16px;
    }

    .footer-brand {
        font-size: 1.4rem;
    }

    .footer-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
/* ============================================
   Footer Certifications - ISO certification marks
   Direct, readable UCS marks paired with their standard and system labels.
   ============================================ */
.footer-certifications {
    padding: 44px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-cert-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.footer-cert-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0 auto 30px;
    max-width: 540px;
    line-height: 1.6;
}

.footer-cert-marks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 820px);
    margin: 0 auto;
    justify-content: center;
    align-items: start;
    gap: 28px;
}

.footer-cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 12px;
    padding: 16px 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cert-card:hover,
.footer-cert-card:focus-visible {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.28);
    outline: 2px solid rgba(0, 168, 255, 0.8);
    outline-offset: 3px;
}

.footer-cert-card > img {
    display: block;
    width: 144px;
    height: 130px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.94;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cert-card:hover > img,
.footer-cert-card:focus-visible > img {
    opacity: 1;
    transform: scale(1.04);
}

.footer-cert-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.footer-cert-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.footer-cert-system {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .footer .container {
        text-align: center;
    }

    .footer-certifications {
        padding: 36px 0;
    }

    .footer-cert-marks {
        gap: 18px;
    }

    .footer-cert-card {
        padding: 12px 8px;
    }

    .footer-cert-card > img {
        width: 128px;
        height: 116px;
    }

    .footer-cert-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-cert-marks {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-cert-card {
        width: 100%;
        max-width: 280px;
        justify-self: center;
    }

    .footer-cert-card > img {
        width: 136px;
        height: 124px;
    }
}
