/* =============================================================
   HZL Microsite — Foundations for Sustainable Growth
   Clip-path hover cards: gradient overlay sweeps in from nearest edge.
   ============================================================= */

.fsg {
  position: relative;
  background: #07192c;
  padding-block: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

/* Subtle teal grid background */
.fsg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 185, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 185, 66, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Top glow blob */
.fsg::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: radial-gradient(ellipse at center,
    rgba(127, 185, 66, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Inner container ─────────────────────────────────────────── */
.fsg__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

/* ── Heading ─────────────────────────────────────────────────── */
.fsg__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.fsg__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7fb942;
  margin-bottom: 14px;
}

.fsg__title {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ── Grid ────────────────────────────────────────────────────── */
.fsg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Card ────────────────────────────────────────────────────── */
.fsg__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0b2240;
  border: 1px solid rgba(127, 185, 66, 0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.fsg__card:hover {
  border-color: rgba(127, 185, 66, 0.40);
  box-shadow:
    0 20px 50px -16px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(127, 185, 66, 0.12);
}

/* Dark gradient scrim */
.fsg__card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 25, 44, 0.10)  0%,
    rgba(7, 25, 44, 0.55) 60%,
    rgba(7, 25, 44, 0.82) 100%
  );
}

/* Card body */
.fsg__card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 0;
}

.fsg__card-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fb942;
  margin-bottom: 0.6rem;
}

.fsg__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: rgba(238, 242, 246, 0.95);
  flex: 1;
}

/* Large number accent */
.fsg__card-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(127, 185, 66, 0.08);
  letter-spacing: -0.03em;
  z-index: 1;
  transition: color 0.35s ease;
}

.fsg__card:hover .fsg__card-num {
  color: rgba(127, 185, 66, 0.16);
}

/* Card footer / CTA */
.fsg__card-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.25rem 1.5rem;
}

.fsg__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  background: rgba(10, 22, 38, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.fsg__card:hover .fsg__card-btn {
  background: rgba(127, 185, 66, 0.15);
  border-color: rgba(127, 185, 66, 0.55);
}

/* ── Clip-path hover overlay ─────────────────────────────────── */
/* Sweeps in from the nearest edge with a green→teal gradient */
.fsg__clip-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(135deg, #0060a3 0%, #4fe0cf 45%, #7fb942 100%);
  clip-path: polygon(0 0, 100% 0, 0 0, 0% 100%); /* hidden initially */
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.25rem;
  pointer-events: none;
  border-radius: inherit;
}

.fsg__clip-overlay .fsg__card-tag  { color: rgba(255, 255, 255, 0.85); }
.fsg__clip-overlay .fsg__card-title { color: #ffffff; }
.fsg__clip-overlay .fsg__card-num {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: rgba(255, 255, 255, 0.15);
}
.fsg__clip-overlay .fsg__card-footer { margin-top: auto; padding: 0; }
.fsg__clip-overlay .fsg__card-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fsg__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .fsg__grid  { grid-template-columns: 1fr; }
  .fsg__title { font-size: 26px; }
}
