/* ============================================================
   CareLink Nanny — Public site stylesheet
   Warm earthy natural aesthetic — clay / olive / paper palette.
   ============================================================ */

:root {
  /* Warm earth palette */
  --paper:         #f6efe4;
  --paper-warm:    #fbf7ef;
  --surface:       #fffdf8;
  --surface-soft:  #f0e8dc;
  --surface-card:  rgba(255,253,248,0.88);
  --shadow-soft:   0 22px 58px rgba(72,57,42,0.09);
  --shadow-float:  0 26px 70px rgba(72,57,42,0.12);
  --sage-soft:     #eef2e8;
  --ink:           #201d18;
  --ink-soft:      #51483d;
  --muted:         #958d83;
  --muted-strong:  #6d655b;
  --border:        #d9d1c4;
  --clay:          #d4825d;
  --clay-dark:     #bd6f4d;
  --clay-muted:    #977058;
  --olive:         #4d522f;
  --olive-light:   #5f653d;
  --serif:         Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --sans:          -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  /* Compatibility alias so any leftover var(--pink) still renders */
  --pink:          #d4825d;
  --pink-soft:     rgba(212,130,93,0.12);
  --line:          #d9d1c4;
  --bg:            #f6efe4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font: 15px/1.7 var(--sans);
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 42%, #f8f2e9 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: 0;
}
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p  { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== Header — floating pill ===== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 48px));
  border-radius: 999px;
  background: rgba(255,253,248,0.84);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(94,80,62,0.13);
  box-shadow: 0 18px 44px rgba(72,57,42,0.12);
}
.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-width: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), #e8a07a);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.primary-nav {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  overflow: hidden;
}
.primary-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease;
}
.primary-nav a:hover { color: var(--clay); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(94,80,62,0.1);
  border-radius: 999px;
  background: rgba(255,253,248,0.54);
  font-size: 11px;
  font-weight: 800;
}
.lang-switch a {
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.lang-switch a.active {
  color: #fffaf4;
  background: var(--olive);
  box-shadow: 0 4px 10px rgba(72,57,42,0.12);
}
.lang-switch a:hover:not(.active) { color: var(--ink); }
.lang-switch span { display: none; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(89,55,38,0.13), 0 10px 22px rgba(199,121,82,0.22);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn-cta:hover { background: var(--clay-dark); text-decoration: none; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,253,248,0.68); }

/* Offset main content below fixed header */
.site-main { padding-top: 88px; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,253,248,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 28px;
    border-radius: 18px;
    border: 1px solid rgba(94,80,62,0.12);
    box-shadow: 0 20px 48px rgba(72,57,42,0.14);
    gap: 2px;
  }
  .primary-nav a { padding: 10px 0; font-size: 15px; border-bottom: 1px solid rgba(94,80,62,0.06); }
  .primary-nav a:last-child { border-bottom: 0; }
  body.nav-open .primary-nav { display: flex; }
}
@media (max-width: 640px) {
  .site-header { top: 10px; width: calc(100% - 24px); }
  .header-inner { padding: 0 12px 0 16px; height: 52px; }
  .logo { font-size: 19px; }
  .btn-cta { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--clay);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(89,55,38,0.13), 0 12px 26px rgba(199,121,82,0.22);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--clay-dark); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(94,80,62,0.32);
  box-shadow: none;
}
.btn.outline:hover {
  border-color: rgba(198,137,103,0.42);
  background: rgba(255,253,248,0.84);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(72,57,42,0.08);
}
.btn.lg    { min-height: 54px; padding: 0 40px; font-size: 16px; }
.btn.gray  { background: rgba(0,0,0,0.07); color: var(--ink-soft); box-shadow: none; }
.btn.gray:hover { background: rgba(0,0,0,0.12); color: var(--ink); }
.btn.block { display: flex; width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 52px 0 72px;
  background: var(--paper-warm);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right top;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper-warm) 38%, transparent 75%),
              linear-gradient(180deg, transparent 70%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 50px; letter-spacing: -.5px; line-height: 1.08; margin-bottom: 18px; }
.hero-mobile-img { display: none; }
.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 520px;
  line-height: 1.55;
  font-weight: 500;
}
.hero-stats { display: flex; gap: 26px; margin-top: 30px; }
.hero-stats div { font-size: 13px; color: var(--muted-strong); font-weight: 600; }
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--olive);
  font-weight: 700;
  line-height: 1;
}
.hero-pc-img {
  margin-top: 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(72,57,42,0.12);
}
.hero-pc-img img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-mobile-actions { display: none; }
@media (max-width: 900px) {
  .hero-mobile-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-bg { display: none; }
  .hero-pc-img { display: none; }
  .hero-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 16px 36px rgba(72,57,42,0.1);
  }
  .hero h1 { font-size: 36px; }
  .tag-soft { display: none; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
}

