/**
 * UpLife Academy — site footer
 * Namespace: .uplife-footer (DESIGN.md: token’lar, stroke yok, radius ~8–10px)
 */

.uplife-footer {
    --uplife-footer-pad-y: clamp(2.25rem, 5vw, 3.5rem);
    --uplife-footer-card-r: 10px;
    position: relative;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    padding: var(--uplife-footer-pad-y) 0 clamp(1.25rem, 3vw, 1.75rem);
    background: var(--bg-color);
    color: var(--text-dark);
}

.uplife-footer i[class*='fa-']:not(.fa-brands) {
    font-size: 1rem;
}

.uplife-footer .fa-brands {
    font-size: 1.05rem;
}

.uplife-footer__wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.8vw, 1rem);
}

/* ---------- Üst CTA: sol metin; sağda fotoğraf, butonlar görselin üzerinde (sağ alt) ---------- */
.uplife-footer__cta {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.64fr);
    align-items: stretch;
    gap: 0;
    min-height: clamp(148px, 15vw, 200px);
    overflow: hidden;
    border-radius: var(--uplife-footer-card-r);
    background: var(--card-bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 22px 48px rgba(31, 58, 95, 0.1),
        0 8px 20px rgba(31, 58, 95, 0.05);
}

.uplife-footer__cta-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.55rem, 1.5vw, 0.85rem);
    padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1.15rem, 2.5vw, 1.75rem);
    background: var(--bg-color);
    min-width: 0;
}

.uplife-footer__cta-visual {
    position: relative;
    min-height: 132px;
    background: var(--section-dark-bg);
}

.uplife-footer__cta-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% 42%;
    filter: saturate(0.92) brightness(1.02);
}

/* Alt bantta karartma — orta hizalı butonlar daha net */
.uplife-footer__cta-visual::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.28) 45%, rgba(17, 24, 39, 0.48) 100%);
}

/* Sol kenar: metin sütununa yumuşak geçiş */
.uplife-footer__cta-visual::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(1.75rem, 4.5vw, 2.75rem);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bg-color) 0%, rgba(245, 245, 247, 0) 100%);
}

@media (prefers-reduced-motion: no-preference) {
    .uplife-footer__cta {
        animation: uplife-footer-cta-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes uplife-footer-cta-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uplife-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: none;
    color: var(--text-light);
    background: var(--color-primary);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(104, 63, 145, 0.22);
}

.uplife-footer__cta-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--section-dark-bg);
    max-width: 26rem;
}

.uplife-footer__cta-lede {
    margin: 0;
    font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-dark-low);
    max-width: 36rem;
}

.uplife-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

/* Görsel üzeri: tek satır, ortada — wrap kapalı (dar sütunda alta düşmeyi engeller) */
.uplife-footer__cta-visual .uplife-footer__cta-actions {
    position: absolute;
    left: clamp(0.55rem, 2.5vw, 1.1rem);
    right: clamp(0.55rem, 2.5vw, 1.1rem);
    bottom: clamp(0.65rem, 2vw, 1.05rem);
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.uplife-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.68rem 1.2rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
    border-radius: 8px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
    white-space: nowrap;
}

.uplife-footer__btn i {
    font-size: 0.88em;
    opacity: 0.95;
}

.uplife-footer__btn--primary {
    color: var(--text-light);
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(104, 63, 145, 0.38);
}

.uplife-footer__btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(104, 63, 145, 0.42);
}

.uplife-footer__btn--ghost {
    color: var(--section-dark-bg);
    background: rgba(31, 58, 95, 0.08);
    box-shadow: none;
}

.uplife-footer__btn--ghost:hover {
    background: rgba(31, 58, 95, 0.13);
    transform: translateY(-1px);
}

/* Fotoğraf alanındaki ikincil: açık zemin, koyu yazı */
.uplife-footer__cta-visual .uplife-footer__btn--ghost {
    color: var(--section-dark-bg);
    background: rgba(255, 255, 255, 0.9);
}

.uplife-footer__cta-visual .uplife-footer__btn--ghost:hover {
    background: #fff;
}

/* İki eşit yarım genişlik — her zaman yan yana; gerekirse metin iki satır */
.uplife-footer__cta-visual .uplife-footer__btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

/* ---------- Ana iki sütun ---------- */
.uplife-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: clamp(0.55rem, 1.4vw, 0.75rem);
    align-items: stretch;
}

