/* ============ PepCore Biosciences — B2B Peptide Supplier ============ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --teal-light: #e6f4f4;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1c2b3a;
  --muted: #5b6b7b;
  --line: #e2e8f0;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --green: #15803d;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.07);
  --shadow-lg: 0 10px 30px rgba(11, 37, 69, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd9e8;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; }
.topbar .badge-iso { background: rgba(255,255,255,.12); padding: 2px 10px; border-radius: 999px; }

/* ---------- Header / nav ---------- */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(11,37,69,.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { color: var(--text); font-weight: 600; font-size: 15px; }
nav.main a:hover, nav.main a.active { color: var(--teal); text-decoration: none; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 700;
  font-size: 15px; border: none; cursor: pointer; transition: all .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal-light); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-nav { padding: 8px 18px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #14503f 100%);
  color: #fff;
  padding: 84px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,124,123,.35), transparent 65%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.2; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 span { color: #5eead4; }
.hero p.lead { font-size: 18px; color: #c8d6e5; margin-bottom: 28px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: #5eead4; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.hero-card li:last-child { border-bottom: none; }
.hero-card li b { color: #fff; }

/* ---------- Trust bar ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 18px; text-align: center; }
.trust .item b { display: block; font-size: 24px; color: var(--teal); }
.trust .item span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: #fff; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.sec-head .kicker { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.sec-head h2 { font-size: 32px; color: var(--navy); margin: 8px 0 12px; }
.sec-head p { color: var(--muted); }

/* Division cards */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.div-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.div-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.div-card .icon { font-size: 34px; margin-bottom: 14px; }
.div-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.div-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.div-card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; margin: 14px 0; align-self: flex-start;
}
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; letter-spacing: .3px; align-self: flex-start;
}
.tag-ruo { background: var(--amber-bg); color: var(--amber); }
.tag-cos { background: #fce7f3; color: #9d174d; }
.tag-food { background: #dcfce7; color: var(--green); }
.div-card a.more { font-weight: 700; margin-top: 12px; }

/* Product grid */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.filters button {
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 14px;
}
.filters button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s, box-shadow .18s;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.p-card h3 { font-size: 17px; color: var(--navy); }
.p-card .meta { font-size: 13px; color: var(--muted); }
.p-card .meta b { color: var(--text); }
.p-card .coa {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--green);
}
.p-card .actions { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; }
.p-card .actions .btn { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; }
.ruo-note {
  background: var(--amber-bg); border: 1px solid #fcd34d; color: #78350f;
  border-radius: 10px; padding: 12px 18px; font-size: 13.5px; margin-top: 26px;
}

/* Quality section */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.q-list { list-style: none; display: grid; gap: 16px; margin-top: 8px; }
.q-list li { display: flex; gap: 14px; align-items: flex-start; }
.q-list .chk {
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; margin-top: 2px;
}
.q-list b { color: var(--navy); }
.q-list span { color: var(--muted); font-size: 14.5px; }
.q-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.q-panel h3 { color: var(--navy); margin-bottom: 14px; }
.doc-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.doc-row:last-child { border-bottom: none; }
.doc-row .dl { font-size: 13px; font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step .num { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 0 20px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; font-size: 20px; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: #fff; text-align: center; border-radius: 18px; padding: 54px 30px; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: .92; margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--teal-dark); }

/* ---------- RFQ / forms ---------- */
.rfq-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,.12); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.quote-list { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.quote-list .empty { color: var(--muted); font-size: 14px; text-align: center; padding: 8px; }
.quote-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.quote-item:last-child { border-bottom: none; }
.quote-item button { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 16px; }
.side-info { display: grid; gap: 18px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-card h3 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.info-card p, .info-card li { font-size: 14px; color: var(--muted); }
.info-card ul { padding-left: 18px; }
.info-card li { margin-bottom: 6px; }
.success-box {
  background: #dcfce7; border: 1px solid #86efac; color: #14532d;
  border-radius: 10px; padding: 18px; font-size: 14.5px; display: none;
}

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #b7c6d6; padding: 56px 0 0; margin-top: 40px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.f-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.f-grid ul { list-style: none; }
.f-grid li { margin-bottom: 9px; font-size: 14px; }
.f-grid a { color: #b7c6d6; }
.f-grid a:hover { color: #5eead4; }
.f-disclaim {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  font-size: 12px; color: #8fa3b8; line-height: 1.7;
}
.f-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 20px rgba(37,211,102,.45); z-index: 200; transition: transform .18s;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }

/* Quote badge on nav */
.quote-btn { position: relative; }
.quote-btn .count {
  position: absolute; top: -8px; right: -8px; background: #dc2626; color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 4px;
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .quality, .rfq-layout { grid-template-columns: 1fr; }
  .divisions, .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  nav.main {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .divisions, .grid, .steps, .f-grid { grid-template-columns: 1fr; }
  .trust .container { flex-direction: column; }
}

/* ============ v2 additions (borrowed UX patterns) ============ */

/* Product card: rating + price row */
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-rating { font-size: 12.5px; color: #d97706; white-space: nowrap; letter-spacing: -.5px; }
.p-rating b { color: var(--text); font-size: 12.5px; }
.p-rating em { color: var(--muted); font-style: normal; }
.p-price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px; }
.p-price b { font-size: 20px; color: var(--navy); }
.p-price .from { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.p-price .tier-hint {
  font-size: 11px; color: var(--teal); background: var(--teal-light);
  padding: 1px 7px; border-radius: 999px; font-weight: 700; margin-left: auto;
}
.btn-ghost {
  background: #eef2f7; color: var(--navy); border: 1.5px solid transparent;
}
.btn-ghost:hover { background: #e2e8f0; }

/* Section: shop by application */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 14px; text-align: center; font-weight: 700; font-size: 14px; color: var(--navy);
  box-shadow: var(--shadow); transition: all .18s; cursor: pointer;
}
.app-tile:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; transform: translateY(-2px); }
.app-tile span { display: block; font-size: 22px; margin-bottom: 6px; }
.app-tile small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Shipping / service promise band */
.promise { background: var(--navy); color: #dbe6f2; padding: 26px 0; }
.promise .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.promise .p-item { display: flex; gap: 12px; align-items: flex-start; }
.promise .p-item .ic { font-size: 22px; }
.promise .p-item b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.promise .p-item span { font-size: 13px; color: #a9bcd0; }

/* Verified customer feedback */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review-card .r-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-card .verified {
  font-size: 11px; font-weight: 700; color: var(--green); background: #dcfce7;
  padding: 2px 8px; border-radius: 999px;
}
.review-card p { font-size: 14.5px; color: var(--text); font-style: italic; margin-bottom: 14px; }
.review-card .r-meta { font-size: 13px; color: var(--muted); }
.review-card .r-meta b { color: var(--navy); display: block; }
.review-summary {
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin-bottom: 34px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.review-summary .big { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.review-summary .stars { color: #d97706; font-size: 20px; letter-spacing: 1px; }
.review-summary small { color: var(--muted); font-size: 13px; }

/* Quick view modal */
.qv-overlay {
  display: none; position: fixed; inset: 0; background: rgba(11,37,69,.55);
  z-index: 400; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.qv-overlay.open { display: flex; }
.qv-box {
  background: #fff; border-radius: 16px; max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 34px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: qvIn .2s ease-out;
}
@keyframes qvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qv-close {
  position: absolute; top: 16px; right: 18px; background: #eef2f7; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--navy);
}
.qv-close:hover { background: #e2e8f0; }
.qv-box h2 { font-size: 24px; color: var(--navy); margin: 10px 0 4px; }
.qv-note { color: var(--muted); font-size: 14.5px; margin: 10px 0 18px; }
.qv-spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.qv-spec th {
  text-align: left; width: 42%; padding: 9px 0; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.qv-spec td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.qv-h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: 8px; }
.qv-tiers { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 10px; }
.qv-tiers th {
  background: var(--bg); text-align: left; padding: 9px 12px; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.qv-tiers td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.qv-tiers td:last-child { font-weight: 700; color: var(--navy); }
.qv-fine { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.qv-actions { display: flex; gap: 12px; }
.qv-actions .btn { flex: 1; text-align: center; }

/* Sticky mobile RFQ bar */
.sticky-rfq {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(11,37,69,.12); justify-content: space-between; align-items: center; gap: 12px;
}
.sticky-rfq.show { display: flex; }
.sticky-rfq span { font-size: 13.5px; color: var(--text); font-weight: 600; }
.sticky-rfq .btn { padding: 9px 18px; font-size: 14px; }

@media (max-width: 960px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .promise .container { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .sticky-rfq.show { display: flex; }
  .wa-float { bottom: 78px; }
}
@media (min-width: 961px) {
  .sticky-rfq { display: none !important; }
}


/* document badge replacing fabricated ratings */
.p-doc {
  font-size: 11.5px; font-weight: 700; color: var(--green);
  background: #dcfce7; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
