/* Senior Care Singapore — calm soft blue / cream / teal palette.
   Strong contrast, generous spacing, polished cards.  */

:root {
  --c-bg: #f6f4ee;            /* warm cream */
  --c-bg-2: #eef3f8;          /* soft blue tint */
  --c-surface: #ffffff;
  --c-surface-2: #eef3f8;
  --c-ink: #1d2a3a;           /* deep slate */
  --c-ink-soft: #4a5a6e;
  --c-line: #d8dde6;
  --c-line-soft: #e6ecf2;
  --c-primary: #2c5f8a;
  --c-primary-dark: #1f476a;
  --c-primary-soft: #dbe6f1;
  --c-teal: #5b9aa0;
  --c-teal-dark: #3f7e85;
  --c-accent: #c47b2c;
  --c-accent-dark: #9d5f1c;
  --c-accent-soft: #fdf3e0;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.05), 0 1px 1px rgba(20, 30, 50, 0.04);
  --shadow:    0 8px 24px rgba(20, 30, 50, 0.08), 0 2px 6px rgba(20, 30, 50, 0.04);
  --shadow-lg: 0 24px 48px rgba(20, 30, 50, 0.12), 0 6px 14px rgba(20, 30, 50, 0.06);
  --maxw: 1180px;
  --gut: clamp(16px, 3vw, 28px);
  --pad-side: clamp(16px, 4vw, 36px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
svg { height: auto; }
a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.22;
  margin: 1.6em 0 0.5em;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(30px, 4.2vw, 42px); margin-top: 0; }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: clamp(18px, 2.2vw, 21px); }
p, li { font-size: 1rem; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-side);
  padding-right: var(--pad-side);
}

/* -------- Header / nav -------- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-size: 16px; line-height: 1.1; }
.brand-tag  { font-size: 11px; color: var(--c-ink-soft); font-weight: 500; display:block; }

.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--c-bg-2);
  color: var(--c-primary-dark);
}
.nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(196, 123, 44, 0.25);
}
.nav-cta:hover { background: var(--c-accent-dark) !important; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-burger-bar {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-burger-bar[data-bar="1"] { top: 14px; }
.nav-burger-bar[data-bar="2"] { top: 21px; }
.nav-burger-bar[data-bar="3"] { top: 28px; }
.nav-burger[aria-expanded="true"] .nav-burger-bar[data-bar="1"] { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-bar[data-bar="2"] { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-bar[data-bar="3"] { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding: 16px var(--pad-side) 32px;
  overflow-y: auto;
  z-index: 49;
}
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { margin: 0; }
.mobile-drawer a {
  display: block;
  padding: 14px 12px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-drawer a:hover { background: var(--c-bg-2); }
.mobile-drawer .drawer-cta {
  margin-top: 16px;
  display: block;
  background: var(--c-accent);
  color: #fff;
  text-align: center;
  border-radius: var(--r);
  padding: 14px;
  font-weight: 600;
  border-bottom: 0;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-block; }
  .mobile-drawer:not([hidden]) { display: block; }
}

/* -------- Contact strip -------- */
.contact-strip {
  background: linear-gradient(180deg, #ffffff, var(--c-bg-2));
  border-bottom: 1px solid var(--c-line-soft);
  padding: 18px 0;
}
.contact-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-primary-soft); }
.contact-card .icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  display: grid; place-items: center;
}
.contact-card.accent .icon { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.contact-card .label { font-size: 12px; color: var(--c-ink-soft); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.contact-card .value { font-weight: 600; color: var(--c-ink); font-size: 15px; }

/* -------- Hero -------- */
.hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 12% -10%, #d0e1ee 0%, transparent 60%),
    radial-gradient(900px 400px at 92% 10%, #f1dfba 0%, transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, var(--c-bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 16px; }
.hero p.lede { font-size: clamp(17px, 1.8vw, 19px); color: var(--c-ink-soft); margin: 0 0 26px; max-width: 56ch; }
.hero .eyebrow { margin-bottom: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(196, 123, 44, 0.28); }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(196, 123, 44, 0.32); }
.btn-outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-bg-2); }

/* Hero trust strip */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--c-line);
  color: var(--c-ink-soft);
  font-size: 14px;
}
.hero-trust .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); }

