/* Theme variables are now handled by theme-system.css */

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Body background is now handled by theme-system.css */

.footer {
    padding-top: 50px; /* prevent margin-collapsing so the spacer shows footer bg */
    width: 100vw;
    background-color: #000000; /* ensure the area behind the footer is pure black globally */
    position: relative; /* allow a full-bleed background behind the constrained container */
}

/* Full-bleed black background so no side navy bands appear on wide screens */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #000000;
    z-index: -1; /* paint behind footer content */
}

.footer .row .col-4 {
    text-align: center;
}

.pagelinks {
    text-align: center;
}

.pagelinks .ul .li a {
    color: white;
}

.pagelinks .ul .li a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer .left {
    border: 0;
    height: 1px;
    background: #fff;
    background-image: -webkit-gradient(
        linear,
        left top,
        right top,
        from(#222),
        color-stop(#999),
        to(#fff)
    );
    background-image: -o-linear-gradient(left, #222, #999, #fff);
    background-image: linear-gradient(to right, #222, #999, #fff);
}

.footer .right {
    border: 0;
    height: 1px;
    background: #fff;
    background-image: -webkit-gradient(
        linear,
        right top,
        left top,
        from(#222),
        color-stop(#999),
        to(#fff)
    );
    background-image: -o-linear-gradient(right, #222, #999, #fff);
    background-image: linear-gradient(to left, #222, #999, #fff);
}

.footer .row .centre {
    text-align: center;
}

img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
    -webkit-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    transform: translateY(-20px);
    margin-left: auto;
    margin-right: auto;
}

img[src="./assets/aerokleimgs/INThrust-white-s.png"] {
    margin-left: auto;
    margin-right: auto;
}

.footer .row .centre {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.socialicons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 50px;
}

.footer .row ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.socialicons ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.socialicons ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.socialicons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.socialicons li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.socialicons li a:hover::before {
    opacity: 1;
}

.footer .row i {
    color: white;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.socialicons li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(193, 0, 0, 0.3);
}

.socialicons li a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.socialicons li a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Ensure icons display correctly with fallback */
.socialicons li a i::before {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 6 Free', 'Font Awesome 5 Brands', 'Font Awesome 5 Free', sans-serif;
}

/* Fallback for missing icons - display text if icon fails */
.socialicons li a[href*="facebook"] i:empty::after {
    content: "FB";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

.socialicons li a[href*="instagram"] i:empty::after {
    content: "IG";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

.socialicons li a[href*="linkedin"] i:empty::after {
    content: "IN";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

.socialicons li a[href*="youtube"] i:empty::after {
    content: "YT";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
}

.location {
    margin: 40px 10px;
    color: white;
    text-align: center;
}

.copyright {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: teal;
    text-align: center;
    padding-left: 10px;
}

.location:hover .locicon {
    -webkit-transform: scale(1.3);
    -ms-transform: scale(1.3);
    transform: scale(1.3);
    -webkit-transition: -webkit-transform 0.2s;
    transition: -webkit-transform 0.2s;
    -o-transition: transform 0.2s;
    transition: transform 0.2s;
    transition:
        transform 0.2s,
        -webkit-transform 0.2s;
}

@media (max-width: 1200px) {
    .socialicons ul {
        gap: 1.5rem;
    }
}

@media (max-width: 990px) {
    .socialicons li a {
        width: 40px;
        height: 40px;
    }

    .footer .row i {
        font-size: 1.25rem;
    }

    .socialicons ul {
        gap: 1rem;
    }

    .socialicons {
        margin-top: 30px;
    }

    .location {
        margin-top: 10px;
    }

    .locdetails {
        font-size: 0.9rem;
    }

    img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
        -webkit-transform: translate(-15px, -30px);
        -ms-transform: translate(-15px, -30px);
        transform: translate(-15px, -30px);
    }
}

@media (max-width: 576px) {
    .footer {
        max-width: 700px;
        margin-left: 0;
        margin-right: 30px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 0;
    }

    img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
        -webkit-transform: scale(0.85);
        -ms-transform: scale(0.85);
        transform: scale(0.85);
    }

    img[src="./assets/aerokleimgs/INThrust-white-s.png"] {
        -webkit-transform: scale(0.85);
        -ms-transform: scale(0.85);
        transform: scale(0.85);
    }

    .socialicons ul {
        gap: 0.75rem;
    }

    .socialicons li a {
        width: 36px;
        height: 36px;
    }

    .footer .row i {
        font-size: 1rem;
    }

    .locdetails {
        font-size: 0.8rem;
    }
}

@media (max-width: 770px) {
    .footer {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .footer .row {
        width: 100%;
    }

    img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
        -webkit-transform: translate(-25px, -30px) scale(0.75);
        -ms-transform: translate(-25px, -30px) scale(0.75);
        transform: translate(-25px, -30px) scale(0.75);
    }

    img[src="./assets/aerokleimgs/INThrust-white-s.png"] {
        -webkit-transform: translate(-5px, -25px) scale(0.75);
        -ms-transform: translate(-5px, -25px) scale(0.75);
        transform: translate(-5px, -25px) scale(0.75);
    }

    .footer {
        font-size: 15px;
    }

    .socialicons {
        margin-top: 10px;
    }

    .socialicons ul {
        gap: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
        -webkit-transform: translate(-35px, -30px) scale(0.75);
        -ms-transform: translate(-35px, -30px) scale(0.75);
        transform: translate(-35px, -30px) scale(0.75);
    }

    img[src="./assets/aerokleimgs/INThrust-white-s.png"] {
        -webkit-transform: translate(-15px, -25px) scale(0.75);
        -ms-transform: translate(-15px, -25px) scale(0.75);
        transform: translate(-15px, -25px) scale(0.75);
    }

    .footer {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    img[src="./assets/aerokleimgs/WEBSITEHEADER-s.png"] {
        -webkit-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
    }

    img[src="./assets/aerokleimgs/INThrust-white-s.png"] {
        -webkit-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
    }

    .footer .copyright {
        font-size: 12px;
    }
}
