/* ==========================================================================
   Heaven's Garden — Footer
   Shares the homepage design language. Loaded site-wide, so every rule is
   namespaced under .hg-footer; nothing here touches global elements.
   ========================================================================== */

.hg-footer {
    --gold: #BF9948;
    --gold-lt: #E1C285;
    --ink: #16120E;
    --line: rgba(255, 255, 255, .13);
    --line-gold: rgba(191, 153, 72, .34);
    --dim: rgba(255, 255, 255, .58);

    --serif: 'Cormorant Garamond', 'Anglecia Pro Dsp', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --e-out: cubic-bezier(.16, 1, .3, 1);
    --pad: clamp(20px, 4vw, 64px);

    position: relative;
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    padding: clamp(56px, 7vw, 110px) 0 0;
    overflow: hidden;
}

/* hairline of gold along the top edge */
.hg-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
}

.hg-footer__shell {
    width: min(100% - (var(--pad) * 2), 1470px);
    margin-inline: auto;
}

/* ---------- masthead ---------------------------------------------------- */

.hg-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(30px, 5vw, 90px);
    padding-bottom: clamp(36px, 4.5vw, 66px);
    border-bottom: 1px solid var(--line);
}

.hg-footer__brand {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2vw, 28px);
    align-items: flex-start;
}

.hg-footer__logo img {
    width: clamp(150px, 15vw, 210px);
    height: auto;
    display: block;
}

.hg-footer__address {
    font-family: var(--serif);
    font-size: clamp(19px, 1.5vw, 27px);
    font-weight: 300;
    line-height: 1.35;
    color: #fff;
    max-width: 26ch;
    margin: 0;
}

.hg-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.hg-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--dim);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color .35s var(--e-out);
}

.hg-footer__contact svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    transition: transform .35s var(--e-out);
}

.hg-footer__contact:hover,
.hg-footer__contact:focus-visible {
    color: var(--gold-lt);
}

.hg-footer__contact:hover svg {
    transform: translateX(2px);
}

/* ---------- link columns ------------------------------------------------ */

.hg-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
}

.hg-footer__colhead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 clamp(16px, 1.8vw, 26px);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
}

.hg-footer__colhead::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--line-gold);
}

.hg-footer__list,
.hg-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hg-footer__list li,
.hg-footer__nav ul li {
    margin: 0;
}

.hg-footer__list a,
.hg-footer__nav ul a {
    position: relative;
    display: inline-block;
    padding: 7px 0;
    font-family: var(--serif);
    font-size: clamp(16px, 1.05vw, 19px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--dim);
    text-decoration: none;
    transition: color .35s var(--e-out);
}

.hg-footer__list a::after,
.hg-footer__nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s var(--e-out);
}

.hg-footer__list a:hover,
.hg-footer__list a:focus-visible,
.hg-footer__nav ul a:hover,
.hg-footer__nav ul a:focus-visible {
    color: #fff;
}

.hg-footer__list a:hover::after,
.hg-footer__list a:focus-visible::after,
.hg-footer__nav ul a:hover::after,
.hg-footer__nav ul a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* social */

.hg-footer__social {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hg-footer__soc {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    transition: color .35s var(--e-out), transform .35s var(--e-out);
}

.hg-footer__soc i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    color: var(--gold);
    transition: transform .35s var(--e-out);
}

.hg-footer__mark {
    width: 18px;
    height: 18px;
    flex: 0 0 22px;
    fill: var(--gold);
    transition: fill .35s var(--e-out), transform .35s var(--e-out);
}

.hg-footer__soc:hover,
.hg-footer__soc:focus-visible {
    color: #fff;
    transform: translateX(4px);
}

.hg-footer__soc:hover i,
.hg-footer__soc:hover .hg-footer__mark {
    transform: scale(1.12);
}

.hg-footer__soc:hover .hg-footer__mark {
    fill: var(--gold-lt);
}

/* ---------- payment QR strip -------------------------------------------- */

.hg-footer__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 46px);
    padding: clamp(30px, 4vw, 52px) 0;
    border-bottom: 1px solid var(--line);
}

.hg-footer__pay-head {
    flex: 0 0 auto;
    align-self: center;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.hg-footer__qr {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2vw, 30px);
}

.hg-footer__qr figure {
    margin: 0;
    text-align: center;
}

.hg-footer__qrlink {
    position: relative;
    display: block;
    cursor: zoom-in;
    transition: transform .45s var(--e-out);
}

.hg-footer__qr img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    display: block;
}

.hg-footer__qr figure:hover .hg-footer__qrlink {
    transform: translateY(-4px) scale(1.03);
}

.hg-footer__qrzoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(22, 18, 14, .58);
    opacity: 0;
    transition: opacity .35s var(--e-out);
}

.hg-footer__qrzoom svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold-lt);
    fill: none;
    stroke-width: 1.6;
}

.hg-footer__qrlink:hover .hg-footer__qrzoom,
.hg-footer__qrlink:focus-visible .hg-footer__qrzoom {
    opacity: 1;
}

.hg-footer__qr figcaption {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
}

/* ---------- bottom bar --------------------------------------------------- */

.hg-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
    padding: clamp(22px, 2.4vw, 34px) 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .42);
}

.hg-footer__bottom p {
    margin: 0;
}

.hg-footer__policies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.hg-footer__policies a {
    color: rgba(255, 255, 255, .42);
    text-decoration: none;
    transition: color .3s var(--e-out);
}

.hg-footer__policies a:hover,
.hg-footer__policies a:focus-visible {
    color: var(--gold-lt);
}

.hg-footer__credit a {
    color: var(--gold);
    text-decoration: none;
    transition: color .3s var(--e-out);
}

.hg-footer__credit a:hover {
    color: var(--gold-lt);
}

.hg-footer :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1024px) {
    .hg-footer__top {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(32px, 6vw, 50px);
    }
}

@media (max-width: 760px) {
    .hg-footer__nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .hg-footer__col {
        border-top: 1px solid var(--line);
        padding: clamp(20px, 5vw, 28px) 0;
    }

    .hg-footer__col:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .hg-footer__pay {
        flex-direction: column;
        align-items: flex-start;
    }

    .hg-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-footer *,
    .hg-footer *::before,
    .hg-footer *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
