/* Home above-the-fold critical styles (keep small — full styles load deferred) */
.home-page {
  --home-inline: 1.15rem;
  --home-section-pad-y: 1.15rem;
  --home-hero-pad-top: calc(var(--home-section-pad-y) + 0.35rem);
}

.home-page #site-header {
  min-height: var(--site-header-height, 62px);
}

.home-page .catalog-fixed-background.catalog-bg--home {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 32rem 32rem at 12% 6%, rgba(129, 140, 248, 0.5), transparent 72%),
    radial-gradient(ellipse 28rem 28rem at 88% 12%, rgba(56, 189, 248, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(224, 231, 255, 0.95) 0%, rgba(240, 249, 255, 0.85) 45%, rgba(237, 233, 254, 0.9) 100%);
}

.home-page .main.home-main,
.home-page #site-header + .main.home-main {
  position: relative;
  background: transparent;
  overflow-x: hidden;
  padding-top: 0;
}

.index-page.home-page #site-header + .main.home-main {
  padding-top: 0;
}

.home-page .home-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  padding-top: 0;
  padding-bottom: 0.5rem;
  box-sizing: border-box;
  --home-content-max: 960px;
}

/* تمام‌عرض از اولین paint — قبل از home.css */
.home-page .glass-torn-section.home-panel,
.home-page .home-stack > .section.home-soft-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  box-sizing: border-box;
  border-radius: 0;
  border-inline: 0;
  background: rgba(255, 255, 255, 0.92);
}

.home-page .glass-torn-section.home-panel.home-hero,
.home-page #hero {
  position: relative;
  overflow: visible !important;
  min-height: 0;
}

.home-page .home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 26rem;
  margin-inline: auto;
  padding: 0 var(--home-inline);
  text-align: center;
}

.home-page .home-hero__visual {
  position: relative;
  margin-bottom: 0.65rem;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-page .home-hero__img {
  display: block;
  float: none;
  width: 14rem;
  height: 14rem;
  min-width: 14rem;
  min-height: 14rem;
  max-width: 100%;
  object-fit: contain;
}

.home-page .home-hero__brand {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4154f1;
}

.home-page .home-hero__title {
  margin: 0;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.45;
  color: #012970;
}

.home-page .home-hero__desc {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
}

.home-page .d-flex {
  display: flex !important;
}

.home-page .justify-content-center {
  justify-content: center !important;
}

.home-page #hero .home-hero__content,
.home-page #hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Contact — استایل اولیه قبل از bootstrap (جلوگیری از پرش فرم) */
.home-page .home-contact__layout {
  display: grid;
  gap: 0.85rem;
}

.home-page .home-contact__form {
  margin: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px -12px rgba(28, 18, 90, 0.18);
  box-sizing: border-box;
}

.home-page .home-contact__form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.home-page .home-contact__form .row > [class*="col-"] {
  flex: 1 1 100%;
  max-width: 100%;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .home-page .home-contact__form .row > .col-sm-6 {
    flex: 1 1 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }
}

.home-page .home-stack:has(> .home-panel--flush-footer:last-child) {
  padding-bottom: 0;
}

.home-page .main.home-main:has(.home-stack > .home-panel--flush-footer:last-child) {
  padding-bottom: 0;
}
