/* LabVial Pro — facade microsite styles
   Brand colors injected via CSS custom properties at build time. */

:root {
  --primary: #0F4C81;
  --accent: #14B8A6;
  --bg: #F8FAFB;
  --text: #1F2937;
  --subtle: #6B7280;
  --border: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 32px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.75rem 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem 0; }
ul, ol { margin: 0 0 1rem 0; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
.muted { color: var(--subtle); font-size: 0.9rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.content-narrow { max-width: 760px; }

/* ─────────────────────────────────────────────────────────── */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease;
}
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border-color: rgba(0,0,0,0.12); }
.btn-ghost:hover { background: rgba(0,0,0,0.03); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.kicker { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--subtle); margin-bottom: 1.25rem; }
.link-arrow { font-weight: 600; }

/* ─────────────────────────────────────────────────────────── */
/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.25rem; gap: 1rem; }
.brand-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 0.95rem; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand-tag { color: var(--subtle); font-size: 0.78rem; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
@media (max-width: 800px) { .site-nav { display: none; } .brand-tag { display: none; } }

/* ─────────────────────────────────────────────────────────── */
/* Hero */
.hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; color: var(--subtle); font-size: 0.9rem; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero-img { order: -1; } }

/* ─────────────────────────────────────────────────────────── */
/* Features */
.features { padding: 3rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { padding: 1.5rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); }
.feature-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 8px; font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--subtle); font-size: 0.92rem; margin: 0; }
@media (max-width: 800px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────── */
/* Product grid */
.featured-products { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-grid-wide { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .product-grid, .product-grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .product-grid, .product-grid-wide { grid-template-columns: 1fr; } }

.product-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform 0.12s ease, box-shadow 0.15s ease; display: flex; flex-direction: column; text-decoration: none !important; color: var(--text); }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card-img { aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 1rem 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.product-card-tagline { color: var(--subtle); font-size: 0.82rem; margin-bottom: 0.85rem; flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-weight: 700; font-size: 1.05rem; }

/* Product detail */
.product-detail { padding: 2.5rem 0 4rem; }
.breadcrumb { color: var(--subtle); font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--subtle); }
.breadcrumb span { margin: 0 0.4rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; } }
.product-detail-img img { border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 4/3; object-fit: cover; }
.product-detail-info h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.price-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.price { font-size: 1.75rem; font-weight: 700; }
.compare { color: var(--subtle); text-decoration: line-through; font-size: 1.05rem; }
.badge-stock { background: var(--accent); color: #fff; padding: 0.25rem 0.65rem; border-radius: 99px; font-size: 0.78rem; font-weight: 600; }
.specs { margin: 1.5rem 0; padding: 1rem 1.25rem; background: rgba(0,0,0,0.025); border-radius: 8px; }
.specs h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.specs ul { margin: 0; padding-left: 1.25rem; }
.specs li { font-size: 0.9rem; }
.legal-note { font-size: 0.85rem; color: var(--subtle); border-left: 3px solid var(--accent); padding-left: 0.75rem; margin: 1.25rem 0; }
.trust-row { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; color: var(--subtle); font-size: 0.88rem; }

/* ─────────────────────────────────────────────────────────── */
/* Testimonials */
.testimonials { padding: 3rem 0; background: rgba(0,0,0,0.025); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.testimonial { padding: 1.5rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); }
.testimonial-quote { font-size: 0.98rem; margin-bottom: 1rem; }
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-role { font-size: 0.82rem; color: var(--subtle); }
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────── */
/* CTA band */
.cta-band { padding: 3rem 0; background: var(--primary); color: #fff; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-band-inner { text-align: center; max-width: 600px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }

/* ─────────────────────────────────────────────────────────── */
/* Page header (sub-pages) */
.page-header { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); }

/* Content pages */
.content-page { padding: 2rem 0 4rem; }
.content-page h2 { margin-top: 2rem; }
.content-page ol li, .content-page ul li { margin-bottom: 0.5rem; }

/* Catalog */
.catalog { padding: 2rem 0 3rem; }
.catalog-info { padding: 2rem 0 4rem; border-top: 1px solid var(--border); }
.catalog-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .catalog-info-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 1rem 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-grid label { display: block; margin-bottom: 1rem; }
.contact-grid label span { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.9rem; }
.contact-grid input, .contact-grid textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
.contact-grid input:focus, .contact-grid textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Confirmation */
.confirmation { padding: 4rem 0; }
.confirmation-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); margin: 1.5rem 0; }

