/* Shared purple hero for public landing subpages (/clic-receptionist and MVC section pages). */

.cr-hero {
  --cr-purple: #673ab7;
  --cr-purple-deep: #3e1e8c;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cr-purple) 0%, var(--cr-purple-deep) 72%);
  color: #fff;
  /* Clear fixed landing navbar (#sticky) */
  padding: calc(var(--landing-nav-bar-height, 4.75rem) + clamp(2.25rem, 5vw, 4rem)) 0 clamp(3.5rem, 8vw, 6.5rem);
}

.cr-hero,
.cr-hero h1,
.cr-hero h2,
.cr-hero p,
.cr-hero .cr-hero__brand,
.cr-hero .cr-hero__title,
.cr-hero .cr-hero__lead {
  color: #fff !important;
}

.cr-hero__glow {
  position: absolute;
  inset: auto -10% -30% 35%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.cr-hero__brand {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 0.85rem;
  animation: cr-fade-up 0.7s ease both;
}

.cr-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 18ch;
  animation: cr-fade-up 0.75s ease 0.05s both;
}

.cr-hero__lead {
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.75rem;
  animation: cr-fade-up 0.8s ease 0.1s both;
}

.cr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: cr-fade-up 0.85s ease 0.15s both;
}

.cr-hero__actions .btn-outline-light {
  color: #fff;
}

.cr-hero__actions .btn-outline-light:hover,
.cr-hero__actions .btn-outline-light:active {
  color: #000;
}

.cr-hero__row {
  min-height: clamp(18rem, 42vw, 26rem);
}

.cr-hero__visual {
  display: flex;
  justify-content: center;
  animation: cr-fade-scale 0.9s ease 0.12s both;
}

@media (max-width: 991.98px) {
  .cr-hero__visual {
    order: -1;
  }

  .cr-hero__logo-stage {
    width: min(100%, 14rem);
  }
}

.cr-hero__logo-stage {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.cr-hero__logo-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(20, 8, 48, 0.28);
  transform: rotate(-6deg);
}

.cr-hero__logo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.cr-hero__logo {
  position: relative;
  z-index: 1;
  width: min(68%, 15.5rem);
  height: auto;
  border-radius: 1.35rem;
  filter: drop-shadow(0 10px 18px rgba(62, 30, 140, 0.25));
}

.cr-hero__mdi {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(68%, 15.5rem);
  aspect-ratio: 1;
  color: var(--cr-purple);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(62, 30, 140, 0.18));
}

.cr-hero__mdi .mdi {
  line-height: 1;
}

@keyframes cr-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cr-fade-scale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 575.98px) {
  .cr-hero__title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-hero__brand,
  .cr-hero__title,
  .cr-hero__lead,
  .cr-hero__actions,
  .cr-hero__visual {
    animation: none;
  }
}
