/* =====================================================================
   InSci — Extra components: About / Certifications / Services /
   Article / Search / RFQ cart
   ===================================================================== */

/* ---------- Timeline (About) ---------- */
.timeline { position:relative; max-width:820px; margin:0 auto; padding-left:34px; }
.timeline::before { content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:linear-gradient(to bottom,var(--green-500),var(--blue-700)); }
.tl-item { position:relative; padding-bottom:46px; }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:""; position:absolute; left:-34px; top:4px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--green-600); }
.tl-item.blue::before { border-color:var(--blue-700); }
.tl-year { font-family:var(--font-display); font-size:24px; font-weight:600; color:var(--blue-700); margin-bottom:6px; }
.tl-item h3 { font-size:19px; margin-bottom:8px; }
.tl-item p { color:var(--ink-500); font-size:15px; line-height:1.6; }

/* ---------- Value cards (About / Services) ---------- */
.value-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.value-card { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:32px 28px; transition:box-shadow .25s, transform .25s; }
.value-card:hover { box-shadow:var(--sh-md); transform:translateY(-3px); }
.value-card h3 { font-size:20px; margin-bottom:10px; }
.value-card p { color:var(--ink-500); font-size:15px; line-height:1.62; }
@media(max-width:860px){ .value-grid{ grid-template-columns:1fr; } }

