/* ==========================================================================
   Yu Shan Home Care — Design tokens
   Palette: sage (trust, calm, care) + slate-teal (clinical, telehealth)
   + warm gold hairline accent. Warm mint-white ground, never cream/terracotta.
   Display: Fraunces (warm, humanist serif) — used sparingly for headings.
   Body: Work Sans. Utility/labels: JetBrains Mono, tracked wide, small.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600;700&family=Archivo+Black&family=JetBrains+Mono:wght@500&display=swap');

:root{
  --bg: #F4F7F3;
  --bg-alt: #EAF0E9;
  --surface: #FFFFFF;
  --ink: #1E2B22;
  --ink-soft: #4C5C51;
  --ink-faint: #7C8B80;

  --sage: #3F6B52;
  --sage-deep: #294839;
  --sage-tint: #E4EEE5;

  --teal: #3F6472;
  --teal-deep: #2A4750;
  --teal-tint: #E4EDEF;

  /* Brand marks, sampled directly from the logo */
  --gold: #F2C90D;
  --gold-deep: #8A6B08;
  --gold-tint: #FBF2C8;
  --brand-green: #5FBF3D;
  --brand-green-deep: #2F6E1D;

  --line: #DCE5DC;
  --whatsapp: #2FA86B;
  --whatsapp-deep: #23814f;

  --notice-bg: #FBF3E6;
  --notice-border: #E4C58C;
  --notice-ink: #6B4F1F;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(30,43,34,0.06), 0 1px 1px rgba(30,43,34,0.04);
  --shadow-md: 0 8px 24px rgba(30,43,34,0.08);
  --shadow-lg: 0 16px 48px rgba(30,43,34,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display: block; max-width: 100%; }
a{ color: inherit; }
button{ font: inherit; }

