/* HP Cairo footer
   File: assets/css/footer.css
   Version: 0.1.59
*/

.hpc-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 0%, rgba(232,190,115,0.075), transparent 28%),
        radial-gradient(circle at 84% 100%, rgba(232,190,115,0.060), transparent 34%),
        linear-gradient(180deg, #050303 0%, #090604 100%);
    color: #fff6e5;
    border-top: 1px solid rgba(232,190,115,0.12);
    padding: clamp(46px, 5vw, 74px) 0 24px;
}

.hpc-footer::before {
    content: "CAIRO";
    position: absolute;
    right: -0.06em;
    bottom: -0.18em;
    z-index: -1;
    color: rgba(255,226,162,0.020);
    -webkit-text-stroke: 1px rgba(255,226,162,0.035);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(110px, 18vw, 270px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.hpc-footer__inner {
    width: min(100% - 72px, 1500px);
    margin: 0 auto;
}

.hpc-footer__top {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.7fr) minmax(220px, 0.9fr) minmax(240px, 0.9fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: start;
}

.hpc-footer__brandCard {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
}

.hpc-footer__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    text-decoration: none;
    border: 1px solid rgba(232,190,115,0.14);
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 38%, rgba(232,190,115,0.08), transparent 58%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008)),
        rgba(0,0,0,0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 14px 36px rgba(0,0,0,0.20);
    overflow: hidden;
}

.hpc-footer__logo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(232,190,115,0.08);
    border-radius: 4px;
    pointer-events: none;
}

.hpc-footer__logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
    filter:
        drop-shadow(0 8px 16px rgba(0,0,0,0.66))
        drop-shadow(0 0 10px rgba(232,188,113,0.08));
}