/* ---------- Team ---------- */
.team-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.team-card { text-align:center; }
.team-card image-slot { width:100%; height:240px; border-radius:var(--r-lg); border:1px solid var(--line); margin-bottom:16px; }
.team-card h4 { font-size:18px; margin-bottom:4px; }
.team-card .role { font-size:13.5px; color:var(--green-700); font-weight:600; }
@media(max-width:860px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Stat band ---------- */
.stat-band { background:var(--blue-700); color:#fff; position:relative; overflow:hidden; }
.stat-band .dots { position:absolute; inset:0; opacity:.5; background-image:radial-gradient(rgba(255,255,255,.07) 1.4px,transparent 1.4px); background-size:26px 26px; }
.stat-band-grid { position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.stat-band-grid > div { text-align:center; }
.stat-band .num { font-family:var(--font-display); font-size:clamp(38px,5vw,58px); font-weight:600; line-height:1; }
.stat-band .num em { color:var(--green-300); font-style:normal; }
.stat-band .lbl { color:rgba(255,255,255,.7); font-size:14.5px; margin-top:10px; }
@media(max-width:760px){ .stat-band-grid{ grid-template-columns:repeat(2,1fr); gap:40px 20px; } }

/* ---------- Certifications ---------- */
.cert-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.cert-card { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:32px 28px; display:flex; flex-direction:column; transition:box-shadow .25s,border-color .25s; }
.cert-card:hover { box-shadow:var(--sh-md); border-color:var(--green-300); }
.cert-badge { width:72px; height:72px; border-radius:50%; background:linear-gradient(135deg,var(--green-50),var(--blue-50)); border:1px solid var(--line); display:grid; place-items:center; margin-bottom:22px; }
.cert-badge svg { width:36px; height:36px; color:var(--green-700); }
.cert-card h3 { font-size:21px; margin-bottom:6px; }
.cert-card .cert-full { font-size:13px; color:var(--ink-400); font-family:var(--font-mono); margin-bottom:14px; }
.cert-card p { color:var(--ink-500); font-size:14.5px; line-height:1.62; flex:1; margin-bottom:18px; }
.cert-status { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--green-700); }
.cert-status .dot { width:8px; height:8px; border-radius:50%; background:var(--green-500); }
@media(max-width:860px){ .cert-grid{ grid-template-columns:1fr; } }

/* logos strip */
.cert-logos { display:grid; grid-template-columns:repeat(6,1fr); gap:20px; align-items:center; }
.cert-logo { aspect-ratio:1; border:1px solid var(--line); border-radius:var(--r-md); display:grid; place-items:center; background:#fff; color:var(--ink-300); transition:color .2s,border-color .2s; }
.cert-logo:hover { color:var(--green-600); border-color:var(--green-300); }
.cert-logo svg { width:42px; height:42px; }
@media(max-width:760px){ .cert-logos{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Process steps (Services) ---------- */
.proc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.proc-item { display:flex; gap:22px; align-items:flex-start; padding:28px; border:1px solid var(--line); border-radius:var(--r-lg); background:#fff; }
.proc-num { font-family:var(--font-display); font-size:42px; font-weight:600; color:var(--green-500); line-height:1; flex-shrink:0; }
.proc-item h3 { font-size:20px; margin-bottom:8px; }
.proc-item p { color:var(--ink-500); font-size:15px; line-height:1.6; }
@media(max-width:760px){ .proc-grid{ grid-template-columns:1fr; } }

/* ---------- Article (single) ---------- */
.article-wrap { max-width:740px; margin:0 auto; }
.article-hero-img { width:100%; height:420px; border-radius:var(--r-lg); overflow:hidden; margin-bottom:40px; border:1px solid var(--line); }
.article-hero-img image-slot { width:100%; height:100%; }
.article-body { font-size:18px; line-height:1.78; color:var(--ink-700); }
.article-body h2 { font-size:30px; margin:48px 0 18px; }
.article-body h3 { font-size:23px; margin:36px 0 14px; }
.article-body p { margin-bottom:22px; }
.article-body ul { margin:0 0 22px; padding-left:24px; }
.article-body li { margin-bottom:10px; }
.article-body blockquote { margin:32px 0; padding:20px 28px; border-left:3px solid var(--green-500); background:var(--green-50); border-radius:0 var(--r-md) var(--r-md) 0; font-size:19px; color:var(--ink-900); }
.article-body strong { color:var(--ink-900); font-weight:600; }
.article-meta-head { display:flex; gap:14px; align-items:center; margin-bottom:24px; flex-wrap:wrap; }
.share-row { display:flex; gap:10px; align-items:center; margin-top:48px; padding-top:28px; border-top:1px solid var(--line); }
.share-row span { font-size:14px; font-weight:600; color:var(--ink-500); margin-right:4px; }
.share-btn { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; color:var(--ink-500); transition:all .2s; }
.share-btn:hover { background:var(--green-600); border-color:var(--green-600); color:#fff; }
.share-btn svg { width:17px; height:17px; }

/* ---------- Product search / filter bar ---------- */
.search-wrap { background:var(--surface); border-bottom:1px solid var(--line); padding-block:24px; }
.search-row { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.search-box { flex:1; min-width:240px; position:relative; }
.search-box svg { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:var(--ink-400); pointer-events:none; }
.search-box input { width:100%; padding:13px 16px 13px 46px; border:1.5px solid var(--line); border-radius:var(--r-pill); font-family:var(--font-body); font-size:15.5px; outline:none; transition:border-color .2s; background:#fff; }
.search-box input:focus { border-color:var(--blue-700); box-shadow:0 0 0 3px rgba(44,54,145,.08); }
.search-count { font-size:14px; color:var(--ink-500); white-space:nowrap; }
.search-count b { color:var(--blue-700); }
.cat-empty { text-align:center; padding:80px 20px; color:var(--ink-400); display:none; }
.cat-empty svg { width:48px; height:48px; margin-bottom:16px; color:var(--ink-300); }
.prod-fam.hidden, .prod-card2.hidden { display:none; }

/* add-to-quote button on cards */
.prod-card2 { position:relative; }
.add-quote {
  position:absolute; top:10px; right:10px; z-index:3;
  width:38px; height:38px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,.92); backdrop-filter:blur(4px); box-shadow:var(--sh-sm);
  display:grid; place-items:center; color:var(--blue-700);
  opacity:0; transform:translateY(-4px); transition:all .2s var(--ease);
}
.prod-card2:hover .add-quote { opacity:1; transform:translateY(0); }
.add-quote:hover { background:var(--blue-700); color:#fff; }
.add-quote.added { background:var(--green-600); color:#fff; opacity:1; transform:translateY(0); }
.add-quote svg { width:19px; height:19px; }

/* ---------- RFQ Cart Drawer ---------- */
.rfq-fab {
  position:fixed; bottom:32px; right:96px; z-index:1000;
  height:56px; padding:0 22px 0 18px; border-radius:var(--r-pill); border:none; cursor:pointer;
  background:var(--blue-700); color:#fff; display:none; align-items:center; gap:10px;
  box-shadow:var(--sh-blue); font-family:var(--font-body); font-weight:600; font-size:15px;
  transition:transform .2s var(--ease), background .2s;
}
.rfq-fab.show { display:flex; }
.rfq-fab:hover { transform:translateY(-2px); background:var(--blue-800); }
.rfq-fab svg { width:21px; height:21px; }
.rfq-fab .count { background:var(--green-500); color:#fff; font-size:12.5px; font-weight:700; min-width:22px; height:22px; border-radius:11px; display:grid; place-items:center; padding:0 6px; }
@media(max-width:600px){ .rfq-fab{ right:16px; bottom:84px; } }

.rfq-scrim { position:fixed; inset:0; z-index:1100; background:rgba(20,23,43,.4); backdrop-filter:blur(3px); opacity:0; pointer-events:none; transition:opacity .3s; }
.rfq-scrim.open { opacity:1; pointer-events:auto; }
.rfq-drawer {
  position:fixed; top:0; right:0; bottom:0; width:420px; max-width:90vw; z-index:1101;
  background:var(--bg); box-shadow:var(--sh-lg); transform:translateX(100%);
  transition:transform .35s var(--ease); display:flex; flex-direction:column;
}
.rfq-drawer.open { transform:translateX(0); }
.rfq-head { padding:24px 26px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.rfq-head h3 { font-size:21px; }
.rfq-head .close { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff; cursor:pointer; display:grid; place-items:center; color:var(--ink-700); transition:all .2s; }
.rfq-head .close:hover { background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
.rfq-head .close svg { width:18px; height:18px; }
.rfq-list { flex:1; overflow-y:auto; padding:18px 26px; }
.rfq-item { display:flex; gap:14px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.rfq-item .ri-ic { width:40px; height:40px; border-radius:10px; background:var(--green-50); color:var(--green-700); display:grid; place-items:center; flex-shrink:0; }
.rfq-item .ri-ic svg { width:20px; height:20px; }
.rfq-item .ri-name { flex:1; font-size:14.5px; font-weight:500; color:var(--ink-900); line-height:1.35; }
.rfq-item .ri-rm { background:none; border:none; cursor:pointer; color:var(--ink-400); padding:6px; border-radius:6px; transition:color .2s,background .2s; }
.rfq-item .ri-rm:hover { color:var(--status-danger,#c0392b); background:var(--bg-sunken); }
.rfq-item .ri-rm svg { width:16px; height:16px; }
.rfq-empty { text-align:center; padding:60px 20px; color:var(--ink-400); }
.rfq-empty svg { width:54px; height:54px; color:var(--ink-300); margin-bottom:16px; }
.rfq-foot { padding:22px 26px; border-top:1px solid var(--line); background:#fff; }
.rfq-foot .btn { width:100%; justify-content:center; }
.rfq-foot p { font-size:12.5px; color:var(--ink-400); text-align:center; margin-top:12px; }

/* contact form category checklist */
.check-group.cg-cats { display:grid; grid-template-columns:repeat(2,1fr); gap:2px 18px; }
.check-group.cg-cats .check-item span { font-size:14px; font-weight:600; line-height:1.35; }
.check-group.cg-cats .check-item em { display:block; font-style:normal; font-weight:400; font-size:12.5px; color:var(--ink-400); margin-top:1px; }
@media(max-width:640px){ .check-group.cg-cats { grid-template-columns:1fr; } }

/* ================= Mobile safety net (overrides inline grids) ================= */
@media(max-width:860px){
  .home-stats{grid-template-columns:repeat(2,1fr)!important;row-gap:26px!important}
  .lab-card,.svc-row{grid-template-columns:1fr!important}
  .svc-row img{height:230px!important}
  .svc-row>div{padding:32px 26px!important}
  .svc-row.rev-order>div{order:2}
  .svc-row.rev-order>img{order:1}
  .svc-steps{grid-template-columns:repeat(2,1fr)!important;gap:32px 14px!important}
  .svc-steps>div[style*="absolute"]{display:none!important}
  .svc-ben{grid-template-columns:repeat(3,1fr)!important}
  .contact-quick{grid-template-columns:1fr!important}
  .check-group.cg-cats{grid-template-columns:1fr!important}
}
@media(max-width:560px){
  .svc-steps{grid-template-columns:1fr!important}
  .svc-ben{grid-template-columns:repeat(2,1fr)!important}
  .home-stats{grid-template-columns:1fr!important}
}
