/* ==========================================================================
   Footer
   ========================================================================== */

.page-footer {
    background: #021B3F;
    padding: 60px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* ---------- Footer Top: Main Content Area ---------- */

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.footer-top h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
}

/* -- Brand Column (Logo + Social) -- */

.footer-top__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo__img {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-social {
    margin-top: 0;
}

.footer-social ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    gap: 13px;
}

.footer-social ul li {
    padding: 0;
    margin: 0;
}

.footer-social ul li:before {
    display: none;
}

.footer-social ul li a {
    font-size: 33px;
    color: #d4af37;
}

/* -- Locations Column (Addresses + Review Links) -- */

.footer-top__locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* -- Contact Column (Phone, Contact Us) -- */

.footer-top__contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* -- CTA Column (Book Now + Certificates) -- */

.footer-top__cta {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

/* -- Shared Link Column Styles -- */

.footer-link-col ul {
    padding: 0;
    margin: 0;
    gap: 11px;
    display: flex;
    flex-wrap: wrap;
}

.footer-link-col ul li {
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-link-col ul li:before {
    display: none;
}

.footer-link-col ul li a {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    line-height: 1.4375em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 0;
    max-width: 320px;
}

.footer-link-col ul li a .hales-icon {
    flex: 0 0 auto;
    color: #d4af37;
}

.footer-link-col ul li a i {
    margin-right: 5px;
    font-size: 16px;
    color: #d4af37;
    position: absolute;
    left: 0;
    top: 4px;
    z-index: 1;
}

.footer-link-col--info h3 {
    margin: 0 0 10px;
}

.footer-link-col ul li a i.icon-pin {
    font-size: 15px;
}

.footer-link-col ul li a i.icon-pin:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background-color: #fff;
    z-index: -1;
}

/* -- Review Location Links -- */
/* HAC-013: Reshape from thin underlined text with a tiny arrow pip into
   proper ghost buttons so the two "Leave a Review for..." location links
   read as actionable CTAs rather than inline body text. */

.footer-review-location {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-review-location .footer-review-location__item {
    margin: 0;
}

.footer-review-location .footer-review-location__item + .footer-review-location__item {
    margin-top: 0;
}

.footer-review-location .footer-review-location__item > a {
    color: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 44px 10px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    white-space: normal;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-review-location .footer-review-location__item > a::after {
    content: '\e913';
    font-family: 'hales-icon';
    position: absolute;
    top: 50%;
    right: 10px;
    font-size: 10px;
    font-weight: 400;
    transform: translate(0, -50%);
    line-height: 1em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #011635;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-review-location .footer-review-location__item > a:hover,
.footer-review-location .footer-review-location__item > a:focus-visible {
    color: #f6e27f;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(246, 226, 127, 0.6);
    outline: none;
}

.footer-review-location .footer-review-location__item > a:hover::after,
.footer-review-location .footer-review-location__item > a:focus-visible::after {
    transform: translate(2px, -50%);
}

/* -- Certificate Badges -- */
/* HAC-013: previously rendered at 100x100/90x90 on tablet/desktop which gave
   them more visual weight than the primary CTA. Shrink + tighten gap so they
   read as a trust row rather than the footer's hero. */

.footer-certificate {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-certificate img {
    max-width: 64px;
    height: auto;
}

/* ---------- Footer Bottom Bar ---------- */

.footer-bottom {
    margin: 40px 0 0;
    padding: 18px 0;
    background: #011635;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.footer-bottom__wrapper ul {
    padding: 0;
    margin: 0;
    gap: 6px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* HAC-013: shrink the copyright/legal row from 16px to 13.5px so it reads as
   secondary meta (previously it competed with the primary footer content). */
.footer-bottom__wrapper ul li {
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
    line-height: 1.5;
}

.footer-bottom__wrapper ul li:before {
    display: none;
}

.footer-bottom__wrapper ul li a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom__wrapper ul li a:hover {
    color: #d4af37;
    text-shadow: none;
}

/* -- Back to Top -- */
/* HAC-013: right-size the back-to-top control so it matches the secondary
   copyright row rather than screaming for attention at 18px/700. */

.back-to-top a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

.back-to-top a:hover,
.back-to-top a:focus-visible {
    color: #f6e27f;
    outline: none;
}

.back-to-top a i {
    width: 22px;
    height: 22px;
    background: #d4af37;
    color: #011635;
    font-size: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.back-to-top a:hover i,
.back-to-top a:focus-visible i {
    transform: translateY(-2px);
}

/* -- Decorative Background Icon -- */
/* HAC-013: the watermark previously read as a semi-visible dark shape
   clipping into the copyright row. Drop opacity and push it further behind
   the content so it reads as atmosphere rather than a UI element. */

.footer-right-bg-icon {
    position: absolute;
    right: -60px;
    bottom: 80px;
    z-index: 0;
    opacity: 0.06;
    max-width: 360px;
    pointer-events: none;
}

/* ---------- Contact Page Override ---------- */

.half-form-text--contact+.page-footer {
    padding-top: 60px;
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .page-footer {
        padding: 70px 0 0;
    }

    .footer-top {
        display: grid !important;
        grid-template-columns: 200px 1fr;
        gap: 30px 50px;
        align-items: start;
    }

    .footer-top__locations {
        grid-column: 1 / -1;
    }

    .footer-top__contact {
        grid-column: 1 / -1;
    }

    .footer-top__cta {
        grid-column: 1 / -1;
    }

    .footer-logo__img {
        max-width: 200px;
    }

    .footer-certificate img {
        width: 72px;
        height: 72px;
        max-width: unset;
        object-fit: contain;
    }

    .half-form-text--contact+.page-footer {
        padding-top: 92px;
    }
}

/* ==========================================================================
   Desktop (1200px+)
   ========================================================================== */

@media (min-width: 1200px) {
    .page-footer {
        padding: 55px 0 0;
    }

    .footer-top {
        grid-template-columns: 200px 1fr auto auto !important;
        gap: 20px 50px;
    }

    .footer-top__locations {
        grid-column: auto;
    }

    .footer-top__contact {
        grid-column: auto;
    }

    .footer-top__cta {
        grid-column: auto;
        align-items: flex-end;
    }

    .footer-certificate {
        gap: 10px;
    }

    .footer-certificate img {
        width: 64px;
        height: 64px;
    }

    .footer-bottom {
        margin: 40px 0 0;
    }

    .footer-bottom__wrapper ul {
        gap: 0 40px;
    }

    .back-to-top a:hover,
    .footer-bottom__wrapper ul li a:hover {
        color: #d4af37;
        text-shadow: none;
    }

    .footer-link-col ul li a:hover,
    .footer-social ul li a:hover {
        color: #d4af37;
    }

    .footer-right-bg-icon {
        right: -20px;
        bottom: 80px;
    }

    .half-form-text--contact+.page-footer {
        padding-top: 79px;
    }
}
