
/* ==========================================
   DIGIHAUZAR FOOTER
   White / Orange / Black Theme
   Compatible with existing eco-* classes
========================================== */

:root {
    --eco-footer-bg: #ffffff;
    --eco-footer-bottom: #fafafa;
    --eco-footer-white: #15171c;
    --eco-footer-muted: #737780;
    --eco-footer-orange: #ff5b0a;
    --eco-footer-orange-hover: #e84d00;
    --eco-footer-border: #e8e9ed;
    --eco-footer-soft: #f6f7f9;
    --eco-footer-container: 1380px;
}

/* ==========================================
   GENERAL
========================================== */

.eco-site-footer,
.eco-site-footer *,
.eco-site-footer *::before,
.eco-site-footer *::after {
    box-sizing: border-box;
}

.eco-site-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--eco-footer-bg);
    color: var(--eco-footer-white);
    font-family: Manrope, Arial, sans-serif;
    border-top: 1px solid var(--eco-footer-border);
}

.eco-site-footer a {
    text-decoration: none;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.eco-footer-container {
    width: min(
        calc(100% - 48px),
        var(--eco-footer-container)
    );
    margin: 0 auto;
}

/* ==========================================
   MAIN FOOTER
========================================== */

.eco-footer-main {
    padding: 65px 0 60px;
    background: #ffffff;
}

.eco-footer-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
      
        minmax(0, 1.15fr)
        minmax(0, 1fr);

    gap: 35px;
    align-items: start;
}

.eco-footer-column {
    min-width: 0;
}

/* ==========================================
   FOOTER LOGO
========================================== */

.eco-footer-brand {
    margin-bottom: 18px;
}

.eco-footer-brand a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.eco-footer-logo,
.eco-site-footer .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 195px;
    max-height: 53px;
    object-fit: contain;
}

.eco-footer-logo-text {
    display: inline-block;
    color: #15171c;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.2;
}

.eco-footer-logo-text span {
    color: var(--eco-footer-orange);
}

/* ==========================================
   DESCRIPTION
========================================== */

.eco-footer-description {
    max-width: 305px;
    margin: 0 0 22px;
    padding: 0;

    color: var(--eco-footer-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

/* ==========================================
   SOCIAL ICONS
========================================== */

.eco-footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.eco-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 0;

    border: 1px solid #e9eaee;
    border-radius: 50%;

    background: #f5f6f8;
    color: #22252b;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    box-shadow: none;
}

.eco-footer-social a:hover {
    background: var(--eco-footer-orange);
    border-color: var(--eco-footer-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

.eco-footer-social a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ==========================================
   OPTIONAL APP BUTTONS
========================================== */

.eco-footer-apps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.eco-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 43px;
    padding: 7px 11px;

    background: #f7f7f8;
    border: 1px solid var(--eco-footer-border);
    border-radius: 6px;
    color: #15171c;
}

.eco-app-badge:hover {
    border-color: var(--eco-footer-orange);
    background: #fff3ed;
    color: #15171c;
    transform: translateY(-2px);
}

.eco-app-symbol {
    color: var(--eco-footer-orange);
    font-size: 22px;
}

.eco-app-badge span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.eco-app-badge small {
    color: #858993;
    font-size: 9px;
}

.eco-app-badge strong {
    color: #15171c;
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================
   COLUMN HEADINGS
========================================== */

.eco-footer-title {
    position: relative;

    margin: 0 0 21px;
    padding: 0 0 13px;

    color: #15171c;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.3px;
}

.eco-footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

   
}

.eco-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 38px;
    height: 2px;

    background: var(--eco-footer-orange);
}

/* ==========================================
   CATEGORY LINKS
========================================== */

.eco-footer-category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.eco-footer-category-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eco-footer-category-list a {
    display: inline-block;
    color: #626873;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.eco-footer-category-list a:hover {
    color: var(--eco-footer-orange);
    transform: translateX(4px);
}

/* ==========================================
   RECENT POSTS
========================================== */

.eco-footer-recent-list {
    display: flex;
    flex-direction: column;
}

.eco-footer-post {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0 0 14px;
    padding: 0 0 14px;

    border-bottom: 1px solid var(--eco-footer-border);
}

.eco-footer-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.eco-footer-post-image {
    position: relative;
    flex: 0 0 76px;

    width: 76px;
    height: 69px;

    overflow: hidden;
    border-radius: 7px;
    background: #f2f3f5;
}

.eco-footer-post-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .35s ease;
}

.eco-footer-post:hover .eco-footer-post-image img {
    transform: scale(1.07);
}

