/**
 * Visitor-first workflow — matches prototype hero system site-wide.
 * 60% neutrals · 30% brand · 10% accent (sun gold CTAs only).
 */

/* ── Homepage hero tag + trust (prototype) ── */

.jem-rebrand .jem-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(244 197 66 / 18%);
  border: 1px solid rgb(244 197 66 / 35%);
  border-radius: 9999px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jem-sun);
  margin-bottom: 1.25rem;
}

.jem-rebrand .jem-hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jem-sun);
  flex-shrink: 0;
}

.jem-rebrand .jem-hero-trust {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(255 255 255 / 60%);
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jem-rebrand .jem-hero-trust::before {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1px;
  background: rgb(244 197 66 / 55%);
  flex-shrink: 0;
}

/* ── Inner page cinematic hero (prototype glass) ── */

.jem-rebrand .jem-inner-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: clamp(440px, 58vh, 620px) !important;
  display: flex !important;
  align-items: flex-end !important;
  padding-block: clamp(3rem, 8vw, 5rem) !important;
  background: var(--jem-navy-deep) !important;
  border: none !important;
}

.jem-rebrand .jem-inner-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.jem-rebrand .jem-inner-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.02);
}

.jem-rebrand .jem-inner-hero-has-photo > .elementor-container {
  position: relative;
  z-index: 2;
}

.jem-rebrand .jem-inner-hero > .elementor-container {
  max-width: var(--jem-max, 72rem) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: var(--jem-gutter, clamp(1.25rem, 4vw, 2.5rem)) !important;
  justify-content: flex-start !important;
}

.jem-rebrand .jem-inner-hero .elementor-background-overlay {
  z-index: 1;
  background: linear-gradient(
    118deg,
    rgb(27 58 92 / 90%) 0%,
    rgb(123 75 148 / 58%) 42%,
    rgb(27 58 92 / 72%) 100%
  ) !important;
  opacity: 1 !important;
}

.jem-rebrand .jem-inner-hero-glass {
  max-width: 44rem;
  margin-inline: 0;
  text-align: left;
  background: rgb(27 58 92 / 48%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--jem-radius-2xl, 1.5rem);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 24px 64px rgb(27 58 92 / 28%);
}

.jem-rebrand .jem-hero-eyebrow {
  color: var(--jem-sun) !important;
  margin-bottom: 0.85rem;
}

.jem-rebrand .jem-inner-hero .elementor-heading-title {
  font-family: var(--jem-display) !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
  line-height: 1.08 !important;
  color: #fff !important;
  max-width: none;
  margin-inline: 0;
}

.jem-rebrand .jem-inner-hero .jem-hero-subhead {
  margin: 1rem 0 0;
  max-width: none;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: rgb(255 255 255 / 88%);
}

.jem-rebrand .jem-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.jem-rebrand .jem-hero-phone {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--jem-sun);
  border-bottom: 1.5px solid rgb(244 197 66 / 40%);
  padding-bottom: 1px;
  text-decoration: none;
}

.jem-rebrand .jem-hero-phone:hover {
  color: #fff;
}

.jem-rebrand .jem-inner-hero .jem-hero-trust {
  justify-content: center;
  margin-top: 1.25rem;
}

/* ── Homepage hero H1 ── */

.jem-rebrand .jem-hero-h1 {
  font-family: var(--jem-display) !important;
}

.jem-rebrand .jem-hero-slides .elementor-slide-heading.jem-hero-h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem) !important;
}

/* ── CTAs — 10% accent, max contrast ── */

.jem-rebrand .jem-header-cta.elementor-button,
.jem-rebrand .jem-hero-cta.elementor-button,
.jem-rebrand .jem-hero-cta.elementor-slide-button,
.jem-rebrand .jem-inline-cta .elementor-button,
.jem-rebrand .jem-final-cta .elementor-button,
.jem-rebrand .elementor-form .jem-hero-cta {
  background: var(--jem-gradient-warm) !important;
  color: var(--jem-navy) !important;
  font-weight: 700 !important;
  border: 2px solid rgb(27 58 92 / 12%) !important;
  box-shadow: 0 6px 22px rgb(244 197 66 / 42%) !important;
  border-radius: 9999px !important;
}

