/* Biotech Innovation Gateway — shared site styles */

:root {
  --blue: #1f6fb2;
  --blue-dark: #14507f;
  --green: #6cbf3f;
  --green-dark: #4f9a2b;
  --ink: #1e2530;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-soft: #f4f7f9;
  --border: #e2e8ee;
  --shadow: 0 4px 18px rgba(20, 60, 90, 0.08);
  --radius: 12px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 64px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  background: var(--paper-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* ---------- Cart button ---------- */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--blue-dark);
  padding: 8px 10px;
  margin-left: 4px;
  line-height: 1;
}
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,16,22,0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--paper);
  z-index: 1101;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-head h3 { margin: 0; font-size: 1.15rem; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 22px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-info strong { font-size: 0.95rem; }
.cart-item-info span { font-size: 0.8rem; color: var(--ink-soft); }
.cart-item-info .cart-item-price { font-size: 0.82rem; color: var(--blue-dark); font-weight: 600; margin-top: 2px; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 6px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.cart-total span:last-child { color: var(--blue-dark); }
.cart-total-note { font-size: 0.76rem; color: var(--ink-soft); font-weight: 500; margin: 0 0 10px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.cart-qty {
  width: 52px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}
.cart-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #c0392b;
  cursor: pointer;
  line-height: 1;
}

.cart-empty-msg {
  padding: 20px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cart-form { padding: 4px 22px 22px; border-top: 1px solid var(--border); }
.cart-fields { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.cart-fields input,
.cart-fields textarea {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
}
.cart-fields textarea { resize: vertical; }
.cart-fields .btn { width: 100%; text-align: center; }
.cart-hint { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 20px 18px;
  }
}

/* ---------- Hero / slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider .slide.contain img {
  object-fit: contain;
  background: #ffffff;
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active { background: #fff; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,30,40,0.35);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
}
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow:hover { background: rgba(20,30,40,0.6); }

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, var(--green));
  color: #fff;
  padding: 64px 0 52px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: 2.3rem; }
.page-hero p { margin: 0; font-size: 1.1rem; opacity: 0.95; max-width: 700px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--paper-soft); }

.section-title {
  font-size: 1.9rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.section-subtitle {
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-size: 1.05rem;
  max-width: 760px;
}
.center { text-align: center; }
.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Why choose grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-card .dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.why-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn.btn-green { background: var(--green); }
.btn.btn-green:hover { background: var(--green-dark); }
.btn.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta-band p { margin: 0 0 26px; opacity: 0.95; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.team-card h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--blue-dark); }
.team-card .role { color: var(--green-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.team-card .title { font-weight: 600; margin: 0 0 4px; }
.team-card .exp { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 14px; }
.team-card .scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Products / antibodies ---------- */
.intro-block {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}
.why-list {
  columns: 2;
  column-gap: 40px;
  max-width: 760px;
  margin: 0 auto 44px;
  list-style: none;
  padding: 0;
}
.why-list li {
  break-inside: avoid;
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}
@media (max-width: 620px) { .why-list { columns: 1; } }

.antibody-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.antibody-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  width: 100%;
}
.antibody-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,60,90,0.14); }
.ab-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.antibody-card img { width: 100%; height: 150px; object-fit: cover; object-position: top; }
.antibody-card .ab-body { padding: 14px 16px; }
.antibody-card .ab-num { color: var(--green-dark); font-weight: 700; font-size: 0.8rem; }
.antibody-card .ab-name { font-weight: 700; color: var(--ink); margin: 2px 0 6px; font-size: 1rem; }
.antibody-card .ab-price { margin: 0 0 12px; font-size: 0.88rem; font-weight: 700; color: var(--blue-dark); line-height: 1.5; }
.antibody-card .ab-price-note { font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; }
.antibody-card .ab-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.antibody-card .ab-view { color: var(--blue); font-size: 0.85rem; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; }
.antibody-card .btn-add-cart {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.antibody-card .btn-add-cart:hover { background: var(--green-dark); }
.antibody-card .btn-add-cart.added { background: var(--blue-dark); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,16,22,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Services ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 60px;
}
.service-block.reverse .service-text { order: 2; }
.service-block.reverse .service-figure { order: 1; }
.service-figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.service-text h3 { font-size: 1.4rem; margin: 0 0 6px; color: var(--blue-dark); }
.service-text p { color: var(--ink-soft); }
.service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.service-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  font-size: 0.96rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
@media (max-width: 800px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-text,
  .service-block.reverse .service-figure { order: initial; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-grid-single {
  max-width: 560px;
  margin: 0 auto;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item .ic {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 10px;
  background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
}
.contact-item h4 { margin: 0 0 4px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.contact-item p { margin: 0; font-weight: 600; }
.contact-item a { font-weight: 600; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.social-row a:hover { background: var(--blue); color: #fff; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd8e3;
  padding: 44px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-grid p, .footer-grid a { color: #b8c2cf; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { height: 42px; margin-bottom: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.85rem;
  color: #8b96a4;
  text-align: center;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
