:root {
  --bg: #f4f4f4;
  --section-bg: #fdfdfd;
  --text: #333;
  --muted: #666;
  --accent: #c9a97c;
  --card-bg: #fff;
  --maxw: 1200px;
}

.dark-mode {
  --bg: #121212;
  --section-bg: #ffffff;
  --text: #eee;
  --muted: #eee;
  --card-bg: rgba(255, 255, 255, 0.1);
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/CDN/Vazir/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/CDN/Vazir/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Vazirmatn', system-ui;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.nav {
  position: fixed;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 120;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}

.dark-mode header.nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card-bg);
  overflow: hidden;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-title {
  font-weight: 700;
  color: var(--text);
}

.brand-title:hover {
  color: var(--accent);
}

.brand-subtitle {
  font-size: 12px !important;
}

nav.main-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav.main-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
}

nav.main-links a:hover {
  color: var(--accent);
}

.cta {
  background: var(--accent);
  color: #111;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  nav.main-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    background: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 10px;
  }
  .dark-mode nav.main-links {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

  nav.main-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .contact-number {
    display: none;
  }
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-number {
  font-size: 13px;
}

.hero {
  height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--bg);
}

.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-left {
  flex: 1;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

h1.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  margin: 0;
  color: var(--text);
}

p.hero-sub {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.9;
  margin-top: 18px;
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ghost {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: var(--text);
}

.hero-right {
  min-width: 260px;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.portrait-card {
  width: 100%;
  max-width: 420px;
  padding: 18px;
}

.portrait-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
}

.portrait-meta {
  padding-top: 12px;
}

.name {
  font-weight: 700;
  font-size: 1.1rem;
}

.life-dates {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 18px;
    padding: 28px 20px;
  }

  .hero-right {
    width: 100%;
    min-width: unset;
  }

  .portrait-card {
    max-width: unset;
  }

  .portrait-card img {
    height: 240px;
  }
}

.section {
  padding: 100px 0;
  container-type: inline-size;
  background: var(--bg);
  transition: background 0.3s;
}

.dark-mode .section {
  --section-bg: #141414;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--text);
}

.lead {
  color: var(--text);
  line-height: 1.9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.features-section {
  position: relative;
  padding: 50px 20px;
  background: var(--section-bg);
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.feature-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.feature-item h3 {
  color: var(--text);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--muted);
  font-size: 1em;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .features-section {
    padding: 30px 10px;
  }

  .feature-item {
    padding: 15px;
  }
}

.timeline-section {
  background: var(--bg);
  padding: 50px 0;
}

.main-timeline {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.main-timeline:before {
  content: "";
  display: block;
  width: 2px;
  height: 100%;
  background: var(--muted);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: auto;
  right: 50%;
}

.timeline {
  margin-bottom: 40px;
  position: relative;
}

.timeline:after {
  content: "";
  display: block;
  clear: both;
}

.icon {
  width: 18px;
  height: 18px;
  line-height: 18px;
  margin: auto;
  position: absolute;
  top: 0;
  left: auto;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
}

.icon:before,
.icon:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.33s;
}

.icon:before {
  background: var(--bg);
  border: 2px solid var(--text);
  left: 3px;
}

.icon:after {
  border: 2px solid var(--muted);
  left: -3px;
}

.timeline:hover .icon:before {
  left: -3px;
}

.timeline:hover .icon:after {
  left: 3px;
}

.date-content {
  width: 50%;
  float: right;
  margin-top: 22px;
  position: relative;
}

.date-content:before {
  content: "";
  width: 36.5%;
  height: 2px;
  background: var(--muted);
  margin: auto 0;
  position: absolute;
  top: 0;
  left: 10px;
  bottom: 0;
}

.date-outer {
  width: 125px;
  height: 125px;
  font-size: 16px;
  text-align: center;
  margin: auto;
  z-index: 1;
}

.date-outer:before,
.date-outer:after {
  content: "";
  width: 125px;
  height: 125px;
  margin: 0 auto;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.33s;
}

.date-outer:before {
  background: var(--bg);
  border: 2px solid var(--text);
  right: -6px;
}

.date-outer:after {
  border: 2px solid var(--muted);
  right: 6px;
}

.timeline:hover .date-outer:before {
  right: 6px;
}

.timeline:hover .date-outer:after {
  right: -6px;
}

.date {
  width: 100%;
  margin: auto;
  position: absolute;
  top: 27%;
  left: 0;
}

.month {
  font-size: 18px;
  font-weight: 700;
}

.year {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 36px;
}

.timeline-content {
  width: 50%;
  padding: 50px 50px 20px 50px;
  float: left;
  text-align: center;
}

.title {
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  margin: 0 0 15px 0;
  color: var(--text);
}

.description {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline:nth-child(2n) .date-content {
  float: left;
}

.timeline:nth-child(2n) .date-content:before {
  right: 10px;
  left: auto;
}

.timeline:nth-child(2n) .timeline-content {
  padding: 50px 40px 20px 50px;
  text-align: center;
}

@media (max-width: 991px) {
  .date-content {
    margin-top: 35px;
  }

  .date-content:before {
    width: 22.5%;
  }

  .timeline-content {
    padding: 10px 30px 10px 0;
  }

  .title {
    font-size: 17px;
  }

  .timeline:nth-child(2n) .timeline-content {
    padding: 10px 0 10px 30px;
  }
}

@media (max-width: 767px) {
  .main-timeline:before {
    margin: 0;
    right: 7px;
    left: auto;
  }

  .timeline {
    margin-bottom: 20px;
  }

  .icon {
    margin: auto 0;
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }

  .date-content {
    width: 95%;
    float: left;
    margin-top: 0;
  }

  .date-content:before {
    display: none;
  }

  .date-outer {
    width: 110px;
    height: 110px;
  }

  .date-outer:before,
  .date-outer:after {
    width: 110px;
    height: 110px;
  }

  .date {
    top: 30%;
  }

  .year {
    font-size: 24px;
  }

  .timeline-content,
  .timeline:nth-child(2n) .timeline-content {
    width: 95%;
    text-align: center;
    padding: 10px 0;
  }

  .title {
    margin-bottom: 10px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .25s;
}

.gallery img:hover {
  transform: scale(1.03);
}

@media (max-width:900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  place-items: center;
  z-index: 140;
}

.lightbox img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 10px;
}

footer {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}

.muted {
  color: var(--muted);
}

.section-columns {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width:1000px) {
  .section-columns {
    grid-template-columns: 1fr;
  }
}


.section-columns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.section-columns>div {
  max-width: 800px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  min-width: 160px;
}

.card:hover {
  transform: translateY(-4px);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  font-size: 1.1rem;
}

h2,
.lead {
  text-align: center;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 80px 0;
  background: var(--section-bg);
  transition: background 0.3s;
}

.section-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: right;
}

#about .section-columns {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.text-column {
  flex: 1;
}