.hpc-footer__brandTitle {
    color: #fff7e7;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hpc-footer__brandCopy p,
.hpc-footer__contacts p {
    margin: 10px 0 0;
    max-width: 360px;
    color: rgba(255,244,223,0.72);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.hpc-footer__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(232,190,115,0.22);
    border-radius: 4px;
    background: rgba(0,0,0,0.20);
    color: #f1d39a;
    font-size: 13px;
    font-weight: 900;
}

.hpc-footer h3 {
    margin: 0 0 18px;
    color: #f1d39a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hpc-footer__nav,
.hpc-footer__contacts,
.hpc-footer__docs {
    display: grid;
    align-content: start;
}

.hpc-footer__nav a,
.hpc-footer__docs a,
.hpc-footer__phone {
    color: rgba(255,244,223,0.82);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease;
}

.hpc-footer__nav a + a,
.hpc-footer__docs a + a {
    margin-top: 11px;
}

.hpc-footer__nav a:hover,
.hpc-footer__docs a:hover,
.hpc-footer__phone:hover {
    color: #fffaf0;
}

.hpc-footer__phone {
    font-size: 17px;
    color: #fff7e7;
}

.hpc-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hpc-footer__socials .hpc-social {
    width: 37px;
    height: 37px;
}

.hpc-footer__socials .hpc-social svg {
    width: 20px;
    height: 20px;
}

.hpc-footer__socials .hpc-social--max svg {
    width: 26px;
    height: 26px;
}

.hpc-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    margin-top: clamp(36px, 5vw, 64px);
    padding-top: 22px;
    border-top: 1px solid rgba(232,190,115,0.12);
    color: rgba(255,244,223,0.54);
    font-size: 13px;
    font-weight: 600;
}

.hpc-footer__legal {
    text-align: right;
}

.hpc-footer__bottom .hpc-footer__age {
    justify-self: end;
}

@media (max-width: 1080px) {
    .hpc-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hpc-footer {
        padding: 42px 0 22px;
    }

    .hpc-footer__inner {
        width: min(100% - 28px, 560px);
    }

    .hpc-footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hpc-footer__brandCard {
        grid-template-columns: 88px 1fr;
        gap: 14px;
        align-items: center;
    }

    .hpc-footer__logo {
        width: 88px;
        height: 88px;
    }

    .hpc-footer__logo-img {
        max-width: 68px;
        max-height: 68px;
    }

    .hpc-footer__brandTitle {
        font-size: 18px;
    }

    .hpc-footer__brandCopy p,
    .hpc-footer__contacts p {
        max-width: none;
    }

    .hpc-footer__bottom {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 10px;
    }

    .hpc-footer__legal {
        text-align: left;
    }
}



/* v0.1.60: premium mobile footer refinement */
@media (max-width: 640px) {
    .hpc-footer {
        padding: 34px 0 20px;
    }

    .hpc-footer::before {
        right: -0.12em;
        bottom: -0.08em;
        font-size: 128px;
        opacity: 0.55;
    }

    .hpc-footer__inner {
        width: min(100% - 24px, 560px);
    }

    .hpc-footer__top {
        gap: 16px;
    }

    .hpc-footer__brand,
    .hpc-footer__nav,
    .hpc-footer__contacts,
    .hpc-footer__docs {
        position: relative;
        padding: 18px 16px;
        border: 1px solid rgba(232,190,115,0.14);
        border-radius: 10px;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
            rgba(8,4,3,0.48);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.03),
            0 16px 34px rgba(0,0,0,0.18);
        overflow: hidden;
    }

    .hpc-footer__brand::before,
    .hpc-footer__nav::before,
    .hpc-footer__contacts::before,
    .hpc-footer__docs::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 0% 0%, rgba(232,190,115,0.07), transparent 42%);
        pointer-events: none;
    }

    .hpc-footer__brandCard {
        grid-template-columns: 86px 1fr;
        gap: 14px;
        align-items: start;
    }

    .hpc-footer__logo {
        width: 86px;
        height: 86px;
        border-radius: 8px;
    }

    .hpc-footer__logo-img {
        max-width: 66px;
        max-height: 66px;
    }

    .hpc-footer__brandCopy {
        min-width: 0;
    }

    .hpc-footer__brandTitle {
        font-size: 17px;
        line-height: 1.1;
    }

    .hpc-footer__brandCopy p,
    .hpc-footer__contacts p {
        margin-top: 8px;
        color: rgba(255,244,223,0.78);
        font-size: 13px;
        line-height: 1.5;
    }

    .hpc-footer h3 {
        margin-bottom: 14px;
        color: #f3d8a5;
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .hpc-footer__nav a,
    .hpc-footer__docs a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 0 0 0 2px;
        color: rgba(255,244,223,0.92);
        font-size: 15px;
        font-weight: 700;
        border-bottom: 1px solid rgba(232,190,115,0.08);
    }

    .hpc-footer__nav a::after,
    .hpc-footer__docs a::after {
        content: '→';
        margin-left: auto;
        color: rgba(241,211,154,0.72);
        font-size: 14px;
    }

    .hpc-footer__nav a:last-child,
    .hpc-footer__docs a:last-child {
        border-bottom: 0;
    }

    .hpc-footer__nav a + a,
    .hpc-footer__docs a + a {
        margin-top: 0;
    }

    .hpc-footer__phone {
        display: inline-block;
        margin-bottom: 8px;
        color: #fff9ef;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
    }

    .hpc-footer__socials {
        gap: 10px;
        margin-top: 16px;
    }

    .hpc-footer__socials .hpc-social {
        width: 40px;
        height: 40px;
    }

    .hpc-footer__bottom {
        margin-top: 18px;
        padding-top: 16px;
        justify-items: stretch;
        gap: 8px;
        font-size: 12px;
        color: rgba(255,244,223,0.56);
    }

    .hpc-footer__copy,
    .hpc-footer__legal {
        text-align: center;
    }

    .hpc-footer__bottom .hpc-footer__age {
        justify-self: center;
        margin-top: 2px;
    }
}