.jem-rebrand .jem-header-cta.elementor-button:hover,
.jem-rebrand .jem-hero-cta.elementor-button:hover,
.jem-rebrand .jem-hero-cta.elementor-slide-button:hover,
.jem-rebrand .jem-inline-cta .elementor-button:hover,
.jem-rebrand .jem-final-cta .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(244 197 66 / 50%) !important;
}

.jem-rebrand .jem-inline-cta {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.jem-rebrand .jem-cta-motivation {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--jem-muted);
}

/* ── Content bands (60% neutral) ── */

.jem-rebrand .jem-band-cream {
  background: var(--jem-cream) !important;
}

.jem-rebrand .jem-band-lavender {
  background: var(--jem-lavender) !important;
}

.jem-rebrand .jem-content-section {
  padding-block: clamp(3rem, 7vw, 5rem) !important;
}

.jem-rebrand .jem-content-section > .elementor-container,
.jem-rebrand .jem-content-section > .e-con-inner {
  max-width: var(--jem-max, 72rem) !important;
  margin-inline: auto !important;
}

/* ── Lead copy + scan lists ── */

.jem-rebrand .jem-lead-copy {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  color: var(--jem-navy) !important;
  max-width: 44rem;
}

.jem-rebrand .jem-scan-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.jem-rebrand .jem-scan-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--jem-surface);
  border: 1px solid var(--jem-border);
  border-radius: var(--jem-radius, 1rem);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--jem-muted);
}

.jem-rebrand .jem-scan-list li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jem-purple);
}

.jem-rebrand .jem-scan-list li strong {
  color: var(--jem-navy);
}

/* ── Section headings (H2 guides) ── */

.jem-rebrand .jem-page-home .jem-section-heading .elementor-heading-title,
.jem-rebrand .jem-content-section .jem-section-heading .elementor-heading-title {
  font-family: var(--jem-display) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  line-height: 1.12 !important;
  color: var(--jem-navy) !important;
}

.jem-rebrand .jem-content-section .jem-section-heading {
  margin-bottom: 1.5rem !important;
}

/* ── Final CTA band (prototype) ── */

.jem-rebrand .jem-final-cta {
  background: var(--jem-gradient-brand);
  padding-block: clamp(4rem, 9vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jem-rebrand .jem-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgb(45 168 155 / 12%), transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgb(244 197 66 / 8%), transparent 55%);
  pointer-events: none;
}

.jem-rebrand .jem-final-cta-inner {
  position: relative;
  max-width: var(--jem-max, 72rem);
  margin-inline: auto;
  padding-inline: var(--jem-gutter, clamp(1.25rem, 4vw, 2.5rem));
}

.jem-rebrand .jem-final-cta h2 {
  font-family: var(--jem-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.jem-rebrand .jem-final-cta p {
  font-size: 1.1rem;
  color: rgb(255 255 255 / 82%);
  margin: 0 auto 2.25rem;
  max-width: 36rem;
}

.jem-rebrand .jem-final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.jem-rebrand .jem-final-cta-phone-lbl {
  display: block;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 60%);
  margin-bottom: 0.25rem;
}

.jem-rebrand .jem-final-cta-phone a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jem-sun);
  border-bottom: 1.5px solid rgb(244 197 66 / 40%);
  padding-bottom: 2px;
  text-decoration: none;
}

.jem-rebrand .jem-final-cta-phone a:hover {
  color: #fff;
}

/* ── Contact page hero variant ── */

.jem-rebrand .jem-page-contact .jem-inner-hero .jem-hero-actions {
  display: none;
}

@media (max-width: 720px) {
  .jem-rebrand .jem-inner-hero-glass {
    padding: 1.5rem;
    text-align: center;
    margin-inline: auto;
  }

  .jem-rebrand .jem-hero-actions {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
}
