:root {
  --topbar-color: #fff;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-dark: #1c1e21;
  --text-muted: #65676b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text-dark);
}

/* ---------- نوار بالا ---------- */
.topbar {
  background:#3c557b;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.topbar-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-logo {
  height: 34px;
  width: 34px;
  object-fit: cover;
  border-radius: 8px;
}
.topbar-title {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- کاور و آواتار ---------- */
.cover-wrap {
  position: relative;
  background: #cfd3d8;
  height: 440px;
  overflow: hidden;
}
.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-wrap {
  position: absolute;
  bottom: -54px;
  left: 63%;
  transform: translateX(50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #ffffff1f;
  padding: 5px;
  box-shadow: var(--shadow);
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-caption {
  text-align: center;
  margin: 78px auto 10px;
  display: none;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---------- بدنه صفحه ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 16px 50px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--text-dark);
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: #d8dade;
}

/* ---------- شبکه های اجتماعی / مسیر یابی - دکمه ها ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  padding: 14px 6px;
  border-radius: var(--radius-md);
  background: #f7f8fa;
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03) inset;
  overflow: hidden;
}
.badge-icon svg { width: 22px; height: 22px; }
.badge-icon .icon-fallback {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-label {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.route-badge {
  flex-direction: row;
  justify-content: center;
  background: #fff;
  border: 1px solid #e4e6ea;
}
.route-badge .badge-icon { width: 38px; height: 38px; }
.route-badge .badge-icon svg { width: 18px; height: 18px; }
.route-badge .badge-label { font-size: 14px; font-weight: 600; }

/* ---------- درباره ما ---------- */
.about-text {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 26px;
  font-size: 15px;
}
.about-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  justify-content: center;
}
.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.info-icon svg { width: 20px; height: 20px; }
.info-text {
  display: flex;
  flex-direction: column;
}
.info-value { font-size: 14px; font-weight: 600; }
.info-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- موقعیت مکانی ---------- */
.location-address {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 14.5px;
}
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- فوتر ---------- */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 18px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 680px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .about-info { grid-template-columns: 1fr; gap: 16px; }
  .cover-wrap { height: 180px; }
  .avatar-wrap { width: 104px; height: 104px; bottom: -50px; }
  .profile-caption { margin-top: 62px; }
}

@media (max-width: 420px) {
  .routes-grid { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
}
