/* ======================================================
   HEALEY PACKAGING FOOTER
====================================================== */

.hp-footer,
.hp-footer * {
    box-sizing: border-box;
}

.hp-footer {
    position: relative;
    color: #ffffff;
    background: #071d32;
}

.hp-footer__container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}


/* ======================================================
   MAIN FOOTER
====================================================== */

.hp-footer__main {
    position: relative;
    overflow: hidden;
    padding: 62px 32px 48px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(22, 119, 255, 0.16),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #071d32 0%,
            #09283e 100%
        );
}

.hp-footer__main::before {
    content: "";
    position: absolute;
    top: -170px;
    left: -140px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hp-footer__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(240px, 1.3fr)
        repeat(3, minmax(145px, 0.72fr))
        minmax(250px, 1.12fr);
    align-items: start;
    gap: 32px;
}


/* ======================================================
   BRAND COLUMN
====================================================== */

.hp-footer__brand {
    min-width: 0;
}

.hp-footer__logo {
    display: inline-flex;
    max-width: 210px;
    text-decoration: none;
}

.hp-footer__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.hp-footer__brand > p {
    max-width: 330px;
    margin: 19px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.68;
}

/* ======================================================
   SOCIAL LINKS
====================================================== */

.hp-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
}

.hp-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hp-footer__socials a:hover {
    color: #ffffff;
    border-color: #1677ff;
    background: #1677ff;
    transform: translateY(-2px);
}

.hp-footer__socials svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ======================================================
   FOOTER COLUMNS
====================================================== */

.hp-footer__column {
    min-width: 0;
}

.hp-footer__column h2,
.hp-footer__contact h2 {
    margin: 0 0 17px;
    color: #ffffff !important;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.hp-footer__column ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-footer__column li {
    margin: 0;
}

.hp-footer__column a {
    position: relative;
    display: inline-flex;
    color: rgba(255, 255, 255, 0.64);
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.hp-footer__column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}


/* ======================================================
   CONTACT COLUMN
====================================================== */

.hp-footer__contact {
    min-width: 0;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
}

.hp-footer__contact > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.hp-footer__contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.hp-footer__contact-list > a,
.hp-footer__contact-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hp-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(22, 119, 255, 0.72);
}

.hp-footer__contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-footer__contact-list small {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hp-footer__contact-list strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.hp-footer__contact-list > a:hover strong {
    color: #9dceff;
}

/* ======================================================
   BOTTOM FOOTER
====================================================== */

.hp-footer__bottom {
    padding: 18px 32px;
    background: #061827;
}

.hp-footer__bottom-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px 32px;
}

.hp-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.50);
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
}

.hp-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 19px;
}

.hp-footer__legal a {
    color: rgba(255, 255, 255, 0.54);
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.hp-footer__legal a:hover {
    color: #ffffff;
}

.hp-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.hp-footer__back-to-top:hover {
    color: #ffffff;
}

.hp-footer__back-to-top svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ======================================================
   SMALL DESKTOP
====================================================== */

@media (max-width: 1100px) {

    .hp-footer__main,
    .hp-footer__bottom {
        padding-right: 24px;
        padding-left: 24px;
    }

    .hp-footer__grid {
        grid-template-columns:
            minmax(240px, 1.2fr)
            repeat(3, minmax(145px, 0.7fr));
    }

    .hp-footer__contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 20px;
    }

    .hp-footer__contact > h2,
    .hp-footer__contact > p {
        grid-column: 1;
    }

    .hp-footer__contact-list {
        grid-column: 2;
        grid-row: 1 / span 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }

}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 850px) {

    .hp-footer__main {
        padding: 52px 20px 42px;
    }

    .hp-footer__bottom {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hp-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .hp-footer__brand {
        grid-column: 1 / -1;
    }

    .hp-footer__brand > p {
        max-width: 660px;
    }

    .hp-footer__contact {
        grid-column: 1 / -1;
        display: block;
    }

    .hp-footer__contact-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 18px;
    }

    .hp-footer__bottom-layout {
        grid-template-columns: 1fr auto;
    }

    .hp-footer__legal {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .hp-footer__main {
        padding: 44px 16px 36px;
    }

    .hp-footer__main::before {
        display: none;
    }

    .hp-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hp-footer__brand {
        padding-bottom: 27px;
    }

    .hp-footer__logo {
        max-width: 190px;
    }

    .hp-footer__brand > p {
        font-size: 10.5px;
    }

    .hp-footer__column {
        padding: 21px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hp-footer__column h2 {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .hp-footer__column ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
    }

    .hp-footer__column a {
        font-size: 9.5px;
    }

    .hp-footer__contact {
        margin-top: 20px;
        padding: 18px;
        border-radius: 13px;
    }

    .hp-footer__contact-list {
        grid-template-columns: 1fr;
    }

    .hp-footer__bottom {
        padding: 18px 16px 22px;
    }

    .hp-footer__bottom-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .hp-footer__legal {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
    }

    .hp-footer__back-to-top {
        justify-content: center;
    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 390px) {

    .hp-footer__main,
    .hp-footer__bottom {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hp-footer__column ul {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   FOOTER BOTTOM GAP FIX
====================================================== */

html,
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#page,
.site,
.hp-footer,
.site-footer,
.hp-footer__bottom {
    margin-bottom: 0 !important;
}

.hp-footer {
    display: block;
    overflow: hidden;
}
/* ============================================================
   FOOTER CLARITY POLISH
   ============================================================ */
.hp-footer,
.hp-footer :where(p, a, span, li, button, input, label, small, strong, h1, h2, h3, h4, h5, h6) {
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

.hp-footer :where(h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0 !important;
    font-weight: 700 !important;
}

.hp-footer :where(.hp-footer__heading, .hp-footer__badge, .hp-footer__mini-title) {
    letter-spacing: 0.02em !important;
}

.hp-footer img {
    image-rendering: auto;
    backface-visibility: hidden;
}
