/* Minimal typography layer: slightly smaller display sizes, same rhythm. */

.hero-copy h1 {
  font-size: clamp(2rem, 3.7vw, 3.05rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.03em !important;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.55vw, 2.25rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

.page-head h1 {
  font-size: clamp(1.95rem, 3.5vw, 2.9rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.03em !important;
}

.course-detail h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

.cta h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem) !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em !important;
}

.about-copy h2,
.cert-copy h2,
.soon h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem) !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em !important;
}

.section-head {
  margin-bottom: clamp(1.5rem, 2.6vw, 2.2rem);
  padding-bottom: 0.9rem;
}

@media (max-width: 720px) {
  .hero-copy h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.35rem) !important;
  }

  .section-head h2,
  .page-head h1 {
    font-size: clamp(1.45rem, 7vw, 1.95rem) !important;
  }

  .course-detail h2,
  .about-copy h2,
  .cert-copy h2,
  .cta h2 {
    font-size: clamp(1.35rem, 6.4vw, 1.8rem) !important;
  }
}

/* ---------- ارتباط با ما ---------- */

.contact-section .section-head {
  margin-bottom: 1.4rem;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: stretch;
}

.contact-team {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: clamp(1.3rem, 2.6vw, 2rem);
}

.contact-team-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft, var(--line));
}

.contact-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.contact-team-head b {
  display: block;
  font-size: 0.95rem;
}

.contact-team-head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-team p {
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.9;
  max-width: 36rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  font-size: 0.72rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.social-pill svg {
  width: 16px;
  height: 16px;
}

.social-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.instagram-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.instagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}

.instagram-card:hover .instagram-grid img {
  transform: scale(1.03);
  opacity: 0.9;
}

.instagram-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.4rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 11, 12, 0.92));
}

.instagram-overlay svg {
  width: 20px;
  height: 20px;
  margin-bottom: 0.2rem;
}

.instagram-overlay b {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  direction: ltr;
  align-self: flex-end;
}

.instagram-overlay span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.contact-meta {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-meta > a,
.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-meta span {
  color: var(--muted);
  font-size: 0.62rem;
}

.contact-meta b {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-meta a:hover b {
  color: var(--accent);
}

@media (max-width: 900px) {
  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .instagram-card {
    min-height: 240px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.contact-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft, var(--line));
  border-bottom: 1px solid var(--line-soft, var(--line));
}

.contact-facts b {
  display: block;
  font-size: 1.15rem;
}

.contact-facts span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.contact-team .contact-actions {
  margin-top: auto;
  padding-top: 1.1rem;
}

.contact-team {
  justify-content: center;
}

.contact-team .contact-actions {
  margin-top: 1.1rem;
  padding-top: 0;
}

/* ---------- هیرو ---------- */

.hero-copy .lead {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
  padding: 0;
  border: 0;
  counter-reset: none;
}

.hero-stats .stat {
  position: relative;
  min-width: 0;
  padding: 0.8rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: var(--ash);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.hero-stats .stat:first-child {
  padding-inline-start: 0.85rem;
}

.hero-stats .stat::before {
  display: none;
}

.hero-stats .stat-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats .stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ash);
  color: var(--ink);
}

.hero-stats .stat-icon svg {
  width: 15px;
  height: 15px;
}

.hero-stats .stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-stats .stat > span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats .stat:nth-child(3),
  .hero-stats .stat:nth-child(4) {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .hero-stats .stat b {
    font-size: 1rem;
  }

  .hero-stats .stat > span {
    font-size: 0.62rem;
  }
}
