/* Custom styles go here. Tailwind CSS is primarily used for styling. */
/* You can add custom CSS if Tailwind classes are not sufficient for specific designs. */

/* This file is intentionally minimal as Tailwind handles most styling. */
/* Any styles defined here will override Tailwind's default styles if they have higher specificity. */

/* ==================== 5. Футер ==================== */
footer {
    background-color: #000;
    color: #fff;
    padding: 0;
}

/* Секція "Наші контакти" */
.footer-contacts {
    position: relative;
    background-image: url('../img/contacts_bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Затемнення фону */
.footer-contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.footer-contacts .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-contacts-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.25rem;
    color: #fff;
}

.footer-contacts .contacts-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contacts .contact-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.footer-contacts .contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f67828;
}

.footer-contacts .contact-title {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-contacts .contact-text {
    font-size: 1rem;
    line-height: 1.5;
    /* Виправлення для перенесення довгого тексту */
    word-wrap: break-word;
}

/* Нижня частина футера */
.footer_bottom {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 17.5px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_logo {
    min-width: 150px;
    flex-grow: 1;
    text-align: left;
}

.footer_logo img {
    height: 35px;
    width: auto;
}

.footer_copyright {
    flex-grow: 1;
    min-width: 250px;
    text-align: center;
}

.footer_copyright p {
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.footer_social {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    min-width: 150px;
    justify-content: flex-end;
}

.footer_social a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer_social a:hover {
    color: #f67828;
}

@media (max-width: 991px) {
    .footer_bottom {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px 0;
        gap: 15px;
    }

    .footer_logo {
        text-align: center;
    }

    .footer_logo img {
        height: 42px;
    }

    .footer_copyright {
        order: 2;
    }

    .footer_copyright p {
        white-space: normal;
        max-width: 100%;
    }

    .footer_social {
        order: 3;
        justify-content: center;
    }

    .footer-contacts .contacts-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .footer-contacts .contact-card {
        min-width: unset;
    }
}

@media (min-width: 992px) {
    .footer_bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
