/**
 * File: calcwood_site_footer.css
 * Verze a aktuální datum: 11-11-26 v_1.02
 */

.th-sf {
    position: relative;
    align-self: stretch;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin: 88px 0 0;
    padding: 0;
    color: #b3b3b3;
    font-family: "Roboto", Arial, sans-serif;
    text-align: left;
    /* Tmavý pruh s tenkou horní linkou přes celou šířku okna (nevytváří vodorovný posuvník) */
    border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 0 1px, rgba(0, 0, 0, 0.42) 1px 100%) fill 0 / 0 / 0 100vmax 100vmax;
}

/* Žlutý záblesk uprostřed horní linky a jemná záře pod ní */
.th-sf::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(760px, 90%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(249, 195, 67, 0) 0%, rgba(249, 195, 67, 0.75) 50%, rgba(249, 195, 67, 0) 100%);
    pointer-events: none;
}

.th-sf::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 50%;
    width: min(900px, 100%);
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(249, 195, 67, 0.07) 0%, rgba(249, 195, 67, 0) 100%);
    pointer-events: none;
}

.th-sf-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px 20px 28px;
    box-sizing: border-box;
}

/* --- Řádek 1: značka + sloupce odkazů --- */
.th-sf-top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: 56px;
    align-items: start;
}

.th-sf-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    border-radius: var(--th-radius-sm);
}

.th-sf-logo-img {
    width: 44px;
    height: 44px;
    display: block;
}

.th-sf-logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    color: #fff;
}

.th-sf-logo-dot {
    color: #f9c343;
}

.th-sf-about {
    margin: 20px 0 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.65;
    color: #cccccc;
}

.th-sf-cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}

/* Kalkulačky ve dvou sloupcích (6 položek) */
.th-sf-col-calcs .th-sf-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
}

.th-sf-col-title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f9c343;
    line-height: 1.4;
}

.th-sf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.th-sf-list li {
    margin: 0;
    padding: 0;
}

.th-sf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #b3b3b3;
    text-decoration: none;
    border-radius: var(--th-radius-sm);
    transition: color 0.2s ease, transform 0.2s ease;
}

.th-sf-link:hover {
    color: #fff;
    transform: translateX(3px);
}

.th-sf-ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.th-sf-link:hover .th-sf-ico {
    opacity: 1;
}

.th-sf-logo:focus-visible,
.th-sf-link:focus-visible,
.th-sf-legal-link:focus-visible {
    outline: 2px solid #f9c343;
    outline-offset: 3px;
}

/* --- Řádek 2: upozornění --- */
.th-sf-disclaimer {
    margin: 48px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    max-width: none;
    font-size: 13px;
    line-height: 1.6;
    color: #858585;
    text-align: center;
}

/* --- Velký tlumený nápis --- */
.th-sf-wordmark {
    margin: 28px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: transparent;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.012) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}

.th-sf-wordmark-dot {
    color: rgba(249, 195, 67, 0.16);
}

/* --- Zakončení na střed jako dosavadní spodek úvodní stránky: odkazy, ©, Powered by BUILD4FUN úplně dole --- */
.th-sf-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.th-sf-legal {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}

.th-sf-legal-link {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    border-radius: var(--th-radius-sm);
    transition: color 0.3s ease, transform 0.3s ease;
}

.th-sf-legal-link:hover {
    color: #f9c343;
    transform: scale(1.05);
}

.th-sf-sep {
    color: #555;
}

.th-sf-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

.th-sf-credit {
    line-height: 0;
}

.th-sf-credit .th-brand-credit-logo {
    height: 88px;
}

/* --- Tablet --- */
@media (max-width: 1000px) {
    .th-sf-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .th-sf-about {
        max-width: 560px;
    }
}

/* --- Telefon: sloupce pod sebou --- */
@media (max-width: 640px) {
    .th-sf {
        margin-top: 64px;
    }

    .th-sf-inner {
        padding: 48px 16px 24px;
    }

    .th-sf-legal {
        gap: 8px 20px;
    }

    .th-sf-sep {
        display: none;
    }

    .th-sf-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .th-sf-col-calcs .th-sf-list {
        column-gap: 16px;
    }

    .th-sf-link {
        padding: 7px 0;
    }

    .th-sf-disclaimer {
        margin-top: 36px;
    }

    .th-sf-credit .th-brand-credit-logo {
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-sf-link,
    .th-sf-ico,
    .th-sf-legal-link {
        transition: none;
    }

    .th-sf-link:hover,
    .th-sf-legal-link:hover {
        transform: none;
    }
}
