/* Home page sections */

.hero {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 320px;
  max-height: 78vh;
  overflow: hidden;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--color-slate-blue) 0%, var(--color-primary-dark) 72%);
  display: flex;
  align-items: flex-end;
}

.hero__media,
.hero__placeholder,
.hero__shade,
.hero__pattern {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  display: block;
}

.hero__placeholder {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(239, 242, 245, 0.22), transparent 42%),
    radial-gradient(ellipse at 88% 70%, rgba(181, 0, 0, 0.28), transparent 48%),
    linear-gradient(145deg, var(--color-slate-blue) 0%, var(--color-primary-dark) 80%);
}

.hero__shade {
  background:
    linear-gradient(
      105deg,
      rgba(26, 36, 46, 0.78) 0%,
      rgba(26, 36, 46, 0.55) 42%,
      rgba(61, 79, 92, 0.28) 72%,
      rgba(61, 79, 92, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(26, 36, 46, 0.18) 0%, transparent 48%, rgba(26, 36, 46, 0.38) 100%);
  pointer-events: none;
}

.hero--no-shade .hero__brand,
.hero--no-shade .hero__content h1,
.hero--no-shade .hero__sub {
  text-shadow: 0 1px 18px rgba(26, 36, 46, 0.55);
}

.hero__pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 46rem;
  margin-right: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 1px 12px rgba(61, 79, 92, 0.35);
}

.hero__content h1 {
  margin: 0 0 0.9rem;
  color: var(--color-white);
  text-wrap: balance;
}

.hero__sub {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: rgba(239, 242, 245, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__head--light h2,
.section__head--light .section__lead {
  color: var(--color-white);
}

.section__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-red);
}

.section__eyebrow--badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(181, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(181, 0, 0, 0.12);
}

.section__eyebrow--badge::before {
  content: "";
  width: 0.35rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--color-accent-red);
  box-shadow: 0 0 12px rgba(181, 0, 0, 0.45);
}

.section__head--light .section__eyebrow {
  color: var(--color-slate-blue);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.section__head--light .section__eyebrow::before {
  display: none;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__footer {
  margin: 2rem 0 0;
}

.section--cream,
.section--audience {
  background: var(--color-bg-light);
}

.section--cta {
  background:
    linear-gradient(180deg, var(--paper-2), var(--color-bg-light));
}

/* CTA panel */
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-white);
  border: 1px solid rgba(140, 156, 163, 0.45);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-soft);
}

.cta-panel__copy .section__lead {
  margin-bottom: 1.25rem;
}

.cta-panel__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  text-decoration: none;
}

.cta-panel__phone:hover {
  color: var(--color-primary-dark);
}

.cta-panel__form {
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(239, 242, 245, 0.78);
  border: 1px solid rgba(140, 156, 163, 0.4);
}

@media (max-width: 991.98px) {
  .hero {
    aspect-ratio: auto;
    min-height: min(78vh, 640px);
    max-height: none;
  }

  .hero__media img {
    object-position: 70% 40%;
  }

  .hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(26, 36, 46, 0.62) 0%,
        rgba(26, 36, 46, 0.48) 48%,
        rgba(26, 36, 46, 0.72) 100%
      ),
      linear-gradient(
        105deg,
        rgba(26, 36, 46, 0.4) 0%,
        rgba(61, 79, 92, 0.18) 100%
      );
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__media img {
    object-position: 72% 38%;
  }

  .cta-panel {
    padding: 1.15rem;
  }

  .cta-panel__form {
    padding: 0.95rem;
  }
}

@media (max-width: 479.98px) {
  .hero {
    min-height: 72vh;
  }

  .hero__content {
    padding-block: 1.75rem 2.25rem;
  }

  .hero__media img {
    object-position: 75% 36%;
  }
}
