/* ===== خانه مهر — استایل اصلی ===== */
:root {
  --navy: #1f3b57;
  --navy-dark: #16293d;
  --gold: #c9962e;
  --gold-light: #e0b357;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #2e3a46;
  --text-light: #6b7a89;
  --border: #e8e2d8;
  --shadow: 0 10px 30px rgba(31, 59, 87, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.5; }

/* ===== نوار بالا ===== */
.topbar {
  background: var(--navy-dark);
  color: #cfd8e0;
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}
.topbar-note { margin-inline-start: auto; }

/* ===== سربرگ ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.logo-mark {
  font-size: 1.8rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.4; }
.logo-text strong { font-size: 1.15rem; }
.logo-text small { color: var(--text-light); font-size: 0.72rem; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--cream); font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201, 150, 46, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 150, 46, 0.45); }
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.header-cta { padding: 10px 20px; font-size: 0.88rem; }

/* ===== بخش اصلی ===== */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-dark) 60%, #0f1e2e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201, 150, 46, 0.15), transparent 45%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 20px 130px;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(201, 150, 46, 0.18);
  border: 1px solid rgba(201, 150, 46, 0.45);
  color: var(--gold-light);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  border-bottom: 4px solid rgba(201, 150, 46, 0.4);
}
.hero p {
  color: #c3cfda;
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; gap: 40px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.6rem; color: var(--gold-light); }
.hero-trust span { font-size: 0.82rem; color: #9fb0c0; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  animation: pulse 4s ease-in-out infinite;
}
.hero-emoji { font-size: 7rem; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.float-card {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: float 5s ease-in-out infinite;
}
.fc-1 { top: 8%; inset-inline-start: 0; }
.fc-2 { bottom: 18%; inset-inline-end: 0; animation-delay: 1.5s; }
.fc-3 { bottom: 2%; inset-inline-start: 12%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-wave { position: absolute; bottom: -1px; inset-inline: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ===== بخش‌های عمومی ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(201, 150, 46, 0.1);
  padding: 5px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-light); }

/* ===== درباره ما ===== */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.about-icon { font-size: 2.4rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.about-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== خدمات ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: right;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  font-size: 1.9rem;
  background: var(--cream);
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }

/* ===== آمار ===== */
.stats {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-light);
}
.stat span { color: #b8c6d4; font-size: 0.9rem; }

/* ===== راه‌های کمک ===== */
.help { background: var(--cream); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.help-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.help-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.help-card.featured { border: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(201, 150, 46, 0.18); }
.featured-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
}
.help-icon { font-size: 2rem; margin-bottom: 12px; }
.help-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.help-card p { color: var(--text-light); font-size: 0.87rem; flex: 1; }
.help-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 14px;
}
.help-link:hover { color: var(--navy); }

.help-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.help-banner h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.help-banner p { color: #b8c6d4; font-size: 0.92rem; max-width: 560px; }

/* ===== سخن حامیان ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  color: var(--text);
  font-size: 0.93rem;
  margin-bottom: 18px;
}
.testimonial figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 14px; }
.testimonial strong { color: var(--navy); font-size: 0.95rem; }
.testimonial span { color: var(--text-light); font-size: 0.8rem; }

/* ===== تماس ===== */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { font-size: 1.9rem; margin: 10px 0 14px; }
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.92rem;
}
.contact-list span { font-size: 1.1rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-success {
  margin-top: 16px;
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  text-align: center;
}

/* ===== پابرگ ===== */
.footer { background: var(--navy-dark); color: #b8c6d4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding: 60px 20px 40px;
}
.footer-logo { color: var(--white); margin-bottom: 14px; }
.footer-logo strong { font-size: 1.2rem; }
.footer-about p { font-size: 0.85rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: #b8c6d4;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.iban {
  direction: ltr;
  text-align: right;
  font-family: monospace, 'Vazirmatn';
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.footer-contact p { font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== فعالیت‌ها (خط زمانی) ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline-item { display: flex; flex-direction: column; }
.timeline-year {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 18px;
  border-radius: 10px 10px 0 0;
  margin-inline-start: 18px;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  flex: 1;
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.timeline-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.timeline-card p { color: var(--text-light); font-size: 0.88rem; }

/* ===== کادر ما ===== */
.team { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  margin: 0 auto 16px;
  border: 3px solid var(--gold-light);
}
.team-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.team-card p { color: var(--text-light); font-size: 0.85rem; }
.team-note {
  text-align: center;
  margin-top: 36px;
  background: var(--white);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 24px;
  color: var(--text);
  font-size: 0.92rem;
}

/* ===== گالری ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 4px 14px rgba(31, 59, 87, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(31, 59, 87, 0.14); }
.gallery-emoji { font-size: 3.2rem; }
.gallery-item figcaption {
  padding: 10px 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.gallery-item.photo .gallery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  background: var(--cream);
  cursor: zoom-in;
}
.gallery-item.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 20px;
}

/* ===== فعالیت‌های انجام‌شده ===== */
.portfolio-group { margin-bottom: 54px; }
.portfolio-group:last-child { margin-bottom: 0; }
.portfolio-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 22px;
  margin-bottom: 22px;
}
.portfolio-subtitle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.portfolio-note {
  color: var(--text-light);
  font-size: 0.85rem;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 20px;
}
.portfolio-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ===== لایت‌باکس ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 30, 0.94);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: var(--white);
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close {
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
}
.portfolio-grid .gallery-item.photo {
  border-radius: 20px;
}
.portfolio-grid .gallery-item.photo figcaption {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ===== نقشه ===== */
.map-box {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}
.map-box iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}
.map-link {
  display: block;
  text-align: center;
  padding: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.map-link:hover { color: var(--navy); }

/* ===== واکنش‌گرا ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 110px; }
  .hero-art { display: none; }
  .about-grid, .services-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .topbar-note { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; margin-inline-start: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero-trust { gap: 24px; }
  .about-grid, .services-grid, .testimonial-grid, .help-grid { grid-template-columns: 1fr; }
  .timeline, .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.photo .gallery-link { height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .help-banner { padding: 30px 24px; }
}
