/* ═══════════════════════════════════════════
   GLASSMORPHISM FOOTER v3.0
   ═══════════════════════════════════════════ */
.glass-footer {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(15,38,64,.94) 10%, #0F2640 100%);
    margin-top: 60px;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.8;
    padding-top: 50px;
    color: #fff;
}

/* پس‌زمینه */
.gf-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gf-shape  { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .1; }
.gf-s1 { width: 480px; height: 480px; background: #E67E22; top: -160px; right: -120px; animation: gfF1 12s infinite; }
.gf-s2 { width: 380px; height: 380px; background: #1B3A5C; bottom: -120px; left: -100px; animation: gfF2 15s infinite; }
.gf-s3 { width: 260px; height: 260px; background: linear-gradient(135deg,#E67E22,#1B3A5C); top: 50%; left: 40%; opacity: .07; animation: gfF3 10s infinite; }
@keyframes gfF1 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-25px,18px); } }
@keyframes gfF2 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(18px,-22px); } }
@keyframes gfF3 { 0%,100%{ opacity:.07;transform:scale(1); } 50%{ opacity:.13;transform:scale(1.15); } }

.gf-grid-lines {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
    background-size: 80px 80px;
}

.glass-footer .container {
    width: min(1180px, 92%);
    margin: auto;
    position: relative;
    z-index: 2;
}

/* گرید اصلی */
.gf-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding-bottom: 50px;
}

