﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Header & Footer â€” Advanced Minimal
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
  --header-h: 70px;
  --topbar-h: 34px;
  --header-total: calc(var(--topbar-h) + var(--header-h));
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: auto;
  background: transparent;
}

/* Slim top bar â€” date/time corner */
.topbar {
  height: var(--topbar-h);
  background: rgba(5, 9, 16, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.jalali-clock {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  direction: rtl;
  font-size: 0.72rem;
}
.topbar-phone {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.topbar-phone:hover { color: var(--gold-400); opacity: 0.85; }

.header-glass {
  position: relative;
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.5), transparent);
}
.site-header.scrolled .header-glass {
  background: rgba(6, 10, 18, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(196, 161, 74, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand-mark { position: relative; display: grid; place-items: center; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(196, 161, 74, 0.5);
}
.brand-name { font-size: 0.95rem; font-weight: 700; }
.brand-sub { font-size: 0.66rem; color: var(--muted); }

.nav-shell { flex: 1; display: flex; justify-content: center; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.nav > li { position: relative; }
.nav > li > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--silver);
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, background 0.2s;
}
.nav > li > a:hover,
.nav-trigger:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav > li > a.active { color: var(--gold-400); }
.nav-trigger .chev { width: 9px; height: 9px; opacity: 0.5; transition: transform 0.25s; }
.nav > li:hover .nav-trigger .chev { transform: rotate(180deg); opacity: 0.9; }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 60;
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  box-shadow: none;
}
.nav > li:hover > .mega,
.nav > li:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) translateY(0);
}
.mega-services { width: min(480px, calc(100vw - 2rem)); }
.mega-resources { width: 220px; }
.mega-inner,
.mega-list {
  border-radius: 14px;
  border: 1px solid rgba(196, 161, 74, 0.18);
  background: rgba(10, 18, 32, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  overflow: hidden;
}
.mega-inner-simple { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.65rem;
}
.mega-grid-3 { grid-template-columns: 1fr 1fr; }
.mega-grid a {
  display: block;
  padding: 0.7rem 0.85rem !important;
  border-radius: 10px;
  color: var(--silver);
  transition: background 0.2s, color 0.2s;
}
.mega-grid a:hover {
  background: rgba(196, 161, 74, 0.1) !important;
  color: var(--gold-400);
}
.mega-label { font-size: 0.88rem; font-weight: 500; color: inherit; }
.mega-list { padding: 0.45rem; display: grid; gap: 0.1rem; }
.mega-list a {
  display: block;
  padding: 0.65rem 0.85rem !important;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--silver);
}
.mega-list a:hover {
  background: rgba(196, 161, 74, 0.1) !important;
  color: var(--gold-400);
}

.header-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* Page content offset for taller header */
.hero,
.page-hero {
  padding-top: calc(var(--header-total) + 2rem) !important;
}
.hero { min-height: 100vh; min-height: 100svh; }

