/* SegalMarket glass footer — paste into Customizer > Additional CSS (loaded once, cached) */
.sg-footer, .sg-footer * { box-sizing: border-box; }
  .sg-footer {
    direction: rtl;
    text-align: right;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #e6e9f6 100%);
    color: #1a1a2e;
    padding: 22px 0 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
  /* ---------- خط جداکننده مدرن بالای فوتر ---------- */
  .sg-toprule { margin: 0 0 54px; }
  .sg-toprule span {
    display: block;
    height: 26px;
    border-radius: 99px;
    position: relative;
    background:
      radial-gradient(ellipse 150px 26px at 50% 50%, rgba(12,24,68,.13), rgba(12,24,68,0) 70%),
      linear-gradient(90deg, transparent 0%, rgba(12,24,68,.10) 18%, #0c1844 50%, rgba(12,24,68,.10) 82%, transparent 100%);
    background-size: 100% 100%, 100% 2px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .sg-toprule span::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 24%;
    left: 24%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(201,162,39,.65) 50%, transparent 100%);
    opacity: .8;
  }
  .sg-toprule span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 50% 50%, #c9a227 0 2.6px, #101c4e 3.4px, #0c1844 100%);
    border: 3px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(12,24,68,.30), 0 4px 14px rgba(12,24,68,.40);
  }
  .sg-wrap {
    margin: 0 2%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .sg-footer .glass {
    background: #fff;
    border: 1px solid rgba(20,30,80,.08);
    box-shadow: 0 2px 10px rgba(60,80,160,.07);
    border-radius: 18px;
  }
  /* ---------- بخش تماس و درباره ---------- */
  .sg-contactgrid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    font-size: 14.5px;
    color: #39415f;
  }
  .sg-contactgrid > .glass {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sg-contactgrid > .glass::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: #0c1844;
    opacity: 1;
  }
  .sg-addrs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }
  .sg-contactgrid .addr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 2;
    font-style: normal;
  }
  .sg-contactgrid .addr .ico {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-top: 4px;
    border-radius: 10px;
    background: #0c1844;
    color: #fff;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(12,24,68,.35);
  }
  .sg-phones { display: flex; flex-direction: column; align-items: stretch; gap: 10px; direction: rtl; }
  .sg-phones a {
    color: #0a0e21;
    font-weight: 800;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    background: rgba(79,92,207,.08);
    border: 1px solid rgba(79,92,207,.14);
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .sg-phones a:hover { color: #2c4476; background: rgba(79,92,207,.15); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(79,92,207,.18); }
  .sg-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
    align-items: center;
    justify-content: flex-start;
  }
  .sg-socialtitle { font-size: 15px; font-weight: 800; color: #0a0e21; white-space: nowrap; }
  .sg-addrstitle { font-size: 15px; font-weight: 800; color: #0a0e21; white-space: nowrap; text-align: center; }
  .sg-socialrow { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; position: absolute; top: 50%; right: 0; left: 0; transform: translateY(-50%); }
  .sg-socialrow a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(20,30,80,.08);
    box-shadow: 0 2px 8px rgba(60,80,160,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .sg-socialrow a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(12,24,68,.28); border-color: rgba(12,24,68,.45); }
  .sg-socialrow img { width: 26px; height: 26px; object-fit: contain; display: block; }
  .sg-call { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
  .sg-calltitle { font-size: 15px; font-weight: 800; color: #0a0e21; white-space: nowrap; text-align: center; }
  .sg-aboutrow {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
  }
  .sg-about { padding: 22px 24px; }
  .sg-brand { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #0a0e21; text-align: center; }
  .sg-about p {
    margin: 0;
    font-size: 14.5px;
    line-height: 2;
    color: #39415f;
    text-align: justify;
  }
  .sg-dl { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
  .sg-dl-btn { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 14px; background: rgba(12,24,68,.04); border: 1px solid rgba(12,24,68,.10); text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
  .sg-dl-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12,24,68,.16); }
  .sg-dl-btn svg { width: 34px; height: 34px; flex-shrink: 0; display: block; }
  .sg-dl-txt { display: flex; flex-direction: column; gap: 1px; }
  .sg-dl-txt b { font-size: 13.5px; color: #0a0e21; }
  .sg-trust { padding: 22px 16px; display: flex; flex-direction: column; position: relative; }
  .sg-trust .trust-row { transform: scale(.855); transform-origin: center; }
  /* سایه سبک نمادها — بدون دست زدن به کد اصلی */
  .sg-trust .trust-card { box-shadow: 0 4px 12px rgba(17,24,39,.08) !important; }
  .sg-trust .trust-card:hover { transform: none; box-shadow: 0 4px 12px rgba(17,24,39,.08) !important; }
  .sg-trust h4 {
    position: absolute;
    top: 22px;
    right: 16px;
    left: 16px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0a0e21;
    text-align: center;
  }
  @media (max-width: 900px) {
    .sg-aboutrow { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .sg-contactgrid > .glass { padding: 16px 14px; }
    .sg-about, .sg-trust { padding: 18px 14px; }
  }
  @media (max-width: 900px) {
    .sg-contactgrid, .sg-about p { font-size: 13.5px; }
    .sg-trust h4, .sg-socialtitle, .sg-calltitle, .sg-brand, .sg-addrstitle { font-size: 13px; }
    .sg-footer .sg-bottom { font-size: 11px; }
  }
  @media (max-width: 900px) {
    .sg-contactgrid { display: flex; flex-direction: column; }
    .sg-contactgrid > .sg-call { order: 1; }
    .sg-contactgrid > .sg-addrs { order: 2; }
    .sg-contactgrid > .sg-social { order: 3; }
    .sg-socialrow { position: static; transform: none; }
    .sg-trust h4 { position: static; margin: 0 0 12px; }
    .sg-phones { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  }
  @media (max-width: 380px) {
    .sg-contactgrid .addr { align-items: flex-start; line-height: 2; }
  }

  /* ---------- لینک‌ها: باکس عنوان جدا + باکس لینک جدا (دسکتاپ) / ۴ باکس جدا (موبایل) ---------- */
  .sg-titles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 24px;
    align-items: center;
  }
  .sg-titles h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0a0e21;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sg-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 26px 24px;
  }
  .sg-links .sg-lcol h4 { display: none; }
  .sg-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .sg-links ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    color: #3d5a99;
    font-weight: 600;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .sg-links ul a::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0c1844;
    opacity: .45;
    transition: opacity .2s ease, transform .2s ease;
  }
  .sg-links ul a:hover {
    color: #2c4476;
    background: rgba(61,90,153,.10);
    transform: translateY(-1px);
    text-decoration: none;
  }
  .sg-links ul a:hover::before { opacity: 1; transform: scale(1.3); }
  /* دسترس‌پذیری: فوکوس صفحه‌کلید */
  .sg-footer a:focus-visible {
    outline: 2px solid #0c1844;
    outline-offset: 2px;
  }
  /* دسترس‌پذیری: احترام به کاهش حرکت (سرگیجه/اختلالات تعادلی) */
  @media (prefers-reduced-motion: reduce) {
    .sg-footer *, .sg-footer *::before { transition: none !important; }
    .sg-footer a:hover { transform: none !important; }
  }
  .sg-bottom {
    margin: 16px 0 0;
    background: #0c1844;
    color: #e8ebf7;
    padding: 14px 2% 16px;
    text-align: center;
    font-size: 12px;
  }
  @media (max-width: 900px) {
    .sg-titles { display: none; }
    .sg-footer .sg-links {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      background: none;
      background-color: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 0;
    }
    .sg-links .sg-lcol {
      background: #fff;
      border: 1px solid rgba(20,30,80,.08);
      box-shadow: 0 2px 10px rgba(60,80,160,.07);
      border-radius: 16px;
      padding: 18px 14px;
    }
    .sg-links .sg-lcol h4 { display: block; font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(79,92,207,.15); margin: 0 0 12px; font-weight: 800; color: #0a0e21; text-align: center; white-space: nowrap; }
    .sg-links ul { gap: 10px; }
    .sg-links ul a { font-size: 11px; }
  }
  @media (max-width: 560px) {
    .sg-footer { padding: 16px 0 0; }
    .sg-toprule { margin: 0 0 28px; }
    .sg-contactgrid { font-size: 12.5px; }
    .sg-links { gap: 8px; }
    .sg-links .sg-lcol { padding: 16px 10px; }
    .sg-phones { flex-direction: column; align-items: stretch; }
    .sg-phones a { font-size: 15px; text-align: center; }
  }
  @media (max-width: 380px) {
    .sg-contactgrid { font-size: 12px; }
    .sg-links { grid-template-columns: 1fr; }
  }