/* ================================================================
   EffiQ Theme — Cards
   Blog cards, case study cards, generic 3-column grids,
   detail grids, tag rows, steps, and shared card utilities.
================================================================ */

/* ── BLOG CARDS ─────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card  { background: var(--wh); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; transition: all .25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,43,70,.08); }
.blog-img   { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.blog-body  { padding: 24px; }
.blog-cat   { font-family: var(--fh); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bl); margin-bottom: 10px; }
.blog-title { font-family: var(--fh); font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.blog-meta  { font-size: 12px; color: var(--lt); display: flex; align-items: center; gap: 8px; }

/* ── GENERIC 3-COLUMN GRID ──────────────────────────────────────── */
.bgr   { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.bcard { background: var(--wh); border: 1px solid var(--bd); border-radius: 14px; padding: 34px; transition: border-color .2s, box-shadow .2s; }
.bcat  { font-family: var(--fh); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--bl); margin-bottom: 11px; }
.btit  { font-family: var(--fh); font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; line-height: 1.3; }
.bmeta { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd); }
.bauth { font-family: var(--fh); font-size: 12px; font-weight: 700; }
.bdate { font-size: 11px; color: var(--lt); }

/* ── G3 GENERIC GRID ────────────────────────────────────────────── */
.g3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.g3c { background: var(--wh); border: 1px solid var(--bd); border-radius: 14px; padding: 32px; transition: border-color .2s; }

/* ── DETAIL / INNER-PAGE GRID ───────────────────────────────────── */
.det  { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bd); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; }
@media(max-width:768px) { .det { grid-template-columns: 1fr; } }
.dc   { background: var(--wh); padding: 44px; transition: background .2s; position: relative; overflow: hidden; }
.dc:hover { background: var(--gy); }
.dc::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-bl-pur); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.dc:hover::after { transform: scaleX(1); }

/* ── CASE STUDY CARDS ───────────────────────────────────────────── */
.case-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card   { border: 1px solid var(--bd); border-radius: 16px; padding: 32px; background: var(--wh); transition: all .25s; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,43,70,.08); }
.case-tag    { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fh); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bl); margin-bottom: 16px; padding: 4px 10px; background: var(--bls); border: 1px solid var(--blb); border-radius: 6px; }
.case-metrics  { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; }
.case-metric   { text-align: center; background: var(--gy); border-radius: 8px; padding: 10px; }
.case-metric-n { font-family: var(--fh); font-size: 18px; font-weight: 800; letter-spacing: -.04em; background: var(--grad-num); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.case-metric-l { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--lt); margin-top: 2px; }

/* ── TAG ROW ────────────────────────────────────────────────────── */
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.tag     { font-family: var(--fh); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 7px; background: var(--bls); color: var(--bl); border: 1px solid var(--blb); }
.tag.p   { background: rgba(107,79,211,.08); color: var(--pur); border-color: rgba(107,79,211,.2); }

/* ── STEPS GRID ─────────────────────────────────────────────────── */
.steps  { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; position: relative; counter-reset: step-counter; }
@media(max-width:700px) { .steps { grid-template-columns: 1fr 1fr; } }

.step   { padding: 36px 28px 32px; background: var(--wh); border: 1px solid var(--bd); position: relative; overflow: hidden; transition: all .3s cubic-bezier(.22,1,.36,1); }
.step:first-child  { border-radius: 16px 0 0 16px; }
.step:last-child   { border-radius: 0 16px 16px 0; }
.step + .step      { border-left: 0; }

/* top gradient bar on hover */
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-bl-pur); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.step:hover::after { transform: scaleX(1); }
.step:hover { background: var(--gy); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,43,70,.08); z-index: 1; border-radius: 16px; }

/* connector line between steps */
.step:not(:last-child)::before { content: ""; position: absolute; top: 50px; right: -1px; width: 24px; height: 2px; background: linear-gradient(90deg, var(--bd), var(--bl)); z-index: 2; opacity: .7; }

/* step number */
.sn { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(26,115,232,.1), rgba(107,79,211,.1)); display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-size: 18px; font-weight: 800; letter-spacing: -.02em; background-clip: padding-box; color: var(--bl); margin-bottom: 16px; transition: all .3s; }
.step:hover .sn { background: var(--grad-bl-pur); color: var(--wh); }

@media(max-width:700px) {
  .step:first-child  { border-radius: 16px 16px 0 0; }
  .step:last-child   { border-radius: 0 0 16px 16px; }
  .step:nth-child(2) { border-radius: 0 16px 0 0; }
  .step:nth-child(3) { border-radius: 0 0 0 16px; }
  .step + .step      { border-left: 1px solid var(--bd); }
  .step:nth-child(n+3) { border-top: 0; }
  .step:not(:last-child)::before { display: none; }
}

.step-n { font-family: var(--fh); font-size: 32px; font-weight: 800; letter-spacing: -.05em; background: var(--grad-num); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 8px; }
.step-t { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--ink); }
.step-d { font-size: 12px; color: var(--mid); margin-top: 4px; line-height: 1.6; }

/* ── DETAIL GRID (2-col, used in service pages) ─────────────────── */
.det-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media(max-width:700px) { .det-grid { grid-template-columns: 1fr; } }
.det-card { background: var(--wh); border: 1px solid var(--bd); border-radius: 14px; padding: 32px; transition: all .2s; }
.det-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,43,70,.08); }
.det-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.det-ico  { width: 40px; height: 40px; border-radius: 10px; background: var(--bls); border: 1px solid var(--blb); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.det-ico.p { background: rgba(107,79,211,.08); border-color: rgba(107,79,211,.2); }

/* ── PARTNER TRACK CARDS ────────────────────────────────────────── */
.pt-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:700px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-card  { background: var(--wh); border: 1px solid var(--bd); border-radius: 16px; padding: 36px; transition: all .2s; position: relative; overflow: hidden; }
.pt-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-bl-pur); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.pt-card:hover::before { transform: scaleX(1); }
.pt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,43,70,.08); }
.pt-ico  { font-size: 36px; margin-bottom: 16px; }

/* ── CASE STUDY ARCHIVE — RESULT BADGES ────────────────────────── */
.cs-results  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cs-metric   { background: rgba(26,115,232,.06); border: 1px solid rgba(26,115,232,.15); border-radius: 8px; padding: 8px 12px; text-align: center; }
.cs-metric-n { font-size: 18px; font-weight: 800; color: var(--ink); font-family: var(--fh); }
.cs-metric-l { font-size: 10px; color: var(--lt); }
.cs-client   { font-size: 12px; color: var(--lt); margin-bottom: 10px; }
.cs-lnk      { font-size: 13px; font-weight: 700; color: var(--bl); text-decoration: none; }
.cs-lnk:hover { text-decoration: underline; }
.cs-empty    { text-align: center; padding: 60px 20px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media(max-width:640px) {
  .blog-grid, .g3, .bgr, .case-grid { grid-template-columns: 1fr; }
  .det-grid, .pt-grid               { grid-template-columns: 1fr; }
}
