/* ============================================================
   GKRZ — Guoke Rongzhi Biotechnology
   Shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Brand palette — sampled from the GKRZ mark */
  --navy:        #072a42;
  --navy-deep:   #041c30;
  --blue:        #0079c4;
  --blue-light:  #35b3e8;
  --green:       #7fbd2a;
  --green-light: #acd400;
  --ink:         #142430;
  --slate:       #556974;
  --slate-light: #8497a3;
  --line:        #e1e9ed;
  --bg:          #f6fafb;
  --bg-tint:     #eef6f8;
  --white:       #ffffff;

  --grad-brand: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 45%, var(--green) 78%, var(--green-light) 100%);
  --grad-navy:  linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #0a3f5c 100%);

  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(7,42,66,0.06);
  --shadow-md: 0 12px 32px rgba(7,42,66,0.10);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--blue); text-decoration:none; }
a:hover{ color: var(--green); }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-head);
  color: var(--navy-deep);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--slate); max-width: 68ch; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section{ padding: 88px 0; }
.section-tint{ background: var(--bg-tint); }
.section-navy{ background: var(--grad-navy); color: #fff; }
.section-navy p{ color: #c7d9e2; }
.section-navy h2, .section-navy h3{ color: #fff; }

:focus-visible{ outline: 3px solid var(--blue-light); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Eyebrow / kicker ---------- */
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight:600; letter-spacing:.04em;
  color: var(--blue);
  margin-bottom: 14px;
}
.kicker::before{
  content:""; width:26px; height:3px; border-radius:2px;
  background: var(--grad-brand);
}
.section-navy .kicker{ color: var(--green-light); }

.bar{ width:64px; height:4px; border-radius:2px; background: var(--grad-brand); margin: 18px 0 26px; }
.bar.center{ margin-left:auto; margin-right:auto; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  max-width: var(--maxw); margin:0 auto; padding: 0 28px;
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 44px; width:44px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--font-head); font-size:18px; color: var(--navy-deep); letter-spacing: .01em;}
.brand-text span{ font-size:11px; color: var(--slate-light); letter-spacing:.03em; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-size:14.5px; font-weight:600; color: var(--ink);
  padding: 6px 2px; position:relative;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.nav-links a:hover{ color: var(--navy-deep); }
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--blue); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:700; font-size:14.5px;
  padding: 12px 24px; border-radius: 7px; border: none; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn-primary{ background: var(--blue); color:#fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--navy-deep); color:#fff; transform: translateY(-1px); }
.btn-accent{ background: var(--grad-brand); color:#fff; }
.btn-accent:hover{ filter: brightness(1.05); transform: translateY(-1px); color:#fff; }
.btn-ghost{ background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover{ background: rgba(255,255,255,.12); color:#fff; }
.btn-outline{ background:transparent; color:var(--navy-deep); border:1.5px solid var(--line); }
.btn-outline:hover{ border-color: var(--blue); color: var(--blue); }
.btn-sm{ padding: 9px 18px; font-size:13.5px; }

.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: var(--grad-navy);
  color:#fff;
  padding: 108px 0 96px;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background-image: url('../assets/bg-hexagon-plain.png');
  background-size: cover; background-position: left center;
  opacity: .5; mix-blend-mode: screen;
}
.hero-inner{ position:relative; z-index:2; display:grid; grid-template-columns: 1.15fr .85fr; gap:56px; align-items:center; }
.hero h1{ color:#fff; font-size: clamp(34px, 4.4vw, 54px); margin-bottom:20px; }
.hero p.lead{ color:#cddbe4; font-size:18px; max-width:52ch; }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-art{ position:relative; height:100%; display:flex; align-items:center; }
.hero-art img{ border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); width:100%; height:auto; }
.hero-stats{
  display:flex; gap:0; margin-top: 52px; border-top:1px solid rgba(255,255,255,.16); padding-top: 30px;
}
.hero-stats div{ padding-right: 28px; margin-right:28px; border-right: 1px solid rgba(255,255,255,.16); }
.hero-stats div:last-child{ border-right:none; margin-right:0; padding-right:0; }
.hero-stats b{ display:block; font-family: var(--font-head); font-size: 27px; color:#fff; white-space:nowrap; }
.hero-stats span{ font-size:13px; color:#a9bfcb; }

/* Page header (non-home) */
.page-hero{
  position:relative; overflow:hidden;
  background: var(--grad-navy); color:#fff;
  padding: 74px 0 64px;
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background-image: url('../assets/bg-hexagon-plain.png');
  background-size: cover; background-position: left center;
  opacity:.45; mix-blend-mode: screen;
}
.page-hero-inner{ position:relative; z-index:2; max-width: 720px; }
.page-hero h1{ color:#fff; font-size: clamp(30px, 4vw, 44px); margin-bottom:14px;}
.page-hero p{ color:#cddbe4; font-size:17px; }
.breadcrumb{ font-size:13px; color:#93aab8; margin-bottom:16px; }
.breadcrumb a{ color:#93aab8; }
.breadcrumb a:hover{ color:#fff; }

/* ---------- Cards & grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ font-size:14.5px; margin-bottom:0; }
.card .icon{
  width:48px; height:48px; border-radius:10px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(0,121,196,.12), rgba(127,189,42,.12));
}
.card .icon svg{ width:24px; height:24px; stroke: var(--blue); }

.section-head{ max-width: 680px; margin-bottom: 50px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .bar{ margin-left:auto; margin-right:auto; }
.section-head h2{ font-size: clamp(26px,3vw,36px); }

/* Feature split */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.split img{ border-radius: var(--radius); box-shadow: var(--shadow-md); border:1px solid var(--line); }
.split.reverse .col-media{ order:2; }

.mini-list li{
  display:flex; gap:12px; padding: 10px 0; color: var(--ink); font-size:15px;
  border-bottom: 1px dashed var(--line);
}
.mini-list li:last-child{ border-bottom:none; }
.mini-list svg{ flex:none; width:18px; height:18px; stroke: var(--green); margin-top:3px; }

/* Stat strip */
.stat-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap:0; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md); }
.stat-strip div{ background: var(--white); padding: 32px 24px; text-align:center; border-right:1px solid var(--line); }
.stat-strip div:last-child{ border-right:none; }
.stat-strip b{ display:block; font-family: var(--font-head); font-size:32px; color: var(--blue); }
.stat-strip span{ font-size:13px; color: var(--slate); }

/* Timeline */
.timeline{ position:relative; margin-top: 40px; }
.timeline::before{ content:""; position:absolute; left:19px; top:6px; bottom:6px; width:2px; background: var(--line); }
.t-item{ position:relative; padding-left: 56px; padding-bottom: 38px; }
.t-item:last-child{ padding-bottom:0; }
.t-item::before{
  content:""; position:absolute; left:11px; top:4px; width:18px; height:18px; border-radius:50%;
  background:#fff; border:3px solid var(--blue);
}
.t-item .t-date{ font-family: var(--font-head); font-weight:600; color: var(--blue); font-size:14px; margin-bottom:4px; }
.t-item h4{ font-size:16.5px; margin-bottom:6px; }
.t-item p{ font-size:14.5px; margin-bottom:0; }

/* Table */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius: var(--radius); background:#fff; }
table{ width:100%; border-collapse: collapse; font-size:14.5px; min-width: 560px; }
th,td{ text-align:left; padding: 13px 18px; border-bottom:1px solid var(--line); }
th{ background: var(--bg-tint); color: var(--navy-deep); font-family: var(--font-head); font-weight:600; font-size:13.5px; letter-spacing:.01em; }
tr:last-child td{ border-bottom:none; }
td{ color: var(--slate); }

/* Product cards */
.product-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media{
  background: #0f1c26; aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.product-media img{ width:100%; height:100%; object-fit:contain; padding: 18px; }
.product-body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-tag{ font-size:11.5px; font-weight:700; letter-spacing:.04em; color:var(--green); }
.product-body h3{ font-size:17px; margin-bottom:2px; }
.product-body p{ font-size:14px; margin-bottom:0; flex:1; }
.product-specs{ font-size:12.5px; color: var(--slate-light); border-top:1px dashed var(--line); padding-top:10px; margin-top:6px; }

/* Category filter pills */
.pillbar{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 42px; }
.pill{
  padding: 9px 18px; border-radius: 999px; border:1px solid var(--line); background:#fff;
  font-size:13.5px; font-weight:600; color: var(--slate); cursor:pointer; transition: all .15s ease;
}
.pill:hover{ border-color: var(--blue); color: var(--blue); }
.pill.active{ background: var(--navy-deep); border-color: var(--navy-deep); color:#fff; }

/* Anchor offset for in-page nav */
.anchor-target{ scroll-margin-top: 96px; }

/* Instrument spec cards */
.instrument{ display:grid; grid-template-columns: .9fr 1.1fr; gap:0; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:#fff; margin-bottom:28px; box-shadow: var(--shadow-sm);}
.instrument-media{ background:#0f1c26; display:flex; align-items:center; justify-content:center; padding: 30px; }
.instrument-media img{ max-height: 300px; object-fit:contain; }
.instrument-body{ padding: 34px; }
.instrument-body h3{ font-size:22px; margin-bottom:4px; }
.instrument-body .model{ font-family: var(--font-head); color:var(--blue); font-size:14px; font-weight:600; margin-bottom:14px; display:block;}
.spec-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 10px 26px; margin-top:18px; }
.spec-grid div{ font-size:13.5px; border-bottom:1px dashed var(--line); padding-bottom:8px; }
.spec-grid b{ display:block; color: var(--navy-deep); font-size:12px; text-transform:uppercase; letter-spacing:.03em; margin-bottom:2px; }
.spec-grid span{ color: var(--slate); }

/* CTA band */
.cta-band{
  background: var(--grad-brand); border-radius: 16px; padding: 56px; color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:6px; font-size: 28px; }
.cta-band p{ color: rgba(255,255,255,.92); margin-bottom:0; }
.cta-band .btn-primary{ background:#fff; color: var(--navy-deep); }
.cta-band .btn-primary:hover{ background: var(--navy-deep); color:#fff; }

/* Quote / values */
.value-card{ padding: 26px 0; border-top: 1px solid var(--line); }
.value-card:first-child{ border-top:none; }
.value-card h4{ font-size:17px; display:flex; align-items:center; gap:10px; }
.value-card h4 .num{ font-family: var(--font-head); color: var(--blue-light); font-size:14px; border:1.5px solid var(--blue-light); border-radius:50%; width:26px; height:26px; display:flex; align-items:center; justify-content:center; flex:none;}
.value-card p{ font-size:14.5px; margin: 6px 0 0 36px; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap:56px; }
.contact-info-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:30px; margin-bottom:18px; box-shadow: var(--shadow-sm); }
.contact-info-card h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color: var(--slate-light); margin-bottom:8px; }
.contact-info-card p, .contact-info-card a{ font-size:16px; color: var(--navy-deep); margin-bottom:0; font-weight:600; }

.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-size:13.5px; font-weight:600; color: var(--navy-deep); margin-bottom:7px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding: 13px 15px; border:1px solid var(--line); border-radius:7px;
  font-family: var(--font-body); font-size:14.5px; color: var(--ink); background: #fcfdfe;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:none; border-color: var(--blue); background:#fff; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }

/* Footer */
.site-footer{ background: var(--navy-deep); color:#b9cbd6; padding: 64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:44px; margin-bottom:48px; }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:38px; width:38px; }
.footer-brand strong{ font-family: var(--font-head); color:#fff; font-size:17px; }
.site-footer h5{ color:#fff; font-family: var(--font-head); font-size:14px; margin-bottom:18px; letter-spacing:.02em;}
.site-footer a{ color:#a9bfcb; font-size:14px; }
.site-footer a:hover{ color: var(--green-light); }
.site-footer li{ margin-bottom:11px; }
.site-footer p{ color:#8ba4b2; font-size:14px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#7f97a4; }

/* Badges (certifications) */
.badge-row{ display:flex; flex-wrap:wrap; gap:14px; }
.badge{
  display:inline-flex; align-items:center; gap:8px; padding: 10px 16px; border-radius: 999px;
  background:#fff; border:1px solid var(--line); font-size:13px; font-weight:600; color: var(--navy-deep);
}
.badge svg{ width:15px; height:15px; stroke: var(--green); }

/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
  .split{ grid-template-columns: 1fr; gap:32px; }
  .split.reverse .col-media{ order:0; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-2{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .stat-strip div{ border-bottom:1px solid var(--line); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .instrument{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav-links{
    position:fixed; top:78px; left:0; right:0; bottom:0; background:#fff;
    flex-direction:column; align-items:flex-start; padding: 30px 28px; gap:22px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y:auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center; width:40px; height:40px;
    border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer;
  }
  .nav-toggle svg{ width:20px; height:20px; }
  .nav-cta .btn{ display:none; }
  .grid-4, .grid-3{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  section{ padding: 60px 0; }
  .cta-band{ padding: 36px 26px; flex-direction:column; text-align:center; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap:32px; }
  .hero-stats{ flex-wrap:wrap; row-gap:20px; }
  .hero-stats div{ flex: 1 1 40%; border-right:none; margin-right:0; padding-right:0; }
}