.uplife-footer__brand,
.uplife-footer__links-panel {
    padding: clamp(1.25rem, 2.8vw, 1.75rem);
    background: var(--card-bg);
    border-radius: var(--uplife-footer-card-r);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 40px rgba(31, 58, 95, 0.08);
}

.uplife-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.uplife-footer__logo {
    display: block;
    width: min(200px, 58%);
    height: auto;
}

.uplife-footer__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.uplife-footer__brand-lede {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-dark-low);
    max-width: 28rem;
}

.uplife-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.uplife-footer__contact {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.5rem 0.65rem;
    align-items: start;
}

.uplife-footer__contact-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(104, 63, 145, 0.1);
    color: var(--color-primary-dark);
}

.uplife-footer__contact-icon i {
    font-size: 0.8rem;
}

.uplife-footer__contact-body {
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}

.uplife-footer__contact-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.58rem;
    color: var(--secondary-color-dark);
    margin-bottom: 0.12rem;
}

.uplife-footer__contact-value,
.uplife-footer__contact-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.uplife-footer__contact-link:hover {
    color: var(--color-primary);
}

.uplife-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.uplife-footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-primary-dark);
    background: rgba(104, 63, 145, 0.1);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.uplife-footer__social-link:hover {
    background: var(--color-primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Sağ panel */
.uplife-footer__links-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.uplife-footer__panel-head {
    max-width: 40rem;
}

.uplife-footer__panel-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--section-dark-bg);
}

.uplife-footer__panel-lede {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-dark-low);
}

/* Tek şerit + numaralı adımlar (üç ayrı kutu yerine) */
.uplife-footer__facts-belt {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    padding: 0.7rem 0.75rem;
    background: var(--tertiary-color);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(31, 58, 95, 0.05);
}

.uplife-footer__fact {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.uplife-footer__fact-index {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-light);
    background: var(--section-dark-bg);
    border-radius: 8px;
}

.uplife-footer__fact-main {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.uplife-footer__fact-title {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--section-dark-bg);
    line-height: 1.25;
}

.uplife-footer__fact-desc {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text-dark-low);
}

.uplife-footer__nav-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 0.65rem;
    margin-top: 0.15rem;
}

.uplife-footer__nav-col {
    min-width: 0;
}

.uplife-footer__nav-heading {
    margin: 0 0 0.55rem;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color-dark);
}

.uplife-footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.uplife-footer__nav-list a {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.uplife-footer__nav-list a:hover {
    color: var(--color-primary);
}

/* ---------- Alt şerit ---------- */
.uplife-footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 1rem clamp(0.75rem, 2vw, 1.25rem);
    margin-top: 0.15rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 58, 95, 0.06);
}

.uplife-footer__copyright {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark-low);
}

.uplife-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.uplife-footer__legal a {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color-dark);
    text-decoration: none;
}

.uplife-footer__legal a:hover {
    color: var(--color-primary);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
    .uplife-footer__cta {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .uplife-footer__cta-visual {
        order: -1;
        min-height: clamp(120px, 34vw, 200px);
    }

    /* Görsel ile alt metin bloğu arası: hafif geçiş (butonlar z-index:2 ile üstte) */
    .uplife-footer__cta-visual::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 38%;
        background: linear-gradient(180deg, rgba(245, 245, 247, 0) 0%, rgba(245, 245, 247, 0.55) 70%, var(--bg-color) 100%);
    }

    .uplife-footer__cta-main {
        padding: clamp(0.9rem, 3vw, 1.2rem) clamp(1.1rem, 3vw, 1.5rem);
    }

    .uplife-footer__cta-visual .uplife-footer__cta-actions {
        justify-content: center;
    }

    .uplife-footer__main {
        grid-template-columns: 1fr;
    }

    .uplife-footer__facts-belt {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

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

@media (max-width: 520px) {
    .uplife-footer__nav-columns {
        grid-template-columns: 1fr;
    }

    /* CTA: yan yana kalsın; çok dar ekranda biraz sıkı */
    .uplife-footer__cta-visual .uplife-footer__btn {
        padding: 0.58rem 0.95rem;
        font-size: 0.75rem;
    }

    .uplife-footer__cta-visual .uplife-footer__cta-actions {
        gap: 0.5rem;
    }

    .uplife-footer__bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
