.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    color: #fff;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(0%);
    transition: transform .35s ease;
    will-change: transform;
    z-index: 20;
}

.site-footer.footer-hidden { transform: translateY(100%); }

.site-footer p { margin: 0; font-size: 0.95rem; }

.footer-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.15rem 1.3rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(234,179,8,.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.05), transparent 30%),
        linear-gradient(135deg, rgba(36,40,46,.96), rgba(58,63,72,.94));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 54px rgba(15,23,42,.2);
    backdrop-filter: blur(12px);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 1.6rem;
    align-items: start;
}

.footer-inner h3 {
    margin: 0;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,244,214,.62);
}

.footer-contact {
    display: grid;
    gap: .85rem;
    text-align: left;
}

.footer-contact a {
    color: #fff6cf;
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

.footer-contact a:hover { color: #fff; }

.footer-contact #contact-content br { display: none; }

.footer-contact #contact-content p {
    display: flex;
    gap: .5rem 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.footer-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    align-items: stretch;
}

.footer-meta > div {
    min-width: 0;
    padding: .85rem .95rem;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.82);
    font-size: .9rem;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.footer-meta > div::before {
    display: block;
    margin-bottom: .35rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,244,214,.6);
}

.footer-meta #footer-hours::before { content: "Lahtiolekuajad"; }

.footer-meta #footer-address::before { content: "Asukoht"; }

.footer-meta #footer-socials::before { content: "Sotsiaalmeedia"; }

.footer-meta p { line-height: 1.65; }

.footer-meta strong {
    display: block;
    margin-bottom: .25rem;
    color: rgba(255,244,214,.92);
}

#footer-address { white-space: normal; }

.footer-meta a { color: #fff; }

#footer-socials p {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin: 0;
    align-items: center;
}

#footer-socials a {
    display: inline-flex;
    align-items: center;
    padding: .42rem .72rem;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-self: end;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.footer-brand::before {
    content: "";
    width: 100%;
    flex-basis: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.12));
    margin-bottom: .15rem;
}

.footer-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem .88rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.footer-page-link:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    color: #fff6cf;
    transform: translateY(-1px);
}

.footer-brand-copy {
    display: grid;
    gap: .2rem;
    text-align: right;
}

.footer-brand-main {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex-basis: 100%;
    justify-content: flex-end;
}

.footer-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.footer-brand-copy strong {
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -.03em;
}

.footer-brand-copy span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.56);
}

.footer-brand small { display:block; color: rgba(255,255,255,.7); font-weight: 500; }

@media (max-width: 1080px) {
.footer-inner,
    .footer-meta { grid-template-columns: 1fr; }

.footer-brand {
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
        padding-top: .2rem;
    }

.footer-brand::before {
        background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0));
    }

.footer-brand-copy { text-align: left; }
}

@media (max-width: 640px) {
.site-footer {
        position: static;
        padding: 0;
        transform: none;
        background: #2f343b;
    }

.site-footer.footer-hidden { transform: none; }

.site-footer p { font-size: .9rem; }

.footer-shell {
        width: 100%;
        padding: 1.15rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background:
            linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
            #2f343b;
    }

.footer-inner {
        display: grid;
        gap: 1rem;
        text-align: left;
    }

.footer-inner h3 { display: none; }

.footer-contact {
        gap: .8rem;
        text-align: left;
    }

.footer-contact #contact-content p {
        display: grid;
        gap: .25rem;
        justify-content: start;
        font-size: 1rem;
        line-height: 1.35;
    }

.footer-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: .5rem;
        margin-top: 0;
    }

.footer-meta > div {
        padding: .75rem 0;
        border-width: 1px 0 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        white-space: normal;
    }

.footer-meta > div:last-child {
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

#footer-socials a {
        padding: .46rem .78rem;
        background: rgba(255,255,255,.08);
    }

.footer-brand {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .5rem;
        margin-top: .1rem;
        text-align: left;
        justify-self: stretch;
        justify-content: stretch;
        align-items: stretch;
    }

.footer-brand::before { display: none; }

.footer-page-link {
        min-height: 2.55rem;
        padding: .62rem .45rem;
        border-radius: 12px;
        font-size: .72rem;
        letter-spacing: .06em;
    }

.footer-brand-copy {
        grid-column: 1 / -1;
        padding-top: .3rem;
        text-align: left;
    }

.footer-brand-main {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

.footer-brand-copy strong {
        font-size: 1.35rem;
    }

.footer-brand-copy span {
        font-size: .68rem;
        letter-spacing: .14em;
    }
}

@media (prefers-reduced-motion: reduce) {
.site-footer { transition: none; }
}

.site-footer {
    color: #fffaf0;
}

.footer-shell {
    border-radius: 4px;
    background:
        linear-gradient(90deg, rgba(255,250,240,.06) 0 1rem, transparent 1rem),
        #243d32;
    border-color: rgba(255,250,240,.14);
    box-shadow: 0 20px 48px rgba(23,38,31,.28);
}

.footer-meta > div {
    border-radius: 4px;
    background: rgba(255,250,240,.07);
}

@media (max-width: 768px) {
.site-footer {
        position: static;
        padding: 0;
        transform: none;
        background: #243d32;
    }

.site-footer.footer-hidden {
        transform: none;
    }

.footer-shell {
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: #243d32;
    }

.footer-brand {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.footer-page-link {
        font-size: .7rem;
        letter-spacing: .04em;
    }
}
