/* =========================================================
   Site footer — safabrura.co.il
   ========================================================= */

.site-footer {
    --ft-ink:        #3f2338;
    --ft-ink-soft:   #7a5c72;
    --ft-accent:     #c2588f;
    --ft-accent-2:   #8f5bb8;
    --ft-line:       rgba(92, 42, 77, .10);
    --ft-max:        1200px;

    position: relative;
    overflow: hidden;
    margin-top: 60px;
    direction: rtl;
    text-align: right;
    color: var(--ft-ink);
    font-family: var(--safa-ui);
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(165deg, #fdf8fb 0%, #f7f1fb 45%, #fff4ef 100%);
    border-top: 1px solid rgba(255, 255, 255, .9);
}

/* Gradient hairline along the very top edge */
.site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ft-accent) 0%, var(--ft-accent-2) 50%, #f0a875 100%);
    z-index: 2;
}

/* Soft blurred colour blobs, same family as the podcast pages */
.site-footer__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.site-footer__glow--a {
    width: 440px;
    height: 440px;
    top: -180px;
    inset-inline-start: -120px;
    background: radial-gradient(circle, #ffd6e4 0%, transparent 70%);
}
.site-footer__glow--b {
    width: 520px;
    height: 520px;
    bottom: -260px;
    inset-inline-end: -160px;
    background: radial-gradient(circle, #e2d1f7 0%, transparent 70%);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Layout ---------- */

.site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: var(--ft-max);
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px 32px;
    align-items: start;
}

/* ---------- Brand ---------- */

.footer-brand__logo {
    display: inline-block;
    margin-bottom: 18px;
}
.footer-brand__logo img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.footer-contact {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 14px rgba(92, 42, 77, .07);
    font-size: 14px;
    color: var(--ft-ink);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.footer-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 42, 77, .14);
    color: var(--ft-accent);
}
.footer-contact svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: var(--ft-accent);
}
.footer-contact__name {
    font-weight: 600;
    margin-left: 4px;
}

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 10px 30px rgba(92, 42, 77, .09);
    backdrop-filter: blur(8px);
}
.footer-cta__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ft-ink);
}
.footer-cta__btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(120deg, var(--ft-accent), var(--ft-accent-2));
    box-shadow: 0 6px 18px rgba(194, 88, 143, .32);
    transition: transform .2s ease, box-shadow .2s ease;
}
.footer-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(194, 88, 143, .42);
}

/* ---------- Link columns ---------- */

.footer-col__title {
    margin: 0 0 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ft-ink);
}
.footer-col__title::after {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ft-accent), var(--ft-accent-2));
}

.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col__list li + li {
    margin-top: 9px;
}
.footer-col__list a {
    position: relative;
    display: inline-block;
    color: var(--ft-ink-soft);
    font-size: 15px;
    transition: color .2s ease, transform .2s ease;
}
.footer-col__list a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ft-accent);
    transition: width .25s ease;
}
.footer-col__list a:hover {
    color: var(--ft-accent);
    transform: translateX(-3px);
}
.footer-col__list a:hover::after {
    width: 100%;
}

/* ---------- Bottom bar ---------- */

.site-footer__bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--ft-line);
    background: rgba(255, 255, 255, .45);
}
.site-footer__bar-inner {
    max-width: var(--ft-max);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.footer-copy {
    margin: 0;
    font-size: 13.5px;
    color: var(--ft-ink-soft);
}
.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 13.5px;
}
.footer-legal a {
    color: var(--ft-ink-soft);
    transition: color .2s ease;
}
.footer-legal a:hover {
    color: var(--ft-accent);
}
.footer-legal li + li::before {
    content: "·";
    margin-inline-end: 16px;
    color: rgba(92, 42, 77, .3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 40px;
    }
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        padding: 44px 20px 36px;
    }
    .footer-brand__logo img {
        width: 150px;
    }
    .footer-cta {
        width: 100%;
        justify-content: space-between;
    }
    .site-footer__bar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
}

@media (max-width: 420px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

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