/* ICC home "next steps" cards - modern design.
   Loaded only when $ctaStyle = 'modern' in index.php (set it to 'classic' to revert). */

.cm-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #16322e 0%, #234e48 55%, #2b5c54 100%);
  isolation: isolate;
}

.cm-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cm-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.cm-orb-1 { width: 340px; height: 340px; top: -120px; left: -90px; background: #3fb7a3; opacity: .22; }
.cm-orb-2 { width: 360px; height: 360px; bottom: -150px; right: -100px; background: #f57450; opacity: .2; }

.cm-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

.cm-head { text-align: center; margin-bottom: 2.2rem; }
.cm-eyebrow {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffd9c9;
}
.cm-title {
  margin: .9rem 0 0;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: #fff;
}
.cm-title em {
  display: inline-block;
  padding: 0 .06em .14em 0;
  font-style: italic;
  background: linear-gradient(90deg, #ff8f6b, #ffd0a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.cm-card {
  --accent: #f57450;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
/* coloured top edge */
.cm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}
.cm-card:hover,
.cm-card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .14);
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .28), 0 0 0 1px var(--accent);
  color: #fff;
  outline: none;
}

.cm-coral { --accent: #f57450; }
.cm-teal { --accent: #3fb7a3; }
.cm-red { --accent: #ef4b5b; }

.cm-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  font-size: 1.25rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
}
.cm-card:hover .cm-icon { transform: rotate(-6deg) scale(1.08); }

.cm-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.cm-card p {
  margin: 0 0 1.2rem;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  flex: 1;
}

.cm-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.cm-cta .fa-arrow-right { font-size: .72rem; transition: transform .2s ease; }
.cm-card:hover .cm-cta .fa-arrow-right { transform: translateX(4px); }

@media (max-width: 860px) {
  .cm-section { padding: 3.2rem 0 3.6rem; }
  .cm-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-card, .cm-icon, .cm-cta .fa-arrow-right { transition: none !important; }
}
