/* Offline Vazirmatn Font for Farsi */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Offline Roboto Font */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Custom Language Dropdown */
.custom-lang-dropdown {
  position: relative;
  min-width: 120px;
  user-select: none;
  cursor: pointer;
}

.custom-lang-selected {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #f9f9f9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.4em 1.2em;
  font-size: 1em;
  color: #333;
  font-weight: 500;
}

.custom-lang-dropdown:focus .custom-lang-selected,
.custom-lang-dropdown:hover .custom-lang-selected {
  border-color: #4F46E5;
  background: #eef2ff;
  box-shadow: 0 0 0 2px #e0e7ff;
}

.custom-lang-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 10;
  min-width: 100%;
}

.custom-lang-dropdown.open .custom-lang-options {
  display: block;
}

.custom-lang-option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.2em;
  font-size: 1em;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}

.custom-lang-option:hover {
  background: #eef2ff;
}

.custom-lang-flag {
  width: 20px;
  height: 14px;
  vertical-align: middle;
}

/* Muted Subtitle in CTA Section */
.cta-section__subtitle--muted {
  color: #666;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Header Block */
.header {
  background: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  background: url('images/logo.jpg') center/cover;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  background: #4F46E5;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.header__cta:hover {
  background: #4338CA;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: center;
}

.hero__content {
  max-width: 700px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #D4A574 0%, #C19A6B 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/1.webp') center/cover;
}

/* Specialties Popup */
.specialties-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.specialties-popup.active {
  display: block;
}

.specialties-popup__content {
  background: white;
  max-width: 900px;
  width: calc(100% - 2rem);
  margin: 1rem auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.specialties-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 1;
}

/* RTL support for close button */
[lang="fa"] .specialties-popup__close {
  right: auto;
  left: 1rem;
}

.specialties-popup__close:hover {
  background: #e5e7eb;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.specialty-item {
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.specialty-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.specialty-item__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specialty-item__description {
  color: #666;
  line-height: 1.6;
}

.specialties-trigger {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.specialties-trigger:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.specialties-trigger .service-card__features {
  color: #4F46E5;
  font-weight: 500;
}

.specialties-trigger:hover .service-card__features {
  color: #4338CA;
}

/* Services Section */
.services,
.process {
  padding: 3rem 0;
}

.services {
  background: #f9fafb;
}

.services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}

.services__subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
}

.service-card__description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card__features {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: #f9fafb;
}

.cta-section__content {
  max-width: 500px;
}

.cta-section__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-section__subtitle {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-section__btn {
  background: #4F46E5;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background 0.3s ease;
}

.cta-section__btn:hover {
  background: #4338CA;
}

.cta-section__image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cta-section__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/3.webp') center/cover;
}

/* Packages Section */
.packages {
  padding: 3rem 0;
}

.packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.package-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.package-card__sessions {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4F46E5;
  margin-bottom: 0.5rem;
}

.package-card__title {
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 1rem;
}

.package-card__discount {
  background: #4F46E5;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.package-card__description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.package-card__button {
  background: transparent;
  color: #4F46E5;
  border: 2px solid #4F46E5;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.package-card__button:hover {
  background: #4F46E5;
  color: white;
}

.package-card__badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: #22c55e;
  color: white;
  padding: 0.25rem 3rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .packages__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* FAQ Section */
.faq {
  padding: 3rem 0;
  background: #f9fafb;
}

.faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.faq__content {
  max-width: 400px;
}

.faq__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

.faq__subtitle {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.faq__questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq__question {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.faq__question-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.faq__question-text {
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 3rem 0;
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact__content {
  max-width: 400px;
}

.contact__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

.contact__subtitle {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__icon {
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact__details {
  flex: 1;
}

.contact__label {
  font-weight: 600;
  color: #111;
  margin-bottom: 0.2rem;
}

.contact__value {
  color: #666;
  font-size: 0.9rem;
}

.contact__image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/2.webp') center/cover;
}

/* Footer */
.footer {
  background: #111;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__logo {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: white;
}

.footer__copyright {
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {

  .hero__container,
  .cta-section,
  .faq__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .services__title,
  .cta-section__title,
  .faq__title,
  .contact__title {
    font-size: 2rem;
  }

  .header__nav-links {
    display: none;
  }

  .header__nav {
    display: flex;
    justify-content: flex-end;
  }

  .footer__nav {
    flex-direction: column;
    gap: 1rem;
  }

  /* Mobile Popup Adjustments */
  .specialties-popup__content {
    margin: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 1.5rem;
  }

  .specialties-popup__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  [lang="fa"] .specialties-popup__close {
    right: auto;
    left: 0.75rem;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .specialty-item {
    padding: 1rem;
  }

  .specialty-item__title {
    font-size: 1.1rem;
  }

  .specialty-item__description {
    font-size: 0.95rem;
  }
}
