/* =========================================================================
   FEIRAN WHY — scoped Elementor widget styles
   Namespaced under .feiran-why-widget so it never collides with the host
   theme. Mirrors the "06 — Why Feiran" values + stats block on the homepage.
   ========================================================================= */

.feiran-why-widget{
  /* Brand tokens — overridable from the Style tab */
  --fw-red-600:#d92231;
  --fw-red-100:#fcdde0;
  --fw-navy-900:#101a36;
  --fw-ink-900:#101a36;
  --fw-ink-700:#28344a;
  --fw-ink-500:#5d6478;
  --fw-ink-400:#8a8f9c;
  --fw-line:#e1e2e6;
  --fw-line-strong:#cdd0d6;
  --fw-bg-elev:#f6f7f9;
  --fw-white:#ffffff;

  --fw-content-max:1320px;

  --fw-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fw-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fw-easing:cubic-bezier(.2,.7,.2,1);

  font-family:var(--fw-font);
  color:var(--fw-ink-900);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.feiran-why-widget *,
.feiran-why-widget *::before,
.feiran-why-widget *::after{ box-sizing:border-box; }

/* ---- Section shell --------------------------------------------------- */
.feiran-why{
  width:100%;
  background:var(--fw-bg-elev);
  border-top:1px solid var(--fw-line);
  border-bottom:1px solid var(--fw-line);
}
.feiran-why__container{
  width:100%;
  max-width:var(--fw-content-max);
  margin:0 auto;
}

/* ---- Section head (centered) ----------------------------------------- */
.feiran-why__head{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:48px;
}
.feiran-why__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--fw-mono);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--fw-ink-500);
  margin:0;
}
.feiran-why__eyebrow::before{
  content:"";
  width:24px;height:1px;
  background:var(--fw-red-600);
  opacity:.9;
}
.feiran-why__title{
  margin:18px 0 0;
  max-width:20ch;
  font-size:clamp(28px, 3vw, 44px);
  font-weight:600;
  line-height:1.06;
  letter-spacing:-0.02em;
  color:var(--fw-ink-900);
  text-wrap:balance;
}

/* ---- Values grid ----------------------------------------------------- */
.feiran-why__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-left:1px solid var(--fw-line);
}
.feiran-why-card{
  padding:36px 28px;
  border-right:1px solid var(--fw-line);
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:280px;
  position:relative;
  transition:background .25s;
}
.feiran-why-card:hover{ background:var(--fw-white); }
.feiran-why-card__glyph{
  width:42px;height:42px;
  border-radius:10px;
  background:var(--fw-red-100);
  color:var(--fw-red-600);
  display:grid;place-items:center;
  margin-bottom:6px;
}
.feiran-why-card__glyph svg{ width:20px;height:20px;display:block; }
.feiran-why-card__num{
  font-family:var(--fw-mono);
  font-size:12px;
  color:var(--fw-red-600);
  letter-spacing:.14em;
}
.feiran-why-card__title{
  margin:8px 0 0;
  font-size:22px;
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.12;
  color:var(--fw-ink-900);
}
.feiran-why-card__desc{
  margin:auto 0 0;
  color:var(--fw-ink-500);
  font-size:14.5px;
  line-height:1.5;
}

/* ---- Stats row ------------------------------------------------------- */
.feiran-why__stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--fw-line);
}
.feiran-why-stat{
  padding:28px;
  border-right:1px solid var(--fw-line);
}
.feiran-why-stat:last-child{ border-right:0; }
.feiran-why-stat__num{
  font-size:44px;
  font-weight:600;
  letter-spacing:-.04em;
  color:var(--fw-ink-900);
  line-height:1;
}
.feiran-why-stat__num sup{
  font-size:18px;
  color:var(--fw-red-600);
  vertical-align:super;
  margin-left:2px;
  font-weight:500;
}
.feiran-why-stat__label{
  font-size:13px;
  color:var(--fw-ink-500);
  margin-top:6px;
  line-height:1.45;
}

/* ---- Entrance reveal ------------------------------------------------- */
.feiran-why [data-fw-reveal]{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s var(--fw-easing), transform .6s var(--fw-easing);
}
.feiran-why [data-fw-reveal].is-in{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:880px){
  .feiran-why__grid{ grid-template-columns:repeat(2,1fr); }
  .feiran-why-card:nth-child(-n+2){ border-bottom:1px solid var(--fw-line); }
  .feiran-why__stats{ grid-template-columns:repeat(2,1fr); }
  .feiran-why-stat:nth-child(2){ border-right:0; }
  .feiran-why-stat:nth-child(-n+2){ border-bottom:1px solid var(--fw-line); }
}
@media (max-width:520px){
  .feiran-why__grid{ grid-template-columns:1fr; border-left:0; }
  .feiran-why-card{ border-right:0; border-bottom:1px solid var(--fw-line); min-height:0; }
  .feiran-why-card:nth-child(-n+2){ border-bottom:1px solid var(--fw-line); }
  .feiran-why__stats{ grid-template-columns:1fr; }
  .feiran-why-stat{ border-right:0; border-bottom:1px solid var(--fw-line); }
  .feiran-why-stat:nth-child(2){ border-right:0; }
}

@media (prefers-reduced-motion: reduce){
  .feiran-why *{
    animation:none !important;
    transition:none !important;
  }
  .feiran-why [data-fw-reveal]{ opacity:1 !important; transform:none !important; }
}
