/* eMigrant product page. Builds on crest-product.css (shared .crx layout) and is loaded only by templates/emigrant.html. */

/* OMFYS palette: the homepage eMigrant red, warm neutrals and the site's yellow heading underline. */
.emx {
  --crx-maroon: #9d2f2f;
  --crx-maroon-hover: #7e2424;
  --crx-maroon-tint: #f8eded;
  --emx-maroon-deep: #6f1f1f;
  --emx-yellow: #f0d77a;
}

/* ---------- Hero ---------- */

.emx-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 64px); }
.emx-hero::before { display: none; }

.emx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.emx-subtitle {
  color: var(--crx-maroon) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.emx-headline {
  margin-top: 10px !important;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  text-wrap: balance;
}

.emx-headline::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 16px;
  background: var(--emx-yellow);
}

.emx-lead {
  max-width: 540px;
  margin-top: 18px !important;
  font-size: 18px;
  line-height: 1.7;
}

.emx-ticks {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
  margin-top: 22px !important;
}

.emx-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--crx-ink);
  font-size: 15px;
  font-weight: 700;
}

.emx-ticks .fa { color: var(--crx-maroon); font-size: 13px; }

.emx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 30px;
}

.emx .crx-btn--primary { box-shadow: none; }

.emx-text-link {
  color: var(--crx-ink) !important;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--emx-yellow);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.emx-text-link:hover,
.emx-text-link:focus-visible { color: var(--crx-maroon) !important; }

/* Supporting message from the brand slide, set as a plain side note. */
.emx-note {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--crx-line);
  border-left: 4px solid var(--crx-maroon);
  border-radius: 6px 14px 14px 6px;
  background: var(--crx-warm);
}

.emx-note h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
}

.emx-note p {
  margin-top: 12px !important;
  font-size: 16px;
  line-height: 1.7;
}

.emx-note .emx-note-foot {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid var(--crx-line);
  color: var(--crx-muted) !important;
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- Features ---------- */

.emx-features { background: var(--crx-warm); }
.emx-head { max-width: 820px; }

.emx-intro {
  margin-top: 16px !important;
  font-size: 17px;
  line-height: 1.7;
}

.emx .crx-cap:hover .crx-cap-num,
.emx .crx-cap:hover h3 { color: var(--crx-maroon); }

/* ---------- Connected approach ---------- */

.emx-approach { padding-bottom: clamp(32px, 4vw, 56px); }
.emx .crx-stage p { font-size: 14.5px; line-height: 1.65; }

/* ---------- Who it's for ---------- */

.emx-people {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
  background: var(--crx-warm);
}

.emx-people-lead {
  max-width: 640px;
  margin: 16px auto 0 !important;
  font-size: 18px;
  text-align: center !important;
}

.emx-people-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.emx-person {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--crx-line);
  border-radius: var(--crx-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--crx-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Red top edge draws in on hover. */
.emx-person::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crx-maroon), var(--crx-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--crx-ease);
}

.emx-person:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 47, 47, 0.25);
  box-shadow: 0 24px 40px -30px rgba(45, 25, 30, 0.5);
}

.emx-person:hover::before { transform: scaleX(1); }

.emx-person-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--crx-maroon-tint);
  color: var(--crx-maroon);
  font-size: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.emx-person:hover .emx-person-icon { background: var(--crx-maroon); color: #fff; }

.emx-person h3 {
  font-size: 20px;
  line-height: 1.3;
}

.emx-person p {
  margin-top: 10px !important;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Closing call to action. */
.emx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 1000px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.5vw, 44px);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--crx-maroon) 0%, var(--emx-maroon-deep) 100%);
  box-shadow: 0 26px 50px -32px rgba(111, 31, 31, 0.7);
}

.emx-cta-title {
  color: #fff !important;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.emx-cta-text {
  margin-top: 6px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 16px;
}

.emx-cta-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--emx-yellow);
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.emx-cta-text a:hover,
.emx-cta-text a:focus-visible { color: var(--emx-yellow); }

.emx-btn-light {
  background: #fff;
  color: var(--crx-maroon) !important;
}

.emx-btn-light:hover,
.emx-btn-light:focus-visible {
  background: #fff7e0;
  transform: translateY(-2px);
}

.emx-cta a:focus-visible { outline-color: rgba(240, 215, 122, 0.8); }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .emx-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .emx-lead { font-size: 16px; }
  .emx-ticks { grid-template-columns: minmax(0, 1fr); }
  .emx-hero-actions .crx-btn { flex: 1 1 100%; }
  .emx-people-lead { font-size: 16px; }
  .emx-people-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .emx-person { padding: 24px 20px; }
  .emx-cta { padding: 24px 20px; }
  .emx-cta .crx-btn { flex: 1 1 100%; }
}