/* Hero illustration frame */
.hero-illustration {
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 20%, #d5e4ef 0%, transparent 50%),
    linear-gradient(135deg, #e3edf5 0%, #f3e8d4 100%);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  pointer-events: none;
}
.hero-illustration > svg { width: 100%; height: auto; display: block; border-radius: 14px; background: #f3f7fb; }

/* -------- Sections -------- */
section { padding: clamp(40px, 5vw, 72px) 0; }
section.alt { background: var(--c-surface); }
section.tinted { background: linear-gradient(180deg, var(--c-bg-2), #fff); }
.section-head { max-width: 740px; margin-bottom: 32px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--c-ink-soft); margin-top: 10px; font-size: 17px; }

/* -------- Service cards -------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-soft); }
.service-card .art {
  aspect-ratio: 16 / 10;
  background: var(--c-bg-2);
  display: block;
  position: relative;
}
.service-card .art svg { width: 100%; height: 100%; display: block; }
.service-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin: 0 0 8px; color: var(--c-ink); font-size: 18px; }
.service-card p { margin: 0 0 14px; color: var(--c-ink-soft); font-size: 15px; }
.service-card .card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-primary-dark);
  text-decoration: none;
  font-size: 14.5px;
}
.service-card .card-link::after { content: " →"; }

/* -------- Generic card / steps -------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--c-ink-soft); margin: 0; }
.card .step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(44, 95, 138, 0.25);
}

/* -------- Blog list cards -------- */
.list-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.list-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.list-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--c-primary-soft); }
.list-card .pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-teal-dark);
  background: #e5f0f1;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}
.list-card h3 { margin: 0 0 8px; color: var(--c-ink); }
.list-card p  { margin: 0; color: var(--c-ink-soft); font-size: 15px; }
.list-card .meta { color: var(--c-ink-soft); font-size: 13px; margin-top: auto; padding-top: 14px; }

/* -------- Article -------- */
.article {
  background: var(--c-surface);
  padding: clamp(36px, 5vw, 64px) 0;
}
.article-wrap { max-width: 780px; margin: 0 auto; padding-left: var(--pad-side); padding-right: var(--pad-side); }
.article-meta { color: var(--c-ink-soft); font-size: 14px; margin-bottom: 6px; }
.article p, .article li { font-size: 17px; }
.article h2 { margin-top: 2em; }
.article blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-2);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--c-ink);
}
.callout {
  background: var(--c-accent-soft);
  border: 1px solid #e9d6a8;
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 1.6em 0;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.spec-table th, .spec-table td {
  border: 1px solid var(--c-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.spec-table thead { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.spec-table thead th { font-weight: 700; }
.refs { font-size: 14.5px; color: var(--c-ink-soft); margin-top: 2em; border-top: 1px solid var(--c-line); padding-top: 1.2em; }
.refs h3 { font-size: 16px; margin: 0 0 8px; }

/* Diagram figure */
.diagram {
  margin: 28px 0;
  padding: 12px;
  background: linear-gradient(135deg, #eef3f8, #f3ede0);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line-soft);
  box-shadow: var(--shadow-sm);
}
.diagram svg { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
.diagram figcaption { color: var(--c-ink-soft); font-size: 14px; margin-top: 10px; padding: 0 6px; }

/* Service detail hero illustration */
.service-art {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-art svg { width: 100%; height: auto; display: block; }

/* -------- Breadcrumbs -------- */
.crumbs { font-size: 14px; color: var(--c-ink-soft); padding: 16px 0 6px; }
.crumbs a { color: var(--c-ink-soft); }
.crumbs span[aria-current] { color: var(--c-ink); font-weight: 600; }

/* -------- Footer -------- */
.site-footer {
  background: #1b2a3d;
  color: #d6dde6;
  padding: 48px 0 24px;
  margin-top: 56px;
}
.site-footer a { color: #cde0f0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 740px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2c3d54; margin-top: 32px; padding-top: 18px; font-size: 13px; color: #93a3b6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand-row .mark { width: 36px; height: 36px; }

/* -------- WC comparison strip (used inside blog) -------- */
.wc-card-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 24px 0; }
.wc-mini {
  background: #fff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.wc-mini h4 { margin: 0 0 6px; font-size: 14px; color: var(--c-primary-dark); }
.wc-mini p { margin: 0; font-size: 13px; color: var(--c-ink-soft); }

/* -------- Visually hidden / skip -------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; padding: 10px 14px;
  background: var(--c-ink); color: #fff; border-radius: 8px; z-index: 100;
}

/* Safe edge padding */
@media (max-width: 480px) {
  :root { --pad-side: 14px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(26px, 7vw, 32px); }
}