.container{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow{ max-width: 780px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 600; }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3{ font-size: 1.2rem; }
p{ margin: 0; }
.lede{ font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--sage-deep); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus{ left: 0; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,247,243,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand__mark{ height: 38px; width: auto; flex: none; }
.brand__word{
  font-family: 'Archivo Black', var(--font-body); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase; line-height: 1.1;
}
.brand__zh{
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  color: var(--sage-deep);
}
.brand__en{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.nav{ display: none; align-items: center; gap: 32px; }
.nav a{
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a:focus-visible{ color: var(--sage-deep); border-color: var(--sage); }
@media (min-width: 860px){ .nav{ display: flex; } }

.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible{ outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.btn:active{ transform: translateY(1px); }
.btn--whatsapp{ background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover{ background: var(--whatsapp-deep); box-shadow: var(--shadow-md); }
.btn--whatsapp svg{ width: 18px; height: 18px; flex: none; }
.btn--ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover{ border-color: var(--sage); color: var(--sage-deep); }
.btn--sm{ padding: 9px 16px; font-size: 13.5px; }

.header-cta{ display: none; }
@media (min-width: 640px){ .header-cta{ display: inline-flex; } }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 56px 0 72px;
  overflow: clip;
}
.hero__arch{
  position: absolute; right: -6%; top: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 30% 30%, var(--sage-tint), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--teal-tint), transparent 55%);
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}
.hero .container{ position: relative; z-index: 1; }
.hero__grid{
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 900px){
  .hero__grid{ grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: stretch; }
}

.hero__badge{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); }

.hero h1{ margin-bottom: 18px; }
.hero h1 em{ font-style: normal; color: var(--sage-deep); }
.hero__lede{ max-width: 46ch; margin-bottom: 30px; }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note{
  margin-top: 22px; font-size: 13.5px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}

.hero__visual{
  position: relative;
  border-radius: 999px 999px 24px 24px;
  aspect-ratio: 3 / 4;
  max-width: 460px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--sage-deep);
}
@media (min-width: 900px){
  .hero__visual{
    max-width: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 420px;
  }
}
.hero__photo{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__visual::before{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,30,24,0.75) 0%, rgba(20,30,24,0.05) 45%, transparent 65%);
}
.hero__visual-badge{
  position: absolute; top: 18px; left: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; padding: 7px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.hero__visual-badge img{ width: 100%; height: 100%; object-fit: contain; }
.hero__doorstep{
  position: relative;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 8px 16px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}

/* ---------- Section shell ---------- */
section{ padding: 72px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ margin-top: 10px; }
.section-head p{ margin-top: 14px; color: var(--ink-soft); }

.bg-alt{ background: var(--bg-alt); }

/* ---------- About doctor ---------- */
.about{
  display: grid; gap: 40px;
  align-items: center;
}
@media (min-width: 900px){ .about{ grid-template-columns: 1fr 1fr; gap: 48px; } }

.about__checklist{ display: grid; gap: 22px; margin-top: 8px; }
.about__check{ display: flex; gap: 14px; align-items: flex-start; }
.about__check-icon{
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.about__check-icon svg{ width: 14px; height: 14px; }
.about__check h3{ font-size: 1.05rem; margin-bottom: 4px; }
.about__check p{ font-size: 14.5px; color: var(--ink-soft); }

.about__photo-wrap{
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.4;
}
.about__photo-wrap img{ width: 100%; height: 100%; object-fit: cover; }

.about__creds{
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.chip{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  background: var(--sage-tint); color: var(--sage-deep);
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
}

.footer-brand{ display: flex; align-items: center; gap: 12px; }
.footer-brand img{ height: 42px; width: auto; }
.footer-brand__word{
  font-family: 'Archivo Black', var(--font-body); font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--ink); text-transform: uppercase;
}

/* ---------- Services ---------- */
.services-grid{
  display: grid; gap: 24px;
}
@media (min-width: 800px){ .services-grid{ grid-template-columns: 1fr 1fr; } }

.svc-card{
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line); padding: 34px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.svc-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-card--tele{ border-top: 4px solid var(--teal); }
.svc-card--visit{ border-top: 4px solid var(--sage); }

.svc-card__photo{
  width: calc(100% + 68px);
  margin: -34px -34px 4px -34px;
  height: 180px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}

.svc-card__top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-card__icon{
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.svc-card--tele .svc-card__icon{ background: var(--teal-tint); color: var(--teal-deep); }
.svc-card--visit .svc-card__icon{ background: var(--sage-tint); color: var(--sage-deep); }
.svc-card__icon svg{ width: 24px; height: 24px; }

.svc-card__price{
  font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--ink-soft);
}
.svc-card__price strong{ display: block; font-size: 20px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }

.svc-card__area{
  font-size: 13px; color: var(--ink-faint); display: flex; gap: 6px; align-items: center;
}
.svc-card__area svg{ width: 15px; height: 15px; flex: none; }

.svc-card__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.svc-card__list li{
  font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: flex-start;
}
.svc-card__list li::before{
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: 7px; flex: none;
}
.svc-card__foot{
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-faint);
}

/* ---------- Notices ---------- */
.notices{ display: grid; gap: 16px; }
@media (min-width: 700px){ .notices{ grid-template-columns: 1fr 1fr; } }
.notice{
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  color: var(--notice-ink); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start;
}
.notice svg{ width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice strong{ display: block; margin-bottom: 3px; font-size: 15px; }
.notice p{ font-size: 14px; line-height: 1.5; }
.notice--urgent{ background: #FBEAE6; border-color: #E7B6A9; color: #7A3320; }

/* ---------- How it works (route) ---------- */
.route{
  position: relative;
  display: grid; gap: 36px;
}
@media (min-width: 860px){
  .route{ grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .route__line{ display: block; }
}
.route__line{
  display: none;
  position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background-image: linear-gradient(to right, var(--gold) 0 8px, transparent 8px 16px);
  background-size: 16px 2px; background-repeat: repeat-x;
  opacity: 0.55;
}
.route__step{ position: relative; text-align: left; }
.route__num{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold);
  color: var(--gold-deep); font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.route__step h3{ margin-bottom: 6px; font-size: 1.05rem; }
.route__step p{ font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(155deg, var(--sage-deep), var(--teal-deep));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-band h2{ color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p{ color: rgba(255,255,255,0.78); margin-top: 8px; max-width: 46ch; }
.cta-band .btn--whatsapp{ background: #fff; color: var(--sage-deep); }
.cta-band .btn--whatsapp:hover{ background: var(--gold-tint); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}
.footer-grid{
  display: grid; gap: 32px;
}
@media (min-width: 700px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h4{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 14px;
}
.footer-links{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a{ text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.footer-links a:hover{ color: var(--sage-deep); }
.footer-legal{
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Sticky mobile WhatsApp ---------- */
.sticky-wa{
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; border-radius: 999px;
  padding: 14px 20px; text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg);
}
.sticky-wa svg{ width: 20px; height: 20px; }
@media (min-width: 640px){ .sticky-wa{ display: none; } }

/* ---------- Legal pages ---------- */
.legal-hero{ padding: 52px 0 20px; }
.legal-hero .eyebrow{ margin-bottom: 12px; display: block; }
.legal-updated{
  font-size: 13px; color: var(--ink-faint); margin-top: 10px; font-family: var(--font-mono);
}
.legal-body{ padding: 12px 0 80px; }
.legal-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 30px;
  box-shadow: var(--shadow-sm);
}
.legal-card p{ color: var(--ink-soft); margin: 14px 0; }
.legal-list{ list-style: none; margin: 0; padding: 0; counter-reset: item; }
.legal-list > li{
  counter-increment: item;
  padding: 20px 0 20px 46px;
  border-top: 1px solid var(--line);
  position: relative; color: var(--ink-soft); line-height: 1.65;
}
.legal-list > li:first-child{ border-top: none; }
.legal-list > li::before{
  content: counter(item);
  position: absolute; left: 0; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage-deep);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.legal-sub-list{ list-style: disc; margin: 10px 0 0 20px; padding: 0; display: grid; gap: 8px; }
.legal-sub-list li{ color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.legal-block{ padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.7; }
.legal-block:first-of-type{ border-top: none; }
.legal-block h3{ color: var(--ink); margin-bottom: 8px; }

.consent-confirm{
  margin-top: 30px; background: var(--sage-tint); border: 1px solid var(--sage);
  border-radius: var(--radius-md); padding: 20px 24px; color: var(--sage-deep); font-size: 14.5px;
}
