/* ==================================================
   پیشخوان دولت گنبد کاووس — استایل اصلی
   ================================================== */

:root {
  --green-dark: #064D34;
  --green: #0C7951;
  --green-light: #14A870;
  --green-soft: #E6F5EF;

  --purple-dark: #350852;
  --purple: #510C79;
  --purple-light: #7A1FB0;
  --purple-soft: #F0E6F7;

  --gold-dark: #4F3508;
  --gold: #79510C;
  --gold-light: #B87A15;
  --gold-soft: #F7EFE0;

  --white: #FFFFFF;
  --cream: #FAF7F2;
  --surface: #F1F0EE;
  --border: #D6D3CE;
  --muted: #6B6B66;
  --text: #1E1E1E;
  --error: #A02020;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

/* ============ HEADER ============ */
header.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(81,12,121,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-text h1 { font-size: 19px; color: var(--purple); font-weight: 800; }
.brand-text p { font-size: 12px; color: var(--muted); }

nav.main-nav { display: flex; gap: 4px; }
nav.main-nav a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
  position: relative;
}
nav.main-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
nav.main-nav a.active { background: var(--purple); color: var(--white); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -18px; right: 50%;
  transform: translateX(50%);
  width: 24px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-track:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12,121,81,.28);
}

/* ============ دکمه منوی موبایل ============ */
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color .2s;
}
.menu-toggle:hover { border-color: var(--purple); }
.menu-toggle span {
  width: 20px; height: 2.5px;
  background: var(--purple);
  border-radius: 3px;
  transition: all .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ منوی کشویی موبایل ============ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(30,20,40,.55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: all .3s;
  z-index: 999;
}
.mobile-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: 300px; max-width: 85vw;
  background: var(--white);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.mobile-head h4 { font-size: 16px; color: var(--purple); }
.mobile-head p { font-size: 11.5px; color: var(--muted); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin: 20px 0; flex: 1; overflow-y: auto; }
.mobile-menu nav a {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--green-soft); color: var(--green-dark); }
.mobile-contact {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(12,121,81,.35), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(184,122,21,.28), transparent 55%),
    linear-gradient(135deg, rgba(20,168,112,.78) 0%, rgba(6,77,52,.92) 100%),
    url('img/hero-bg.webp') center/cover no-repeat;
  color: var(--white);
  padding: 70px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: center;
}
.hero-text h2 {
  font-size: 40px;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-text h2 .hl {
  color: var(--gold-light);
  position: relative;
  display: inline-block;
}
.hero-text h2 .hl::after {
  content: "";
  position: absolute;
  bottom: 4px; right: 0; left: 0;
  height: 8px;
  background: var(--green);
  opacity: .5;
  border-radius: 4px;
  z-index: -1;
}
.hero-text p.lead {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero.primary { background: var(--green); color: var(--white); }
.btn-hero.primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12,121,81,.4);
}
.btn-hero.ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.btn-hero.ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: var(--gold);
}