.image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 70%;
  padding: 0;
  margin: 0;
}

.image-column img {
  max-width: 100%;
  height: auto;
}

h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
  font-family: 'Vazirmatn', sans-serif;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  transition: color 0.3s ease;
}

h2:hover {
  color: var(--accent);
  cursor: default;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

@media (max-width: 900px) {
  .section-columns {
    flex-direction: column;
    gap: 20px;
  }

  .image-column {
    max-width: 100%;
    order: 1;
  }
}

#stories .section-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: right;
}

#stories .image-column {
  order: -1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 70%;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  #stories .section-columns {
    flex-direction: column;
  }

  #stories .image-column {
    order: 1;
  }
}

.custom-bg {
  background-color: var(--bg);
}

#services .section-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: right;
}

#services .image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 60%;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  #services .section-columns {
    flex-direction: column;
  }

  #services .image-column {
    max-width: 100%;
    order: 1;
  }
}

.spacing-w {
  gap: 85px !important;
  max-width: 1200px !important;
}

#location .section-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: right;
}

#location .image-column {
  order: -1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 60%;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  #location .section-columns {
    flex-direction: column;
  }

  #location .image-column {
    order: 1;
    max-width: 100%;
  }
}

.footer {
  padding: 70px 0 25px;
  background: linear-gradient(180deg,
      #f3f3f3 0%,
      #f3f3f3 100%eaeaea);
  color: var(--text);
  border-top: 1px solid var(--accent);
}

.dark-mode .footer {
  background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(63, 63, 63, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.footer-desc {
  color: var(--muted);
  line-height: 1.9;
  max-width: 320px;
  font-size: .95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .97rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 4px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle.small {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.dark-mode .logo-circle.small {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  text-align: center;
  color: var(--muted);
}

.dark-mode .footer-bottom {
  border-color: rgba(255, 255, 255, 0.07);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-desc {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 50px 0 20px;
  }

  .footer-grid {
    gap: 30px;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-desc {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .footer-links li {
    font-size: 0.95rem;
  }

  .footer-bottom {
    margin-top: 30px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 15px;
  }

  .footer-grid {
    gap: 20px;
  }

  .logo-circle.small {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .footer-brand h3 {
    font-size: 1.2rem;
  }
}

.footer-links li {
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .97rem;

}

.footer-links li img {
  vertical-align: middle;
}

.simple-footer {
  padding: 12px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
}

.enamad-box {
  margin-top: 20px;
  text-align: right;
}

.enamad-box a {
  display: inline-block;
  line-height: 0;
}

.enamad-box img {
  display: block;
  max-width: 120px;
  height: auto;
  transition: transform 0.2s;
}

.enamad-box a:hover img {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .enamad-box {
    text-align: center;
  }

  .enamad-box img {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .enamad-box img {
    max-width: 90px;
  }
}

.features-title {
  text-align: center;
  font-size: 1.8em;
}


.lead-list {
  list-style-type: disc;
  margin-right: 20px;
  line-height: 1.8;
  text-wrap: no-wrap;
}

.laws-section {
  padding: 120px 0;
  /* بزرگتر از سکشن‌های معمولی */
}

.laws-list {
  list-style: none;
  margin-right: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.laws-list li {
  list-style: none;
  margin-bottom: 16px;
}

.glass-wa-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--main-text-color);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 16px;
  font-family: var(--desc-company-font-family);
  font-weight: 800;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  z-index: 1000;
}

.glass-wa-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.glass-wa-btn img {
  margin-left: 5px;
  width: 22px;
  height: 22px;
}

.glass-wa-btn span {
  display: inline;
  margin-top: 1px;
  font-size: 14px;
  font-family: 'Vazirmatn', system-ui;

}

@media screen and (max-width: 768px) {
  .glass-wa-btn {
    padding: 12px;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .glass-wa-btn span {
    display: none;
  }

  .glass-wa-btn img {
    margin-left: 0;
    margin-right: 0 !important;
  }
}

/* Sign In And Sign Up Btn */
.cta-btn {
  background: var(--accent);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  nav.main-links {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .mobile-only {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}