/* public/assets/css/footer.css — YadakTeb.ir */

/* ═══════════════════════════════════════════════════════════════
   1) کارت اصلی فوتر
   ═══════════════════════════════════════════════════════════════ */
.yt-footer-wrap {
    position: relative;
    padding: 0 12px 20px;
    background: var(--bg, #F6F7F9);
    z-index: 10;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.yt-footer-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
    padding-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   2) انحنای حرفه‌ای
   ═══════════════════════════════════════════════════════════════ */
.yt-curve-svg {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    z-index: 1;
    pointer-events: none;
}
.yt-curve-svg path {
    fill: none;
    stroke: var(--brand-primary, #0e7490);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

/* ═══════════════════════════════════════════════════════════════
   3) لوگو — وسط‌چین تضمینی
   ═══════════════════════════════════════════════════════════════ */
.yt-footer-logo-area {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 8px 0 24px;
}

.yt-footer-logo-area img {
    display: block;
    margin: 0 auto;
    max-height: 60px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.yt-footer-logo-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    background: var(--brand-primary, #0e7490);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb, 14,116,144), 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   4) گرید اصلی ۳ ستونه
   ═══════════════════════════════════════════════════════════════ */
.yt-footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 30px 25px;
}

/* ═══════════════════════════════════════════════════════════════
   5) عنوان ستون‌ها
   ═══════════════════════════════════════════════════════════════ */
.yt-f-col h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink, #101828);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--soft, #F2F4F7);
    position: relative;
}
.yt-f-col h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-primary, #0e7490);
    border-radius: 2px;
}
.yt-f-col h4 svg {
    color: var(--brand-primary, #0e7490);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   6) لیست لینک‌ها
   ═══════════════════════════════════════════════════════════════ */
.yt-f-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yt-f-list li {
    margin-bottom: 8px;
}
.yt-f-list a {
    font-size: 12.5px;
    color: var(--muted, #667085);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.yt-f-list a:hover {
    color: var(--brand-primary, #0e7490);
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   7) اطلاعات تماس
   ═══════════════════════════════════════════════════════════════ */
.yt-f-contact p {
    font-size: 12.5px;
    color: var(--muted, #667085);
    margin: 0 0 10px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.yt-f-contact p svg {
    color: var(--brand-primary, #0e7490);
    flex-shrink: 0;
    margin-top: 3px;
    width: 15px;
    height: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   8) شبکه‌های اجتماعی
   ═══════════════════════════════════════════════════════════════ */
.yt-f-social-box {
    background: linear-gradient(135deg, var(--soft, #F2F4F7) 0%, #ffffff 100%);
    border: 1px solid var(--line, #E4E7EC);
    border-radius: 12px;
    padding: 14px;
    margin-top: 4px;
}
.yt-f-social-box h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink, #101828);
    margin: 0 0 10px;
    text-align: center;
}
.yt-f-social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.yt-f-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--muted, #667085);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.yt-f-social-icons a:hover {
    background: var(--brand-primary, #0e7490);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(var(--brand-primary-rgb, 14,116,144), 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   9) درباره ما
   ═══════════════════════════════════════════════════════════════ */
.yt-footer-bottom-row {
    padding: 15px 30px 20px;
    background: #fafafa;
    border-top: 1px solid var(--line, #E4E7EC);
}
.yt-f-about h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink, #101828);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yt-f-about h4 svg {
    color: var(--brand-primary, #0e7490);
    width: 15px;
    height: 15px;
}
.yt-f-about p {
    font-size: 11.5px;
    color: var(--muted, #667085);
    margin: 0;
    line-height: 1.8;
    text-align: justify;
}

/* ═══════════════════════════════════════════════════════════════
   10) نوار پایین (کپی‌رایت)
   ═══════════════════════════════════════════════════════════════ */
.yt-footer-bar {
    background: linear-gradient(90deg, var(--brand-primary, #0e7490) 0%, var(--brand-primary-bright, #22a3c4) 100%);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
}
.yt-footer-bar .hours {
    display: block;
    margin-bottom: 3px;
    opacity: 0.95;
}
.yt-footer-bar .copyright {
    display: block;
    opacity: 0.85;
    font-size: 10.5px;
}
.yt-footer-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   11) دکمه بازگشت به بالا
   ═══════════════════════════════════════════════════════════════ */
.yt-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line, #E4E7EC);
    color: var(--brand-primary, #0e7490);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 100;
}
.yt-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.yt-back-to-top:hover {
    background: var(--brand-primary, #0e7490);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(var(--brand-primary-rgb, 14,116,144), 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   12) ریسپانسیو
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .yt-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 0 20px 20px;
    }
    .yt-f-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .yt-footer-card {
        border-radius: 16px;
        padding-top: 15px;
    }
    .yt-curve-svg {
        top: 55px;
        height: 25px;
    }
    .yt-footer-logo-area {
        padding: 5px 0 15px;
    }
    .yt-footer-logo-area img {
        max-height: 42px;
    }
    .yt-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 16px 20px;
    }
    .yt-f-col:last-child {
        grid-column: auto;
    }
    .yt-footer-bottom-row {
        padding: 15px 16px;
    }
    .yt-footer-bar {
        padding: 10px 16px;
        font-size: 10px;
    }
    .yt-back-to-top {
        bottom: 76px;
        left: 16px;
    }
}