/* China Med Voyage — Design System v1.0
   Palette: deep teal (trust/medical) + warm gold (concierge) + off-white */
:root {
  --ink: #16324a; --ink-soft: #3e5f7a; --muted: #7d93a8;
  --teal: #0ea5e9; --teal-deep: #0284c7; --teal-ink: #0b4f73;
  --gold: #f97316; --gold-soft: #ffedd5;
  --bg: #f5fafd; --card: #ffffff; --line: #e3edf5;
  --ok: #2e7d32; --warn: #b26a00;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 46, .08);
  --shadow-sm: 0 4px 14px rgba(15, 42, 46, .07);
  --font: "Inter", "Segoe UI", "Noto Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --maxw: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 16.5px;
}
[dir="rtl"] body { font-family: var(--font-ar); }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 44px 0; }
.section.alt { background: #f3f1ea; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(251,250,247,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-row { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: .93rem; font-weight: 600; color: var(--ink-soft);
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px;
  font: 600 .88rem var(--font); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: none; z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.lang-menu a:hover, .lang-menu a.active { background: var(--gold-soft); text-decoration: none; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(14,124,134,.3); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-gold { background: var(--gold); color: #241a00; box-shadow: 0 6px 18px rgba(201,162,39,.28); }
.btn-wa { background: #25d366; color: #06340f; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(118deg, #0b5b8f 0%, #0284c7 48%, #38bdf8 100%);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38;
}
.hero-inner { position: relative; padding: 92px 0 96px; max-width: 780px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin-bottom: 16px; }
.hero .lead { color: #d9eef0; font-size: 1.14rem; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: #0b4f73; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); position: relative;
}
.card h3 { margin-bottom: 8px; }
.card .muted { font-size: .92rem; }
.pillar-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pillar-icon svg { width: 26px; height: 26px; }
.tag {
  display: inline-block; background: #e0f2fe; color: #0b5b8f; border-radius: 999px;
  padding: 3px 11px; font-size: .76rem; font-weight: 700;
}
.tag.gold { background: var(--gold-soft); color: #9a3412; }
.price-tag { font-weight: 800; color: var(--teal-deep); font-size: 1.1rem; }
.hosp-photo { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius-sm); display: block; }
.photo-credit { position: absolute; bottom: 6px; inset-inline-end: 8px; background: rgba(255,255,255,.85); color: #475569; font-size: .58rem; padding: 1px 7px; border-radius: 999px; pointer-events: none; }

/* Hospital cards */
.hosp-card { display: flex; flex-direction: column; gap: 10px; }
.hosp-card .city-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.hosp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hosp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.badge-direct { color: var(--ok); font-size: .78rem; font-weight: 700; }
.badge-nodirect { color: var(--warn); font-size: .78rem; font-weight: 700; }
.hosp-art { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; background: #e0f2fe; position: relative; }
.hosp-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hosp-card:hover .hosp-art img { transform: scale(1.03); }

/* Filters */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.filter-bar select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: 600 .92rem var(--font); color: var(--ink); min-width: 200px;
}
.result-count { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

/* ---------- Steps / timeline ---------- */
.steps { display: flex; gap: 0; overflow-x: auto; padding: 10px 0 6px; }
.step-pill { flex: 1; min-width: 150px; text-align: center; position: relative; padding: 18px 10px; }
.step-pill .num {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #0ea5e9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; position: relative; z-index: 2;
}
.step-pill:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--line);
}
.step-pill h4 { font-size: .95rem; }
.step-pill p { font-size: .8rem; color: var(--muted); }
.timeline { position: relative; margin: 30px 0; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; inset-inline-start: -29px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold);
}
.scene-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.scene-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.scene-card .scene-label { position: absolute; bottom: 0; inset-inline: 0; background: linear-gradient(transparent, rgba(11,79,115,.82)); color: #fff; padding: 26px 18px 14px; font-weight: 700; font-size: .95rem; }
.tl-item h4 { display: flex; gap: 10px; align-items: baseline; }
.tl-item .tl-no { color: var(--teal); font-weight: 800; }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 10px; font-size: .9rem; }
.tl-grid b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.tl-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }

/* ---------- Pricing ---------- */
.pkg-card { display: flex; flex-direction: column; }
.pkg-card.featured { border: 2px solid var(--gold); }
.pkg-card .pkg-flag {
  position: absolute; top: -13px; inset-inline-start: 24px; background: var(--gold); color: #241a00;
  font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em;
}
.pkg-price { font-size: 1.7rem; font-weight: 800; color: var(--teal-deep); margin: 6px 0 2px; }
.pkg-price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.pkg-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; font-size: .9rem; }
.pkg-lists ul { list-style: none; }
.pkg-lists li { padding: 5px 0 5px 22px; position: relative; }
[dir="rtl"] .pkg-lists li { padding: 5px 22px 5px 0; }
.pkg-lists li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.pkg-lists .no li::before { content: "✕"; color: var(--warn); }
.addon-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.addon-row:last-child { border-bottom: none; }
.addon-row .price { font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.notice {
  background: var(--gold-soft); border: 1px solid #e7d9ac; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .92rem; color: #5c4a00;
}
.fineprint { font-size: .78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 34px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: start; background: none; border: none; padding: 16px 18px;
  font: 700 .98rem var(--font); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
}
.faq-q::after { content: "+"; color: var(--teal); font-size: 1.2rem; flex: none; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--ink-soft); font-size: .93rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact form ---------- */
.form-card { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: 400 .95rem var(--font); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(14,124,134,.35); border-color: var(--teal);
}
.step-badge { display: inline-block; background: var(--teal); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .8rem; font-weight: 700; margin-bottom: 18px; }
#step2 { display: none; }
#step2.shown { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin: 14px 0; display: none; }
.form-msg.err { display: block; background: #fdecea; color: #8c2b20; border: 1px solid #f2c4bf; }
.form-msg.ok { display: block; background: #e9f5ec; color: #1d5c2a; border: 1px solid #bfdec8; }
.success-panel { text-align: center; padding: 30px 10px; display: none; }
.success-panel .lead-no { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: var(--teal-deep); background: #eef4f4; border-radius: 12px; display: inline-block; padding: 10px 24px; margin: 12px 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 80; background: #25d366; color: #fff; border-radius: 999px;
  display: flex; align-items: center; gap: 9px; padding: 13px 20px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); bottom: 22px; inset-inline-end: 22px;
}
.wa-float:hover { text-decoration: none; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .wa-float { inset-inline: 12px; justify-content: center; bottom: 12px; }
  body { padding-bottom: 58px; }
}

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; z-index: 90; bottom: 0; inset-inline: 0; background: #0b4f73; color: #eaf4fb;
  padding: 16px 20px; display: none; box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-bar.show { display: block; }
.cookie-row { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-row p { flex: 1; min-width: 240px; font-size: .88rem; }
.cookie-row .btn { padding: 9px 18px; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: #eaf4fb; color: #3e5f7a; padding: 54px 0 34px; margin-top: 60px; border-top: 1px solid #d8e8f3; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; font-size: .9rem; }
.site-footer h4 { color: #16324a; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer a { color: #3e5f7a; }
.site-footer a:hover { color: #0284c7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.foot-disclaimer {
  border-top: 1px solid #d8e8f3; margin-top: 34px; padding-top: 20px;
  font-size: .8rem; color: #7d93a8; line-height: 1.6;
}
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: .8rem; color: #7d93a8; }

/* ---------- Article ---------- */
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.02rem; }
.article-body p { margin-bottom: 1.1em; color: var(--ink-soft); }
.article-body h2 { margin: 1.8em 0 .7em; }
.article-body h3 { margin: 1.4em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em 1.4em; color: var(--ink-soft); }
[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol { margin: 0 1.4em 1.1em 0; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 26px 0; background: #e0f2fe; }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .87rem; margin: 10px 0 6px; }
.article-card { display: flex; flex-direction: column; gap: 10px; }
.article-card .thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #e0f2fe; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .thumb svg { width: 100%; height: 100%; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .83rem; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--muted); }

/* ---------- Misc ---------- */
.cta-band { background: linear-gradient(118deg, #0b5b8f, #0ea5e9); color: #fff; border-radius: var(--radius); padding: 44px 40px; text-align: center; }
.cta-band .lead { color: #cfe4e6; margin: 10px auto 22px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .95rem; }
.kv dt { font-weight: 700; color: var(--muted); white-space: nowrap; }
.kv dd { color: var(--ink-soft); }
.skeleton-note { background: #f0ede4; border: 1px dashed #cfc9b8; color: #6b6552; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; }
.lang-fallback { display: inline-block; background: var(--gold-soft); color: #7a5c00; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-inline-start: 8px; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; inset-inline: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; box-shadow: var(--shadow);
  }
  .burger { display: block; margin-inline-start: auto; }
  .tl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero-inner { padding: 64px 0 72px; }
  .pkg-lists { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-wa { display: none; }
}
@media print { .wa-float, .cookie-bar, .site-header { display: none; } }