/* ===== Lead form (multi-step) ===== */
.lead-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  padding: 30px;
  border: 1px solid rgba(94,80,62,0.12);
  backdrop-filter: blur(8px);
}
.lead-card h3 { font-size: 24px; margin: 0 0 4px; }
.lead-card .form-sub { color: var(--muted-strong); font-size: 14px; margin-bottom: 20px; }
.progress { height: 5px; background: rgba(94,80,62,0.1); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--clay), var(--clay-muted));
  transition: width .3s ease;
  border-radius: 99px;
}
.lead-step { display: none; animation: fadeIn .25s; }
.lead-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-strong);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  background: rgba(255,253,248,0.9);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--sans);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(212,130,93,0.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .required { color: var(--clay); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; justify-content: space-between; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section.alt { background: rgba(255,253,248,0.5); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.section-head p { color: var(--muted-strong); font-size: 16px; line-height: 1.55; margin: 0; }

/* ===== Cards (services / steps / caregivers) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(94,80,62,0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 76px rgba(72,57,42,0.14);
  border-color: rgba(198,137,103,0.24);
}
.card .ico {
  display: block;
  margin-bottom: 24px;
}
.card .ico img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover .ico img {
  transform: translateY(-4px) scale(1.08);
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p  { color: var(--muted-strong); font-size: 14.5px; margin: 0; line-height: 1.5; }

/* Service Cards (Photo Cover Style) */
.service-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(94,80,62,0.08);
  box-shadow: 0 12px 36px rgba(72,57,42,0.04);
  transition: transform 300ms ease, box-shadow 300ms ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(72,57,42,0.1);
}
.service-card .sc-img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
.service-card .sc-eyebrow {
  color: var(--clay-muted);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-card .sc-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.service-card .sc-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 24px 0;
  line-height: 1.5;
  flex-grow: 1;
}
.service-card .sc-link {
  color: var(--clay-dark);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.service-card .sc-link span {
  transition: transform 200ms ease;
}
.service-card:hover .sc-link span {
  transform: translateX(4px);
}

.steps-grid { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.steps-grid .card { position: relative; padding-top: 52px; }
.steps-grid .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(199,121,82,0.25);
  font-family: var(--sans);
}

/* ===== Caregiver list ===== */
.caregiver-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(94,80,62,0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  color: inherit;
}
.caregiver-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 76px rgba(72,57,42,0.14);
  border-color: rgba(198,137,103,0.24);
  text-decoration: none;
}
.caregiver-card .cg-photo {
  height: 240px;
  background: var(--surface-soft) center/cover;
  transition: transform 280ms ease;
  overflow: hidden;
  flex-shrink: 0;
}
.caregiver-card:hover .cg-photo { transform: scale(1.03); }
.caregiver-card .cg-body { padding: 18px 20px; }
.caregiver-card h3 { font-size: 19px; margin-bottom: 5px; }
.caregiver-card .cg-meta { font-size: 13px; color: var(--muted-strong); margin-bottom: 12px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--sage-soft);
  color: var(--muted-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.caregiver-card .tags { margin-bottom: 14px; }
.caregiver-card .rate { font-weight: 700; color: var(--clay-dark); font-size: 15px; }

/* ===== Trust band ===== */
.trust-band { padding: 16px 0 52px; }
.trust-band .container {
  padding: 50px 56px;
  border: 1px solid rgba(94,80,62,0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,253,248,0.94), rgba(251,247,239,0.8));
  box-shadow: var(--shadow-float);
  text-align: center;
}
.trust-band h3 { font-size: 28px; margin: 0 0 22px; }
.trust-stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.trust-stats div {
  display: grid;
  min-width: 136px;
  gap: 4px;
  padding: 16px 22px;
  color: var(--muted-strong);
  border: 1px solid rgba(94,80,62,0.1);
  border-radius: 10px;
  background: rgba(255,253,248,0.82);
  box-shadow: 0 12px 32px rgba(72,57,42,0.06);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.trust-stats div:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(72,57,42,0.1); }
.trust-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--olive);
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 640px) {
  .trust-band .container { padding: 32px 14px; }
  .trust-stats { flex-wrap: nowrap; gap: 8px; }
  .trust-stats div { min-width: 0; flex: 1; padding: 10px 6px; font-size: 11px; }
  .trust-stats strong { font-size: 20px; }
}

