/*
==========================================================
 HAMSA FOOTER ENGINE — PERTECNICA ENGINEERING
 FINAL BALANCED FOOTER
 ---------------------------------------------------------
 Four columns
 Dedicated engineering panorama zone
 No overlap with values
 No large empty middle area
 Navy + gold + white
==========================================================
*/

.hfe-footer {

    --navy: #031b3a;
    --navy-deep: #02152e;
    --gold: #e5aa28;
    --gold-light: #f2c34b;
    --gold-line: rgba(229,170,40,.42);
    --white: #ffffff;
    --text: #edf2f8;
    --muted: #b9c6d5;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    color: var(--text);

    background:
        radial-gradient(
            circle at 70% 42%,
            rgba(19,55,92,.38),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            var(--navy) 0%,
            var(--navy-deep) 100%
        );

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   GLOBAL TECHNICAL GRID
   Very subtle — does not compete with content
========================================================= */

.hfe-footer::before {

    content: "";

    position: absolute;
    z-index: -3;

    left: 0;
    right: 0;
    bottom: 105px;

    height: 220px;

    pointer-events: none;
    opacity: .10;

    background-image:
        linear-gradient(
            rgba(229,170,40,.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(229,170,40,.18) 1px,
            transparent 1px
        );

    background-size:
        60px 30px,
        60px 30px;
}


/* =========================================================
   CONTAINER
========================================================= */

.hfe-container {

    width: min(
        1420px,
        calc(100% - 72px)
    );

    margin: 0 auto;
    position: relative;
}


/* =========================================================
   MAIN FOUR-COLUMN AREA

   Four functional footer columns.
========================================================= */

.hfe-main {

    position: relative;

    display: grid;

    grid-template-columns:
        1.05fr
        1.15fr
        1fr
        1.10fr;

    column-gap: 64px;

    padding:
        46px
        28px
        42px;

    border-top:
        2px solid
        var(--gold);


}


/* =========================================================
   COLUMN HEADINGS
========================================================= */

.hfe-column,
.hfe-contact {
    min-width: 0;
}


.hfe-column-title {

    margin: 0;

    color: var(--gold);

    font-size: 16px;

    line-height: 1.35;

    font-weight: 700;

    letter-spacing: .035em;

    text-transform: uppercase;
}


.hfe-heading-line {

    display: block;

    width: 46px;
    height: 2px;

    margin:
        14px
        0
        19px;

    background: var(--gold);
}


/* =========================================================
   MENUS
========================================================= */

.hfe-footer-menu ul,
.hfe-menu {

    margin: 0;
    padding: 0;

    list-style: none;
}


.hfe-footer-menu li {

    margin: 0;
    padding: 0;
}


.hfe-footer-menu li + li {

    margin-top: 9px;
}


.hfe-footer-menu a {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    color: var(--text);

    text-decoration: none;

    font-size: 15px;

    line-height: 1.5;

    transition:
        color .2s ease,
        transform .2s ease;
}


.hfe-footer-menu a::before {

    content: "›";

    color: var(--gold);

    font-size: 21px;

    line-height: 1.05;
}


.hfe-footer-menu a:hover {

    color: var(--gold-light);

    transform: translateX(3px);
}


/* =========================================================
   CONTACT
========================================================= */

.hfe-contact-item {

    display: grid;

    grid-template-columns:
        25px
        1fr;

    gap: 10px;

    margin-bottom: 12px;

    padding-bottom: 11px;

    border-bottom:
        1px solid
        rgba(229,170,40,.26);

    color: var(--text);

    font-size: 14.5px;

    line-height: 1.6;
}


.hfe-contact-icon {

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding-top: 2px;

    color: var(--gold);

    font-size: 19px;
}


.hfe-contact-item a {

    color: var(--text);

    text-decoration: none;

    overflow-wrap: anywhere;
}


.hfe-contact-item a:hover {

    color: var(--gold-light);
}


/* =========================================================
   SOCIAL
========================================================= */

.hfe-social {

    display: flex;

    gap: 11px;

    margin-top: 21px;
}


.hfe-social a {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 41px;
    height: 41px;

    border:
        1px solid
        var(--gold);

    border-radius: 50%;

    color: var(--white);

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.hfe-social a:hover {

    color: var(--navy);

    background: var(--gold);

    transform: translateY(-2px);
}


/* =========================================================
   ENGINEERING PANORAMA
========================================================= */

.hfe-engineering-art {
    width: 100%;
    overflow: hidden;
    background: var(--navy-deep);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold);
}

.hfe-engineering-art img {
    display: block;
    width: min(100%, 1500px);
    height: auto;
    margin: 0 auto;
}

.hfe-values {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid
        var(--gold);

    border-bottom:
        1px solid
        var(--gold);

    padding:
        22px
        0;

    background:
        rgba(2,21,46,.82);
}


.hfe-value {

    display: grid;

    grid-template-columns:
        52px
        1fr;

    gap: 15px;

    align-items: center;

    padding:
        0
        24px;
}


.hfe-value + .hfe-value {

    border-left:
        1px solid
        var(--gold-line);
}


.hfe-value-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;
    height: 46px;

    color: var(--gold);

    font-size: 29px;
}


.hfe-value h4 {

    margin:
        0
        0
        5px;

    color: var(--white);

    font-size: 13px;

    line-height: 1.35;

    font-weight: 700;

    letter-spacing: .035em;

    text-transform: uppercase;
}


.hfe-value p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   LEGAL
========================================================= */

.hfe-legal {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding:
        20px
        0
        23px;
}


.hfe-copyright {

    color: var(--muted);

    font-size: 13px;
}


.hfe-legal-links {

    display: flex;

    align-items: center;

    flex-wrap: wrap;
}


.hfe-legal-links a {

    color: var(--muted);

    font-size: 13px;

    text-decoration: none;
}


.hfe-legal-links a:hover {

    color: var(--gold-light);
}


.hfe-legal-links a + a::before {

    content: "|";

    color: var(--gold);

    margin:
        0
        18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .hfe-container {

        width:
            calc(100% - 48px);
    }


    .hfe-main {

        grid-template-columns:
            repeat(2, 1fr);

        column-gap: 48px;

        row-gap: 42px;

        padding-bottom: 42px;
    }


    .hfe-values {

        grid-template-columns:
            repeat(2, 1fr);

        row-gap: 25px;
    }


    .hfe-value:nth-child(3),
    .hfe-value:nth-child(4) {

        border-top:
            1px solid
            var(--gold-line);

        padding-top: 24px;
    }


    .hfe-value:nth-child(3) {

        border-left: 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .hfe-container {

        width:
            calc(100% - 30px);
    }


    .hfe-main {

        grid-template-columns: 1fr;

        row-gap: 36px;

        padding:
            40px
            0
            42px;

    }


    .hfe-footer::before {

        bottom: 105px;

        height: 180px;

        opacity: .07;
    }


    .hfe-values {

        grid-template-columns: 1fr;

        padding:
            8px
            0;
    }


    .hfe-value {

        padding:
            20px
            0;
    }


    .hfe-value + .hfe-value {

        border-left: 0;

        border-top:
            1px solid
            var(--gold-line);
    }


    .hfe-value:nth-child(3),
    .hfe-value:nth-child(4) {

        border-top:
            1px solid
            var(--gold-line);

        padding-top: 20px;
    }


    .hfe-legal {

        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        padding:
            19px
            0
            23px;
    }

}


@media (max-width: 430px) {

    .hfe-container {

        width:
            calc(100% - 24px);
    }


    .hfe-main {

        padding-bottom: 36px;
    }


    .hfe-social a {

        width: 39px;
        height: 39px;
    }


    .hfe-value {

        grid-template-columns:
            46px
            1fr;

        gap: 12px;
    }


    .hfe-legal-links {

        display: block;
    }


    .hfe-legal-links a {

        display: inline-block;

        margin-bottom: 6px;
    }

}


/* =========================================================
   FINAL SPACING CONTROL
   Keeps the engineering panorama as a compact visual band.
========================================================= */

.hfe-main {
    min-height: 0;
}

.hfe-main > .hfe-column,
.hfe-main > .hfe-contact {
    position: relative;
    z-index: 2;
}

.hfe-values {
    position: relative;
    z-index: 3;
}

@media (min-width: 1051px) {

    .hfe-values {
        margin-top: 0;
    }

}

@media (max-width: 1050px) {

    .hfe-main {
        min-height: 0;
    }

}

@media (max-width: 650px) {

    .hfe-main {
        min-height: 0;
    }

}