.site-footer {
    background: #e2e3d1;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

/* faint background leaf decoration */
.site-footer .img-leaf {
    position: absolute;
    left: 0;
    top: 0;
    width: 190px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1px 0.85fr 1px 1fr 1px 1.15fr;
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.footer-divider {
    width: 2px;
    align-self: stretch;
    background: #3b442a;
    min-height: 260px;
}

/* ---------- Brand column ---------- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-logo img {
    display: none;
    width: 30rem;
}

.brand-tagline {
    color: var(--text-color);
    font-size: clamp(1.6rem, 1.9vw, 2.2rem);
    line-height: 1.6;
    max-width: 400px;
    opacity: 0.85;
}

.candle-wrap {
    margin-top: 10px;
    width: 420px;
    max-width: 70%;
    position: absolute;
    bottom: -129px;
}

/* ---------- Link columns ---------- */
.footer-col h4 {
    font-family: var(--font-family);
    color: var(--primary-color);
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    font-weight: 600;
    margin: 0 0 22px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(1.6rem, 1.9vw, 2.2rem);
    position: relative;
    display: inline-block;
    width: fit-content;
    padding-bottom: 2px;
    transition: color var(--transition-base);
}

.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1.5px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--primary-color);
}

.footer-col a:hover::after,
.footer-col a:focus-visible::after {
    width: 100%;
}

.footer-col a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-col a.active::after {
    width: 100%;
}

/* ---------- Contact column ---------- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: clamp(1.6rem, 1.9vw, 2.2rem);
    color: var(--text-color);
    line-height: 1.5;
}

.contact-item .icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-top: 2px;
}

.contact-item .icon svg {
    width: clamp(1.6rem, 1.9vw, 2.2rem);
    height: clamp(1.6rem, 1.9vw, 2.2rem);
    fill: #3b442a;
    stroke: #fff;
    stroke-width: 1px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-base);
}
.contact-item a:hover {
    color: var(--primary-color);
}

/* ---------- Bottom bar ---------- */
.footer-bottom {
    margin-top: 56px;
    padding: 22px 5vw;
    text-align: center;
    background: #c9cdbc;
    color: var(--text-color);
    font-size: clamp(1.5rem, 1.6vw, 1.98rem);
    opacity: 0.9;
}

/* ======================= TABLET ======================= */
@media screen and (min-width: 767px) and (max-width: 1030px) {
    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }
    .brand-logo {
        display: flex;
        justify-content: center;
    }
    .brand-tagline {
        text-align: center;
        max-width: 100%;
    }
    .footer-brand {
        grid-column: span 3 / span 3;
    }
    .footer-col {
        grid-row-start: 2;
    }
}
@media (max-width: 1024px) {
    .footer-divider,
    .candle-wrap,
    .img-leaf {
        display: none;
    }
    .footer-divider:nth-of-type(4) {
        display: none;
    }
    .footer-col:nth-of-type(6) {
        grid-column: 1 / span 3;
    }
    .footer-divider:last-of-type {
        grid-column: 1 / span 3;
        width: 100%;
        height: 1px;
        min-height: 0;
        margin: 8px 0 0;
    }
}

/* ======================= MOBILE ======================= */
@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .footer-inner .footer-divider {
        display: none;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .candle-wrap {
        width: 180px;
        margin-top: 4px;
    }

    .footer-col h4 {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .footer-bottom {
        margin-top: 36px;
        font-size: 12px;
    }
}
