/**
 * tf-footer.css — tylkofotografia.pl
 * Stopka child theme, niezależna od Blocksy.
 *
 * Fonty ładowane przez functions.php (Google Fonts).
 * Estetyka: editorial darkness — ciemne tło, złote akcenty, serif marka.
 */

/* ── Zmienne ────────────────────────────────────────────── */
:root {
    --tf-footer-bg: #0d0d0d;
    --tf-footer-text: #9e9890;
    --tf-footer-text-strong: #e2ddd6;
    --tf-footer-accent: #c9a96e; /* złoty akcent fotograficzny      */
    --tf-footer-border: rgba(255, 255, 255, 0.07);
    --tf-footer-hover: #ffffff;
    --tf-footer-font-brand: "Cormorant Garamond", Georgia, serif;
    --tf-footer-font-body: "DM Sans", "Helvetica Neue", sans-serif;
    --tf-footer-radius: 50%;
    --tf-footer-transition: 0.25s ease;
}

/* ── Wrapper ────────────────────────────────────────────── */
.tf-site-footer {
    background-color: var(--tf-footer-bg);
    color: var(--tf-footer-text);
    font-family: var(--tf-footer-font-body);
    padding: 3.5rem 0 2.25rem;
    width: 100%;
    /* usuwa ewentualny margin z ostatniego elementu treści */
    margin-top: 0;
    clear: both;
}

.tf-site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── TOP: Logo | Social ─────────────────────────────────── */
.tf-site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Marka / Logo */
.tf-site-footer__brand a,
.tf-site-footer__brand-name {
    font-family: var(--tf-footer-font-brand);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--tf-footer-text-strong);
    text-decoration: none;
    transition: color var(--tf-footer-transition);
    display: block;
    line-height: 1;
}
.tf-site-footer__brand a:hover,
.tf-site-footer__brand-name:hover {
    color: var(--tf-footer-accent);
}

/* Logo graficzne — automatyczna inwersja do jasnego */
.tf-site-footer__brand .custom-logo {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--tf-footer-transition);
    display: block;
}
.tf-site-footer__brand .custom-logo-link:hover .custom-logo {
    opacity: 1;
}

/* Social media */
.tf-site-footer__social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tf-footer-border);
    border-radius: var(--tf-footer-radius);
    color: var(--tf-footer-text);
    text-decoration: none;
    transition:
        color var(--tf-footer-transition),
        border-color var(--tf-footer-transition),
        background-color var(--tf-footer-transition);
}
.tf-site-footer__social-link:hover {
    color: var(--tf-footer-hover);
    border-color: var(--tf-footer-accent);
    background-color: rgba(201, 169, 110, 0.12);
}
.tf-site-footer__social-link svg {
    display: block;
    flex-shrink: 0;
}

/* ── Separator ──────────────────────────────────────────── */
.tf-site-footer__divider {
    border: none;
    border-top: 1px solid var(--tf-footer-border);
    margin: 0 0 1.75rem;
}

/* ── BOTTOM: Nav | Copyright ────────────────────────────── */
.tf-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Menu stopki */
.tf-site-footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-site-footer__nav-list li a {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf-footer-text);
    text-decoration: none;
    transition: color var(--tf-footer-transition);
    position: relative;
    padding-bottom: 2px;
}

/* Podkreślenie złote na hover */
.tf-site-footer__nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--tf-footer-accent);
    transition: width 0.3s ease;
}
.tf-site-footer__nav-list li a:hover {
    color: var(--tf-footer-text-strong);
}
.tf-site-footer__nav-list li a:hover::after {
    width: 100%;
}

/* Copyright */
.tf-site-footer__copyright {
    font-size: 0.775rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(158, 152, 144, 0.5);
    margin: 0;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .tf-site-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }
    .tf-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .tf-site-footer__copyright {
        white-space: normal;
    }
}
