/* =========================================================================
   <Platforms /> — Website Design & Development §5
   Navy. Centred header + 4-column stack cards with icon tiles.
   ========================================================================= */

.cwd-platforms {
  position: relative;
  isolation: isolate;        /* host the .vh-geo side accents behind content */
  overflow: hidden;          /* clip the gutter shapes to the section */
  background: var(--color-primary);
  color: #fff;
}

.cwd-platforms__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 112px var(--container-pad);
}

.cwd-platforms__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.cwd-platforms__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.cwd-platforms__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.cwd-platforms__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  text-wrap: pretty;
}

.cwd-platforms__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cwd-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #122348;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 30px 26px 28px;
  overflow: hidden;
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft);
}
.cwd-platform::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms var(--ease-out-soft);
}
.cwd-platform:hover {
  transform: translateY(-6px);
  background: #16294F;
  border-color: rgba(232,180,0,0.42);
  box-shadow: 0 22px 48px -24px rgba(0,0,0,0.7);
}
.cwd-platform:hover::before { transform: scaleX(1); }

.cwd-platform__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(232,180,0,0.12);
  color: var(--color-accent);
  margin-bottom: 22px;
  transition: background 280ms var(--ease-out-soft), color 280ms var(--ease-out-soft);
}
.cwd-platform__icon svg { width: 26px; height: 26px; }
.cwd-platform:hover .cwd-platform__icon {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.cwd-platform__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.cwd-platform__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
}

@media (max-width: 1024px) {
  .cwd-platforms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 780px) {
  .cwd-platforms__inner { padding: 88px var(--container-pad); }
}
@media (max-width: 520px) {
  .cwd-platforms__inner { padding: 72px 18px; }
  .cwd-platforms__grid { grid-template-columns: 1fr; }
}