/* ─────────────────────────────────────────────────────────── */
/* Footer */
.site-footer { background: #f5f7f9; padding: 3rem 0 2rem; margin-top: 3rem; border-top: 1px solid var(--border); }
.site-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col li a { color: var(--text); font-size: 0.92rem; }
.footer-brand p { color: var(--subtle); font-size: 0.88rem; }
.site-footer-bottom { padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.disclaimer { max-width: 600px; text-align: right; }
@media (max-width: 800px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } .disclaimer { text-align: left; } }
@media (max-width: 500px) { .site-footer-inner { grid-template-columns: 1fr; } }


/* ─────────────────────────────────────────────────────────── */
/* Footer additions (HK alignment) */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-col a { display: block; color: var(--text); font-size: 0.92rem; padding: 0.18rem 0; }
.footer-col a:hover { color: var(--primary); }
.footer-disclaimer { padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--subtle); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Hero meta strip */
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--subtle); }
.hero-meta span { font-weight: 500; }

/* Product card improvements */
.product-card-tagline { color: var(--subtle); font-size: 0.85rem; margin-top: 0.2rem; }
.product-card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.6rem; }
.product-card-price { font-weight: 700; color: var(--primary); }
.product-card-cta { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.product-card[data-quote-only="1"] .product-card-cta { color: var(--primary); }

/* Product detail */
.breadcrumb { font-size: 0.85rem; color: var(--subtle); padding: 1.5rem 0 0.5rem; }
.breadcrumb a { color: var(--subtle); }
.breadcrumb span { margin: 0 0.4rem; }
.product-detail { padding: 1rem 0 4rem; }
.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; margin-top: 1.5rem; }
.product-detail-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 800px) { .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.price-row { display: flex; align-items: baseline; gap: 0.85rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.price-row .price { font-size: 2rem; font-weight: 700; color: var(--primary); }
.price-row .compare { font-size: 1rem; color: var(--subtle); text-decoration: line-through; }
.badge-stock { padding: 0.18rem 0.6rem; background: rgba(20, 184, 166, 0.12); color: var(--accent); border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* Tiered pricing */
.product-tiers { margin: 1.5rem 0; padding: 1rem; background: rgba(0,0,0,0.02); border-radius: var(--radius); border: 1px solid var(--border); }
.product-tiers h3 { margin: 0 0 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); }
.tier-list { list-style: none; padding: 0; margin: 0; }
.tier-list li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.tier-list li:last-child { border-bottom: 0; }
.tier-price { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

/* Specs box */
.specs { background: rgba(15, 76, 129, 0.04); padding: 1rem; border-radius: var(--radius); margin: 1.5rem 0; }
.specs h3 { margin: 0 0 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.specs ul { margin: 0; padding-left: 1.1rem; }
.specs li { font-size: 0.88rem; }

/* Trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: 0.82rem; color: var(--subtle); }
.legal-note { font-size: 0.8rem; color: var(--subtle); font-style: italic; margin: 1rem 0; }

/* Reviews */
.product-reviews { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.product-reviews h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.review { background: var(--card-bg); padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); }
.review-stars { color: #f5a623; font-size: 0.95rem; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.review-text { font-size: 0.95rem; font-style: italic; color: var(--text); margin: 0 0 0.5rem; }
.review-author { font-size: 0.82rem; color: var(--subtle); margin: 0; }

/* Big link */
.big-link { font-size: 1.15rem; font-weight: 600; }