/* ============ کارت تماس (هیرو) ============ */
.quick-card {
  background: var(--white);
  color: var(--text);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  border-top: 5px solid var(--gold);
  position: relative;
}
.quick-card::before {
  content: "";
  position: absolute;
  top: -5px; right: 0;
  width: 40%; height: 5px;
  background: var(--green);
}
.quick-card h3 {
  font-size: 18px;
  color: var(--purple);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-card .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.crow {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color .2s;
}
.crow:hover { border-color: var(--green-light); }
.crow .cic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.crow .clbl { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; }
.crow b { font-size: 13.5px; color: var(--text); font-weight: 700; }
.crow a b { color: var(--green); }
.crow a b:hover { text-decoration: underline; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-actions .btn-hero { width: 100%; justify-content: center; padding: 13px 10px; font-size: 13.5px; }
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--purple);
  font-family: inherit;
  transition: all .2s;
}
.btn-soft:hover { border-color: var(--purple); background: var(--purple-soft); }

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--white);
  padding: 32px 0;
  box-shadow: 0 12px 40px rgba(81,12,121,.08);
  border-radius: 20px;
  max-width: 1200px;
  margin: -55px auto 0;
  position: relative;
  z-index: 3;
  border: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 0 16px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1.2;
}
.stat .num .unit { font-size: 15px; color: var(--green); margin-right: 3px; }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ============ SECTION ============ */
section.block { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(12,121,81,.2);
}
.section-head h2 {
  font-size: 30px;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 620px;
  margin: 0 auto;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 4px;
  background: var(--green);
  transition: width .3s;
}
.service-card:hover::before { width: 100%; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(81,12,121,.12);
  border-color: var(--green-light);
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--green-soft);
  color: var(--green-dark);
  transition: all .25s;
}
.service-card:nth-child(2) .service-icon { background: var(--purple-soft); color: var(--purple); }
.service-card:nth-child(3) .service-icon { background: var(--gold-soft); color: var(--gold-dark); }
.service-card:nth-child(4) .service-icon { background: var(--purple-soft); color: var(--purple); }
.service-card:nth-child(5) .service-icon { background: var(--gold-soft); color: var(--gold-dark); }
.service-card:nth-child(6) .service-icon { background: var(--purple-soft); color: var(--purple); }
.service-card:hover .service-icon {
  background: var(--green);
  color: var(--white);
  transform: scale(1.08);
}
.service-card h3 { font-size: 16.5px; color: var(--purple); margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.service-card .more .arrow { transition: transform .2s; }
.service-card:hover .more .arrow { transform: translateX(-4px); }

/* ============ PROCESS ============ */
.process {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 34px; right: 12%; left: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  transition: all .25s;
}
.step:nth-child(2) .step-num { border-color: var(--purple); color: var(--purple); }
.step:nth-child(3) .step-num { border-color: var(--gold); color: var(--gold); }
.step:nth-child(4) .step-num { border-color: var(--green); color: var(--green); }
.step:hover .step-num {
  background: var(--green);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(12,121,81,.3);
}
.step h4 { font-size: 15px; color: var(--purple); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); padding: 0 8px; }

