/* Teh-Khang Care website. Plain CSS, no framework. Light and dark themes via variables. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #eef5f4;
  --ink: #142329;
  --muted: #475a62;
  --line: #d9e3e4;
  --link: #0a6a6c;
  --teal: #0a6a6c;
  --navy: #0b3a66;
  --accent: #f0b04a;
  --btn: #0a6a6c;
  --btn-hover: #08585a;
  --btn-ink: #ffffff;
  --btn-alt-ink: #0a6a6c;
  --hero-a: rgba(10, 106, 108, 0.14);
  --hero-b: rgba(11, 58, 102, 0.1);
  --band: #0b3a66;
  --band-ink: #ffffff;
  --shadow: 0 1px 2px rgba(10, 35, 45, 0.06), 0 10px 28px rgba(10, 35, 45, 0.08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0d1517;
  --surface: #131e21;
  --surface-2: #172428;
  --ink: #e9f0f1;
  --muted: #a6b7bc;
  --line: #263639;
  --link: #6fd6cd;
  --teal: #6fd6cd;
  --navy: #8fb8e6;
  --accent: #f0b04a;
  --btn: #5cd0c6;
  --btn-hover: #7adcd3;
  --btn-ink: #062a2c;
  --btn-alt-ink: #6fd6cd;
  --hero-a: rgba(92, 208, 198, 0.12);
  --hero-b: rgba(143, 184, 230, 0.08);
  --band: #12303f;
  --band-ink: #f2f7f8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: ui-serif, 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--btn);
  color: var(--btn-ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand { display: block; flex: none; line-height: 0; border-radius: 10px; }
.brand-logo {
  width: 190px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 43%;
  background: #fff;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:not(.btn):hover { background: var(--surface-2); }
.site-nav a[aria-current='page'] { background: var(--surface-2); color: var(--link); }
.nav-cta { margin-left: 8px; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
}
.header-phone:hover { background: var(--surface-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 20px; height: 20px; }
#theme-toggle .icon-sun { display: none; }
html[data-theme='dark'] #theme-toggle .icon-sun { display: block; }
html[data-theme='dark'] #theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.site-header[data-open='true'] .nav-toggle .icon-open { display: none; }
.site-header[data-open='true'] .nav-toggle .icon-close { display: block; }

@media (max-width: 1060px) {
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header[data-open='true'] .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; border-radius: 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn-outline { border-color: var(--btn-alt-ink); color: var(--btn-alt-ink); background: transparent; }
.btn-outline:hover { background: var(--surface-2); text-decoration: none; }
.btn-light { background: #fff; color: #0b3a66; }
.btn-light:hover { background: #e9f2f7; text-decoration: none; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

.hero {
  padding: clamp(44px, 7vw, 92px) 0;
  /* Fades to the page colour at the bottom edge, so no seam is visible where the hero ends. */
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 9%, var(--bg)) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { max-width: 56ch; margin-bottom: 1.6em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.glance h2 { font-size: 1.15rem; font-family: inherit; letter-spacing: 0; margin-bottom: 14px; }
.glance ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.glance li { display: flex; gap: 12px; align-items: flex-start; }
.glance .icon { margin-top: 3px; color: var(--link); }
.glance li span { color: var(--ink); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature h3 { margin-bottom: 0.35em; }
.feature p:last-child { margin-bottom: 0; color: var(--muted); }
.bubble {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--link);
  margin-bottom: 14px;
}
.section-alt .bubble { background: var(--surface); }
.bubble .icon { width: 24px; height: 24px; }

.service-card { display: flex; flex-direction: column; }
.service-card .more { margin-top: auto; padding-top: 10px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--link); margin-top: 4px; width: 1.1em; height: 1.1em; stroke-width: 3; }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-2 li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.band {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(40px, 6vw, 72px) 0;
}
.band h2, .band .lead { color: var(--band-ink); }
.band .lead { opacity: 0.9; }
.band-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band-row > div:first-child { max-width: 640px; }

.quote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 24px 0 0;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
}
.quote cite { display: block; margin-top: 10px; font: 700 0.95rem system-ui, sans-serif; color: var(--muted); font-style: normal; }

.founder { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.founder-avatar {
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 3.2rem ui-serif, Georgia, serif;
}
html[data-theme='dark'] .founder-avatar { color: #06242a; background: linear-gradient(135deg, #6fd6cd, #8fb8e6); }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } .founder-avatar { max-width: 160px; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.tag-list li { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }

/* ---------- Photos ---------- */
.scene { margin: 0; }
.scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.scene figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); font-style: italic; }
html[data-theme='dark'] .scene img { filter: brightness(0.88); }
.scene-inline { margin-top: 22px; max-width: 520px; }

.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 9%, var(--bg)) 0%, var(--bg) 100%); }
.page-hero .lead { max-width: 62ch; margin-bottom: 0; }

.service-block { padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 20px; }
.service-block:first-of-type { border-top: 0; }
.service-block .bubble { width: 60px; height: 60px; margin: 0; }
.service-block h2 { font-size: 1.6rem; }
@media (max-width: 560px) { .service-block { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { padding: clamp(22px, 4vw, 34px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.req { color: var(--link); }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type='text'], input[type='email'], input[type='tel'], select, textarea, input[type='file'] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid #7d8f95;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
html[data-theme='dark'] input[type='text'], html[data-theme='dark'] input[type='email'], html[data-theme='dark'] input[type='tel'],
html[data-theme='dark'] select, html[data-theme='dark'] textarea, html[data-theme='dark'] input[type='file'] { border-color: #5d7279; }
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; gap: 22px; padding-top: 6px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status[data-state] { display: block; }
.form-status[data-state='ok'] { background: rgba(20, 140, 90, 0.14); color: var(--ink); border: 1px solid rgba(20, 140, 90, 0.5); }
.form-status[data-state='error'] { background: rgba(200, 50, 50, 0.12); color: var(--ink); border: 1px solid rgba(200, 50, 50, 0.5); }
.form-status[data-state='info'] { background: var(--surface-2); border: 1px solid var(--line); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .bubble { margin: 0; width: 44px; height: 44px; flex: none; }
.info-list strong { display: block; }
.info-list a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 0.7fr; gap: 36px; padding-bottom: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { margin-bottom: 14px; border: 1px solid var(--line); }
.footer-tag { color: var(--muted); font-style: italic; margin: 0; }
.footer-h { font: 800 0.82rem system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: 4px; color: var(--link); }
.footer-list a { color: var(--ink); }
.footer-links li { display: block; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.wagadu-credit { display: inline-flex; align-items: center; gap: 10px; }
.wagadu-credit strong { color: var(--ink); font-weight: 700; }
.wagadu-logo { width: 132px; height: 66px; object-fit: cover; border-radius: 10px; background: #0e0e0e; border: 1px solid var(--line); }

.notfound { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer .footer-bottom a, .skip-link, .band { display: none; }
  body { background: #fff; color: #000; }
}
