/**
 * Footer Section Block Styles
 * 
 * @package ACF Child Theme
 */

/* Full-width background wrapper */
.footer-section-block {
    width: 100%;
    position: relative;
}

.footer-section-background {
    background-color: #ffffff;
    width: 100%;
    padding: 60px 0;
}

/* Container with WordPress layout width */
.footer-section-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Three column layout */
.footer-section-columns {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Column 1: Logo */
.footer-column-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

/* Column 2: Links */
.footer-column-links {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 4px solid #8c47c0;
    display: inline-block;
    width: auto;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-links-left,
.footer-links-right {
    display: flex;
    flex-direction: column;
}

.footer-links-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 0 0 10px 0;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-links-list a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #8c47c0;
}

/* Column 3: Contact */
.footer-column-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.footer-contact-item a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #8c47c0;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
    margin-left: -15px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-social-link svg {
    width: 40px;
    height: 40px;
}

/* Tablet Layout (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .footer-section-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-section-background {
        padding: 40px 0;
    }

    .footer-logo img {
        max-width: 240px;
    }

    .footer-links-wrapper {
        gap: 30px;
    }
}

/* Mobile Layout (below 768px) */
@media screen and (max-width: 767px) {
    .footer-section-background {
        padding: 30px 0;
    }

    .footer-section-container {
        padding: 0 15px;
    }

    .footer-section-columns {
        gap: 30px;
    }

    .footer-logo img {
        max-width: 200px;
    }

    .footer-column-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .footer-links-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-links-list a,
    .footer-contact-item a,
    .footer-links-subtitle {
        font-size: 15px;
    }

    .footer-social-link svg {
        width: 26px;
        height: 26px;
    }
}

/* Small Mobile (below 480px) */
@media screen and (max-width: 480px) {
    .footer-section-background {
        padding: 25px 0;
    }

    .footer-logo img {
        max-width: 180px;
    }

    .footer-column-title {
        font-size: 18px;
    }

    .footer-links-list a,
    .footer-contact-item a,
    .footer-links-subtitle {
        font-size: 14px;
    }

    .footer-contact-info {
        gap: 12px;
    }

    .footer-social-links {
        gap: 12px;
    }
}

/* Gutenberg Editor Styles */
.block-editor-block-list__block[data-type="acf/footer-section"] {
    margin-left: 0;
    margin-right: 0;
}

/* Ensure full width alignment works properly */
.alignfull.footer-section-block {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