/* ============ GALLERY ============ */
.gallery-section { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  height: 220px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(81,12,121,.1);
  transition: all .3s;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(81,12,121,.2);
}
.gallery-card:hover .gallery-img { transform: scale(1.08); }
.gallery-img {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 76px;
  transition: transform .5s;
}
.gallery-card:nth-child(1) .gallery-img { background: linear-gradient(135deg, #0C7951 0%, #14A870 100%); }
.gallery-card:nth-child(2) .gallery-img { background: linear-gradient(135deg, #510C79 0%, #7A1FB0 100%); }
.gallery-card:nth-child(3) .gallery-img { background: linear-gradient(135deg, #79510C 0%, #B87A15 100%); }
.gallery-card:nth-child(4) .gallery-img { background: linear-gradient(135deg, #350852 0%, #0C7951 100%); }
.gallery-card:nth-child(5) .gallery-img { background: linear-gradient(135deg, #0C7951 0%, #79510C 100%); }
.gallery-card:nth-child(6) .gallery-img { background: linear-gradient(135deg, #B87A15 0%, #350852 100%); }
.gallery-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.15), transparent 55%);
}
.gallery-overlay {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  padding: 20px 18px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
}
.gallery-overlay .title { font-size: 15px; font-weight: 700; color: var(--white); }
.gallery-overlay .sub { font-size: 11.5px; color: rgba(255,255,255,.75); margin-top: 3px; }
.gallery-overlay .arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
  transition: all .25s;
}
.gallery-card:hover .gallery-overlay .arrow {
  background: var(--green);
  transform: translateX(-4px);
}

/* ============ NEWS ============ */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}
.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(81,12,121,.12);
}
.news-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.3);
  font-size: 48px;
}
.news-card:nth-child(2) .news-thumb { background: linear-gradient(135deg, var(--green) 0%, var(--gold) 100%); }
.news-card:nth-child(3) .news-thumb { background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%); }
.news-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 1;
}
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-date .dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.news-body h3 { font-size: 15.5px; color: var(--purple); margin-bottom: 10px; line-height: 1.6; }
.news-card:first-child .news-body h3 { font-size: 18px; }
.news-body p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.news-body .read { color: var(--green); font-size: 13px; font-weight: 700; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background:
    radial-gradient(circle at 15% 50%, rgba(12,121,81,.4), transparent 55%),
    radial-gradient(circle at 85% 50%, rgba(184,122,21,.3), transparent 55%),
    var(--purple);
  border-radius: 24px;
  padding: 50px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; left: -20%;
  width: 300px; height: 300px;
  background: var(--green);
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.cta-banner .cta-text { position: relative; z-index: 1; }
.cta-banner h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-banner p { opacity: .9; font-size: 14px; }
.cta-banner .btn-hero { position: relative; z-index: 1; }

/* ============ FOOTER ============ */
footer.site-footer {
  background:
    radial-gradient(circle at 10% 20%, rgba(12,121,81,.55), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(121,81,12,.5), transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(81,12,121,.6), transparent 50%),
    linear-gradient(135deg, #0C7951 0%, #510C79 50%, #79510C 100%);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 80px;
  border-top: 5px solid var(--gold);
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #0C7951 0%,
    #0C7951 33%,
    #510C79 33%,
    #510C79 66%,
    #79510C 66%,
    #79510C 100%
  );
}
footer.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.footer-grid,
.footer-bottom { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand-text h4 { font-size: 16px; color: var(--white); }
.footer-brand-text p { font-size: 12px; opacity: .8; }
.footer-col p { font-size: 13px; opacity: .85; line-height: 1.9; }
.footer-col h4 {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  opacity: .9;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a::before {
  content: "←";
  color: var(--green-light);
  font-size: 11px;
  transition: transform .15s;
}
.footer-col ul li a:hover {
  opacity: 1;
  color: var(--gold-light);
  padding-right: 4px;
}
.footer-col ul li a:hover::before { transform: translateX(-3px); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  opacity: .95;
  align-items: center;
  line-height: 1.7;
}
.footer-contact-item .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.12);
  color: var(--gold-light);
  border: 1px solid rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  opacity: .9;
}
.footer-socials { display: flex; gap: 10px; }
/* ============ مودال جزئیات خدمت ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,20,40,.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%; max-width: 440px;
  padding: 28px 26px;
  position: relative;
  transform: translateY(24px) scale(.96);
  transition: transform .3s;
  border-top: 5px solid var(--green);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  max-height: 88vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: all .2s;
}
.modal-close:hover { background: var(--error); color: #fff; border-color: var(--error); }
.sm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service-modal-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
.sm-head h3 { font-size: 18px; color: var(--purple); }
.mdesc { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.sub-title { font-size: 14px; color: var(--purple); margin-bottom: 10px; font-weight: 700; }
ul.docs { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
ul.docs li {
  font-size: 13px; color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
ul.docs li::before { content: "✓"; color: var(--green); font-weight: 800; font-size: 12px; }
.meta-box {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(184,122,21,.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.meta-box span { color: var(--gold-dark); font-weight: 600; }
.meta-box b { color: var(--gold-dark); font-weight: 800; }
.modal-cta { width: 100%; justify-content: center; }

/* ============ توست و دکمه بالا ============ */
.toast {
  position: fixed;
  bottom: 24px; right: 50%;
  transform: translateX(50%) translateY(90px);
  background: var(--purple-dark);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  transition: all .35s;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  max-width: 92vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
.to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  border: 1.5px solid var(--gold);
  font-size: 18px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(81,12,121,.35);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); }

/* ============ انیمیشن ظاهرشدن ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h2 { font-size: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h2 { font-size: 24px; }
  .cta-banner { padding: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-card { height: 170px; }
  .gallery-img { font-size: 56px; }
  .to-top { bottom: 18px; left: 18px; }
  .toast { bottom: 18px; }
}
@media (max-width: 450px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============ امضای طراح ============ */
.designer-credit {
  font-size: 12.5px;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.designer-credit a {
  color: var(--gold-light);
  font-weight: 800;
  transition: all .2s;
}
.designer-credit a:hover {
  color: var(--white);
  text-decoration: underline;
}
@media (max-width: 700px) {
  .footer-bottom { justify-content: center; text-align: center; }
}


/* ============ فهرست کامل خدمات ============ */
.catalog-wrap { margin-top: 70px; }
.catalog-head { text-align: center; margin-bottom: 24px; }
.catalog-head h3 { font-size: 22px; color: var(--purple); font-weight: 800; margin-bottom: 4px; }
.catalog-head p { font-size: 13px; color: var(--muted); }
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}
.ftab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ftab:hover { border-color: var(--green-light); color: var(--green-dark); }
.ftab.active { background: var(--purple); border-color: var(--purple); color: var(--white); }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-light);
  box-shadow: 0 12px 26px rgba(81,12,121,.1);
}
.mini-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}
.mini-card[data-cat="ahval"] .mini-icon { background: var(--purple-soft); }
.mini-card[data-cat="ab"] .mini-icon { background: var(--green-soft); }
.mini-card[data-cat="bargaz"] .mini-icon { background: var(--gold-soft); }
.mini-card[data-cat="khodro"] .mini-icon { background: var(--gold-soft); }
.mini-card[data-cat="ertebatat"] .mini-icon { background: var(--green-soft); }
.mini-card[data-cat="ghazi"] .mini-icon { background: var(--purple-soft); }
.mini-txt h4 { font-size: 14px; color: var(--purple); font-weight: 700; margin-bottom: 2px; }
.mini-txt p { font-size: 12px; color: var(--muted); line-height: 1.7; }
@keyframes miniPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.mini-card.pop { animation: miniPop .35s ease; }
.catalog-note {
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px dashed var(--green-light);
  border-radius: 12px;
  padding: 12px 18px;
}
@media (max-width: 980px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .mini-grid { grid-template-columns: 1fr; }
  .catalog-wrap { margin-top: 50px; }
}


