/*
 * Site footer (synced pattern "Site Footer", GenerateBlocks). Matches the OptimizePress footer.
 * Loaded wherever the footer is printed and in the block editor. Scoped to .ewf.
 */

body .ewf {
    color: rgba(255, 255, 255, 0.8);
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body .ewf *,
body .ewf *::before,
body .ewf *::after {
    box-sizing: border-box;
}

body .ewf :where(p) {
    margin: 0;
}

body .ewf a {
    color: #fff;
    text-decoration: underline;
}

body .ewf a:hover,
body .ewf a:focus {
    color: #7bab57;
}

body .ewf svg {
    display: block;
    width: 1em;
    height: 1em;
}

body .ewf .ewf-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: 20px;
}

/* ---------- main area ---------- */
body .ewf .ewf-main {
    padding-block: 60px 64px;
    background: #252525;
}

body .ewf .ewf-award {
    display: flex;
    align-items: center;
    gap: 52px;
    margin-bottom: 36px;
}

body .ewf .ewf-badge {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

body .ewf .ewf-award-name {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}

body .ewf .ewf-award-line {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

body .ewf .ewf-grid {
    display: grid;
    grid-template-columns: minmax(0, 370px) minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 50px;
}

body .ewf .ewf-logo {
    display: block;
    width: 100%;
    max-width: 370px;
    height: auto;
    aspect-ratio: 370 / 121;
    object-fit: cover;
    margin-bottom: 12px;
}

body .ewf .ewf-about {
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

body .ewf .ewf-small {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 10px;
    line-height: 1.2;
}

body .ewf .ewf-col--contact {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 40px;
}

body .ewf .ewf-title {
    color: #fff;
    font-family: "DM Sans", Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

body .ewf .ewf-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
}

body .ewf .ewf-ic {
    display: inline-flex;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
}

body .ewf .ewf-col--offices {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 50px;
}

body .ewf .ewf-office {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

body .ewf .ewf-office .ewf-ic {
    margin-top: 4px;
}

body .ewf .ewf-office-body {
    min-width: 0;
}

body .ewf .ewf-office-text {
    line-height: 1.35;
}

body .ewf .ewf-office-text strong {
    color: #fff;
    font-weight: 700;
}

body .ewf .ewf-office-text a {
    color: rgba(255, 255, 255, 0.8);
}

body .ewf .ewf-dir,
body .ewf .ewf-dir:hover,
body .ewf .ewf-dir:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 8px 30px;
    white-space: nowrap;
    border-radius: 8px;
    background: #fff;
    color: #252525;
    font-weight: 700;
    text-decoration: none;
}

body .ewf .ewf-dir:hover,
body .ewf .ewf-dir:focus {
    background: #e8f0e3;
}

/* ---------- bottom bar ---------- */
body .ewf .ewf-bar {
    background: #000;
}

body .ewf .ewf-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    min-height: 75px;
    padding-block: 14px;
}

body .ewf .ewf-copy a,
body .ewf .ewf-copy a:hover {
    color: #7bab57;
}

body .ewf .ewf-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .ewf .ewf-social-link,
body .ewf .ewf-social-link:hover,
body .ewf .ewf-social-link:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

body .ewf .ewf-social-link:hover,
body .ewf .ewf-social-link:focus {
    color: #7bab57;
}

/* ---------- block editor: footer pattern spans the editor width ---------- */
.block-editor-block-list__layout.is-root-container > .gb-is-root-block:has(> .ewf) {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
    body .ewf .ewf-dir,
    body .ewf .ewf-dir:hover,
    body .ewf .ewf-dir:focus {
        padding-inline: 18px;
        white-space: normal;
    }
}

@media (max-width: 1000px) {
    body .ewf .ewf-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px;
    }

    body .ewf .ewf-col--about {
        grid-column: 1 / -1;
        max-width: 560px;
    }

    body .ewf .ewf-col--contact,
    body .ewf .ewf-col--offices {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    body .ewf .ewf-main {
        padding-block: 44px 48px;
    }

    body .ewf .ewf-award {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    body .ewf .ewf-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .ewf .ewf-bar-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    body .ewf .ewf-dir {
        width: 100%;
        white-space: normal;
    }
}
