@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap");

body {
    font-family: oswald;

}

.footer {
    background-color: rgb(10, 10, 37);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    width: 100%;

    margin-left: 0;
    position: relative;
    margin-bottom: -90px;
    padding-bottom: 90px;
    margin-top: auto;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.footer__logo a {
    font-size: 1.5rem;
    font-weight: 400;

    color: var(--white);
    opacity: 0.9;
    display: block;
    /* make the text block match the logo image width and center it */
    width: 80px;
    text-align: center;
    margin: 0.25rem auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer column layout: center the logo + text and ensure consistent sizing */
.footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__col img.class_fixed {
    /* enforce the same width as the text block; override inline attributes if present */
    width: 80px !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 6px;
}

.footer__logo a {
    /* slightly reduce the font-size so it visually balances the square logo */
    font-size: 1.35rem;
    font-weight: 600;
    font-family: sans-serif;
    margin: -0.4rem auto 0;
}

.footer__col p {
    font-size: 1.25rem;
    color: var(--white);
    text-align: center;
    opacity: 0.9;
    line-height: 1.6;
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    aspect-ratio: 1;
    font-size: 1.5rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100%;
    transition: all 0.3s ease;
}

.footer__socials a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer__bar {
    font-size: 0.9rem;
    color: var(--white);
    text-align: center;
    padding-top: 2rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 2rem 0 2rem;
}

@media (width < 900px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__socials {
        justify-content: center;
    }
}

/* Modal styles for contact popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 900px;
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    position: relative;
}

.modal h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.modal-close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* two-column modal layout */
.modal-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    min-height: 360px;
}

.modal-image {
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-content {
    padding: 1.75rem;
}

.modal-sub {
    margin: 0 0 0.75rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-label input,
.modal-label textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.modal-label input:focus,
.modal-label textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(26, 117, 255, 0.08);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

/* primary button style for modal */
.btn-primary {
    background-image: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* compact form rows for name + email side-by-side */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 420px) {
    .modal {
        padding: 0;
    }
}

@media (max-width: 720px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-image {
        border-radius: 12px 12px 0 0;
        height: 180px;
    }

    .modal-image img {
        height: 100%;
        object-fit: cover;
    }

    .modal-content {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE FOOTER FIX
   Full-width content, no side gaps, centered sections
========================================================= */

@media (max-width: 768px) {

    .footer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    /* The footer uses .section__container from styles.css.
       Override its desktop max-width/padding on mobile. */
    .footer .footer__container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 2.5rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        box-sizing: border-box;
    }

    .footer .footer__col {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Logo section */
    .footer .footer__col:first-child {
        width: 100%;
    }

    .footer .footer__col img.class_fixed {
        display: block;
        width: 80px !important;
        max-width: 80px;
        height: auto !important;
        margin: 0 auto;
    }

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

    .footer .footer__logo a {
        display: block;
        width: 80px;
        margin: -0.4rem auto 0;
        text-align: center;
    }

    /* Description + address */
    .footer .footer__col:nth-child(2) {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer .footer__col p {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        text-align: center;
        font-size: 1.05rem;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    /* Remove the visual effect of the two <br> tags in the HTML */
    .footer .footer__col:nth-child(2) br {
        display: none;
    }

    /* Social icons */
    .footer .footer__col:nth-child(3) {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer .footer__socials {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 0 auto;
    }

    /* Copyright bar should also use the full screen */
    .footer .footer__bar {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1.5rem 1rem 0;
        box-sizing: border-box;
        text-align: center;
    }
}


/* Very small phones */
@media (max-width: 420px) {

    .footer .footer__container {
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    .footer .footer__col {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .footer .footer__col p {
        font-size: 1rem;
        line-height: 1.6;
    }
}