/* لوگو */
.gf-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.gf-logo-icon {
    width: 52px; height: 52px; min-width: 52px;
    background: linear-gradient(135deg,#E67E22,#D35400);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(230,126,34,.25);
    overflow: hidden;
}
.gf-logo-icon svg { width: 24px; height: 24px; color: #fff; }
.gf-logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.gf-logo-name { color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: -.5px; }
.gf-about-text { color: rgba(255,255,255,.48); font-size: .88rem; line-height: 2; margin-bottom: 24px; }

/* شبکه اجتماعی */
.gf-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.gf-social {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.44); text-decoration: none; transition: all .3s;
}
.gf-social svg { width: 18px; height: 18px; fill: currentColor; }
.gf-social:hover { transform: translateY(-4px); }
.gf-instagram:hover { background:linear-gradient(135deg,#e4405f,#c13584); color:#fff; border-color:transparent; box-shadow:0 8px 22px rgba(228,64,95,.28); }
.gf-telegram:hover { background:linear-gradient(135deg,#0088cc,#006699); color:#fff; border-color:transparent; box-shadow:0 8px 22px rgba(0,136,204,.28); }
.gf-whatsapp:hover { background:linear-gradient(135deg,#25d366,#128c7e); color:#fff; border-color:transparent; box-shadow:0 8px 22px rgba(37,211,102,.28); }

/* عنوان ستون */
.gf-col-title {
    color: #fff; font-size: 1.05rem; font-weight: 800;
    margin-bottom: 22px; padding-bottom: 14px; position: relative;
}
.gf-col-title::after {
    content: ""; position: absolute; bottom: 0; right: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg,#E67E22,transparent);
    border-radius: 3px;
}

/* لینک‌ها */
.gf-links { list-style: none; padding: 0; margin: 0; }
.gf-links li { margin-bottom: 11px; }
.gf-links a {
    color: rgba(255,255,255,.46); text-decoration: none;
    font-size: .88rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all .28s;
}
.gf-links a::before {
    content: ""; width: 0; height: 2px;
    background: #E67E22; border-radius: 2px;
    transition: width .28s; flex-shrink: 0;
}
.gf-links a:hover { color: #fff; padding-right: 3px; }
.gf-links a:hover::before { width: 16px; }

/* کارت‌های تماس */
.gf-contact-grid { display: flex; flex-direction: column; gap: 14px; }
.gf-contact-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .3s ease;
}
.gf-contact-card:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(230,126,34,.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.gf-ci {
    width: 38px; height: 38px; min-width: 38px;
    border-radius: 11px;
    background: rgba(230,126,34,.1);
    border: 1px solid rgba(230,126,34,.15);
    display: flex; align-items: center; justify-content: center;
    color: #E67E22; margin-top: 2px; transition: all .3s;
}
.gf-ci svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.gf-contact-card:hover .gf-ci {
    background: rgba(230,126,34,.18);
    border-color: rgba(230,126,34,.25);
    transform: scale(1.08);
}
.gf-cl { display: block; color: #fff; font-size: .82rem; font-weight: 700; margin-bottom: 2px; }
.gf-cv { display: block; color: rgba(255,255,255,.44); font-size: .82rem; text-decoration: none; transition: color .28s; word-break: break-word; }
a.gf-cv:hover { color: #E67E22; }

/* نشان‌های اعتماد */
.gf-trust-row {
    display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
    padding: 30px 0 20px;
}
.gf-trust-item {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 8px 12px;
    transition: all .3s;
    display: flex; align-items: center; justify-content: center;
    min-width: 90px; min-height: 90px;
}
.gf-trust-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); }
.gf-trust-item img { max-width: 90px; max-height: 90px; display: block; }

/* خط جداکننده */
.gf-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(230,126,34,.16), rgba(255,255,255,.08), transparent);
    margin: 0;
}

/* پایین فوتر */
.gf-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0 28px; flex-wrap: wrap; gap: 14px;
}
.gf-copy { color: rgba(255,255,255,.32); font-size: .83rem; margin: 0; }
.gf-bottom-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.gf-bottom-links a { color: rgba(255,255,255,.32); text-decoration: none; font-size: .82rem; }
.gf-bottom-links a:hover { color: #E67E22; }

/* دکمه بازگشت به بالا */
.fc-stt {
    position: fixed; bottom: 28px; right: 28px;
    width: 50px; height: 50px; border-radius: 15px;
    background: rgba(255,255,255,.74);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: 0 8px 28px rgba(15,38,64,.1);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #1B3A5C; z-index: 9990;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: all .38s cubic-bezier(.68,-.55,.265,1.55);
}
.fc-stt.fc-stt-show { opacity:1; visibility:visible; transform:translateY(0); }
.fc-stt:hover {
    background: linear-gradient(135deg,#E67E22,#D35400);
    color: #fff; transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(230,126,34,.3);
    border-color: transparent;
}
.fc-stt svg { width: 21px; height: 21px; stroke: currentColor; fill: none; }

/* ───── Floating Contact Panel ───── */
.fc-wrap {
    position: fixed; bottom: 28px; z-index: 99999;
    display: flex; flex-direction: column; align-items: center;
    direction: rtl; font-family: inherit;
}
.fc-pos-left  { left: 28px; }
.fc-pos-right { right: 28px; }

.fc-toggle {
    width: 62px; height: 62px; border-radius: 50% !important; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #E67E22, #D35400) !important;
    box-shadow: 0 8px 28px rgba(230,126,34,.35);
    position: relative; z-index: 10;
    transition: all .4s cubic-bezier(.68,-.55,.265,1.55);
    animation: fcHeartbeat 2.8s ease-in-out infinite;
}
@keyframes fcHeartbeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.12); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.08); }
    56%  { transform: scale(1); }
    100% { transform: scale(1); }
}
.fc-toggle:hover { transform: scale(1.12) !important; box-shadow: 0 12px 38px rgba(230,126,34,.48); }
.fc-toggle.fc-open { animation: none; background: linear-gradient(135deg, #1B3A5C, #0F2640) !important; box-shadow: 0 8px 28px rgba(15,38,64,.4); transform: scale(1) !important; }
.fc-toggle-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: all .35s; }
.fc-toggle svg { width: 26px; height: 26px; color: #fff; }
.fc-icon-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.fc-toggle.fc-open .fc-icon-chat { opacity: 0; transform: rotate(90deg) scale(.5); }
.fc-toggle.fc-open .fc-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.fc-toggle-pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(230,126,34,.15);
    animation: fcPulseRing 2.8s ease-in-out infinite;
    pointer-events: none;
}
.fc-toggle-pulse:nth-child(2) { inset: -10px; background: rgba(230,126,34,.08); animation-delay: .35s; }
.fc-toggle.fc-open .fc-toggle-pulse { display: none; }
@keyframes fcPulseRing {
    0%   { transform: scale(.95); opacity: .6; }
    14%  { transform: scale(1.05); opacity: .3; }
    28%  { transform: scale(.98); opacity: .5; }
    42%  { transform: scale(1.02); opacity: .25; }
    56%  { transform: scale(1); opacity: .4; }
    100% { transform: scale(.95); opacity: .6; }
}

/* پنل */
.fc-panel {
    position: absolute; bottom: 76px; width: 308px;
    background: rgba(15,38,64,.92);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(0,0,0,.28);
    opacity: 0; visibility: hidden;
    transform: translateY(14px) scale(.93);
    transition: all .35s cubic-bezier(.68,-.55,.265,1.55);
    pointer-events: none; overflow: hidden;
}
.fc-pos-left .fc-panel { left: 0; }
.fc-pos-right .fc-panel { right: 0; }
.fc-panel.fc-open {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fc-panel-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(135deg,rgba(230,126,34,.1),transparent);
}
.fc-panel-head h4 { color: #fff; font-size: .98rem; font-weight: 800; margin: 0 0 3px; }
.fc-panel-head p  { color: rgba(255,255,255,.44); font-size: .78rem; margin: 0; }
.fc-panel-body { padding: 9px 9px 11px; }

.fc-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 14px;
    text-decoration: none; transition: all .25s;
    margin-bottom: 3px; border: 1px solid transparent; color: #fff;
}
.fc-item:last-child { margin-bottom: 0; }
.fc-item:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.07); transform: translateX(-3px); }

.fc-item-icon {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.fc-item-icon svg { width: 20px; height: 20px; fill: #fff; }
.fc-whatsapp .fc-item-icon { background: linear-gradient(135deg,#25d366,#128c7e); box-shadow:0 4px 12px rgba(37,211,102,.25); }
.fc-telegram .fc-item-icon { background: linear-gradient(135deg,#0088cc,#006699); box-shadow:0 4px 12px rgba(0,136,204,.25); }
.fc-phone    .fc-item-icon { background: linear-gradient(135deg,#27ae60,#1e8449); box-shadow:0 4px 12px rgba(39,174,96,.25); }
.fc-email    .fc-item-icon { background: linear-gradient(135deg,#E67E22,#D35400); box-shadow:0 4px 12px rgba(230,126,34,.25); }
.fc-instagram .fc-item-icon { background: linear-gradient(135deg,#e4405f,#c13584,#833ab4); box-shadow:0 4px 12px rgba(228,64,95,.25); }

.fc-item-text { flex:1; display:flex; flex-direction:column; gap:1px; }
.fc-item-title { color:#fff; font-size:.88rem; font-weight:700; }
.fc-item-desc  { color:rgba(255,255,255,.36); font-size:.74rem; }
.fc-item-arrow { color:rgba(255,255,255,.2); flex-shrink:0; transition:.25s; }
.fc-item-arrow svg { width:14px; height:14px; }
.fc-item:hover .fc-item-arrow { color:#E67E22; transform:translateX(-3px); }

/* overlay */
.fc-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.1); backdrop-filter: blur(1px);
    z-index: 99998; opacity: 0; visibility: hidden; transition: .3s;
}
.fc-overlay.fc-open { opacity: 1; visibility: visible; }

.fc-panel.fc-open .fc-item { animation: fcIn .3s ease forwards; opacity: 0; transform: translateY(9px); }
.fc-panel.fc-open .fc-item:nth-child(1) { animation-delay:.04s; }
.fc-panel.fc-open .fc-item:nth-child(2) { animation-delay:.08s; }
.fc-panel.fc-open .fc-item:nth-child(3) { animation-delay:.12s; }
.fc-panel.fc-open .fc-item:nth-child(4) { animation-delay:.16s; }
.fc-panel.fc-open .fc-item:nth-child(5) { animation-delay:.20s; }
@keyframes fcIn { to { opacity:1; transform:translateY(0); } }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
    .gf-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .gf-col-contact { grid-column: 1 / -1; }
    .gf-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 900px) {
    .gf-grid { grid-template-columns: 1fr 1fr; }
    .gf-col-about, .gf-col-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .glass-footer { padding-top: 35px; }
    .gf-grid { grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
    .gf-col-about { grid-column: 1 / -1; }
    .gf-col-contact { grid-column: 1 / -1; }
    .gf-contact-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gf-contact-card { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px; }
    .gf-ci { margin-top: 0; }
    .gf-col-title::after { right: 50%; transform: translateX(50%); }
    .gf-logo { justify-content: center; }
    .gf-socials { justify-content: center; }
    .gf-links a { justify-content: center; }
    .gf-bottom { flex-direction: column; text-align: center; }
    .gf-bottom-links { justify-content: center; }
    .fc-wrap   { bottom: 18px; }
    .fc-pos-left  { left: 18px; }
    .fc-pos-right { right: 18px; }
    .fc-toggle { width: 56px; height: 56px; }
    .fc-panel  { width: calc(100vw - 38px); max-width: 308px; }
    .fc-stt    { bottom: 18px; right: 18px; width: 46px; height: 46px; border-radius: 13px; }
}
@media (max-width: 380px) {
    .gf-grid { grid-template-columns: 1fr; }
    .gf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
    .gf-links li { margin-bottom: 0; }
    .gf-contact-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}