/* ===== Reviews ===== */
.review-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(94,80,62,0.1);
  box-shadow: var(--shadow-soft);
}
.review-card .stars { color: var(--clay); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.review-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; font-style: italic; }
.review-card .who { margin-top: 16px; font-size: 13px; color: var(--muted-strong); font-weight: 600; }

/* ===== FAQ ===== */
.faq-list {
  border: 1px solid rgba(94,80,62,0.09);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}
.faq-list .faq-item {
  border-bottom: 1px solid rgba(94,80,62,0.08);
  padding: 0;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.faq-list .faq-item:last-child { border-bottom: 0; }
.faq-list .faq-item:hover { background: rgba(255,253,248,0.84); }
.faq-list .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15.5px;
  padding: 18px 22px;
  color: var(--ink);
}
.faq-list .faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--clay-muted);
  transition: transform .2s ease;
  flex-shrink: 0;
  line-height: 1;
  font-family: var(--sans);
}
.faq-list .faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-list .faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--muted-strong);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-list .faq-item.open .faq-a { display: block; }

/* ===== City pages ===== */
.city-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(212,130,93,0.08) 0%, rgba(238,242,232,0.55) 100%);
  border-bottom: 1px solid rgba(94,80,62,0.08);
}
.city-hero h1 { font-size: 42px; }
.city-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted-strong); font-size: 14px; margin-top: 12px; }

