/* =========================================================
   HOME 03: WHAT CAN WE HELP YOU WITH?
   File: /assets/css/help.css
   ========================================================= */

:root {
  --help-blue: #083E7F;
  --help-blue-dark: #052F61;
  --help-green: #00A86B;
  --help-green-dark: #008959;
  --help-ink: #172238;
  --help-text: #606B7A;
  --help-muted: #8791A0;
  --help-line: #E6ECF3;
  --help-soft: #F6F9FC;
  --help-white: #FFFFFF;
  --help-max: 1220px;
}

.emark-help {
  position: relative;
  padding: 94px 0 98px;
  background: var(--help-white);
  border-bottom: 1px solid var(--help-line);
}

.emark-help__container {
  width: min(calc(100% - 40px), var(--help-max));
  margin-inline: auto;
}

.emark-help__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.emark-help__eyebrow {
  margin: 0 0 12px;
  color: var(--help-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.emark-help h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--help-ink);
  font-size: clamp(2.15rem, 3.7vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.emark-help__intro {
  max-width: 520px;
  margin: 0 0 2px auto;
  color: var(--help-text);
  font-size: 1rem;
  line-height: 1.75;
}

.emark-help__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.emark-help-card {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--help-line);
  border-radius: 18px;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.emark-help-card::after {
  content: "";
  position: absolute;
  width: 125px;
  height: 125px;
  right: -62px;
  bottom: -63px;
  background: rgba(8, 62, 127, 0.035);
  border-radius: 50%;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.emark-help-card:hover {
  border-color: rgba(8, 62, 127, 0.18);
  box-shadow: 0 18px 42px rgba(18, 43, 73, 0.08);
  transform: translateY(-4px);
}

.emark-help-card:hover::after {
  background: rgba(0, 168, 107, 0.06);
  transform: scale(1.18);
}

.emark-help-card--accent {
  color: var(--help-white);
  background:
    radial-gradient(circle at 88% 15%, rgba(0,168,107,0.20), transparent 30%),
    linear-gradient(145deg, var(--help-blue-dark), var(--help-blue));
  border-color: transparent;
}

.emark-help-card--accent::after {
  background: rgba(255,255,255,0.04);
}

.emark-help-card__top {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 31px;
}

.emark-help-card__number {
  color: var(--help-green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.emark-help-card__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--help-blue);
  background: var(--help-soft);
  border: 1px solid rgba(8, 62, 127, 0.07);
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 850;
}

.emark-help-card h3 {
  max-width: 13ch;
  margin: 0 0 13px;
  color: var(--help-ink);
  font-size: 1.32rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.emark-help-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--help-text);
  font-size: 0.91rem;
  line-height: 1.68;
}

.emark-help-card__links {
  margin-top: auto;
}

.emark-help-card__link {
  position: relative;
  z-index: 2;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--help-blue);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.emark-help-card__link span {
  color: var(--help-green);
  transition: transform 150ms ease;
}

.emark-help-card__link:hover span,
.emark-help-card__link:focus-visible span {
  transform: translateX(3px);
}

.emark-help-card__link--secondary {
  display: block;
  margin-top: 8px;
  color: var(--help-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.emark-help-card--accent .emark-help-card__number {
  color: #8FE8C6;
}

.emark-help-card--accent .emark-help-card__mark {
  color: var(--help-white);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.12);
}

.emark-help-card--accent h3 {
  color: var(--help-white);
}

.emark-help-card--accent p {
  color: rgba(255,255,255,0.72);
}

.emark-help-card--accent .emark-help-card__link {
  color: var(--help-white);
}

.emark-help-card--accent .emark-help-card__link span {
  color: #8FE8C6;
}

.emark-help a:focus-visible {
  outline: 3px solid rgba(0, 168, 107, 0.28);
  outline-offset: 4px;
  border-radius: 5px;
}

/* Tablet */
@media (max-width: 1000px) {
  .emark-help__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .emark-help__intro {
    margin-left: 0;
  }

  .emark-help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .emark-help {
    padding: 72px 0 76px;
  }

  .emark-help__container {
    width: min(calc(100% - 28px), var(--help-max));
  }

  .emark-help__heading {
    margin-bottom: 31px;
  }

  .emark-help h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .emark-help__intro {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .emark-help__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .emark-help-card {
    min-height: 255px;
    padding: 23px;
  }

  .emark-help-card__top {
    margin-bottom: 25px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .emark-help-card,
  .emark-help-card::after,
  .emark-help-card__link span {
    transition-duration: 0.01ms !important;
  }
}

/* HOME 03 V2 client revision */

/* Vertically center the intro against the KEY SERVICES + H2 block */
/* HOME 03 heading alignment refinement */

.emark-help__heading {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 40px;
  align-items: center;
}

.emark-help__intro {
  max-width: 520px;
  margin: 0;
  text-align: left;
}

@media (max-width: 1000px) {
  .emark-help__heading {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .emark-help__intro {
    max-width: 650px;
    margin: 0;
  }
}
/* HOME 03 intro vertical fine-tuning */
@media (min-width: 1001px) {
  .emark-help__intro {
    transform: translateY(-22px);
  }
}