/*
Theme Name: Biomedical B2B Export Theme
Theme URI: https://example.com/biomedical-b2b-export-theme
Author: Codex
Author URI: https://example.com
Description: A WordPress B2B foreign trade theme for biomedical equipment suppliers, with product CPT, export-focused pages, blog templates, menus, logo, and featured image support.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biomedical-b2b
Tags: custom-logo, featured-images, custom-menu, blog, e-commerce, one-column, two-columns
*/

:root {
  --bb-primary: #002a58;
  --bb-primary-2: #0056ac;
  --bb-accent: #0d9488;
  --bb-red: #b7102a;
  --bb-ink: #111c2d;
  --bb-muted: #536070;
  --bb-soft: #f1f5f9;
  --bb-surface: #ffffff;
  --bb-line: #dbe4ef;
  --bb-blue-soft: #e7eeff;
  --bb-shadow: 0 18px 50px rgba(0, 42, 88, 0.12);
  --bb-radius: 8px;
  --bb-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--bb-ink);
  background: #f9fbff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--bb-max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--bb-line);
  backdrop-filter: blur(14px);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--bb-primary); }
.site-branding img { max-height: 46px; width: auto; }
.site-title { font-size: 20px; letter-spacing: 0; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: var(--bb-muted); font-weight: 650; font-size: 14px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--bb-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; border: 1px solid var(--bb-line); background: #fff; color: var(--bb-primary); padding: 9px 11px; border-radius: var(--bb-radius); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--bb-radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.btn-primary { background: var(--bb-primary); color: #fff; }
.btn-primary:hover { background: #001f40; }
.btn-outline { color: var(--bb-primary); border-color: var(--bb-primary); background: #fff; }
.btn-outline:hover { background: var(--bb-blue-soft); }
.btn-light { background: #fff; color: var(--bb-primary); }

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bb-primary);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.68) 46%, rgba(255,255,255,.08));
}
.hero-content { position: relative; z-index: 1; max-width: 710px; padding: 84px 0; }
.eyebrow { display: inline-flex; color: var(--bb-primary-2); font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin-bottom: 16px; }
.heading-like {
  display: block;
  color: var(--bb-primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
h1, h2, h3, h4 { color: var(--bb-primary); line-height: 1.15; letter-spacing: 0; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--bb-muted); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bb-soft); }
.section-dark { background: var(--bb-primary); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 680px; color: var(--bb-muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card:hover { box-shadow: var(--bb-shadow); transform: translateY(-2px); transition: .2s ease; }
.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--bb-radius);
  background: var(--bb-blue-soft);
  color: var(--bb-primary);
  font-weight: 900;
  margin-bottom: 18px;
}
.category-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.image-card { overflow: hidden; padding: 0; }
.image-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bb-soft); }
.image-card .card-body { padding: 24px; }
.solution-card { overflow: hidden; padding: 0; }
.solution-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.solution-card .card-body { padding: 26px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-frame { border-radius: var(--bb-radius); overflow: hidden; border: 1px solid var(--bb-line); box-shadow: var(--bb-shadow); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--bb-muted); }
.check-list li::before { content: "+"; position: absolute; left: 0; color: var(--bb-accent); font-weight: 900; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--bb-blue-soft); color: var(--bb-primary); font-size: 12px; font-weight: 800; }
.archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.sidebar-box { background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); padding: 22px; position: sticky; top: 100px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar-box a { color: var(--bb-muted); font-weight: 700; }
.entry-card { background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); overflow: hidden; }
.entry-card .entry-body { padding: 24px; }
.entry-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bb-soft); }
.page-hero { padding: 84px 0; background: linear-gradient(135deg, var(--bb-primary), #004080); color: #fff; }
.page-hero h1, .page-hero p { color: #fff; }
.content-area { padding: 72px 0; }
.prose { max-width: 820px; }
.prose a { color: var(--bb-primary-2); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 24px; }
.wp-block-image img { border-radius: var(--bb-radius); }
.quote-panel { background: var(--bb-primary); color: #fff; padding: 42px; border-radius: var(--bb-radius); }
.quote-panel h2, .quote-panel p { color: #fff; }
.site-footer { background: #001f40; color: rgba(255,255,255,.78); padding-top: 64px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding: 22px 0; font-size: 13px; }
.screen-reader-text { position: absolute; left: -9999px; }
.nav-links { display: flex; gap: 14px; justify-content: center; margin-top: 36px; }
.nav-links a, .nav-links span { padding: 8px 12px; border: 1px solid var(--bb-line); background: #fff; border-radius: var(--bb-radius); }
.not-found-search { max-width: 560px; }
.search-form { display: flex; gap: 10px; }
.search-field { width: 100%; min-height: 44px; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); padding: 10px 12px; }
.search-submit { border: 0; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .site-navigation { display: none; position: absolute; left: 20px; right: 20px; top: 78px; background: #fff; border: 1px solid var(--bb-line); border-radius: var(--bb-radius); padding: 18px; box-shadow: var(--bb-shadow); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 14px; }
  .header-actions .btn { display: none; }
  .grid-3, .grid-4, .split, .archive-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero { min-height: 600px; }
  .hero::after { background: rgba(255,255,255,.86); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--bb-max)); }
  .section { padding: 58px 0; }
  .hero-actions, .search-form { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .site-title { font-size: 17px; }
}
