/* style.css — ChinaCare Global Design System */

/* ── Type Scale ── */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Content Widths ── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* ── Fonts ── */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
}

/* ── LIGHT MODE ── */
:root, [data-theme="light"] {
  --color-bg:             #F5F0E8;
  --color-surface:        #FAF7F2;
  --color-surface-2:      #FFFFFF;
  --color-surface-offset: #EDE8DE;
  --color-divider:        #D9D1C4;
  --color-border:         #CFC5B5;

  --color-text:           #1A1A1A;
  --color-text-muted:     #6B6258;
  --color-text-faint:     #A39888;
  --color-text-inverse:   #FAF7F2;

  --color-primary:        #C45D3E;
  --color-primary-hover:  #A84D33;
  --color-primary-active: #8E3F2A;
  --color-primary-highlight: #F5DDD5;

  --color-gold:           #C9A96E;
  --color-gold-hover:     #B39459;
  --color-gold-active:    #9A7F48;

  --color-success:        #437a22;
  --color-error:          #B83232;

  --shadow-sm: 0 1px 3px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 60 / 0.09);
  --shadow-lg: 0 12px 36px oklch(0.2 0.02 60 / 0.13);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1C1916;
  --color-surface-2:      #23201C;
  --color-surface-offset: #1A1714;
  --color-divider:        #2E2A25;
  --color-border:         #3A352F;

  --color-text:           #E8E0D4;
  --color-text-muted:     #9A9085;
  --color-text-faint:     #5E564D;
  --color-text-inverse:   #1A1A1A;

  --color-primary:        #D97B5F;
  --color-primary-hover:  #E8957B;
  --color-primary-active: #C46A4E;
  --color-primary-highlight: #3A2820;

  --color-gold:           #D4B87A;
  --color-gold-hover:     #E0C98F;
  --color-gold-active:    #C4A86A;

  --color-success:        #6DAA45;
  --color-error:          #E06060;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 36px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141210;
    --color-surface:        #1C1916;
    --color-surface-2:      #23201C;
    --color-surface-offset: #1A1714;
    --color-divider:        #2E2A25;
    --color-border:         #3A352F;
    --color-text:           #E8E0D4;
    --color-text-muted:     #9A9085;
    --color-text-faint:     #5E564D;
    --color-text-inverse:   #1A1A1A;
    --color-primary:        #D97B5F;
    --color-primary-hover:  #E8957B;
    --color-primary-active: #C46A4E;
    --color-primary-highlight: #3A2820;
    --color-gold:           #D4B87A;
    --color-gold-hover:     #E0C98F;
    --color-gold-active:    #C4A86A;
    --color-success:        #6DAA45;
    --color-error:          #E06060;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 36px oklch(0 0 0 / 0.4);
  }
}

/* ══════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--alt {
  background: var(--color-surface);
}

/* ══════════════════════════════════════════
   SKIP LINK
   ══════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ══════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 8vw, 80px);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.header__logo-text span {
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav-links {
  display: none;
  list-style: none;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .header__nav-links { display: flex; }
}

.header__nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
  font-weight: 500;
}

.header__nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out);
}

.header__nav-links a:hover,
.header__nav-links a.active {
  color: var(--color-text);
}

.header__nav-links a:hover::after,
.header__nav-links a.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn .line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.mobile-menu-btn .line::before,
.mobile-menu-btn .line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.mobile-menu-btn .line::before { transform: translateY(-7px); }
.mobile-menu-btn .line::after { transform: translateY(7px); }

.mobile-menu-btn[aria-expanded="true"] .line { background: transparent; }
.mobile-menu-btn[aria-expanded="true"] .line::before { transform: rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .line::after { transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  left: 0;
  width: 100%;
  top: clamp(60px, 8vw, 80px);
  height: calc(100dvh - clamp(60px, 8vw, 80px));
  background: var(--color-bg);
  z-index: 45;
  padding: var(--space-6) var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-divider);
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--color-primary);
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #FFF;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
}
.btn--ghost:hover {
  background: var(--color-primary-highlight);
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__title em {
  color: var(--color-primary);
  font-style: italic;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  opacity: 0.08;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__decoration { display: none; }
}

/* ══════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════ */

.section-header {
  text-align: left;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-header__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 560px;
}

/* ══════════════════════════════════════════
   STAT CARDS (WHY CHINA)
   ══════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-6);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.stat-card__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.stat-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
  cursor: default;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.service-card__icon i {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.service-card__link:hover {
  color: var(--color-primary-hover);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.service-card__link:hover svg {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════
   HOW IT WORKS (STEPS)
   ══════════════════════════════════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: var(--space-6);
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  opacity: 0.2;
  display: block;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Connector line between steps */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(-1 * var(--space-3));
    width: var(--space-6);
    height: 1px;
    background: var(--color-divider);
  }
}

