/* Footer Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary: #0a0e27;
    --secondary: #1a1f3a;
    --accent: #c41230;
    --text: #2b2d42;
    --text-light: #6c7293;
    --border: #e4e6ef;
    --bg-light: #f5f7fa;
    --bg-lighter: #fafbfc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

/* Base styles for standalone use */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}



.footer-company h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-company p {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 32px;
}

.footer-certifications {
    display: flex;
    gap: 16px;
}

.cert-badge {
    width: 100px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 16px;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    font-size: 14px;
}

.footer-legal a:hover {
    opacity: 1;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

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

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

    .footer-company {
        margin-bottom: 32px;
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    /* Modern Accordion Menu */
    .footer-column {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .footer-column h4 {
        position: relative;
        padding: 20px 50px 20px 20px;
        margin: 0;
        cursor: pointer;
        user-select: none;
        background: rgba(255,255,255,0.03);
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .footer-column h4:hover {
        background: rgba(255,255,255,0.06);
    }

    .footer-column h4::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        opacity: 0.7;
    }

    .footer-column.open h4::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }

    .footer-column nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-column.open nav {
        max-height: 2000px;
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer-column ul {
        padding: 16px 20px 24px;
        background: rgba(255,255,255,0.02);
        column-count: 2;
        column-gap: 20px;
    }

    .footer-column li {
        margin-bottom: 0;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .footer-column.open li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for links */
    .footer-column.open li:nth-child(1) { transition-delay: 0.05s; }
    .footer-column.open li:nth-child(2) { transition-delay: 0.08s; }
    .footer-column.open li:nth-child(3) { transition-delay: 0.11s; }
    .footer-column.open li:nth-child(4) { transition-delay: 0.14s; }
    .footer-column.open li:nth-child(5) { transition-delay: 0.17s; }
    .footer-column.open li:nth-child(6) { transition-delay: 0.20s; }
    .footer-column.open li:nth-child(7) { transition-delay: 0.23s; }
    .footer-column.open li:nth-child(8) { transition-delay: 0.26s; }

    .footer-column li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .footer-column a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
        color: rgba(255,255,255,0.85);
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .footer-column li:last-child a {
        border-bottom: none;
    }

    .footer-column a:hover {
        color: var(--white);
        padding-left: 12px;
        background: rgba(255,255,255,0.03);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 32px;
    }

    .footer-legal {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-company p {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer-column h4 {
        font-size: 15px;
        padding: 18px 45px 18px 16px;
    }

    .footer-column ul {
        padding: 12px 16px 20px;
        column-count: 2;
    }

    .footer-column a {
        font-size: 13px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .footer-column ul {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 60px 0 24px;
    }

    .footer-company h3 {
        font-size: 24px;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .cert-badge {
        width: 80px;
        height: 50px;
        font-size: 12px;
    }
}