/* =========================
   Section spacing / container
   ========================= */
.section--fencing{
  background:#fff;
  padding:28px 0 22px;
}

/* Palaparin nang kaunti para magkasya ang 4 badges sa isang row */
.fencing--narrow{ max-width:1140px; margin:0 auto; }

/* =========================
   20% smaller content (scoped)
   ========================= */
.fencing{ --scale-factor:1; } /* default; override inline (e.g., .80) */
.fenc-content{
  transform: scale(var(--scale-factor));
  transform-origin: 50% 0%;
  margin-top: calc((1 - var(--scale-factor)) * -8px);
}

/* =========================
   Heading + sub
   ========================= */
.fenc-hero{ text-align:center; }
.fenc-title{
  margin:0 0 10px;
  color:var(--green-700, #0f3d20);
  font-weight:800;                 /* premium, not shouty */
  letter-spacing:-0.01em;
  font-size: clamp(28px, 2.2vw + 16px, 44px);
  text-wrap: balance;
}
.fenc-sub{
  margin:0 auto;
  max-width:900px;
  color:#64748b;
  font-size: clamp(14px, .5vw + 12px, 18px);
}

/* =========================
   Badges (“tags”) — 1 row + shiny
   ========================= */
.f-badges{
  display:flex;
  justify-content:center;
  align-items:center;
  /* HINDI mag-wrap para iisang row */
  flex-wrap: nowrap;
  gap:12px;                      /* mas siksik para kasya */
  margin-top:16px;

  /* siguraduhin na nasa gitna at hindi dudulas */
  max-width:1140px;
  margin-left:auto; margin-right:auto;
}

.badge{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; gap:10px;

  /* bahagyang liit para magkasya sa iisang row */
  padding:9px 14px;
  white-space: nowrap;           /* huwag mag line-break sa loob */
  border-radius:999px;

  /* soft pill look */
  background: linear-gradient(180deg, #eef6f1 0%, #e7f1ea 100%);
  border:1px solid #e5e7eb;
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,.05),
    0 8px 18px rgba(15, 23, 42, .06);

  font-weight:800; color:#0f3d20;
  line-height:1;
}

/* checkmark */
.badge b{
  color:#065f46; font-weight:900;
  background:#d1fae5; border:1px solid #a7f3d0;
  width:18px; height:18px; border-radius:999px;
  display:grid; place-items:center; font-size:11px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}

/* ===== Continuous shiny effect ===== */
.badge::after{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none; mix-blend-mode:screen;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,.75) 49%,
    rgba(255,255,255,0) 78%
  );
  transform: translateX(-155%);
  animation: badge-shine 2.8s ease-in-out infinite;
  opacity:.9;
}
.badge::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,.20) 50%, transparent 51%);
  background-repeat:no-repeat;
  opacity:.5;
}
.f-badges .badge:nth-child(2)::after{ animation-delay:.5s; }
.f-badges .badge:nth-child(3)::after{ animation-delay:1.0s; }
.f-badges .badge:nth-child(4)::after{ animation-delay:1.5s; }

@keyframes badge-shine{
  to { transform: translateX(155%); }
}

/* =========================
   Responsive fallback
   ========================= */
@media (max-width: 900px){
  /* Sa mas makitid na screen, payagan mag-wrap para hindi mag-overflow */
  .f-badges{ flex-wrap: wrap; }
}

@media (max-width:640px){
  /* keep scale closer to 0.86 on mobile for legibility */
  .fencing{ --scale-factor:.86; }
  .f-badges{ gap:10px; }
}
