/**
 * Elegant Footer Styles
 * Version: 1.0.1
 * Author: Darko Ivanec
 */

/* Wrapper */
.elegant-footer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #000000;
    padding: 20vh 0px 10vh 0;
}


.elegant-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* Heading */
.elegant-footer-heading {
    color: #FFF !important;
    text-align: center !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 25px !important; /* 166.667% */
    letter-spacing: 6px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show mobile heading, hide desktop heading by default */
.elegant-footer-heading-mobile {
    display: block !important;
}

.elegant-footer-heading-desktop {
    display: none !important;
}

/* Logo */
.elegant-footer-logo-link {
    display: block !important;
    transition: opacity 0.2s ease !important;
}

@media (hover: hover) {
    .elegant-footer-logo-link:hover {
        opacity: 0.8 !important;
    }
}

.elegant-footer-logo {
    width: auto !important;
    max-width: 187px !important;
    height: auto !important;
    max-height: 160px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Menu */
.elegant-footer-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 226px !important;
    margin: 30px 0px 20px 0px !important;
}

/* Manual Menu (for mobile) */
.elegant-footer-menu-manual {
    display: flex !important;
}

.elegant-footer-menu-manual .elegant-footer-menu-item {
    color: #FFF !important;
    text-align: center !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: 2.4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    margin: 2px 0px !important;
}

@media (hover: hover) {
    .elegant-footer-menu-manual .elegant-footer-menu-item:hover {
        opacity: 0.7 !important;
    }
}

/* Divider line between manual menu items */
.elegant-footer-divider {
    width: 226px !important;
    height: 0 !important;
    border: none !important;
    border-top: 1px solid #4D4D4D !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Off Canvas Menu (for desktop) */
.elegant-footer-menu-offcanvas {
    display: none !important;
}

.elegant-footer-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.elegant-footer-menu-list li {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.elegant-footer-menu-list li:not(:first-child) {
    border-top: 1px solid #4D4D4D !important;
    margin-top: 0 !important;
    width: 226px !important;
}

.elegant-footer-menu-list li a {
    color: #FFF !important;
    text-align: center !important;
    font-family: "Reddit Sans", sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: 2.4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    padding: 2px 0 !important;
}

@media (hover: hover) {
    .elegant-footer-menu-list li a:hover {
        opacity: 0.7 !important;
    }
}

/* Social Icons */
.elegant-footer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
}

.elegant-footer-social-icon {
    display: block !important;
    width: 45px !important;
    height: 45px !important;
    flex-shrink: 0 !important;
    transition: opacity 0.2s ease !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

@media (hover: hover) {
    .elegant-footer-social-icon:hover {
        opacity: 0.8 !important;
    }
}

.elegant-footer-social-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Copyright - Mobile first (default) */
/* Using high specificity to override .single-post p styles */
.elegant-footer-wrapper p.elegant-footer-copyright,
.elegant-footer-copyright-wrapper p.elegant-footer-copyright,
p.elegant-footer-copyright {
    color: #FFF !important;
    text-align: center !important;
    font-family: "IBM Plex Serif", Georgia, serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Copyright - Desktop */
@media (min-width: 1000px) {
    .elegant-footer-wrapper p.elegant-footer-copyright,
    .elegant-footer-copyright-wrapper p.elegant-footer-copyright,
    p.elegant-footer-copyright {
        font-size: 18px !important;
        letter-spacing: 0.36px !important;
        text-align: left !important;
    }
}

/* Desktop Custom Menu - Hidden on mobile */
.elegant-footer-col-1-5 {
    display: none !important;
}

/* Mobile Layout - Vertical Stack */
@media (max-width: 999px) {
    .elegant-footer-wrapper {
        padding: 10vh 0px 4vh 0 !important;
    }

    /* Home page only: reduced top padding */
    .home .elegant-footer-wrapper {
        padding: 3vh 0px 4vh 0 !important;
    }

    .elegant-footer-container {
        gap: 40px !important;
    }

    /* Row 1: Stack vertically, center everything */
    .elegant-footer-row-1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        width: 100% !important;
    }

    /* Hide desktop custom menu on mobile */
    .elegant-footer-col-1-5 {
        display: none !important;
    }

    /* Column 1: Logo + Heading - centered (reversed order on mobile: heading first, then logo) */
    .elegant-footer-col-1 {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .elegant-footer-col-1 .elegant-footer-logo-link {
        margin: 0 !important;
    }

    .elegant-footer-col-1 .elegant-footer-logo {
        margin: 0 auto !important;
    }

    .elegant-footer-col-1 .elegant-footer-heading {
        text-align: center !important;
    }

    /* Column 2: Menu - centered */
    .elegant-footer-col-2 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu {
        margin: 0 !important;
    }

    /* Column 3: Social Icons - centered */
    .elegant-footer-col-3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .elegant-footer-col-3 .elegant-footer-social {
        gap: 28px !important;
        justify-content: center !important;
    }

    /* Row 2: Stack vertically, center everything */
    .elegant-footer-row-2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        width: 100% !important;
        padding-top: 0 !important;
        border-top: none !important;
    }

    .elegant-footer-copyright-wrapper {
        display: flex !important;
        justify-content: center !important;
    }

    .elegant-footer-copyright {
        text-align: center !important;
    }

    .elegant-footer-bottom-links-wrapper {
        display: none !important;
    }

    .elegant-footer-social-icon {
        width: 45px !important;
        height: 45px !important;
    }

    /* Mobile menu items - different style than desktop */
    .elegant-footer-menu-manual .elegant-footer-menu-item {
        color: #FFF !important;
        text-align: center !important;
        font-family: "IBM Plex Serif", Georgia, serif !important;
        font-size: 15px !important;
        font-style: normal !important;
        font-weight: 300 !important;
        line-height: 40px !important;
        letter-spacing: 0.45px !important;
        text-transform: uppercase !important;
    }
}

/* DESKTOP LAYOUT - Row-based 3-column + 2-column structure */
@media (min-width: 1000px) {
    .elegant-footer-wrapper {
        justify-content: flex-start !important;
    }

    .elegant-footer-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 200px !important;
        width: 100% !important;
        max-width: 1920px !important;
        padding: 0 13vh !important;
        justify-content: center !important;
        margin: 0 auto;
    }

    /* Desktop: Hide manual menu, show off canvas menu */
    .elegant-footer-menu-manual {
        display: none !important;
    }

    .elegant-footer-menu-offcanvas {
        display: flex !important;
    }

    /* Row 1: Logo+Slogan | Menu | Social Icons */
    .elegant-footer-row-1 {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Column 1: Logo + Heading */
    .elegant-footer-col-1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px !important;
        flex-shrink: 0 !important;
        align-self: flex-start !important;
    }

    .elegant-footer-col-1 .elegant-footer-logo-link {
        margin: 0 !important;
        display: block !important;
        line-height: 0 !important;
    }

    .elegant-footer-col-1 .elegant-footer-logo {
        margin: 0 !important;
        width: 97px !important;
        height: 97px !important;
        display: block !important;
    }

    .elegant-footer-col-1 .elegant-footer-heading {
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Desktop: Hide mobile heading, show desktop heading */
    .elegant-footer-heading-mobile {
        display: none !important;
    }

    .elegant-footer-heading-desktop {
        display: block !important;
    }

    /* Column 1.5: Desktop Custom Menu (NEW) */
    .elegant-footer-col-1-5 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-left: 12rem !important;
        align-self: flex-start !important;
    }

    .elegant-footer-desktop-custom-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 36px !important;
    }

    .elegant-footer-desktop-custom-link {
        color: #FFF !important;
        font-family: "Reddit Sans", sans-serif !important;
        font-size: 25px !important;
        font-style: normal !important;
        font-weight: 600 !important;
        line-height: normal !important;
        letter-spacing: 2.5px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        transition: opacity 0.2s ease !important;
        white-space: nowrap !important;
    }

    @media (hover: hover) {
        .elegant-footer-desktop-custom-link:hover {
            opacity: 0.7 !important;
        }
    }

    /* Column 2: Menu */
    .elegant-footer-col-2 {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-left: 300px !important;
        align-self: flex-start !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu {
        margin: 0 !important;
        max-width: none !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu-list {
        align-items: flex-start !important;
        margin-top: -10px !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu-list li {
        align-items: flex-start !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu-list li a {
        text-align: left !important;
        font-size: 16px !important;
        letter-spacing: 3.2px !important;
    }

    .elegant-footer-col-2 .elegant-footer-menu-list li:not(:first-child) {
        width: 100% !important;
    }

    /* Desktop: Off canvas menu styling */
    .elegant-footer-col-2 .elegant-footer-menu-offcanvas {
        align-items: flex-start !important;
    }

    /* Desktop: Remove borders from menu list items */
    .elegant-footer-col-2 .elegant-footer-menu-list li:not(:first-child) {
        border-top: none !important;
    }

    /* Column 3: Social Icons */
    .elegant-footer-col-3 {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        margin-left: auto !important;
        align-self: flex-start !important;
    }

    .elegant-footer-col-3 .elegant-footer-social {
        justify-content: flex-end !important;
    }

    /* Row 2: Copyright | Bottom Links */
    .elegant-footer-row-2 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: 100% !important;
    }

    .elegant-footer-copyright-wrapper {
        display: flex !important;
        justify-content: flex-start !important;
    }

    .elegant-footer-copyright {
        text-align: left !important;
        font-family: "IBM Plex Sans", sans-serif !important;
        font-size: 18px !important;
        font-style: normal !important;
        font-weight: 300 !important;
        line-height: normal !important;
        letter-spacing: 0.36px !important;
        color: #FFF !important;
    }

    .elegant-footer-bottom-links-wrapper {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .elegant-footer-bottom-links {
        display: flex !important;
        flex-direction: row !important;
        gap: 3rem !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .elegant-footer-bottom-link {
        color: #FFF !important;
        text-align: center !important;
        font-family: "IBM Plex Serif", Georgia, serif !important;
        font-size: 18px !important;
        font-style: normal !important;
        font-weight: 300 !important;
        line-height: 17px !important;
        letter-spacing: 0.9px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        transition: opacity 0.2s ease !important;
        white-space: nowrap !important;
    }

    @media (hover: hover) {
        .elegant-footer-bottom-link:hover {
            opacity: 0.7 !important;
        }
    }
}

/* Medium Desktop: 1201px - 1500px */
@media (min-width: 1201px) {
    .elegant-footer-bottom-links {
        gap: 4rem !important;
    }
}

/* Large Desktop: 1501px+ - Increase custom menu margin */
@media (min-width: 1501px) {
    .elegant-footer-col-1-5 {
        margin-left: 20rem !important;
    }
}

/* Large Desktop: 1501px+ */
@media (min-width: 1501px) {
    .elegant-footer-bottom-links {
        gap: 6rem !important;
    }
}

/* Extra Large Desktop: 1921px+ */
@media (min-width: 1921px) {
    .elegant-footer-container {
        padding: 0 5vh !important;
    }
}
