.site-footer {
    position: relative;
    color: var(--secondary);
    background: var(--secondary);
    font-family: var(--body-font);
}

.footer-main {
    position: relative;
    overflow: hidden;
    color: var(--secondary);
    background:
        radial-gradient(520px 220px at 78% 42%, rgba(212, 175, 55, 0.08), transparent 70%),
        linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.footer-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    color: var(--accent);
    pointer-events: none;
}

.footer-mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 42%;
    opacity: 0.28;
}

.footer-leaf {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: auto;
    opacity: 0.45;
}

.footer-watermark {
    position: absolute;
    right: 18%;
    bottom: 18%;
    width: 220px;
    height: auto;
    opacity: 0.08;
    object-fit: contain;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(220px, 1.05fr);
    align-items: start;
    gap: 28px 36px;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 64px 0 88px;
}

.footer-col {
    min-width: 0;
}

.footer-col + .footer-col {
    padding-left: 28px;
    border-left: 1px solid rgba(197, 160, 89, 0.45);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
}

.footer-mark {
    width: 230px;
    height: auto;
    object-fit: contain;
}

.footer-word {
    margin-top: 8px;
    font-family: var(--heading-font);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
}

.footer-wellness {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.footer-wellness span {
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.footer-tagline {
    margin: 16px 0 0;
    color: var(--secondary);
    font-family: var(--heading-font);
    font-size: 22px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
}

.footer-note {
    max-width: 250px;
    margin: 12px auto 0;
    color: var(--secondary);
    font-size: 14.5px;
    line-height: 1.7;
}

.footer-col h2 {
    margin: 0 0 18px;
    color: var(--secondary);
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
}

.footer-col h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    margin-top: 10px;
    background: var(--primary);
}

.footer-list,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 15.5px;
    line-height: 1.3;
    text-decoration: none;
}

.footer-arrow {
    color: var(--accent);
    transition: transform 0.3s ease;
}

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

.footer-link:hover .footer-arrow,
.footer-link:focus-visible .footer-arrow {
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
}

.footer-icon svg,
.footer-social svg {
    display: block;
    width: 15px;
    height: 15px;
}

.footer-contact a {
    color: var(--secondary);
    font-size: 14.5px;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.footer-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 16px 0;
    background: transparent;
}

.footer-copy {
    margin: 0;
    color: var(--background);
    font-size: 13.5px;
}

.footer-bar-end {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-legal {
    display: flex;
    align-items: center;
}

.footer-legal a {
    color: var(--background);
    font-size: 13.5px;
    line-height: 1;
    text-decoration: none;
}

.footer-legal a + a::before {
    content: "|";
    margin: 0 12px;
    color: rgba(253, 251, 247, 0.55);
}

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

.footer-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.footer-to-top:hover,
.footer-to-top:focus-visible {
    background: var(--primary);
    color: var(--secondary);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
        padding: 48px 0 72px;
    }

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

    .footer-col + .footer-col {
        padding-left: 0;
        border-left: 0;
    }

    .footer-col:nth-child(3) {
        padding-left: 24px;
        border-left: 1px solid rgba(197, 160, 89, 0.45);
    }
}

@media (max-width: 700px) {
    .footer-grid,
    .footer-bar {
        width: min(100% - 36px, 1180px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
        padding: 40px 0 64px;
    }

    .footer-col + .footer-col,
    .footer-col:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-watermark {
        width: 140px;
        right: 8%;
    }

    .footer-bar {
        flex-direction: column;
        align-items: center;
        padding: 18px 0;
        text-align: center;
    }
}
