/* =========================================================
   ADZO — Header & Footer (site layout) design system
   مستقل و مات؛ روی همه‌ی صفحات (روشن/تیره) درست کار می‌کند.
   رنگ/فونت از main.css برند ارث می‌برد. نسخه 1.0.0
   ========================================================= */

:root {
    --ah-primary: var(--primary-color-3, rgb(115,103,240));
    --ah-dark: var(--primary-color-1, rgb(47,51,73));
    --ah-grad: linear-gradient(120deg, rgb(115,103,240) 0%, #5f57be 100%);
}

/* ---------------- HEADER ---------------- */
.ah { position: sticky; top: 0; z-index: 1000; background: #fff;
    border-bottom: 1px solid #eef0f4; box-shadow: 0 2px 18px rgba(47,51,73,.05); }
.ah-inner { max-width: 1240px; margin-inline: auto; padding: 0 22px; height: 72px;
    display: flex; align-items: center; gap: 18px; }
.ah-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ah-logo img { height: 30px; width: auto; display: block; }

.ah-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 14px; }
.ah-nav a { position: relative; padding: 8px 13px; border-radius: 10px; font-size: .95rem; font-weight: 600;
    color: var(--ah-dark); white-space: nowrap; transition: color .2s, background .2s; }
.ah-nav a:hover { color: var(--ah-primary); background: rgba(115,103,240,.07); }
.ah-nav a.cta-nav { color: var(--ah-primary); }

.ah-cta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.ah-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ah-dark);
    font-size: .95rem; direction: ltr; }
.ah-phone svg { width: 18px; height: 18px; color: var(--ah-primary); }
.ah-phone:hover { color: var(--ah-primary); }
.ah-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ah-grad); color: #fff !important;
    font-weight: 700; font-size: .92rem; padding: 0 20px; height: 44px; border-radius: 12px;
    box-shadow: 0 8px 20px rgba(115,103,240,.28); transition: transform .2s, box-shadow .2s; }
.ah-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(115,103,240,.36); }
.ah-btn svg { width: 18px; height: 18px; }

.ah-burger { display: none; width: 44px; height: 44px; border: 1px solid #eef0f4; border-radius: 12px;
    background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ah-dark); }
.ah-burger svg { width: 24px; height: 24px; }

/* ---- mobile drawer ---- */
.ah-overlay { position: fixed; inset: 0; background: rgba(20,22,34,.5); opacity: 0; visibility: hidden;
    transition: .25s; z-index: 1090; }
.ah-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 84vw; background: #fff;
    z-index: 1100; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
    padding: 20px; box-shadow: -10px 0 40px rgba(0,0,0,.14); overflow-y: auto; }
body.ah-open .ah-overlay { opacity: 1; visibility: visible; }
body.ah-open .ah-drawer { transform: translateX(0); }
.ah-drawer .d-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ah-drawer .d-head img { height: 28px; }
.ah-drawer .d-close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ah-dark); }
.ah-drawer nav { display: flex; flex-direction: column; margin: 8px 0; }
.ah-drawer nav a { padding: 14px 6px; border-bottom: 1px solid #f2f2f6; font-weight: 600; color: var(--ah-dark); }
.ah-drawer nav a:hover { color: var(--ah-primary); }
.ah-drawer .d-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.ah-drawer .d-cta a { text-align: center; border-radius: 12px; padding: 13px; font-weight: 700; }
.ah-drawer .d-cta .wa { background: var(--ah-grad); color: #fff; }
.ah-drawer .d-cta .tel { border: 1px solid var(--ah-primary); color: var(--ah-primary); direction: ltr; }

@media (max-width: 992px) {
    .ah-nav, .ah-phone { display: none; }
    .ah-burger { display: inline-flex; }
    .ah-inner { height: 64px; }
}
@media (max-width: 480px) {
    .ah-btn { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.af { background: var(--ah-dark); color: rgba(255,255,255,.82); margin-top: 60px; }

/* CTA strip — نوار ظریف و یکپارچه با فوتر (نه باکس شناور پررنگ) */
.af-cta { max-width: 1180px; margin-inline: auto; padding: 44px 22px 6px; }
.af-cta-inner { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.13); border-radius: 20px;
    padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.af-cta-inner h3 { color: #fff; font-weight: 800; font-size: 1.22rem; margin: 0 0 4px; }
.af-cta-inner p { color: rgba(255,255,255,.66); margin: 0; font-size: .95rem; }
.af-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.af-cta-btns a { display: inline-flex; align-items: center; border-radius: 12px; padding: 12px 26px; font-weight: 700; }
.af-cta-btns .wa { background: var(--ah-grad); color: #fff; box-shadow: 0 8px 20px rgba(115,103,240,.3); }
.af-cta-btns .tel { border: 1.5px solid rgba(255,255,255,.45); color: #fff; direction: ltr; }

/* main columns */
.af-main { max-width: 1180px; margin-inline: auto; padding: 34px 22px 30px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.af-col h4 { color: #fff; font-size: 1.02rem; font-weight: 800; margin: 0 0 18px; }
.af-col ul { list-style: none; padding: 0; margin: 0; }
.af-col li { margin-bottom: 11px; }
.af-col a { color: rgba(255,255,255,.78); font-size: .94rem; transition: color .2s; }
.af-col a:hover { color: #fff; }
.af-about .af-logo { height: 30px; margin-bottom: 16px; }
.af-about p { line-height: 2; font-size: .93rem; color: rgba(255,255,255,.7); margin: 0 0 18px; }
.af-social { display: flex; gap: 10px; }
.af-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; color: #fff; transition: .2s; }
.af-social a:hover { background: var(--ah-primary); transform: translateY(-2px); }
.af-social svg { width: 19px; height: 19px; }

.af-contact li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); font-size: .93rem; line-height: 1.9; }
.af-contact svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 4px; color: var(--ah-primary); }
.af-contact a { direction: ltr; }

/* bottom bar */
.af-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.af-bottom .in { max-width: 1180px; margin-inline: auto; padding: 20px 22px; display: flex;
    align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .86rem; color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
    .af-main { grid-template-columns: 1fr 1fr; gap: 30px; }
    .af-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
    .af-main { grid-template-columns: 1fr; }
    .af-cta-inner { padding: 24px; }
}
