@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1b2c27;
  --muted: #5f6b64;
  --bg: #f6f5f0;
  --surface: #ffffff;
  --tint: #eeefe8;
  --line: #dcdfd4;
  --green: #163d32;
  --green-deep: #0f2a23;
  --gold: #b08f52;
  --gold-soft: #d8c39a;
  --off: #7a6b4e;
  --radius: 6px;
  --shell: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  right: 16px;
  z-index: 100;
  background: var(--gold);
  color: var(--green-deep);
  padding: 10px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Preview bar */
.preview-bar {
  background: var(--green-deep);
  color: #c9d6cd;
  text-align: center;
  font-size: 13px;
  padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand-mark i {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  position: relative;
}
.brand-mark i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.brand-text strong { display: block; font-size: 17px; line-height: 1.4; }
.brand-text small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}
.site-nav a { transition: color .2s; }
.site-nav a:hover { color: var(--gold); }

.header-status {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--off);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 4px 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-inline-start: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--green-deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 42, 35, .97) 30%, rgba(22, 61, 50, .75)),
    repeating-radial-gradient(circle at 80% 40%, transparent 0 60px, rgba(216, 195, 154, .08) 61px 62px);
}
.hero-inner { position: relative; padding: 110px 0 120px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  color: var(--gold-soft);
  font-size: 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero-lead {
  margin-top: 22px;
  color: #c9d6cd;
  font-size: 17px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #9c7d43; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Disciplines strip */
.disciplines { background: var(--green); color: #e8ece6; }
.disciplines-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 60px;
  font-size: 15px;
}
.disciplines-inner span + span::before {
  content: "◆";
  color: var(--gold);
  font-size: 9px;
  margin-inline-start: -16px;
  margin-inline-end: 16px;
  vertical-align: middle;
}
.disciplines-inner small {
  margin-inline-start: auto;
  color: #a9bdb0;
  font-size: 13px;
}

/* Sections */
.section { padding: 88px 0; }
.section-tinted { background: var(--tint); }
.section-dark { background: var(--green-deep); color: #eef1ec; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head p { color: var(--muted); font-size: 15px; max-width: 420px; }
.section-dark .section-head p { color: #a9bdb0; }
.kicker { color: var(--gold); font-size: 14px; margin-bottom: 6px; }
.section-head h2 { font-size: 32px; line-height: 1.5; font-weight: 800; }

.status {
  display: inline-block;
  font-size: 13px;
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-off { background: #ebe6d8; color: var(--off); }

.pill {
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--muted);
}

.footnote { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 130px;
  justify-content: space-between;
}
.service-name { font-weight: 700; font-size: 16px; }

/* Notice */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fbf7ec;
  border: 1px solid var(--gold-soft);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  margin-bottom: 26px;
}
.notice strong { color: #6e5726; white-space: nowrap; }

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-card h3 { font-size: 20px; }
.course-card p { color: var(--muted); font-size: 15px; }
.course-card .status { align-self: flex-start; margin-top: 6px; }

/* Empty state */
.empty-state {
  border: 1px dashed #c3c9bb;
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

/* Events */
.event-list { border-top: 1px solid var(--line); }
.event-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.event-date {
  min-width: 110px;
  text-align: center;
  padding-inline-end: 24px;
  border-inline-end: 1px solid var(--line);
}
.event-date strong { display: block; font-size: 28px; font-weight: 300; color: var(--gold); }
.event-date small { color: var(--muted); font-size: 13px; }
.event-body { flex: 1; min-width: 220px; }
.event-body h3 { font-size: 18px; }
.event-body p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.board-card {
  background: #1a3a30;
  border: 1px solid #2d4e42;
  border-radius: var(--radius);
  padding: 24px;
}
.board-card h3 { font-size: 18px; }
.board-card p { color: #a9bdb0; font-size: 14px; margin-top: 6px; }

.subhead { font-size: 18px; margin: 44px 0 18px; color: var(--gold-soft); }

.committee-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}
.committee-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid #2d4e42;
  padding-top: 16px;
}
.committee-no { color: var(--gold-soft); font-size: 18px; min-width: 30px; }
.committee-list h4 { font-size: 16px; font-weight: 600; }
.committee-list p { color: #a9bdb0; font-size: 14px; }

/* Hall figure */
.hall { margin: 48px 0 0; border-radius: var(--radius); overflow: hidden; background: #123027; }
.hall img { display: block; width: 100%; height: auto; }
.hall figcaption { padding: 16px 20px; font-size: 14px; color: #b9cdbd; }
.hall figcaption strong { display: block; color: var(--gold-soft); margin-bottom: 4px; }

/* CTA */
.cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0;
  flex-wrap: wrap;
}
.cta h2 { font-size: 26px; }
.cta p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .service-list { grid-template-columns: repeat(3, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .committee-list { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 800px) {
  .menu-toggle { display: flex; }
  .header-status { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .header-inner { position: relative; }
  .hero-inner { padding: 80px 0 90px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 64px 0; }
  .course-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15px; }
  .service-list { grid-template-columns: 1fr; }
  .board-grid, .committee-list { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .disciplines-inner small { margin-inline-start: 0; }
  .notice { flex-direction: column; gap: 6px; }
  .event-date { min-width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