/* ============ سوالات متداول ============ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .2s;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--green-light); box-shadow: 0 10px 26px rgba(81,12,121,.08); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary:hover { color: var(--green-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all .25s;
}
.faq-item[open] summary::after { content: "−"; background: var(--green); color: var(--white); }
.faq-answer {
  margin: 0 18px 16px;
  padding: 14px 0 2px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 2.1;
  border-top: 1px dashed var(--border);
}


/* ============ عکس‌های واقعی گالری و اخبار ============ */
img.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============ نقشه ============ */
.location-section .section-head { margin-bottom: 30px; }
.map-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(81,12,121,.12);
  background: var(--white);
}
.map-card iframe {
  display: block;
  min-height: 420px;
}
.map-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.map-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.map-info-item .mi-ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}
.map-info-item b {
  display: block;
  font-size: 13.5px;
  color: var(--purple);
  margin-bottom: 2px;
}
.map-info-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
}
.map-info-item p a { color: var(--green); font-weight: 700; }
.map-info-item p a:hover { text-decoration: underline; }
.map-btn { justify-content: center; }
@media (max-width: 820px) {
  .map-card { grid-template-columns: 1fr; }
  .map-card iframe { min-height: 300px; height: 300px; }
}


/* ============ لوگوی سپر (هدر) ============ */
.brand-logo {
  width: 48px; height: 48px;
  background: var(--purple);
  border-radius: 12px;
  border: 2.5px solid var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