.eco-footer-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        135deg,
        #fff0e6,
        #ffd5be
    );
}

.eco-footer-image-placeholder span {
    color: var(--eco-footer-orange);
    font-size: 25px;
    font-weight: 800;
}

.eco-footer-post-content {
    flex: 1;
    min-width: 0;
}

.eco-footer-post-content h4 {
    margin: 0 0 6px;
    padding: 0;

    color: #15171c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.eco-footer-post-content h4 a {
    color: #15171c;
}

.eco-footer-post-content h4 a:hover {
    color: var(--eco-footer-orange);
}

.eco-footer-post-meta {
    color: #8c919a;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   TAGS
========================================== */

.eco-footer-tags-box {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;

    gap: 8px;
    min-height: 140px;

    padding: 14px;

    border: 1px solid var(--eco-footer-border);
    border-radius: 9px;

    background: #ffffff;
}

.eco-footer-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 6px 10px;

    background: #f5f6f8;
    border: 1px solid #e9eaee;
    border-radius: 5px;

    color: #505560;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.eco-footer-tag:hover {
    background: var(--eco-footer-orange);
    border-color: var(--eco-footer-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.eco-footer-empty {
    color: #8b9099;
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   BOTTOM COPYRIGHT BAR
========================================== */

.eco-footer-bottom {
    padding: 21px 0;
    background: var(--eco-footer-bottom);
    border-top: 1px solid var(--eco-footer-border);
}

.eco-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.eco-footer-copyright {
    margin: 0;
    padding: 0;

    color: #757b85;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.eco-footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 23px;
    margin-left: auto;
}

.eco-footer-bottom-links a {
    color: #626873;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.eco-footer-bottom-links a:hover {
    color: var(--eco-footer-orange);
}

/* ==========================================
   HOVER & FOCUS
========================================== */

.eco-site-footer a:focus-visible {
    outline: 2px solid var(--eco-footer-orange);
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE - SMALL DESKTOP
========================================== */

@media (max-width: 1199px) {

    .eco-footer-grid {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, .7fr)
            minmax(0, 1.2fr)
            minmax(0, 1fr);

        gap: 25px;
    }

    .eco-footer-post {
        gap: 10px;
    }

    .eco-footer-post-image {
        flex-basis: 70px;
        width: 70px;
        height: 65px;
    }

    .eco-footer-post-content h4 {
        font-size: 11px;
    }

    .eco-footer-tags-box {
        padding: 12px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .eco-footer-main {
        padding: 55px 0;
    }

    .eco-footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 35px 30px;
    }

    .eco-footer-description {
        max-width: 350px;
    }

    .eco-footer-post-image {
        flex-basis: 80px;
        width: 80px;
        height: 70px;
    }

    .eco-footer-tags-box {
        min-height: 0;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .eco-footer-container {
        width: calc(100% - 36px);
    }

    .eco-footer-main {
        padding: 40px 0 45px;
    }

    .eco-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .eco-footer-brand {
        margin-bottom: 15px;
    }

    .eco-footer-logo,
    .eco-site-footer .custom-logo {
        max-width: 180px;
        max-height: 48px;
    }

    .eco-footer-description {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 12px;
        line-height: 1.8;
    }

    .eco-footer-title {
        margin-bottom: 17px;
        padding-bottom: 11px;
        font-size: 15px;
    }

    .eco-footer-category-list {
        gap: 10px;
    }

    .eco-footer-category-list a {
        font-size: 12px;
    }

    .eco-footer-post-image {
        flex: 0 0 78px;
        width: 78px;
        height: 70px;
    }

    .eco-footer-post-content h4 {
        font-size: 12px;
    }

    .eco-footer-tags-box {
        min-height: 0;
        padding: 12px;
    }

    .eco-footer-tag {
        font-size: 11px;
        padding: 6px 9px;
    }

    .eco-footer-apps {
        margin-top: 23px;
    }

    /* Copyright section */

    .eco-footer-bottom {
        padding: 19px 0;
    }

    .eco-footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 11px;
        text-align: center;
    }

    .eco-footer-bottom-links {
        justify-content: center;
        gap: 16px;
        margin-left: 0;
    }

    .eco-footer-copyright,
    .eco-footer-bottom-links a {
        font-size: 11px;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .eco-site-footer *,
    .eco-site-footer *::before,
    .eco-site-footer *::after {
        transition: none !important;
        animation: none !important;
    }
}

.eco-site-header,
.eco-site-header button,
.eco-site-header input,
.eco-mobile-panel,
.eco-site-footer {
    font-family: 'Outfit', Arial, sans-serif;
}
