/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Forms & Applications — Listing Page
   Matches homepage .cfsw section design language
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Page Section ─────────────────────────────────────────────── */
.fpl {
  position: relative;
  background: var(--cream2, #F6F1E4);
  padding: calc(var(--site-header-height, 72px) + 48px) 0 80px;
  min-height: 80vh;
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
}

.fpl-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--site-gutter, 24px);
}

/* ── Header ──────────────────────────────────────────────────── */
.fpl-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}

.fpl-header__left { max-width: 600px; }

.fpl-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #074635;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.fpl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: #074635;
  margin: 0 0 10px;
}

.fpl-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* ── Featured Card ───────────────────────────────────────────── */
.fpl-feature {
  margin-bottom: 24px;
}

.fpl-feature__card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  background: linear-gradient(135deg, #0a5c44, #074635);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .4s ease, transform .4s ease;
}

.fpl-feature__card:hover {
  box-shadow: 0 14px 56px rgba(7,70,53,.26);
  transform: translateY(-3px);
}

.fpl-feature__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  font-weight: 700;
  color: rgba(255,255,255,.08);
  text-align: center;
  line-height: 1;
  padding: 0 24px;
}

.fpl-feature__body {
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fpl-feature__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b8860b;
}

.fpl-feature__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.fpl-feature__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
  margin: 0;
  max-width: 400px;
}

.fpl-feature__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
}

.fpl-feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,200,104,.15);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #00c868;
}

.fpl-feature__open {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,200,104,.2);
  padding: 6px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .3s ease;
}

.fpl-feature__card:hover .fpl-feature__open {
  background: #00c868;
  color: #074635;
}

/* ── Grid ────────────────────────────────────────────────────── */
.fpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fpl-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(7,70,53,.04);
  transition: box-shadow .35s ease, transform .35s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.fpl-card:hover {
  box-shadow: 0 8px 32px rgba(7,70,53,.08);
  transform: translateY(-3px);
  border-color: rgba(0,200,104,.12);
}

.fpl-card__bg {
  position: absolute;
  top: -8px;
  right: -4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: rgba(0,200,104,.05);
  pointer-events: none;
}

.fpl-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.fpl-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,200,104,.06);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #00c868;
  transition: all .3s ease;
}

.fpl-card:hover .fpl-card__icon {
  background: #074635;
  color: #fff;
}

.fpl-card__num {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #d1d5db;
  letter-spacing: 1px;
}

.fpl-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #074635;
  margin: 0;
  position: relative;
  z-index: 1;
}

.fpl-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #9ca3af;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.fpl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.fpl-card__badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #00c868;
  background: rgba(0,200,104,.06);
  padding: 3px 8px;
  border-radius: 8px;
}

.fpl-card__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #9ca3af;
  transition: all .3s ease;
}

.fpl-card:hover .fpl-card__arrow {
  background: #074635;
  color: #fff;
}

/* ── Empty State ─────────────────────────────────────────────── */
.fpl-empty {
  text-align: center;
  padding: 80px 24px;
}

.fpl-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,200,104,.06);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #00c868;
}

.fpl-empty h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: #074635;
  margin: 0 0 8px;
}

.fpl-empty p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .fpl-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fpl-feature__card {
    grid-template-columns: 100px 1fr;
  }

  .fpl-feature__num { font-size: 56px; padding: 0 16px; }
  .fpl-feature__right { display: none; }

  .fpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fpl { padding: calc(var(--site-header-height, 72px) + 24px) 0 48px; }
  .fpl-header { margin-bottom: 32px; }
  .fpl-grid { grid-template-columns: 1fr; }
  .fpl-card__desc { display: none; }
}
