/* فزعة · Faz3a - technician directory (/technicians, /technicians/<trade>, /t/<id>).
   Server-rendered by Django (backend apps/discovery/web.py); layered on styles.css. */

.nav-links a.is-active { color: var(--pine); font-weight: 700; }

/* Hero */
.dir-hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); overflow: hidden; }
.dir-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 85% 0%, rgba(14,92,67,.10), transparent 70%),
    radial-gradient(40% 50% at 5% 100%, rgba(232,85,30,.06), transparent 70%); }
.dir-hero h1 { font-size: clamp(32px, 5.4vw, 56px); margin-block: 12px 16px; color: var(--ink); }
.dir-hero h1 .hl { color: var(--pine); }
.dir-hero-sm h1 { font-size: clamp(28px, 4.4vw, 44px); }
.dir-hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 60ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--pine); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Live numbers */
.dir-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; max-width: 860px; }
.dir-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); }
.dir-stat b { display: block; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 34px); color: var(--pine); line-height: 1.2; }
.dir-stat span { font-size: 14px; color: var(--ink-soft); }

/* Sections */
.dir-section { padding-block: clamp(40px, 6vw, 80px); }
.dir-tight { padding-block: clamp(20px, 3vw, 36px) clamp(40px, 6vw, 72px); }
.dir-alt { background: var(--bg-2); }
.dir-head { margin-bottom: 28px; }
.dir-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 6px; }
.dir-guide { margin-top: 28px; text-align: center; font-size: 16px; color: var(--ink-soft); }
.dir-guide a { color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Trade grid (hub) */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.trade-card { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; padding-inline-end: 48px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.trade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--pine); }
.trade-card b { font-family: var(--f-display); font-size: 18px; color: var(--pine-deep); }
.trade-card span { font-size: 14px; color: var(--ink-soft); }
.trade-card .go { position: absolute; inset-inline-end: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--pine); }
[dir="ltr"] .trade-card .go { transform: scaleX(-1); }
.more-trades { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.more-trades-center { justify-content: center; margin-top: 0; }
.more-trades .trade-chip { padding: 8px 16px; font-size: 14px; }

/* Technician cards */
.tcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.tcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .18s ease, box-shadow .2s ease; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard[hidden] { display: none; }
.tcard-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pine-soft); }
.tcard-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard-ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%); }
.tcard-ph span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 34px; }
.tcard-pill { position: absolute; inset-block-start: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.tcard-pill svg { width: 14px; height: 14px; }
.tcard-photos { inset-inline-end: 12px; background: rgba(15,18,14,.62); color: #fff; backdrop-filter: blur(6px); }
.tcard-new { inset-inline-start: 12px; background: var(--card); color: var(--pine-deep); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.tcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tcard-name { display: flex; align-items: center; gap: 7px; }
.tcard-name h3 { font-size: 18px; line-height: 1.35; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcheck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pine-soft); color: var(--pine); display: grid; place-items: center; }
.vcheck svg { width: 15px; height: 15px; }
.tcard-trade { color: var(--pine); font-weight: 600; font-size: 15px; }
.tcard-meta { list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.tcard-meta li { display: flex; align-items: center; gap: 7px; }
.tcard-meta svg { width: 16px; height: 16px; flex: none; color: var(--ink-soft); }
.tcard-rating { color: var(--ink); font-weight: 600; }
.tcard-rating svg { color: var(--gold); }
.tcard-rating span { color: var(--ink-soft); font-weight: 400; }
.tcard-bio { font-size: 14px; line-height: 1.7; color: #4a5047; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Area filter */
.gov-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gov-chip { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); transition: all .15s; }
.gov-chip span { color: var(--ink-soft); font-weight: 500; margin-inline-start: 2px; }
.gov-chip:hover { border-color: var(--pine); }
.gov-chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.gov-chip[aria-pressed="true"] span { color: rgba(255,255,255,.75); }

/* Empty state */
.dir-empty { text-align: center; background: var(--card); border: 1px dashed var(--border); border-radius: var(--r-lg);
  padding: 48px 24px; max-width: 560px; margin-inline: auto; }
.dir-empty svg { width: 56px; height: 56px; color: var(--pine); margin: 0 auto 14px; }
.dir-empty h2 { font-size: 24px; margin-bottom: 8px; }
.dir-empty p { margin-bottom: 20px; }

/* Verification explainer */
.vsteps { list-style: none; counter-reset: v; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vsteps li { counter-increment: v; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 20px; }
.vsteps li::before { content: counter(v); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pine-soft); color: var(--pine); font-family: var(--f-display); font-weight: 700; margin-bottom: 12px; }
.vsteps b { display: block; font-family: var(--f-display); font-size: 17px; color: var(--pine-deep); margin-bottom: 4px; }
.vsteps span { font-size: 14px; color: var(--ink-soft); }

/* Profile */
.pro { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.pro-avatar { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%); box-shadow: var(--shadow); }
.pro-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--card); }
.pro-avatar > span:first-child { width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: 46px; }
.pro-check { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pine); color: #fff; display: grid; place-items: center; border: 3px solid var(--card); }
.pro-check svg { width: 15px; height: 15px; }
.pro-id h1 { margin: 0 0 4px; }
.pro-trade { color: var(--pine); font-weight: 600; font-size: 18px; }
.pro-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vbadge, .nbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.vbadge { background: var(--pine-soft); color: var(--pine-deep); }
.vbadge svg { width: 16px; height: 16px; }
.nbadge { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.pro-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pro-facts > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 20px; min-width: 120px; }
.pro-facts b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--pine); line-height: 1.3; }
.pro-facts span { font-size: 13px; color: var(--ink-soft); }
.pro-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.pro-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 18px; }
.pro-block h2 { font-size: 20px; margin-bottom: 12px; color: var(--pine-deep); }
.pro-block p { font-size: 16px; line-height: 1.9; color: #3a4038; white-space: pre-line; }
.pro-block .more-trades { margin-top: 0; }
.pro-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pro-gallery a { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--pine-soft); }
.pro-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pro-gallery a:hover img { transform: scale(1.04); }
.pro-cta { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow); }
.pro-cta h2 { font-size: 21px; margin-bottom: 12px; }
.pro-cta ol { padding-inline-start: 20px; margin-bottom: 18px; color: #3a4038; font-size: 15px; }
.pro-cta ol li { margin-bottom: 6px; }
.pro-cta .btn { width: 100%; justify-content: center; }
.pro-cta .muted { font-size: 13px; margin-top: 12px; line-height: 1.7; }

.dir-join { margin-top: 22px !important; margin-bottom: 0 !important; font-size: 15px !important; }

@media (max-width: 900px) {
  .dir-stats { grid-template-columns: 1fr 1fr; }
  .vsteps { grid-template-columns: 1fr 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-cta { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .vsteps { grid-template-columns: 1fr; }
  .tcard-grid { grid-template-columns: 1fr; }
  .pro { flex-direction: column; text-align: center; }
  .pro-badges { justify-content: center; }
  .pro-facts { justify-content: center; }
  .pro-facts > div { flex: 1 1 40%; text-align: center; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
}
