/* ==========================================================================
   Footer — Domek na trawie
   Wzorowany 1:1 na prototypie index.html
   ========================================================================== */

/* ── Reset Kadence footer ───────────────────────────────────────────────────── */
.site-footer {
    all: unset;
    display: block;
    background-color: var(--global-palette3, #2d4538); /* forest */
    color: var(--global-palette8, #f8f7f5);            /* stone-50 */
    overflow: hidden;
    margin-top: 2.5rem; /* mt-10 */
    box-sizing: border-box;
}

/* Przywróć border-box dla wszystkich dzieci (all: unset niszczy dziedziczenie) */
.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

/* ── Inner — dwie kolumny (flex row na lg) ─────────────────────────────────── */
.site-footer__inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .site-footer__inner {
        flex-direction: row;
    }
}

/* ── Left column ────────────────────────────────────────────────────────────── */
.site-footer__left {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .site-footer__left {
        padding: 4rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__left {
        width: 50%;
        padding: 6rem;
    }
}

/* ── Heading ────────────────────────────────────────────────────────────────── */
.site-footer__heading {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;  /* text-4xl */
    font-weight: 400;
    letter-spacing: -0.025em;
    margin: 0 0 3rem 0; /* mb-12 */
    color: var(--global-palette8, #f8f7f5);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .site-footer__heading {
        font-size: 3rem; /* text-5xl */
    }
}

/* ── Contact grid (2 kolumny) ───────────────────────────────────────────────── */
.site-footer__contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* gap-12 */
    font-weight: 300;
}

@media (min-width: 640px) {
    .site-footer__contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Label (rust uppercase) ─────────────────────────────────────────────────── */
.site-footer__label {
    color: var(--global-palette1, #b55e45); /* rust */
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0; /* mb-6 */
}

/* ── Address ────────────────────────────────────────────────────────────────── */
.site-footer__address {
    font-style: normal;
    line-height: 2;
    opacity: 0.8;
    font-weight: 300;
    font-size: 1rem;
    color: var(--global-palette8, #f8f7f5);
}

/* ── Owners ─────────────────────────────────────────────────────────────────── */
.site-footer__owners {
    margin: 0 0 1rem 0;
    opacity: 0.8;
    font-weight: 300;
    font-size: 1rem;
}

/* ── Phone list ─────────────────────────────────────────────────────────────── */
.site-footer__phone-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    font-size: 0.875rem; /* text-sm */
}

.site-footer__phone-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-footer__phone-label {
    opacity: 0.5;
}

.site-footer__phone-list a {
    color: var(--global-palette8, #f8f7f5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer__phone-list a:hover {
    color: var(--global-palette1, #b55e45);
    text-decoration: none;
}

/* ── Social / Facebook ──────────────────────────────────────────────────────── */
.site-footer__social {
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .site-footer__social {
        margin-top: 5rem;
    }
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(248, 247, 245, 0.2); /* stone-50/20 */
    padding: 1rem 2rem;           /* py-4 px-8 */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--global-palette8, #f8f7f5);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-footer__social-link:hover {
    background-color: var(--global-palette8, #f8f7f5);
    color: var(--global-palette3, #2d4538);
    text-decoration: none;
}

.site-footer__social-link svg {
    flex-shrink: 0;
}

/* ── Virtual tour hint ──────────────────────────────────────────────────────── */
.site-footer__virtual-tour {
    margin-top: 2rem;
    font-size: 0.75rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 300;
    color: var(--global-palette8, #f8f7f5);
}

.site-footer__dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: var(--global-palette1, #b55e45);
    flex-shrink: 0;
}

/* ── Bottom copyright bar ───────────────────────────────────────────────────── */
.site-footer__bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 247, 245, 0.1); /* stone-50/10 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.4;
    color: var(--global-palette8, #f8f7f5);
    font-weight: 300;
}

@media (min-width: 640px) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        margin-top: 6rem;
    }
}

/* ── DGS realizacja ─────────────────────────────────────────────────────────── */
.site-footer__dgs {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__dgs:hover {
    opacity: 0.75;
    text-decoration: none;
}

.site-footer__dgs-logo {
    filter: invert(1) brightness(2);
    height: 32px;
    width: auto;
    vertical-align: middle;
}

/* ── Right column — map ─────────────────────────────────────────────────────── */
.site-footer__map {
    width: 100%;
    height: 300px;
    background-color: #1a1a1a;
    overflow: hidden;
    position: relative;
}

@media (min-width: 480px) {
    .site-footer__map {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .site-footer__map {
        width: 50%;
        height: auto;
        min-height: 500px;
    }
}

.site-footer__map iframe {
    border: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: none;
}

/* Subtle green overlay */
.site-footer__map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(45, 69, 56, 0.2); /* forest/20 */
    mix-blend-mode: multiply;
    pointer-events: none;
}
