/* Footer styles for wmpl theme - Figma Design Implementation */
@font-face {
    font-family: 'Stylish';
    src: url('../fonts/Stylish-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alamendro';
    src: url('../fonts/alamendro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.site-footer {
    background: #181818;
    color: #ffffff;
    /* bottom padding creates space below barn */
    padding: 90px 20px 190px;
    min-height: 1200px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.site-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    min-height: 730px;
    display: flex;
    padding: 48px 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Decorative margin borders */
.footer-margins {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

.footer-margins .margin {
    position: absolute;
    pointer-events: none;
}

.footer-margins .margin.left {
    position: absolute;
    left: 75px;
    top: 90px;
    height: calc(100% - 400px);
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.footer-margins .margin.left,
.footer-margins .margin.right,
.footer-margins .margin.top {
    /* keep these decorative borders above the illustration */
    z-index: 2;
}

/* bottom margin merged into footer-vector.svg; no separate z-index needed */

.footer-margins .margin.right {
    position: absolute;
    right: 75px;
    top: 90px;
    height: calc(100% - 400px);
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.footer-margins .margin.top {
    position: absolute;
    left: 75px;
    right: 75px;
    top: 90px;
    width: calc(100% - 150px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-margins .margin.bottom {
    position: absolute;
    left: 75px;
    right: 75px;
    bottom: 300px;
    width: calc(100% - 150px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Footer content (centered, stacked vertically) */
.footer-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 300px;
    text-align: center;
}

/* Branding */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-family: 'Alamendro', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.footer-tagline {
    font-family: 'Stylish', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

/* Pages navigation */
.footer-pages {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-pages a {
    font-family: 'Stylish', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-pages a:hover {
    opacity: 0.7;
}

/* Footer sections (Address, Contact) */
.footer-section-title {
    font-family: 'Stylish', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.footer-section-content {
    font-family: 'Stylish', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.footer-contact .footer-section-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact a {
    font-family: 'Stylish', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.7;
}

/* Social Media */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-icons a {
    display: block;
    width: 38px;
    height: 38px;
    transition: opacity 0.2s ease;
}

.footer-social-icons a:hover {
    opacity: 0.7;
}

.footer-social-icons img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Copyright */
.footer-copyright {
    font-family: 'Stylish', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

/* Bottom illustration (barn/windmill) - sits on bottom margin */
.footer-illustration {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1290px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 75px;
    box-sizing: border-box;
}

.footer-illustration img {
    width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 1200px) {
    .site-footer {
        padding: 60px 20px 115px;
        min-height: 1000px;
    }

    .footer-content {
        padding-bottom: 200px;
    }

    .footer-margins {
        max-width: 95vw;
    }

    .footer-margins .margin.left {
        left: 32px;
        top: 90px;
        height: calc(100% - 250px);
    }

    .footer-margins .margin.right {
        right: 32px;
        top: 90px;
        height: calc(100% - 250px);
    }

    .footer-margins .margin.top {
        left: 32px;
        right: 32px;
        width: calc(100% - 64px);
    }

    .footer-margins .margin.bottom {
        left: 32px;
        right: 32px;
        bottom: 165px;
        width: calc(100% - 64px);
    }

    .footer-illustration {
        bottom: 40px;
        max-width: 850px;
        padding: 0 50px;
    }
}

@media (max-width: 800px) {
    .site-footer {
        padding: 40px 20px 100px;
        min-height: 900px;
    }

    .footer-content {
        padding-bottom: 150px;
    }

    .site-footer-inner {
        padding: 0 20px;
        min-height: auto;
    }

    .footer-margins .margin.left {
        left: 20px;
        top: 30px;
        height: calc(100% - 130px);
    }

    .footer-margins .margin.right {
        right: 20px;
        top: 30px;
        height: calc(100% - 130px);
    }

    .footer-margins .margin.top {
        left: 20px;
        right: 20px;
        top: 30px;
        width: calc(100% - 40px);
    }

    .footer-margins .margin.bottom {
        left: 20px;
        right: 20px;
        bottom: 100px;
        width: calc(100% - 40px);
    }

    .footer-logo {
        font-size: 32px;
    }

    .footer-tagline {
        font-size: 16px;
    }

    .footer-pages {
        gap: 30px;
    }

    .footer-pages a {
        font-size: 18px;
    }

    .footer-section-content {
        font-size: 20px;
    }

    .footer-contact a {
        font-size: 20px;
    }

    .footer-illustration {
        bottom: 30px;
        max-width: 550px;
        padding: 0 40px;
    }

    .footer-content {
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 30px 16px 220px;
        min-height: 800px;
    }

    .footer-content {
        padding-bottom: 120px;
    }

    .footer-margins .margin.left {
        left: 16px;
        top: 20px;
        height: calc(100% - 80px);
    }

    .footer-margins .margin.right {
        right: 16px;
        top: 20px;
        height: calc(100% - 80px);
    }

    .footer-margins .margin.top {
        left: 16px;
        right: 16px;
        top: 20px;
        width: calc(100% - 32px);
    }

    .footer-margins .margin.bottom {
        left: 16px;
        right: 16px;
        bottom: 60px;
        width: calc(100% - 32px);
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-tagline {
        font-size: 16px;
    }

    .footer-pages {
        flex-direction: column;
        gap: 16px;
    }

    .footer-pages a {
        font-size: 20px;
    }

    .footer-section-content {
        font-size: 24px;
    }

    .footer-contact a {
        font-size: 24px;
    }

    .footer-illustration {
        bottom: 20px;
        max-width: 310px;
        padding: 0 32px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-copyright {
        font-size: 16px;
    }
}