/* China Care Gateway — editorial redesign 2026-11-06
   Design language: "Deep Ink Editorial" — a quiet, magazine-grade system.
   Deep ink-slate masthead and hero, warm ivory paper, hairline rules,
   a serif display face with tracked uppercase eyebrows, muted gold used
   only as a whisper. No gradients, no shadows, no rounded cards. */

:root {
  --ink: #15242d;
  --ink-deep: #0b151b;
  --ink-hover: #21333f;
  --ink-soft: #4c5d66;
  --ink-faint: #85939a;
  --paper: #faf8f2;
  --paper-alt: #f2eee3;
  --card: #fffdf8;
  --line: #ddd6c6;
  --line-strong: #c9c0ab;
  --gold: #a5854e;
  --gold-deep: #7d6234;
  --gold-soft: #c9b183;
  --ivory: #f5f1e6;
  --ivory-soft: #c7cfc9;
  --ivory-faint: #8e9a94;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-soft); color: var(--ink-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.6rem; line-height: 1.18; letter-spacing: 0.005em; }
h2 { font-size: 2.05rem; line-height: 1.25; margin-top: 0; }
h3 { font-size: 1.28rem; line-height: 1.35; }

h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 22px;
}

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

/* Header — deep ink masthead */

header.site {
  background: var(--ink-deep);
  box-shadow: inset 0 -1px 0 rgba(201, 177, 131, 0.4);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ivory);
}

.brand:hover { text-decoration: none; color: #ffffff; }

nav.main a {
  color: var(--ivory-soft);
  margin-left: 30px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav.main a:first-child { margin-left: 0; }
nav.main a:hover { color: #ffffff; text-decoration: none; }

/* Sections */

section { padding: 96px 0; }
section.alt { background: var(--paper-alt); }
section.tight { padding: 56px 0; }

.lede {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44em;
}

/* Hero — dark opening plate on every flagship page and the home page */

.hero {
  background: var(--ink-deep);
  color: var(--ivory-soft);
  padding: 104px 0 88px;
}

.hero h1 {
  color: var(--ivory);
  font-size: 3.05rem;
  max-width: 15em;
}

.hero .lede { color: var(--ivory-soft); font-size: 1.28rem; }
.hero p { color: var(--ivory-soft); max-width: 46em; }
.hero .small { color: var(--ivory-faint); }
.hero a { color: var(--gold-soft); }

.hero .btn {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink-deep);
}

.hero .btn:hover { background: #ffffff; border-color: #ffffff; }

.hero .btn.secondary {
  background: transparent;
  border-color: rgba(245, 241, 230, 0.5);
  color: var(--ivory);
}

.hero .btn.secondary:hover {
  background: rgba(245, 241, 230, 0.07);
  border-color: var(--ivory);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: 12px;
  margin-top: 10px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover { text-decoration: none; background: var(--ink-hover); border-color: var(--ink-hover); }

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.btn.secondary:hover { background: var(--paper-alt); border-color: var(--ink); }

/* Hero figure */

.hero-fig { margin: 0; background: var(--paper); }
.hero-fig img { width: 100%; height: auto; display: block; }
.hero-fig figcaption {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

/* Steps — numbered editorial columns */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-top: 44px;
}

.step {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* Cards — flat plates divided by hairlines, never boxed-in boxes */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 600; }

/* Notes */

.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: transparent;
  padding: 22px 26px;
  margin: 30px 0;
}

.note p:last-child { margin-bottom: 0; }

/* Fee tables — hairline rows, no boxes */

table.fees {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-top: 1px solid var(--line-strong);
}

table.fees th, table.fees td {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  text-align: left;
  vertical-align: top;
  font-size: 0.99rem;
}

table.fees th {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  width: 28%;
  padding-right: 28px;
}

table.fees td { color: var(--ink-soft); }

/* Forms */

form.inquiry {
  border-top: 1px solid var(--line-strong);
  padding-top: 38px;
  margin-top: 34px;
  max-width: 720px;
}

form.inquiry label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

form.inquiry .field { margin-bottom: 24px; }

form.inquiry input[type="text"],
form.inquiry input[type="email"],
form.inquiry select,
form.inquiry textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--card);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  appearance: none;
}

form.inquiry select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

form.inquiry input:focus,
form.inquiry select:focus,
form.inquiry textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(165, 133, 78, 0.16);
}

form.inquiry textarea { min-height: 130px; resize: vertical; }

form.inquiry .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

form.inquiry .consent label {
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin-bottom: 0;
}

form.inquiry .consent input { margin-top: 6px; accent-color: var(--gold-deep); }

form.inquiry button {
  padding: 15px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

form.inquiry button:hover { background: var(--ink-hover); }

/* FAQ */

details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

details.faq-item summary {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 36px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--gold);
}

details.faq-item[open ] summary::after { content: "–"; }

details.faq-item .answer {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 52em;
}

/* Lists */

ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
ul.plain li { margin-bottom: 0.45em; }

/* Footer — deep ink close */

footer.site {
  background: var(--ink-deep);
  padding: 64px 0 56px;
  margin-top: 0;
  font-size: 0.93rem;
  color: var(--ivory-soft);
}

footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 64px;
  justify-content: space-between;
}

footer.site strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

footer.site a { color: var(--ivory-soft); margin-right: 18px; }
footer.site a:hover { color: #ffffff; text-decoration: none; }

footer.site .cols > div:last-child a {
  display: block;
  margin: 0 0 9px;
  font-size: 0.9rem;
}

footer.site .small { color: var(--ivory-faint); }

.placeholder {
  border: 1px dashed var(--line-strong);
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 24px 0;
}

.small { font-size: 0.9rem; color: var(--ink-soft); }

/* Small screens — the phone is the primary reading device */

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.68rem; }
  .hero { padding: 64px 0 54px; }
  .hero h1 { font-size: 2.25rem; }
  .hero .lede { font-size: 1.16rem; }
  section { padding: 62px 0; }
  section.tight { padding: 42px 0; }
  header.site .wrap { padding-top: 18px; padding-bottom: 18px; }
  .brand { font-size: 1.32rem; }
  nav.main a { margin-left: 18px; font-size: 0.7rem; }
  .wrap { padding: 0 22px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .cards { gap: 18px; }
  .card { padding: 28px 24px; }
  .btn { padding: 14px 24px; margin-right: 8px; }
  table.fees th, table.fees td { display: block; width: auto; }
  table.fees th { padding: 18px 0 2px; }
  table.fees td { padding: 0 0 18px; }
  form.inquiry { padding-top: 30px; }
  footer.site { padding: 48px 0 42px; }
}
