﻿/* =========================================================
   Omran Cement - Footer
========================================================= */

.site-footer {
    --footer-bg: #041739;
    --footer-bg-dark: #05242b;
    --footer-text: rgba(255, 255, 255, 0.76);
    --footer-muted: rgba(255, 255, 255, 0.58);
    --footer-border: rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--footer-bg) 0%, var(--footer-bg-dark) 100% );
    color: var(--footer-text);
}

    .site-footer::before {
        position: absolute;
        top: -12rem;
        right: -10rem;
        width: 28rem;
        height: 28rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        content: "";
        pointer-events: none;
    }

    .site-footer .container {
        position: relative;
        z-index: 1;
    }

/* Brand */

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: #fff;
    text-decoration: none;
}

    .footer-brand:hover,
    .footer-brand:focus {
        color: #fff;
    }

.footer-brand-name {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.footer-brand-tagline {
    margin-top: 0.55rem;
    color: var(--oc-secondary, #ee9b00);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 25rem;
    margin: 0;
    color: var(--footer-text);
    font-size: 0.96rem;
    line-height: 1.8;
}

/* Headings and links */

.footer-heading {
    position: relative;
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

    .footer-heading::after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 2.25rem;
        height: 0.18rem;
        background-color: var(--oc-secondary, #ee9b00);
        content: "";
    }

.footer-links {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links a,
    .footer-contact a,
    .footer-legal a {
        color: var(--footer-text);
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        font-size: 0.95rem;
        line-height: 1.5;
    }

        .footer-links a::before {
            width: 0;
            height: 1px;
            margin-inline-end: 0;
            background-color: var(--oc-secondary, #ee9b00);
            content: "";
            transition: width 0.2s ease, margin-inline-end 0.2s ease;
        }

        .footer-links a:hover,
        .footer-links a:focus,
        .footer-contact a:hover,
        .footer-contact a:focus,
        .footer-legal a:hover,
        .footer-legal a:focus {
            color: #fff;
        }

            .footer-links a:hover::before,
            .footer-links a:focus::before {
                width: 1rem;
                margin-inline-end: 0.5rem;
            }

/* Contact */

.footer-contact {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    color: var(--footer-text);
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.65;
}

    .footer-contact span,
    .footer-contact a {
        overflow-wrap: anywhere;
    }

    .footer-contact bdi {
        unicode-bidi: isolate;
    }

/* Bottom bar */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
    font-size: 0.88rem;
}

    .footer-bottom p {
        margin: 0;
    }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
}

    .footer-legal a {
        color: var(--footer-muted);
        white-space: nowrap;
    }

        /* Keyboard accessibility */

        .footer-brand:focus-visible,
        .footer-links a:focus-visible,
        .footer-contact a:focus-visible,
        .footer-legal a:focus-visible {
            border-radius: 0.15rem;
            outline: 2px solid var(--oc-secondary, #ee9b00);
            outline-offset: 0.3rem;
        }

/* RTL */

html[dir="rtl"] .site-footer::before {
    right: auto;
    left: -10rem;
}

html[dir="rtl"] .footer-brand {
    align-items: flex-start;
}

html[dir="rtl"] .footer-brand-name {
    letter-spacing: -0.02em;
}

html[dir="rtl"] .footer-brand-tagline {
    letter-spacing: 0;
}

html[dir="rtl"] .footer-heading::after {
    right: 0;
    left: auto;
}

/* Responsive */

@media (max-width: 991.98px) {
    .site-footer .row {
        row-gap: 1rem;
    }

    .footer-description {
        max-width: 36rem;
    }
}

@media (max-width: 767.98px) {
    .site-footer .row {
        padding-top: 3rem !important;
        padding-bottom: 2.5rem !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.4rem 0 1.75rem;
    }

    .footer-legal {
        gap: 0.75rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .site-footer::before {
        width: 20rem;
        height: 20rem;
    }

    .footer-brand-name {
        font-size: 1.65rem;
    }

    .footer-heading {
        margin-bottom: 1.15rem;
    }

    .footer-links {
        gap: 0.7rem;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .footer-links a::before,
    .footer-contact a,
    .footer-legal a {
        transition: none;
    }
}


/* =========================================================
   LOGO
========================================================= */

.footer-logo-wrapper {
    padding-top: 2rem;
    text-align: start;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.footer-logo-img {
    width: 200px;
    object-fit: contain;
    display: block;
}