.float-clock { display: none !important; }
.header-meta { display: none !important; }
.header-phone { display: none !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1205;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-lines { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.menu-toggle-lines i {
  display: block; height: 2px; width: 100%;
  background: #f5f7fa; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.55); opacity: 0;
  transition: opacity 0.28s ease;
}
.nav-backdrop.is-visible { opacity: 1; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: 1210;
  width: min(340px, 90vw);
  height: 100%; height: 100dvh;
  background: #070d18;
  border-left: 1px solid rgba(196, 161, 74, 0.15);
  box-shadow: -16px 0 40px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  transform: translate3d(105%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open { transform: translate3d(0, 0, 0); }
body.nav-open { overflow: hidden; touch-action: none; }

.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer-close {
  width: 40px; height: 40px; border: none; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.mobile-drawer-clock { padding: 0.65rem 1.15rem 0; }
.mobile-drawer-clock .jalali-clock { color: var(--gold-400); font-size: 0.78rem; max-width: 100%; white-space: normal; }
.mobile-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.85rem; }
.m-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.m-nav > li > a,
.m-acc-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 0.9rem 1rem; border-radius: 12px; border: none; background: transparent;
  color: #e8edf5; font-size: 1rem; font-weight: 500; text-align: right;
  cursor: pointer; font-family: inherit;
}
.m-nav > li > a:hover, .m-acc-btn:hover { background: rgba(196,161,74,0.08); color: var(--gold-400); }
.m-acc-btn::after { content: '+'; color: var(--gold-400); }
.m-acc.is-open .m-acc-btn::after { content: 'âˆ’'; }
.m-acc-panel { display: none; padding: 0.1rem 0.4rem 0.4rem; }
.m-acc.is-open .m-acc-panel { display: grid; gap: 0.1rem; }
.m-acc-panel a { padding: 0.65rem 0.85rem; border-radius: 10px; font-size: 0.9rem; color: var(--silver); }
.m-acc-panel a:hover { background: rgba(255,255,255,0.04); color: var(--gold-400); }
.mobile-drawer-foot {
  display: grid; gap: 0.5rem; padding: 0.85rem 1rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer-foot .btn { width: 100%; }

.court-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.court-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(16, 27, 46, 0.45);
}
.court-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.court-card .court-zone {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold-400);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.court-card p { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.55rem; line-height: 1.7; }
.court-card .court-phones { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.court-card a.tel {
  display: inline-flex;
  direction: ltr;
  font-weight: 600;
  color: var(--gold-400);
  font-size: 0.88rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(196,161,74,0.08);
  border: 1px solid rgba(196,161,74,0.15);
}
.court-card a.tel:hover { background: rgba(196,161,74,0.15); }

.header-progress {
  position: absolute; bottom: 0; inset-inline: 0; height: 1px; overflow: hidden;
}
.header-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-400));
}

@media (max-width: 980px) {
  .court-grid { grid-template-columns: 1fr; }
  .footer-grid-adv { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; padding: 2.5rem 0; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-consult { display: none; }
  .desktop-nav { display: none !important; }
  .brand-sub { display: none; }
  .jalali-clock { max-width: 55%; font-size: 0.68rem; }
  .section { padding: 2.75rem 0; }
  .service-grid, .article-grid { grid-template-columns: 1fr !important; }
  .process { grid-template-columns: 1fr !important; }
  .container { width: min(100% - 1.25rem, var(--max)); }
}

@media (max-width: 600px) {
  .footer-grid-adv { grid-template-columns: 1fr; }
  .footer-cta-actions { width: 100%; flex-direction: column; }
  .footer-cta-actions .btn { width: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .about-strip, .content-grid, .contact-grid { grid-template-columns: 1fr !important; }
}


/* ── Footer ── */
.site-footer { position: relative; background: #050910; border-top: 1px solid rgba(255,255,255,0.05); padding: 0; overflow: hidden; }
.footer-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 70%; height: 280px; background: radial-gradient(ellipse, rgba(196,161,74,0.1), transparent 70%); pointer-events: none; }
.footer-cta-strip { position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(196,161,74,0.08), transparent), rgba(10,18,32,0.5); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; }
.footer-cta-kicker { display: inline-block; font-size: 0.78rem; color: var(--gold-400); font-weight: 600; margin-bottom: 0.55rem; }
.footer-cta-copy h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; margin-bottom: 0.45rem; }
.footer-cta-copy p { color: var(--muted); font-size: 0.92rem; max-width: 36rem; margin: 0; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
.footer-main { position: relative; padding: 3.5rem 0 2.5rem; }
.footer-grid-adv { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 2.5rem; }
.footer-brand-col .brand { margin-bottom: 1.1rem; }
.footer-tagline { color: var(--muted); font-size: 0.9rem; line-height: 1.85; max-width: 300px; margin-bottom: 1.25rem; }
.footer-contact-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-contact-pills a { padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: var(--silver); }
.footer-contact-pills a:hover { border-color: rgba(196,161,74,0.4); color: var(--gold-400); }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; color: var(--white); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.88rem; padding: 0.35rem 0; transition: color 0.22s, transform 0.22s; }
.footer-col a:hover { color: var(--gold-400); transform: translateX(-3px); }
.footer-office-card { border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1rem 1.1rem; background: rgba(16,27,46,0.4); display: grid; gap: 0.85rem; margin-bottom: 0.85rem; }
.office-row { display: grid; gap: 0.15rem; }
.office-label { font-size: 0.72rem; color: var(--gold-500); font-weight: 600; }
.office-row a, .office-row span { font-size: 0.86rem; color: var(--silver); line-height: 1.6; }
.office-row a:hover { color: var(--gold-400); }
.footer-map-link { display: inline-flex !important; font-size: 0.85rem !important; font-weight: 600; color: var(--gold-400) !important; padding: 0.35rem 0 !important; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.25); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.85rem; padding: 1.15rem 0; }
.footer-copy, .footer-credit { margin: 0; font-size: 0.8rem; color: var(--muted); }
.footer-credit a { color: var(--gold-400); font-weight: 600; border-bottom: 1px solid transparent; }
.footer-credit a:hover { border-bottom-color: rgba(196,161,74,0.5); }

.page-hero{padding-top:calc(var(--topbar-h) + var(--header-h) + 2.5rem)!important}.hero{padding-top:calc(var(--topbar-h) + var(--header-h))!important}
