/*
 * Reusable system layer for future pages.
 *
 * Important:
 * - Opt-in only via widget preset classes.
 * - Existing pages remain on legacy styling unless a preset is selected.
 * - No page-id, Elementor document id, or Elementor element id selectors.
 */

.adrasa-hero--system-ready {
  --adrasa-hero-system-max: 1280px;
}

.adrasa-hero--system-ready > .container {
  max-width: min(var(--adrasa-hero-system-max), calc(100% - 40px));
}

.adrasa-hero--system-ready .adrasa-hero__title,
.adrasa-hero--system-ready .adrasa-hero__subtitle,
.adrasa-hero--system-ready .adrasa-hero__desc-block,
.adrasa-hero--system-ready .adrasa-hero__desc-col,
.adrasa-hero--system-ready .adrasa-hero__feature-card-title {
  max-width: 22ch;
}

.adrasa-hero--system-ready .adrasa-hero__desc-block,
.adrasa-hero--system-ready .adrasa-hero__desc-col,
.adrasa-hero--system-ready .adrasa-hero__desc-inline {
  max-width: 65ch;
}

.adrasa-hero--system-editorial {
  --adrasa-hero-title-size: clamp(54px, 6vw, 96px);
  --adrasa-hero-subtitle-size: clamp(26px, 2.8vw, 42px);
  --adrasa-hero-desc-size: clamp(16px, 1.15vw, 19px);
  --adrasa-hero-pad-top: clamp(72px, 8vw, 124px);
  --adrasa-hero-pad-bottom: clamp(56px, 5vw, 84px);
  --adrasa-hero-desc-gap: clamp(18px, 2vw, 32px);
  --adrasa-cta-gap: clamp(14px, 1.4vw, 20px);
}

.adrasa-hero--system-editorial .adrasa-hero__title {
  line-height: 0.94;
}

.adrasa-hero--system-editorial .adrasa-hero__buttons {
  margin-top: clamp(28px, 3vw, 40px);
}

.adrasa-hero--system-immersive-split.adrasa-hero--split {
  --adrasa-hero-title-size: clamp(56px, 6.4vw, 104px);
  --adrasa-hero-subtitle-size: clamp(24px, 2.4vw, 40px);
  --adrasa-hero-desc-size: clamp(16px, 1.05vw, 18px);
  --adrasa-hero-pad-top: clamp(84px, 9vw, 132px);
  --adrasa-hero-pad-bottom: clamp(64px, 6vw, 96px);
}

.adrasa-hero--system-immersive-split.adrasa-hero--split .adrasa-hero__split-row {
  align-items: end;
  gap: clamp(20px, 2vw, 32px);
}

.adrasa-hero--system-immersive-split.adrasa-hero--split .adrasa-hero__desc-col {
  font-size: clamp(16px, 1.05vw, 18px);
}

.adrasa-hero--system-feature-focus.adrasa-hero--feature-card {
  --adrasa-hero-title-size: clamp(50px, 5.2vw, 84px);
  --adrasa-hero-subtitle-size: clamp(24px, 2.2vw, 36px);
  --adrasa-hero-desc-size: clamp(16px, 1.05vw, 18px);
  --adrasa-hero-pad-top: clamp(72px, 8vw, 120px);
  --adrasa-hero-pad-bottom: clamp(56px, 5vw, 80px);
}

.adrasa-hero--system-feature-focus.adrasa-hero--feature-card .adrasa-hero__feature-row {
  align-items: stretch;
  gap: clamp(24px, 2.6vw, 40px);
}

.adrasa-hero--system-feature-focus.adrasa-hero--feature-card .adrasa-hero__feature-card {
  min-height: clamp(360px, 34vw, 540px);
  border-radius: clamp(16px, 1.5vw, 24px);
  overflow: hidden;
}

.adrasa-hero--system-feature-focus.adrasa-hero--feature-card .adrasa-hero__feature-card-title .adrasa-hero__title {
  max-width: none;
}

.adrasa-hero--system-compact-center.adrasa-hero--center {
  --adrasa-hero-title-size: clamp(42px, 4.8vw, 72px);
  --adrasa-hero-subtitle-size: clamp(20px, 2vw, 30px);
  --adrasa-hero-desc-size: clamp(15px, 1vw, 17px);
  --adrasa-hero-pad-top: clamp(52px, 5.4vw, 84px);
  --adrasa-hero-pad-bottom: clamp(44px, 4vw, 64px);
}

.adrasa-hero--system-compact-center.adrasa-hero--center .adrasa-hero__title,
.adrasa-hero--system-compact-center.adrasa-hero--center .adrasa-hero__subtitle,
.adrasa-hero--system-compact-center.adrasa-hero--center .adrasa-hero__desc-block {
  margin-inline: auto;
  text-align: center;
}

.adrasa-hero--system-compact-center.adrasa-hero--center .adrasa-hero__buttons,
.adrasa-hero--system-compact-center.adrasa-hero--center .adrasa-hero__certs {
  justify-content: center;
}

@media (max-width: 991.98px) {
  .adrasa-hero--system-ready > .container {
    max-width: calc(100% - 32px);
  }

  .adrasa-hero--system-ready .adrasa-hero__title,
  .adrasa-hero--system-ready .adrasa-hero__subtitle,
  .adrasa-hero--system-ready .adrasa-hero__desc-block,
  .adrasa-hero--system-ready .adrasa-hero__desc-col {
    max-width: none;
  }
}
