/* ============================================================
   Rivercrest Biotechnology Consulting & Trading — main styles
   Palette derived from the logo (deep forest green gradient)
   ============================================================ */
:root {
  --green-900: #163d2e;
  --green-800: #1f5a3f;
  --green-700: #2a6f4a;
  --green-600: #3a8a5c;
  --green-100: #e6f1ea;
  --green-50: #f3f8f5;
  --ink: #1b2a24;
  --muted: #5d6f66;
  --line: #dde6e0;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 61, 46, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 72px 0; }
.section-alt { background: var(--green-50); }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; margin-bottom: 10px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-100); }

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav { margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .95rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--green-700); background: var(--green-50); }
.nav-link .chev { font-size: .7rem; transition: transform .2s; }
.has-dropdown.open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500;
}
.dropdown a:hover, .dropdown a.active { background: var(--green-50); color: var(--green-700); }
.dropdown a i { width: 20px; text-align: center; color: var(--green-600); }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; color: var(--green-900); cursor: pointer; padding: 6px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 90px 0; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 28px; backdrop-filter: blur(6px);
}
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; }
.hero-card li i { color: #a9e3c0; margin-top: 4px; }
.hero-card strong { display: block; }
.hero-card span { color: rgba(255,255,255,.8); font-size: .92rem; }

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 64px 0;
}
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 720px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px;
}
.card p { color: var(--muted); flex: 1; }
.card .link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------------- Product list ---------------- */
.topic-title { display: block; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 3px solid var(--green-600); }
.products-title { font-size: 1.5rem; margin-bottom: 16px; }
.brand-section { margin-bottom: 56px; }
.brand-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.brand-badge {
  padding: 8px 16px; border-radius: 10px; background: var(--green-900); color: #fff; font-weight: 800; letter-spacing: .04em;
}
.brand-header p { margin: 0; color: var(--muted); flex: 1; min-width: 240px; }
.brand-header p a { font-weight: 600; white-space: nowrap; }
.brand-logo-link {
  display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; flex-shrink: 0;
}
.brand-logo-link img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.product-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.product-card.no-media { grid-template-columns: 1fr; }
.product-media {
  background: var(--green-50); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 240px;
  border-right: 1px solid var(--line);
}
.product-media img { max-height: 220px; object-fit: contain; border-radius: 8px; }
.product-body { padding: 28px 32px; min-width: 0; }
.product-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 170px; color: var(--muted); font-weight: 600; background: var(--green-50); white-space: nowrap; }
.spec-table td { white-space: nowrap; }
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Instrument page: two-column static spec tables, values may wrap */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.spec-table-static { margin: 0; }
.spec-table-static th { width: 230px; white-space: normal; }
.spec-table-static td { white-space: normal; }
.instrument-photo { padding: 20px; background: #fff; }
.instrument-photo img { object-fit: contain; max-height: 380px; }
.spec-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--green-50); padding: 2px 6px; border-radius: 5px; color: var(--green-900); }
.intended-use h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-600); margin-bottom: 6px; }
.intended-use p { color: var(--ink); margin: 0 0 10px; }
.intended-use p:last-child { margin-bottom: 0; }
.iu-bullets { margin: 0 0 10px; padding-left: 22px; color: var(--ink); }
.iu-bullets li { margin-bottom: 4px; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list li i { color: var(--green-600); margin-top: 5px; }
.feature-list strong { display: block; color: var(--green-900); }
.feature-list span { color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; }
.stat strong { display: block; font-size: 2rem; color: var(--green-700); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Brand wall */
.brand-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-logo {
  height: 70px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; color: var(--green-900);
}
.brand-logo img { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.brand-tile .brand-site { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 600; }
.brand-wall-4 { grid-template-columns: repeat(4, 1fr); }
.brand-tile p { flex: 1; }
.brand-tile { display: flex; flex-direction: column; align-items: center; }
.company-tagline {
  margin: 48px 0 0; text-align: center; font-size: 1.35rem; font-weight: 700; color: var(--green-800);
  padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.contact-list-wide { grid-template-columns: repeat(2, 1fr); gap: 26px 48px; max-width: 1000px; }
.partner-card {
  background: var(--green-50); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
}
.partner-logo { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 22px; text-align: center; }
.partner-logo img { height: 54px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.brand-tile p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.brand-tile small { color: var(--green-600); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list i { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--green-900); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--green-900); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--ink); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--green-600); border-color: transparent; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-success { background: var(--green-100); color: var(--green-900); padding: 14px 16px; border-radius: 10px; margin-top: 12px; display: none; }

/* CTA band */
.cta-band { background: var(--green-900); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* Notice */
.notice {
  background: var(--green-50); border-left: 4px solid var(--green-600); padding: 14px 18px; border-radius: 8px; color: var(--muted); font-size: .9rem;
}

/* ---------------- Footer ---------------- */
.site-footer { background: #0f2b20; color: rgba(255,255,255,.78); padding: 36px 0 28px; margin-top: 0; }
.footer-simple { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-company { margin: 0; color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.footer-copy { margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { background: #fff; border-radius: 12px; padding: 12px 14px; display: inline-block; margin-bottom: 16px; }
.footer-brand img { height: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-wall, .brand-wall-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* Mobile: logo centred on top, the four nav items side by side underneath (no hamburger) */
  .nav-toggle { display: none; }
  .header-inner { height: auto; flex-direction: column; align-items: center; padding: 12px 0 0; gap: 8px; }
  .brand img { height: 48px; }
  .main-nav {
    display: flex; width: 100%; justify-content: space-between; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line);
  }
  .main-nav > li { flex: 1; text-align: center; position: static; }
  .nav-link {
    width: 100%; justify-content: center; padding: 12px 4px; font-size: .82rem; border-radius: 0; gap: 4px;
  }
  .nav-link.active { box-shadow: inset 0 -3px 0 var(--green-700); }
  .dropdown { left: 4%; right: 4%; min-width: 0; }
  .has-dropdown:hover .dropdown { opacity: 0; visibility: hidden; }
  .has-dropdown.open .dropdown, .has-dropdown.open:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
  .hero-grid, .split, .contact-grid, .grid-2, .spec-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 56px 0; gap: 28px; }
  .product-card { grid-template-columns: 1fr; }
  .product-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
  .product-body { padding: 22px; }
  /* Stack label above value so every value stays on one line */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .spec-table th { background: none; padding: 0 0 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; border: 0; }
  .spec-table td { padding: 0; border: 0; font-size: .92rem; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .stats, .brand-wall, .brand-wall-4, .footer-grid, .form-row, .contact-list-wide, .spec-grid { grid-template-columns: 1fr; }
  .company-tagline { font-size: 1.1rem; }
  .nav-link { font-size: .76rem; padding: 11px 2px; }
  .nav-link .chev { font-size: .6rem; }
}
