/* ================================================
   OSITEX CREATIVE HUB - Footer Styles
   footer.css
   ================================================ */


/* ------------------------------------------------
   1. FOOTER CONTAINER
------------------------------------------------ */

.footer {
    background-color: var(--blue);
    position: relative;
    overflow: hidden;
}


/* Subtle geometric shape in footer background */

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}


/* ------------------------------------------------
   2. FOOTER TOP - Four columns
------------------------------------------------ */

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 3rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------
   3. FOOTER BRAND COLUMN
------------------------------------------------ */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


/* Footer logo */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo .brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-logo .brand-main {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: 1px;
    font-family: var(--font-main);
}

.footer-logo .brand-sub {
    color: var(--yellow);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-main);
}


/* Footer description */

.footer-desc {
    color: var(--gray-light);
    font-size: var(--text-sm);
    line-height: 1.8;
    max-width: 300px;
    margin: 0;
}


/* ------------------------------------------------
   4. FOOTER LINKS COLUMNS
------------------------------------------------ */

.footer-links,
.footer-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 700;
    font-family: var(--font-main);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}


/* Yellow underline under column headings */

.footer-links h4::after,
.footer-services h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--yellow);
    border-radius: 50px;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}

.footer-links a,
.footer-services a {
    color: var(--gray-light);
    font-size: var(--text-sm);
    text-decoration: none;
    font-family: var(--font-main);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* Arrow before each link */

.footer-links a::before,
.footer-services a::before {
    content: '›';
    color: var(--yellow);
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

.footer-links a:hover::before,
.footer-services a:hover::before {
    transform: translateX(3px);
}


/* ------------------------------------------------
   5. FOOTER SOCIAL COLUMN
------------------------------------------------ */

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-icons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-icons li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-light);
    text-decoration: none;
    font-size: var(--text-sm);
    font-family: var(--font-main);
    transition: all var(--transition-normal);
}

.footer-social-icons li a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

.footer-social-icons svg {
    flex-shrink: 0;
    transition: color var(--transition-normal);
}

.footer-social-icons li a:hover svg {
    color: var(--yellow);
}


/* ------------------------------------------------
   6. FOOTER DIVIDER
------------------------------------------------ */

.footer-divider {
    width: calc(100% - 6rem);
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 3rem;
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------
   7. FOOTER BOTTOM
------------------------------------------------ */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: var(--text-sm);
    margin: 0;
    font-family: var(--font-main);
}


/* Highlight Ositex Creative Hub in bottom footer */

.footer-bottom p span {
    color: var(--yellow);
    font-weight: 600;
}


/* ------------------------------------------------
   8. RESPONSIVE - Tablets (max 1024px)
------------------------------------------------ */

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 2rem 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-divider {
        width: calc(100% - 4rem);
        margin: 0 2rem;
    }
    .footer-bottom {
        padding: 1.5rem 2rem;
    }
}


/* ------------------------------------------------
   9. RESPONSIVE - Mobile (max 768px)
------------------------------------------------ */

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 0.25rem;
    }
    .footer-divider {
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
    }
}


/* ------------------------------------------------
   10. RESPONSIVE - Small phones (max 480px)
------------------------------------------------ */

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 1.75rem;
    }
    .footer-brand {
        grid-column: 1;
    }
    .footer-logo .brand-main {
        font-size: var(--text-base);
    }
    .footer-logo .brand-sub {
        font-size: 0.65rem;
    }
    .footer-divider {
        width: calc(100% - 2.5rem);
        margin: 0 1.25rem;
    }
    .footer-bottom {
        padding: 1rem 1.25rem;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}


/* ------------------------------------------------
   11. RESPONSIVE - Very small phones (max 360px)
------------------------------------------------ */

@media (max-width: 360px) {
    .footer-top {
        padding: 1.75rem 1rem;
        gap: 1.5rem;
    }
    .footer-links h4,
    .footer-services h4,
    .footer-social h4 {
        font-size: var(--text-sm);
    }
    .footer-links a,
    .footer-services a,
    .footer-social-icons li a {
        font-size: 0.8rem;
    }
    .footer-bottom {
        padding: 0.75rem 1rem;
    }
    .footer-bottom p {
        font-size: 0.75rem;
    }
}