/* Site footer (resources/js/components/site/site-footer.tsx) */
.ht-footer {
    --ht-footer-accent: var(--tier_light-green, #73c06c);
    --ht-footer-text: #c2d6cc;
    --ht-footer-line: rgba(255, 255, 255, 0.12);
    background: #0b363f;
    color: var(--ht-footer-text);
    font-family: var(--font-primary);
}

.ht-footer a {
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.ht-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ht-footer p {
    margin: 0;
}

/* Main area with decorative glows */
.ht-footer__main {
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    background: var(--cta-two-bg, linear-gradient(180deg, #135360 0%, #0e404a 100%));
}

.ht-footer__main::before {
    content: '';
    position: absolute;
    top: -600px;
    right: -560px;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    border: 1px solid rgba(39, 171, 184, 0.25);
    background: radial-gradient(circle at 30% 70%, rgba(39, 171, 184, 0.22) 0%, rgba(19, 83, 96, 0.25) 40%, transparent 70%);
    pointer-events: none;
}

.ht-footer__main::after {
    content: '';
    position: absolute;
    left: -420px;
    bottom: -300px;
    width: 980px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(39, 171, 184, 0.28) 0%, rgba(19, 83, 96, 0.4) 45%, transparent 75%);
    pointer-events: none;
}

.ht-footer__main > .container {
    position: relative;
    z-index: 1;
}

.ht-footer__grid {
    display: grid;
    grid-template-columns: 514fr 275fr 288fr 230fr 398fr;
    padding-bottom: 40px;
}

.ht-footer__title {
    position: relative;
    margin: 0 0 34px;
    padding-bottom: 18px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.ht-footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--ht-footer-accent);
}

/* Brand column */
.ht-footer__brand {
    padding-right: 56px;
}

.ht-footer__logo {
    display: inline-block;
}

.ht-footer__logo img {
    height: 46px;
    width: auto;
}

.ht-footer__desc {
    margin-top: 22px !important;
    max-width: 320px;
    color: #dbe9e2;
    font-size: 16.5px;
    line-height: 1.62;
}

/* Newsletter: the hidden bot trap and the message under the form */
.ht-footer__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ht-footer__newsletter-note {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 340px;
    margin-top: 10px !important;
    color: #9fe3b8;
    font-size: 14px;
}

.ht-footer__newsletter-note.is-error {
    color: #ffb4a8;
}

.ht-footer__subscribe button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ht-footer__subscribe {
    display: flex;
    align-items: center;
    max-width: 340px;
    height: 50px;
    margin-top: 28px;
    padding: 4px 4px 4px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
}

.ht-footer__subscribe > i {
    color: #fff;
    font-size: 17px;
}

.ht-footer .ht-footer__subscribe input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0 10px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
    box-shadow: none;
}

.ht-footer__subscribe input::placeholder {
    color: #9dbcae;
}

.ht-footer .ht-footer__subscribe button {
    flex: 0 0 auto;
    width: auto;
    height: 42px;
    padding: 0 21px;
    border: 0;
    border-radius: 50px;
    background: var(--color-third, #ffc107);
    color: #0b3b2b;
    font-size: 15px;
    font-weight: 600;
    transition: filter 0.3s ease;
}

.ht-footer .ht-footer__subscribe button:hover {
    filter: brightness(1.08);
}

.ht-footer__socials {
    display: flex;
    gap: 13px;
    margin-top: 25px;
}

.ht-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 15px;
}

.ht-footer__socials a:hover {
    background: var(--ht-footer-accent);
    color: #fff;
}

/* Link columns */
.ht-footer__links li {
    line-height: 21px;
}

.ht-footer__links li + li {
    margin-top: 15px;
}

.ht-footer__links a {
    display: inline-block;
    color: var(--ht-footer-text);
    font-size: 16px;
    line-height: 21px;
}

.ht-footer__links a:hover {
    color: #fff;
}

.ht-footer__links--chevron a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 176px;
}

.ht-footer__links--chevron a i {
    margin-left: 12px;
    font-size: 11px;
    color: #9dbcae;
}

.ht-footer__links--chevron a:hover i {
    color: var(--ht-footer-accent);
}

/* Contact column */
.ht-footer__contact {
    padding-left: 46px;
    border-left: 1px solid var(--ht-footer-line);
}

.ht-footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e1efe8;
    font-size: 16px;
    line-height: 1.5;
}

.ht-footer__contact-list li + li {
    margin-top: 14px;
}

.ht-footer__contact-list li:first-child {
    margin-top: -8px;
}

.ht-footer__contact-list a {
    color: #e1efe8;
}

.ht-footer__contact-list a:hover {
    color: var(--ht-footer-accent);
}

.ht-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 16px;
}

.ht-footer__chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 206px;
    height: 46px;
    margin-top: 20px;
    border: 1.5px solid var(--ht-footer-accent);
    border-radius: 50px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
}