/* ===== CTA banner ===== */
.cta-band {
  background: linear-gradient(135deg, var(--clay) 0%, #e8936a 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: 36px; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,0.92); font-size: 17px; line-height: 1.55; }
.cta-band .btn { background: #fffdf8; color: var(--clay-dark) !important; box-shadow: 0 12px 32px rgba(0,0,0,0.14); }
.cta-band .btn:hover { background: var(--ink); color: #fff !important; }

/* ===== Footer ===== */
.site-footer {
  background: transparent;
  border-top: 0;
  padding: 56px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 50px 52px 44px;
  border: 1px solid rgba(94,80,62,0.08);
  border-radius: 12px;
  background: rgba(255,253,248,0.55);
  box-shadow: 0 16px 42px rgba(72,57,42,0.06);
}
.footer-logo {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--ink);
}
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.footer-logo-text { color: var(--ink); }
.footer-about { color: var(--muted-strong); font-size: 14.5px; line-height: 1.55; }
.site-footer h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.site-footer a:hover { color: var(--clay-dark); text-decoration: none; }
.site-footer p { color: var(--muted-strong); font-size: 14px; line-height: 1.5; }
.footer-bottom {
  padding: 22px 0;
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(94,80,62,0.08);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 28px 32px; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ===== Customer service widget ===== */
.cs-widget { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.cs-toggle {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--clay), #e8936a);
  color: #fff; font-size: 26px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(212,130,93,0.45);
  transition: transform .2s ease;
}
.cs-toggle:hover { transform: scale(1.05); }
.cs-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  pointer-events: none;
  animation: cs-pulse 1.4s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.35); opacity: .75; }
}
.cs-panel {
  position: absolute; right: 0; bottom: 74px;
  width: 340px; height: 480px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(72,57,42,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(94,80,62,0.1);
}
.cs-panel[hidden] { display: none !important; }
.cs-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--clay), #e8936a);
  color: #fff; font-weight: 700;
}
.cs-head .cs-status { margin-left: auto; font-size: 11px; opacity: .95; }
.cs-head .cs-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; margin-left: 4px; }
.cs-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--paper-warm); font-size: 14px; }
.cs-body .msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; max-width: 85%; word-break: break-word; }
.cs-body .msg.visitor { background: var(--clay); color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.cs-body .msg.admin,
.cs-body .msg.system { background: var(--surface); border: 1px solid rgba(94,80,62,0.1); border-bottom-left-radius: 2px; }
.cs-body .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cs-input { display: flex; border-top: 1px solid rgba(94,80,62,0.08); }
.cs-input input { flex: 1; padding: 12px; border: 0; outline: none; font-size: 14px; background: var(--surface); color: var(--ink); font-family: var(--sans); }
.cs-input button { padding: 0 18px; border: 0; background: var(--clay); color: #fff; cursor: pointer; font-weight: 700; transition: background-color .18s; }
.cs-input button:hover { background: var(--clay-dark); }
.cs-offline { padding: 18px; text-align: center; font-size: 14px; color: var(--muted-strong); }
.cs-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cs-channels a,
.cs-channels .cs-channel-btn { display: block; width: 100%; padding: 10px; border-radius: 10px; border: 0; color: #fff; font-weight: 700; text-align: center; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ===== CS Contact ID Modal ===== */
.cs-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.cs-modal-overlay[hidden] { display: none !important; }
.cs-modal-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 28px 28px;
  width: min(360px, calc(100vw - 40px));
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.cs-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 24px; cursor: pointer;
  color: var(--muted); line-height: 1; padding: 2px 6px;
}
.cs-modal-close:hover { color: var(--ink); }
.cs-modal-title { margin: 0 0 20px; font-size: 17px; font-weight: 700; color: var(--ink); }
.cs-modal-id-wrap {
  background: var(--paper-warm);
  border: 1px solid rgba(94,80,62,0.12);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
  word-break: break-all;
}
.cs-modal-id { font-family: monospace; font-size: 17px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.cs-modal-copy {
  display: inline-block; padding: 11px 36px;
  border-radius: 8px; border: 0;
  background: var(--clay); color: #fff;
  font-weight: 700; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: background-color .18s;
}
.cs-modal-copy:hover { background: var(--clay-dark); }
.cs-modal-copy.copied { background: #34a853; }

@media (max-width: 480px) {
  .cs-panel { width: calc(100vw - 30px); right: -12px; }
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a {
  padding: 8px 16px;
  border: 1px solid rgba(94,80,62,0.15);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  background: var(--surface-card);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s, background-color .18s, color .18s;
}
.pagination a:hover { border-color: rgba(198,137,103,0.3); color: var(--clay-dark); text-decoration: none; }
.pagination a.active { background: var(--clay); color: #fff; border-color: var(--clay); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.tag-soft {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(212,130,93,0.12);
  color: var(--clay-muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(212,130,93,0.1);
  color: var(--clay-muted);
  margin-bottom: 16px;
  font-weight: 500;
  border: 1px solid rgba(212,130,93,0.2);
}
.alert.success { background: #dcfce7; color: #166534; border-color: #86efac; }
.alert.error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ===== Article content ===== */
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.article-body h2  { margin-top: 30px; }
.article-body p   { font-size: 16px; line-height: 1.85; }

/* ===== Service detail page ===== */
.svc-detail-hero {
  padding: 60px 0 56px;
  background: linear-gradient(135deg, rgba(212,130,93,0.07) 0%, rgba(238,242,232,0.45) 100%);
  border-bottom: 1px solid rgba(94,80,62,0.07);
}
.svc-back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 180ms;
}
.svc-back-link:hover { color: var(--clay-dark); text-decoration: none; }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.svc-hero-content { max-width: 620px; }
.svc-hero-img-wrap { flex-shrink: 0; }
.svc-hero-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 52px rgba(72,57,42,0.14);
}
@media (max-width: 860px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-hero-img  { width: 100%; height: 220px; border-radius: 14px; }
}

/* Service body prose */
.svc-prose { font-size: 16px; line-height: 1.85; color: var(--ink-soft); }
.svc-prose h3 {
  font-size: 22px;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212,130,93,0.18);
}
.svc-prose h3:first-child { margin-top: 0; }
.svc-prose p  { margin: 0 0 1em; }
.svc-prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.svc-prose ul li {
  position: relative;
  padding: 12px 14px 12px 44px;
  margin-bottom: 10px;
  background: rgba(255,253,248,0.72);
  border: 1px solid rgba(94,80,62,0.08);
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.6;
}
.svc-prose ul li::before {
  content: '✦';
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--clay);
  font-size: 12px;
}
.svc-prose strong { color: var(--ink); font-weight: 700; }

/* Service pricing card */
.svc-price-card {
  background: var(--surface-card);
  border: 1px solid rgba(94,80,62,0.1);
  border-radius: var(--radius);
  padding: 30px 36px;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  line-height: 1.75;
}
.svc-price-card p  { margin: 0 0 .8em; }
.svc-price-card p:last-child { margin: 0; }
.svc-price-card strong { color: var(--clay-dark); font-size: 18px; }

/* ===== Mobile swipe row (services / caregivers / cities) ===== */
@media (max-width: 768px) {
  .swipe-row {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 20px 16px;
    margin-left: -28px;
    margin-right: -28px;
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .swipe-row > .caregiver-card {
    flex: 0 0 72%;
  }
}
