/* ================================================================
   Axiom Regenerative Sciences — Shared Stylesheet
   Clean medical / scientific aesthetic — green-teal palette
   ================================================================ */

:root {
  --primary: #0d9488;        /* teal */
  --primary-dark: #0f6b60;
  --accent: #22c55e;         /* green */
  --accent-dark: #16a34a;
  --accent-soft: #ecfdf5;
  --ink: #0f1f1c;
  --ink-soft: #3b4a47;
  --muted: #6b7a77;
  --bg: #ffffff;
  --bg-soft: #f3faf7;
  --border: #dfeee8;
  --shadow: 0 4px 18px rgba(13, 148, 136, 0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, "Helvetica Neue", Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="zh"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

/* ---------- Top announcement bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #e8f9f4;
  font-size: 0.875rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #ffffff; }
.topbar a:hover { color: #b5f0dd; text-decoration: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  color: var(--muted); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
html[lang="zh"] .brand-text small { letter-spacing: 0.04em; text-transform: none; font-size: 0.78rem; }

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--bg-soft); color: var(--primary-dark); text-decoration: none; }
.nav a.active { color: var(--primary-dark); background: var(--accent-soft); }

/* language toggle */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lang-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.lang-toggle::before {
  content: "🌐";
  margin-right: 6px;
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: white; }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, #d1fae5 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, #ccfbf1 0%, transparent 55%),
    #ffffff;
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
html[lang="zh"] .hero-eyebrow { text-transform: none; letter-spacing: 0.02em; }

.hero h1 { margin-bottom: 18px; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(13, 148, 136, 0.18), transparent 55%),
    linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 40px;
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
}

/* ---------- Section ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p { font-size: 1.05rem; }
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 10px;
}
html[lang="zh"] .eyebrow { text-transform: none; letter-spacing: 0.05em; font-size: 0.85rem; }

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  border-color: #9de0c8;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary-dark);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 16px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
html[lang="zh"] .card-tag { text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }

/* ---------- Step list (process) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: stepcount;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  counter-increment: stepcount;
}
.step::before {
  content: "0" counter(stepcount);
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.6rem; font-weight: 800;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
}
.step h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.step p { margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: #9de0c8; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .info-row {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .info-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
}
html[lang="zh"] .contact-info .info-label { text-transform: none; letter-spacing: 0.02em; font-size: 0.82rem; }
.contact-info strong { color: var(--ink); }

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.form textarea { min-height: 130px; resize: vertical; }

/* ---------- Stats / highlights strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 120%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6f5ec; font-size: 1.05rem; max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn {
  background: #fff; color: var(--primary-dark) !important;
}
.cta-band .btn:hover { background: #eafaf3; }

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  background:
    radial-gradient(ellipse at top right, #d1fae5 0%, transparent 55%),
    #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 68px 0 48px;
}
.page-head h1 { margin: 0 0 10px; }
.page-head p { max-width: 680px; font-size: 1.1rem; margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1a17;
  color: #c5d7d2;
  padding: 56px 0 22px;
  font-size: 0.95rem;
}
.site-footer a { color: #c5d7d2; }
.site-footer a:hover { color: #ffffff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 600;
}
html[lang="zh"] .footer-grid h4 { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #8a9a95;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}
.divider { height: 1px; background: var(--border); margin: 32px 0; }

ul.check {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
ul.check li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center/contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center/contain;
  background: var(--accent);
}