.ht-footer__chat-btn i:first-child {
    font-size: 17px;
}

.ht-footer__chat-btn i:last-child {
    font-size: 13px;
}

.ht-footer__chat-btn:hover {
    background: var(--ht-footer-accent);
    color: #fff;
}

/* Highlights + payments row */
.ht-footer__highlights {
    display: grid;
    grid-template-columns: 285fr 292fr 348fr 382fr auto;
    align-items: center;
    padding: 36px 0 38px;
    border-top: 1px solid var(--ht-footer-line);
}

.ht-footer__highlight {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 46px;
    border-right: 1px solid var(--ht-footer-line);
}

.ht-footer__highlight:first-child {
    padding-left: 14px;
}

.ht-footer__highlight > i {
    color: var(--ht-footer-accent);
    font-size: 30px;
    width: 32px;
    text-align: center;
}

.ht-footer__highlight strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.ht-footer__highlight span {
    display: block;
    color: #b1cbbf;
    font-size: 15px;
    line-height: 1.4;
}

.ht-footer__payments {
    display: flex;
    gap: 13px;
    padding-left: 68px;
}

.ht-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 29px;
    border-radius: 3px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

.ht-pay--visa {
    color: #1a1f71;
    font-size: 15px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.ht-pay--mastercard span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #eb001b;
}

.ht-pay--mastercard span + span {
    margin-left: -7px;
    background: #f79e1b;
    mix-blend-mode: multiply;
}

.ht-pay--paypal {
    font-size: 11.5px;
    font-style: italic;
    font-weight: 800;
}

.ht-pay--paypal b:first-child {
    color: #003087;
}

.ht-pay--paypal b:last-child {
    color: #009cde;
}

.ht-pay--stripe {
    background: #635bff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Bottom bar */
.ht-footer__bottom {
    background: #0b363f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ht-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 33px 0;
}

.ht-footer__bottom-inner p {
    color: #e3efe9;
    font-size: 16px;
}

.ht-footer__bottom-inner ul {
    display: flex;
    flex-wrap: wrap;
}

.ht-footer__bottom-inner li + li {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ht-footer__bottom-inner a {
    color: var(--ht-footer-text);
    font-size: 14.5px;
    line-height: 1;
}

.ht-footer__bottom-inner a:hover {
    color: #fff;
}

/* "Hosttier AI Summary": rounded icon buttons that open an AI assistant about the current page */
.ht-footer__ai {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
}

.ht-footer__ai > span {
    color: var(--ht-footer-text);
    font-size: 14.5px;
}

.ht-footer__ai > div {
    display: flex;
    gap: 8px;
}

.ht-footer__bottom-inner .ht-footer__ai a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #e3efe9;
    transition: all 0.2s ease;
}

.ht-footer__bottom-inner .ht-footer__ai a:hover {
    border-color: var(--ht-footer-accent, #4fb07b);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.ht-footer__ai-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* Responsive */
@media (max-width: 1399px) {
    .ht-footer__highlight {
        padding-left: 30px;
    }

    .ht-footer__payments {
        padding-left: 40px;
    }
}

@media (max-width: 1199px) {
    .ht-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 48px;
    }

    .ht-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .ht-footer__desc {
        max-width: 460px;
    }

    .ht-footer__contact {
        grid-column: 1 / -1;
        padding: 40px 0 0;
        border-left: 0;
        border-top: 1px solid var(--ht-footer-line);
    }

    .ht-footer__highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .ht-footer__highlight,
    .ht-footer__highlight:first-child {
        padding-left: 0;
        border-right: 0;
    }

    .ht-footer__payments {
        grid-column: 1 / -1;
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .ht-footer__main {
        padding-top: 56px;
    }

    .ht-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 24px;
    }

    .ht-footer__grid > .ht-footer__col:nth-child(4) {
        grid-column: 1 / -1;
    }

    .ht-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px 0;
    }

    .ht-footer__bottom-inner ul {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .ht-footer__grid {
        column-gap: 16px;
        row-gap: 40px;
    }

    .ht-footer__title {
        margin-bottom: 24px;
        font-size: 19px;
    }

    .ht-footer__links a {
        font-size: 14.5px;
    }

    .ht-footer__links--chevron a i {
        display: none;
    }

    .ht-footer__highlights {
        gap: 22px 16px;
    }

    .ht-footer__highlight {
        gap: 12px;
    }

    .ht-footer__highlight > i {
        font-size: 24px;
        width: 26px;
    }

    .ht-footer__highlight strong,
    .ht-footer__highlight span {
        font-size: 14px;
    }

    .ht-footer__bottom-inner ul {
        flex-wrap: nowrap;
    }

    .ht-footer__bottom-inner li + li {
        margin-left: 10px;
        padding-left: 10px;
    }

    .ht-footer__bottom-inner a {
        font-size: 13px;
        white-space: nowrap;
    }

    .ht-footer__payments {
        flex-wrap: wrap;
    }
}
