/* ==========================================================================
   Cosmos Medical — shared stylesheet
   ========================================================================== */

:root {
  --navy-900: #0f2b52;
  --navy-800: #14396b;
  --blue-600: #1f6fb2;
  --blue-500: #2b83cc;
  --blue-100: #e8f2fb;
  --blue-50:  #f4f9fd;
  --coral-600: #c8394a;
  --coral-500: #dd5164;
  --coral-100: #fce9ec;
  --cream:    #faf8f4;
  --ink-900:  #16202e;
  --ink-600:  #48566a;
  --ink-400:  #8493a6;
  --line:     #e4e9f0;
  --white:    #ffffff;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(15, 43, 82, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 43, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 43, 82, 0.16);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--coral-600);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral-600);
  display: inline-block;
}

h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
.lede { font-size: 18px; color: var(--ink-600); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.bg-cream { background: var(--cream); }
.bg-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 60%, var(--blue-600));
  color: var(--white);
}
.bg-navy .ink-600, .bg-navy .lede { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-500); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 900; font-size: 15px; color: var(--navy-900); letter-spacing: 0.02em; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-400); letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-600);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-100); color: var(--navy-900); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-900); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 84px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 110px; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; text-align: center; } .hero-actions { justify-content: center; } .hero-stats { justify-content: center; } }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; font-weight: 900; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,0.7); }

.hero-bg-shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }

.hero-visual { max-width: 440px; margin: 0 auto; }
.hero-visual img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); }
.hero-actions-right { justify-content: flex-end; margin-top: 22px; }
@media (max-width: 900px) { .hero-actions-right { justify-content: center; } }

/* ---------- Value / feature cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-600); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-600); font-size: 15px; }

/* ---------- FAQ accordion ---------- */
.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h3 { margin-bottom: 18px; color: var(--navy-900); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-item summary {
  padding: 18px 22px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--blue-600); flex: none;
  transition: transform 0.2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 18px 22px 20px; color: var(--ink-600); font-size: 15px; line-height: 1.85; }

/* ---------- Stat strip ---------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-strip > div { flex: 1 1 200px; padding: 30px 26px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: none; }
.stat-strip strong { display: block; font-size: 30px; font-weight: 900; color: var(--navy-900); }
.stat-strip span { font-size: 14px; color: var(--ink-600); }

/* ---------- Product spotlight ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse .split-media { order: 2; }
.split.form-split { grid-template-columns: 1.7fr 1fr; align-items: start; }
@media (max-width: 900px) { .split.form-split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.media-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 14px 20px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line);
}
.media-badge strong { display: block; font-size: 18px; color: var(--navy-900); }
.media-badge span { font-size: 12px; color: var(--ink-400); }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
@media (max-width: 480px) { .spec-list { grid-template-columns: 1fr; } }
.spec-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-600); }
.spec-list li b { color: var(--ink-900); }
.check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--coral-100); color: var(--coral-600);
  display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px;
}

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tag { background: var(--blue-100); color: var(--navy-800); font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral-600); box-shadow: 0 0 0 4px var(--coral-100); }
.timeline .year { font-weight: 900; color: var(--blue-600); font-size: 14px; letter-spacing: .05em; }

/* ---------- Pillars ---------- */
.pillar { text-align: center; padding: 34px 20px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-600); font-size: 14px; }

/* ---------- Data table ---------- */
.table-clean { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-clean th, .table-clean td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table-clean th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 700; }
.table-clean td b { color: var(--navy-900); }
.table-clean tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }

/* ---------- CTA banner ---------- */
.cta-banner { border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
@media (max-width: 720px) { .cta-banner { text-align: center; justify-content: center; padding: 40px 26px; } }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); }
.field .req { color: var(--coral-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink-900); background: var(--blue-50);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-500); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-400); margin-top: 6px; }
.form-success { display: none; background: var(--blue-100); border: 1px solid var(--blue-500); border-radius: var(--radius-md); padding: 18px 20px; font-weight: 700; color: var(--navy-900); margin-bottom: 20px; }
.form-success.show { display: block; }

.info-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 40px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }
.info-row strong { display: block; font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: .04em; }
.info-row p { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ---------- Breadcrumb hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 56px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 60%, var(--blue-600));
  color: var(--white);
}
.page-hero .crumb { position: relative; z-index: 1; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .eyebrow { position: relative; z-index: 1; color: #ffb1bb; }
.page-hero .eyebrow::before { background: #ffb1bb; }
.page-hero h1, .page-hero .lede { position: relative; z-index: 1; }
.page-hero .lede { color: rgba(255,255,255,0.78); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.82); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 12px; font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
