/* ================================
   How Might We • Centered Layout
   Scope: .hmw
================================== */
/* ================================
   How Might We • Final Section
   Scope: .hmw
================================== */

.hmw {
  --rail-max:1120px;
  --panel:#dbe6eb;
  --card:#ffffff;
  --outline:#FF6C63;
  --brand:#165C7D;
  --ink-900:#111827;
  --ink-700:#374151;
  --radius:10px;
  --shadow:0 8px 22px rgba(2, 12, 27, .08);

  --sectionPad: clamp(40px, 5vw, 72px);
  --pillRise: 14px; /* pill sits above the card */

  padding-top: max(12px, calc(var(--sectionPad) - var(--pillRise)));
  padding-bottom: var(--sectionPad);

  color: var(--ink-900);
  font-family: "Montserrat";
}

.hmw .hmw__rail-5 {
  max-width: var(--rail-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* Card */
.hmw .hmw-card-hmw {
  position: relative;
  width: min(920px, 100%);
  margin-inline: auto;
  background: var(--card);
  border: 2px solid var(--outline);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    var(--shadow),
    inset 0 0 120px rgba(255,108,99,.10),
    inset 0 0 160px rgba(57,143,186,.12);
  padding: clamp(22px, 4vw, 40px);
  font-size: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Pill label */
.hmw .hmw-card-hmw::before {
  content: "How Might We";
  position: absolute;
  top: calc(-1 * var(--pillRise));
  left: 28px;
  padding: .45rem .85rem;
  background: var(--outline);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 8px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(30,117,255,.25);
}

/* Hidden H2 for accessibility */
.hmw .hmw-card__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Main question text */
.hmw .hmw-card__body {
  margin: 0;
  color: var(--brand);
  font-weight: 300;
  font-size: clamp(26px, 3.7vw, 34px);
  line-height: 1.45;
  text-wrap: pretty;
}

.hmw .hmw-card__body strong {
  font-weight: 700;
  color: #FF6C63;
}

/* Supporting line */
.hmw .hmw-card__final {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #6a7284;
}

/* Hover effect */
.hmw .hmw-card-hmw:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0,0,0,.14),
    inset 0 0 120px rgba(255,108,99,.10),
    inset 0 0 160px rgba(57,143,186,.12);
}

/* Small screens */
@media (max-width:560px) {
  .hmw {
    --pillRise: 12px;
    --sectionPad: 40px;
  }
  .hmw .hmw-card-hmw { padding: 18px; }
  .hmw .hmw-card-hmw::before { left: 18px; font-size: 13px; }
}


/* ===============================
   SOLUTION OVERVIEW
   =============================== */
.solution{
  --sol-max: 1160px;
  --sol-pad: clamp(16px, 4vw, 48px);
  --sol-ink: #2b3147;
  --sol-ink-muted: #6a7284;
  --sol-blue: #398FBA;
  --sol-coral: #FF6C63;
  --sol-surface: #ffffff;
  --sol-surface-soft: #e7f0f4;
  --sol-radius: 10px;
  --sol-shadow: 0 10px 28px rgba(0,0,0,.08);

  font-family: 'Montserrat', sans-serif;
  color: var(--sol-ink);
  padding: clamp(40px, 6vw, 80px) var(--sol-pad);
}

.solution .solution__rail{
  max-width: var(--sol-max);
  margin: 0 auto;
}

.solution .solution-card{
  position: relative;
  border: 1px solid rgba(57,143,186,.18);
  border-radius: var(--sol-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

/* soft animated glow behind the card */
.solution .solution-card::before{
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  animation: solGlow 7s ease-in-out infinite;
}

.solution .solution-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  border-color: rgba(57,143,186,.32);
}

/* Title with shimmer underline */
.solution .solution__title{
  position: relative;
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--sol-ink);
}
.solution .solution__title::after{
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 96px; height: 3px;
  border-radius: 10px;
  animation: solBar 3.75s ease-in-out infinite;
}

/* Body copy */
.solution .solution__body{
  margin: 14px 0 12px 0;
  line-height: 1.65;
  color: var(--sol-ink);
}

/* Feature list with staggered fade up */
.solution .solution__list{
  display: grid;
  gap: 10px;
  margin: 8px 0 10px 0;
  padding-left: 18px;
}
.solution .solution__item{
  opacity: 0;
  transform: translateY(12px);
  animation: solFadeUp .6s ease forwards;
}
.solution .solution__item:nth-child(1){ animation-delay: .05s; }
.solution .solution__item:nth-child(2){ animation-delay: .15s; }
.solution .solution__item:nth-child(3){ animation-delay: .25s; }
.solution .solution__item:nth-child(4){ animation-delay: .35s; }

/* Final line */
.solution .solution__final{
  margin: 10px 0 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sol-ink-muted);
}

/* Keyframes */
@keyframes solGlow{
  0%   { opacity: .0; transform: translateY(2px) }
  35%  { opacity: .85; transform: translateY(0) }
  70%  { opacity: .35; transform: translateY(-1px) }
  100% { opacity: .0; transform: translateY(0) }
}
@keyframes solBar{
  0%,100% { filter: brightness(1); opacity: .9 }
  50%     { filter: brightness(1.15); opacity: 1 }
}
@keyframes solFadeUp{
  to { opacity: 1; transform: translateY(0) }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  .solution .solution-card{ transform: none !important; transition: none !important; }
  .solution .solution-card::before{ animation: none !important; opacity: .08; }
  .solution .solution__title::after{ animation: none !important; }
  .solution .solution__item{ opacity: 1; transform: none; animation: none !important; }
}
