/* =====================================================================
   Site footer ("yf-"): benefits strip, brand, link columns, contact, trust badges, bottom line.
   Dark green in both themes. Everything in it is managed from the admin panel (مدیریت فوتر).
   ===================================================================== */

.yf {
    --yf-bg: #112419;
    --yf-bg-2: #0c1b12;
    --yf-line: rgba(255, 255, 255, .09);
    --yf-text: rgba(255, 255, 255, .76);
    margin-top: 48px;
    background:
        radial-gradient(ellipse 50% 70% at 100% 0, rgba(46, 107, 61, .35), transparent 70%),
        linear-gradient(180deg, var(--yf-bg), var(--yf-bg-2));
    color: var(--yf-text);
    font-size: .9rem;
}
:root[data-theme="dark"] .yf { --yf-bg: #0a140e; --yf-bg-2: #060b08; box-shadow: 0 -1px 0 rgba(150, 230, 175, .18); }
.yf a { color: var(--yf-text); text-decoration: none; transition: color .2s; }
.yf a:hover { color: #fff; }
.yf svg { flex: none; }

/* ---------- benefits strip (sits on the edge between page and footer) ---------- */
.yf-features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -28px 0 0;
    padding: 12px;
    list-style: none;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf8, #fbf5e8);
    box-shadow: 0 0 0 1px rgba(245, 184, 61, .4), 0 24px 40px -26px rgba(0, 0, 0, .6);
}
:root[data-theme="dark"] .yf-features { background: linear-gradient(180deg, #1e2d24, #16231b); box-shadow: 0 0 0 1px rgba(245, 184, 61, .45), 0 0 34px -12px rgba(245, 184, 61, .35), 0 24px 40px -26px #000; }
@media (min-width: 768px) { .yf-features { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 18px; } }
.yf-features li { display: flex; align-items: center; gap: 12px; padding: 8px; }
.yf-features__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, #eaf5e1, #d6ebc6); color: #2c6a3d; }
:root[data-theme="dark"] .yf-features__icon { background: rgba(124, 196, 143, .16); color: #8fdca3; }
.yf-features__icon svg { width: 25px; height: 25px; }
.yf-features li > span:last-child { display: grid; line-height: 1.6; min-width: 0; }
.yf-features b { color: #1d2b22; font-size: .88rem; font-weight: 900; }
.yf-features small { color: #67776b; font-size: .75rem; }
:root[data-theme="dark"] .yf-features b { color: #f3f8f4; }
:root[data-theme="dark"] .yf-features small { color: #aebfb4; }

/* ---------- main ---------- */
.yf-main { padding-block: 34px 8px; }
.yf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 768px) { .yf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; } }
@media (min-width: 1100px) { .yf-grid { grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); } }

.yf-brand { display: grid; gap: 14px; align-content: start; padding-bottom: 22px; }
@media (min-width: 768px) { .yf-brand { padding-bottom: 0; } }
@media (min-width: 768px) and (max-width: 1099.98px) { .yf-brand { grid-column: 1 / -1; } }
.yf-logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.yf-about { margin: 0; max-width: 46ch; line-height: 2.1; color: var(--yf-text); }

.yf-social { display: flex; flex-wrap: wrap; gap: 10px; }
.yf-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.1rem;
    transition: transform .2s var(--yp-ease, ease), background .2s, box-shadow .2s;
}
.yf-social a:hover { transform: translateY(-3px); background: var(--net, #f5b83d); box-shadow: 0 12px 20px -10px var(--net, #f5b83d); color: #fff; }
.yf-social img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- columns ---------- */
.yf-col { border-bottom: 1px solid var(--yf-line); }
.yf-col > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; list-style: none; color: #fff; font-size: .98rem; font-weight: 900; cursor: pointer; }
.yf-col > summary::-webkit-details-marker { display: none; }
.yf-col > summary svg { width: 20px; height: 20px; color: rgba(255, 255, 255, .55); transition: transform .2s; }
.yf-col[open] > summary svg { transform: rotate(180deg); }
.yf-col ul { margin: 0; padding: 0 0 14px; list-style: none; }
.yf-col li { padding: 5px 0; }
.yf-col li a { display: inline-flex; align-items: center; gap: 8px; }
.yf-col:not(.yf-contact) li a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(245, 184, 61, .7); transition: transform .2s; }
.yf-col:not(.yf-contact) li a:hover::before { transform: scale(1.6); }

.yf-contact li { padding: 6px 0; line-height: 1.9; }
.yf-contact a, .yf-line { display: flex; align-items: flex-start; gap: 10px; }
.yf-contact svg { width: 20px; height: 20px; margin-top: 3px; color: #f5b83d; }

@media (min-width: 768px) {
    .yf-col { border: 0; }
    .yf-col > summary { min-height: 0; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid rgba(245, 184, 61, .35); pointer-events: none; cursor: default; }
    .yf-col > summary svg { display: none; }
}

/* ---------- trust badges ---------- */
.yf-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-block: 22px; border-top: 1px solid var(--yf-line); }
.yf-badge { display: grid; place-items: center; min-width: 96px; min-height: 96px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 14px 24px -18px rgba(0, 0, 0, .7); }
.yf-badge img { display: block; max-width: 96px; max-height: 80px; object-fit: contain; }
.yf-badge a { display: grid; place-items: center; }

/* ---------- bottom ---------- */
.yf-bottom { border-top: 1px solid var(--yf-line); background: rgba(0, 0, 0, .18); }
.yf-bottom__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 16px; font-size: .8rem; }
.yf-designer a, .yf-designer b { color: #f8cf6a; font-weight: 800; }
.yf-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.yf-top svg { width: 18px; height: 18px; }
.yf-top:hover { background: #f5b83d; color: #2a1d05; transform: translateY(-2px); }
@media (max-width: 575.98px) { .yf-bottom__row { flex-direction: column; text-align: center; } }

/* the phone's bottom bar must not cover the last line */
@media (max-width: 991.98px) { .yf { padding-bottom: calc(var(--yp-bottombar-h, 62px) + env(safe-area-inset-bottom, 0px)); } }