/* ══════════════════════════════════════════
   HOSPITAL CARDS
   ══════════════════════════════════════════ */

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.hospital-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.hospital-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hospital-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.hospital-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hospital-card__tag {
  font-size: var(--text-xs);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.hospital-card__tag--accent {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

/* ══════════════════════════════════════════
   COST COMPARISON TABLE
   ══════════════════════════════════════════ */

.cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.cost-table {
  min-width: 600px;
  font-size: var(--text-sm);
}

.cost-table thead {
  background: var(--color-surface-offset);
}

.cost-table th {
  padding: var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cost-table th:first-child {
  padding-left: var(--space-6);
}

.cost-table td {
  padding: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-variant-numeric: tabular-nums;
}

.cost-table td:first-child {
  padding-left: var(--space-6);
  font-weight: 500;
  color: var(--color-text);
}

.cost-table .china-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-base);
}

.cost-table tbody tr {
  transition: background var(--transition-interactive);
}

.cost-table tbody tr:hover {
  background: var(--color-surface);
}

/* Savings badge */
.savings {
  display: inline-block;
  background: oklch(from var(--color-success) l c h / 0.15);
  color: var(--color-success);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-left: var(--space-2);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-6);
  position: relative;
  padding-top: var(--space-6);
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: -8px;
  left: 0;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-card__origin {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════ */

.faq-list {
  max-width: var(--content-default);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  gap: var(--space-4);
  cursor: pointer;
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}

.faq-item.is-open .faq-item__answer {
  opacity: 1;
}

.faq-item__answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   CTA / CONTACT SECTION
   ══════════════════════════════════════════ */

.cta-section {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .cta-section__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.cta-section__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-info__item i {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-error);
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  background: oklch(from var(--color-success) l c h / 0.1);
  color: var(--color-success);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-success.is-visible {
  display: block;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.footer__social a:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for non-supporting browsers: use IntersectionObserver in JS */
.reveal {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
}

/* ══════════════════════════════════════════
   SECTION DIVIDER — Chinese Motif
   ══════════════════════════════════════════ */

.section-divider {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-divider);
}

.section-divider svg {
  width: 120px;
  height: 16px;
}

/* Gold accent line */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════
   CONSULTATION MODAL
   ══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.5);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
  position: relative;
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.modal__close:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.modal__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════
   AI HEALTH ADVISOR SECTION
   ═══════════════════════════════════════ */

.ai-section {
  background: var(--color-surface);
}

.ai-chat {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ai-chat__disclaimer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--color-gold) 10%, transparent);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.ai-chat__disclaimer svg {
  flex-shrink: 0;
  color: var(--color-gold);
}

.ai-chat__messages {
  padding: 1.5rem;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.ai-chat__message {
  display: flex;
  gap: 0.75rem;
  max-width: 90%;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-chat__message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-chat__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.ai-chat__message--user .ai-chat__avatar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.ai-chat__bubble {
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  font-size: 0.925rem;
  line-height: 1.65;
  word-break: break-word;
}

.ai-chat__message--ai .ai-chat__bubble {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.ai-chat__message--user .ai-chat__bubble {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

/* Markdown inside AI bubbles */
.ai-chat__bubble p { margin: 0 0 0.5em; }
.ai-chat__bubble p:last-child { margin-bottom: 0; }
.ai-chat__bubble strong { font-weight: 600; }
.ai-chat__bubble ul, .ai-chat__bubble ol {
  margin: 0.5em 0;
  padding-left: 1.25em;
}
.ai-chat__bubble li { margin-bottom: 0.25em; }
.ai-chat__bubble h3, .ai-chat__bubble h4 {
  font-family: var(--font-display);
  margin: 1em 0 0.4em;
  font-size: 1.05em;
}
.ai-chat__bubble h3:first-child, .ai-chat__bubble h4:first-child { margin-top: 0; }
.ai-chat__bubble code {
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
}
.ai-chat__bubble hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.75em 0;
}
.ai-chat__bubble blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.4em 0.8em;
  margin: 0.5em 0;
  background: color-mix(in srgb, var(--color-gold) 6%, transparent);
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.ai-chat__bubble table {
  border-radius: 8px;
  overflow: hidden;
}

/* Input area */
.ai-chat__input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.ai-chat__input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color 0.2s;
}

.ai-chat__input-wrap:focus-within {
  border-color: var(--color-primary);
}

.ai-chat__input-wrap textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--color-text);
  resize: none;
  line-height: 1.5;
  max-height: 120px;
  padding: 0.25rem 0;
  outline: none;
}

.ai-chat__input-wrap textarea::placeholder {
  color: var(--color-text-muted);
}

.ai-chat__send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.ai-chat__send:hover {
  background: var(--color-primary-dark, #a8492f);
}

.ai-chat__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-chat__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.ai-chat__typing {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  animation: typingPulse 1.5s ease-in-out infinite;
}

@keyframes typingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.ai-chat__counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Scrollbar styling */
.ai-chat__messages::-webkit-scrollbar {
  width: 6px;
}
.ai-chat__messages::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat__messages::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .ai-chat__messages {
    padding: 1rem;
    max-height: 400px;
  }
  .ai-chat__message {
    max-width: 95%;
  }
  .ai-chat__bubble {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}
