/* WordPress / Astra overrides when using Moytay homepage template */

body.moytay-home-template {
  font-family: var(--font-iran, 'IRANFamilyTypeface', Tahoma, sans-serif);
  overflow-x: hidden;
}

body.moytay-home-template .site-content,
body.moytay-home-template #content,
body.moytay-home-template .ast-container,
body.moytay-home-template .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body.moytay-home-template article.page,
body.moytay-home-template .ast-article-single {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.moytay-home-template .entry-header,
body.moytay-home-template .ast-single-post .entry-header {
  display: none !important;
}

body.moytay-home-template #primary {
  margin: 0 !important;
  padding: 0 !important;
}

.moytay-home {
  width: 100%;
}

/* Beat Astra heading color (--ast-global-color-2) on dark gym sections */
body.moytay-home-template .gym-features__title,
body.moytay-home-template .gym-features__lead,
body.moytay-home-template .gym-feature__name,
body.moytay-home-template .gym-feature__body p,
body.moytay-home-template .gym-schedule__title,
body.moytay-home-template .gym-students__title {
  color: #fff;
}

/*
 * Hero: full-bleed banner (no side gaps). Ratio matches typical slide ~1024×521.
 */
body.moytay-home-template #hero.moytay-hero {
  --moytay-hero-header: 5rem;
  --moytay-hero-ratio: 1024 / 521;
  padding-top: var(--moytay-hero-header);
  background: #121212;
}

body.moytay-home-template #hero .moytay-hero__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  background: #121212;
}

body.moytay-home-template #hero .hero-swiper {
  width: 100%;
  aspect-ratio: var(--moytay-hero-ratio);
  height: auto;
  max-height: none;
}

body.moytay-home-template #hero .hero-swiper .swiper-wrapper,
body.moytay-home-template #hero .hero-swiper .swiper-slide {
  height: 100%;
}

body.moytay-home-template #hero .moytay-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.moytay-home-template #hero .moytay-hero__img--static {
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: unset;
}

/* Mobile: safer gutters; same full-bleed ratio (no short crop) */
@media (max-width: 921px) {
  body.moytay-home-template #hero.moytay-hero {
    --moytay-hero-header: 4.25rem;
  }
}

@media (max-width: 640px) {
  body.moytay-home-template {
    --moytay-gutter: 1.5rem;
  }

  body.moytay-home-template .section-padding,
  body.moytay-home-template .gym-features,
  body.moytay-home-template .gym-schedule,
  body.moytay-home-template .gym-training,
  body.moytay-home-template .gym-history,
  body.moytay-home-template .gym-students {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  body.moytay-home-template #hero.moytay-hero {
    --moytay-hero-header: 4rem;
  }

  body.moytay-home-template #hero .moytay-hero__scroll {
    bottom: 0.75rem;
  }
}
