/* ==========================================================================
   Footer CSS - Energofor Design
   Pixel-perfect replication of Elementor footer
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --ed-footer-bg: #1D2E3C;
    --ed-footer-text: #FFFFFF;
    --ed-footer-link: #FFFFFF;
    --ed-footer-link-hover: #88c4ff;
    --ed-footer-font: 'Nunito Sans', sans-serif;
    --ed-footer-max-width: 90rem;
    --hp-color-primary: #0e5d99;
}

/* ---------- Footer Contact CTA Section ---------- */
.footer-contact-cta {
    background-color: #f5f5f5;
    padding: 60px 31px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

/* @media screen and (min-width: 48rem) {
    .footer-contact-cta {
        padding: 60px 64px;
    }
} */

@media screen and (min-width: 64rem) {
    .footer-contact-cta {
        padding: 100px 64px;
    }
}

.footer-contact-cta .au-contact-cta__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

@media screen and (min-width: 64rem) {
    .footer-contact-cta .au-contact-cta__container {
        flex-direction: row;
        gap: 80px;
    }
}

/* ---------- Left Column: Text Content ---------- */
.au-contact-text-column {
    flex: 1;
    margin-bottom: 2rem;
}

@media screen and (min-width: 64rem) {
    .au-contact-text-column {
        flex: 0 0 40%;
        padding-top: 48px;
    }
}

.footer-contact-cta .au-contact-cta__title {
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--hp-color-primary);
    margin: 0 0 1rem 0;
}

.footer-contact-cta .au-contact-cta__description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--cu-color-dark-mid);
    margin-bottom: 2rem;
}

.footer-contact-cta .au-contact-cta__description p {
    margin: 0 0 1rem 0;
}

.footer-contact-cta .au-contact-cta__description p:last-child {
    margin-bottom: 0;
}

/* Form wrapper - actual form styles are in forms.css */
.footer-contact-form {
    margin: 0 auto;
    flex: auto;
    padding: 48px;
    background: #ffffff;
    border-radius: 10px;
}

@media screen and (max-width: 48rem) {
    .footer-contact-form {
        max-width: 100%;
        padding: 0px;
        background: #f5f5f5;
        border-radius: 0;
    }
}

/* Contact buttons in footer CTA */
.au-contact-buttons {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 2rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.au-contact-buttons .au-contact__item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
}

.au-contact-buttons .au-contact__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(14, 93, 153, 0.1);
    border-radius: 10px;
    color: #0e5d99;
}

.au-contact-buttons .au-contact__icon--whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.au-contact-buttons .au-contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.au-contact-buttons .au-contact__label {
    font-family: var(--ed-footer-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: #6b7280;
}

.au-contact-buttons .au-contact__value {
    font-family: var(--ed-footer-font);
    font-size: 1rem;
    font-weight: 500;
    color: #242c36;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.au-contact-buttons .au-contact__value:hover {
    color: #0e5d99;
}

.au-contact-buttons .au-contact__item--whatsapp .au-contact__value:hover {
    color: #25d366;
}

/* ---------- Footer Container ---------- */
.ed-footer {
    width: 100%;
    /* background-color: var(--ed-footer-bg); */
    margin: 0;
    padding: 81px 64px 54px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
}

.ed-footer__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--ed-footer-max-width);
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

/* ---------- Footer Rows ---------- */
.ed-footer__row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: 0;
}

.ed-footer__row--main {
    margin-bottom: 80px;
}

.ed-footer__row--bottom {
    justify-content: space-between;
    align-items: flex-start;
}

/* ---------- Footer Columns ---------- */
.ed-footer__col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
}

.ed-footer__col--logo {
    flex: 1;
}

.ed-footer__col--menu {
    flex: 1;
}

.ed-footer__col--legal {
    flex: 1;
}

/* ---------- Logo ---------- */
.ed-footer__logo {
    margin-bottom: 20px;
}

.ed-footer__logo-img {
    display: block;
    width: 250px;
    height: auto;
}

/* ---------- Social Icons ---------- */
.ed-footer__social {
    display: flex;
    flex-direction: row;
    gap: 10px;
    /* margin-top: 10px; */
}

.ed-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--ed-footer-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
}

.ed-footer__social-link:hover {
    color: var(--ed-footer-link-hover);
    transform: translateY(-2px);
}

.ed-footer__social-link svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

/* ---------- Footer Menus ---------- */
.ed-footer__nav {
    width: 100%;
}

.ed-footer__menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0px;
}

.ed-footer__menu li {
    margin: 0;
    padding: 0;
}

.ed-footer__menu a {
    display: block;
    font-family: var(--ed-footer-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ed-footer-link);
    text-decoration: none;
    padding: 3px 10px;
    margin: 0;
    transition: color 0.3s ease;
}

.ed-footer__menu a:hover {
    color: var(--ed-footer-link-hover);
}

/* ---------- Legal / Bottom Row ---------- */
.ed-footer__legal {
    flex: 0 0 65%;
    width: 65%;
}

.ed-footer__legal p {
    font-family: var(--ed-footer-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ed-footer-text);
    margin: 0;
}

.ed-footer__legal a {
    color: var(--ed-footer-link);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ed-footer__legal a:hover {
    color: var(--ed-footer-link-hover);
}

/* ---------- Copyright ---------- */
.ed-footer__copyright {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.ed-footer__copyright .copyright {
    font-family: var(--ed-footer-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ed-footer-text);
    text-align: right;
}

.ed-footer__copyright a {
    color: var(--ed-footer-link);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ed-footer__copyright a:hover {
    color: var(--ed-footer-link-hover);
}

/* ---------- Tablet Styles (768px - 1024px) ---------- */
@media screen and (max-width: 1024px) {
    .ed-footer {
        padding: 40px 64px 54px;
    }

    .ed-footer__logo-img {
        width: 200px;
    }

    .ed-footer__menu a {
        font-size: 14px;
    }
}

/* ---------- Mobile Styles (up to 767px) ---------- */
@media screen and (max-width: 767px) {
    .ed-footer {
        padding: 40px 31px 54px;
    }

    .ed-footer__container {
        max-width: 100%;
    }

    .ed-footer__row--main {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .ed-footer__col {
        width: 100% !important;
        margin-bottom: 32px;
    }

    .ed-footer__col:last-child {
        margin-bottom: 0;
    }

    .ed-footer__col--menu {
        width: 40% !important;
    }

    .ed-footer__col--legal {
        width: 60% !important;
    }

    .ed-footer__logo-img {
        width: 200px;
    }

    .ed-footer__social-link svg {
        width: 20px;
        height: 20px;
    }

    /* Bottom row becomes column on mobile */
    .ed-footer__row--bottom {
        flex-direction: column;
        gap: 20px;
    }

    .ed-footer__legal {
        flex: 0 0 auto;
        width: 100%;
        order: 2;
    }

    .ed-footer__legal p {
        margin-bottom: 20px;
    }

    .ed-footer__copyright {
        flex: 0 0 auto;
        width: 100%;
        justify-content: flex-start;
        order: 1;
    }

    .ed-footer__copyright .copyright {
        text-align: left;
    }
}

/* ---------- Small Mobile (up to 480px) ---------- */
@media screen and (max-width: 480px) {

    .ed-footer__col--menu,
    .ed-footer__col--legal {
        width: 100% !important;
    }
}