/* --- Footer Component Styles --- */
:root {
    --color-dark: #292f35;
    --color-darker: #202428;
    --color-red: #1d3557;
    --color-text-light: #ced4da;
    --color-white: #fff;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- General Link Styles --- */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Footer container width --- */
footer .container {
    max-width: 1340px;
}

/* --- Pre-Footer --- */
.pre-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 20px 0;
    margin-bottom: -50px;
}

.pre-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-footer span {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
    font-weight: 500;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.quote-btn:hover {
    background-color: var(--color-white);
    color: var(--color-red);
}

/* --- Main Footer --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 100px 0 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-col-1 {
    width: 34%;
}

.footer-col-1 p {
    text-align: justify;
}

.footer-associates {
    margin-top: 28px;
}

.footer-col-2 {
    width: 39%;
}

.footer-col-4 {
    width: 27%;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    display: inline-block;
}

.footer-socials {
    margin-bottom: 25px;
}

.footer-socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.footer-socials .fb {
    background: #3b5998;
}

.footer-socials .tw {
    background: #1da1f2;
}

.footer-socials .gplus {
    background: #db650f;
}

.footer-socials .li {
    background: #0077b5;
}

.footer-socials .db {
    background: #ea4c89;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.contact-info strong {
    color: var(--color-white);
}

.contact-info .view-directions {
    color: #db650f;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.3s;
}

.contact-info .view-directions:hover {
    color: #14273f;
}

/* Sister Concerns / Associates Manufacturing columns */
.sister-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sister-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

a.sister-item .sister-name {
    transition: color 0.3s ease;
}

a.sister-item:hover .sister-name {
    color: #d4a017;
}

.sister-logo {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sister-logo span {
    line-height: 1;
}

.logo-je {
    background-color: #0ca678;
}

.logo-hn {
    background-color: #16a085;
}

.logo-ar {
    background-color: #e67e22;
}

.sister-content {
    line-height: 1.35;
}

.sister-name {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.sister-tagline {
    color: var(--color-text-light);
    font-size: 14px;
}

/* Image version of sister logos */
.sister-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    flex-shrink: 0;
}

/* Rectangular variant — shows the full logo without cropping */
.sister-logo-img.rect {
    width: 58px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 1200px) and (min-width: 993px) {
    .footer-col {
        padding: 0 10px;
    }

    .sister-item {
        gap: 10px;
    }

    .sister-name {
        font-size: 13px;
    }

    .sister-logo-img {
        width: 36px;
        height: 36px;
    }

    .sister-logo-img.rect {
        width: 50px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .sister-logo {
        width: 38px;
        height: 38px;
    }

    .sister-logo-img {
        width: 38px;
        height: 38px;
    }

    .sister-item {
        justify-content: center;
    }
}

/* --- Sub-Footer --- */
.sub-footer {
    background-color: var(--color-darker);
    color: #aaa;
    padding: 20px 0;
    font-size: 14px;
}

.sub-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

.copyright strong {
    color: var(--color-white);
}

.sub-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom-links a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.back-to-top {
    width: 35px;
    height: 35px;
    background-color: #444;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: var(--color-red);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
}

.whatsapp-float a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float a:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.whatsapp-float a:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.6);
    outline-offset: 2px;
}

.whatsapp-float i {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp-float a {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float i {
        font-size: 26px;
    }
}

/* =======================
     Responsive Adjustments
  ======================== */
@media (max-width: 992px) {
    .main-footer {
        padding: 80px 0 50px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-col-1 {
        width: 100%;
    }

    .footer-col-2,
    .footer-col-3,
    .footer-col-4 {
        width: 48%;
    }

    .pre-footer span {
        font-size: 20px;
    }

    .quote-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .sub-footer .container {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
}

@media (max-width: 768px) {
    .pre-footer {
        padding: 16px 0;
        margin-bottom: 0;
    }

    .pre-footer-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .quote-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .footer-col h4 {
        font-size: 18px;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }

    .sub-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    .sub-footer-right {
        flex-direction: column;
        gap: 12px;
    }
}

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

    .sister-item {
        gap: 10px;
    }

    .sister-name {
        font-size: 12px;
    }

    .sister-logo-img,
    .sister-logo-img.rect {
        width: 34px;
        height: 34px;
    }

    .pre-footer span {
        font-size: 18px;
    }

    .back-to-top {
        width: 32px;
        height: 32px;
    }

    .copyright {
        font-size: 13px;
    }

    .footer-bottom-links a {
        font-size: 13px;
    }
}
