/* =========================================================
   KAI YOUNG CARING — Shared Design System
   ========================================================= */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

:root {
  /* Base */
  --bg:          #f7f4f0;
  --bg-soft:     #f0ece6;
  --bg-warm:     #ede8e1;
  --surface:     #ffffff;
  --surface-2:   #faf8f5;

  /* Ink */
  --ink:         #1e1a17;
  --ink-2:       #3d3530;
  --muted:       #7a6e65;
  --faint:       #b0a79e;

  /* Borders */
  --border:      #e0d9d1;
  --border-2:    #cdc4bb;

  /* Accent — warm terracotta */
  --accent:      #c25b3f;
  --accent-d:    #a84a30;
  --accent-hi:   #d46b4e;
  --accent-pale: #fdf0ec;
  --accent-mid:  #f5d5cb;

  /* Sage — calm secondary */
  --sage:        #5a7a65;
  --sage-pale:   #edf3ef;

  /* Gold — numbers/stats */
  --gold:        #b8813a;

  /* Dark footer */
  --ink-dark:    #1a1612;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(247,244,240,0.0);
  padding: 20px 0;
  transition: background 300ms ease, padding 300ms ease,
              box-shadow 300ms ease, border-bottom-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.navbar.solid {
  background: rgba(247,244,240,0.96);
  backdrop-filter: blur(14px);
  padding: 13px 0;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(30,26,23,0.07);
}
/* On non-hero pages the navbar is always solid */
.navbar.always-solid {
  background: rgba(247,244,240,0.97);
  backdrop-filter: blur(14px);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,26,23,0.07);
}
.nav-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.nav-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(194,91,63,0.25);
}
.nav-menu { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-menu a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  padding: 7px 13px; border-radius: 7px;
  transition: color 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--accent); background: var(--accent-pale); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: 7px !important;
  font-weight: 600 !important; box-shadow: 0 2px 12px rgba(194,91,63,0.28);
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease !important;
}
.nav-cta:hover {
  background: var(--accent-d) !important; color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(194,91,63,0.38) !important;
}
.nav-cta.active { background: var(--accent-d) !important; }

/* ── MOBILE MENU TOGGLE ─────────────────────────── */
.nav-toggle {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
  background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 250ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HEADER (non-hero pages) ───────────────── */
.page-header {
  background: linear-gradient(150deg, #2b1f18 0%, #3d2820 30%, #2a1c18 65%, #1e1612 100%);
  padding: 130px 0 70px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(194,91,63,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(184,129,58,0.1) 0%, transparent 45%);
}
.page-header::after {
  content: ""; position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-header-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 44px;
  position: relative; z-index: 1;
}
.page-header-eye {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
  line-height: 1.15; color: #fff; max-width: 700px;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.page-header h1 em { font-style: italic; color: var(--accent-hi); }
.page-header p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  max-width: 580px; font-weight: 300; line-height: 1.78;
}

/* ── LAYOUT UTILITIES ───────────────────────────── */
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 44px; }
section { padding: 88px 0; }
section.tight { padding: 60px 0; }
hr.div { border: none; border-top: 1px solid var(--border); margin: 0 44px; }

.s-eye {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}
h2.display {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.7rem); font-weight: 700;
  color: var(--ink); line-height: 1.2; margin-bottom: 14px;
  letter-spacing: -0.01em;
}
h2.display em { font-style: italic; color: var(--accent); }
.lead-p {
  color: var(--muted); font-size: 1.02rem;
  max-width: 640px; line-height: 1.84; font-weight: 400; margin-bottom: 40px;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 7px; font-size: 0.93rem; font-weight: 600;
  font-family: inherit; text-decoration: none; border: none; cursor: pointer;
  transition: all 220ms ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 3px 16px rgba(194,91,63,0.35);
}
.btn-primary:hover {
  background: var(--accent-d); transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(194,91,63,0.45);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent-mid);
}
.btn-outline:hover {
  background: var(--accent-pale); border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost-dark {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(30,26,23,0.09);
  border-color: var(--accent-mid);
}
.card-stripe { height: 3px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hi) 100%); }
.card-body { padding: 22px 20px; }
.card-ico { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.card h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.card-foot {
  padding: 10px 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}

/* ── TAGS ───────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--muted); padding: 3px 9px; border-radius: 999px;
  font-size: 0.73rem; font-weight: 500;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.tag.ok::before { background: var(--sage); }
.tag.warn::before { background: var(--gold); }

/* ── LOCATIONS BAR ──────────────────────────────── */
.loc-bar {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.loc-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 44px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.loc-label {
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  margin-right: 6px; padding-right: 16px; border-right: 1px solid var(--border-2);
  white-space: nowrap;
}
.loc-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.loc-pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--ink-2); padding: 4px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  transition: border-color 200ms, background 200ms, color 200ms;
}
.loc-pill:hover { border-color: var(--accent); background: var(--accent-pale); color: var(--accent-d); }

/* ── BLOCKQUOTE ─────────────────────────────────── */
.why-block {
  border-left: 4px solid var(--accent); padding: 32px 40px;
  background: var(--surface); border-radius: 0 12px 12px 0;
  border-top: 1px solid var(--border); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(30,26,23,0.05);
}
.why-block blockquote {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem); font-style: italic;
  color: var(--ink); line-height: 1.5; font-weight: 600; margin-bottom: 18px;
}
.why-block p {
  color: var(--muted); font-size: 1.02rem; line-height: 1.84; font-weight: 400;
}

/* ── STATS GRID ─────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.stat-cell {
  background: var(--surface); padding: 24px 20px;
  transition: background 200ms;
}
.stat-cell:hover { background: var(--surface-2); }
.stat-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.5rem; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 5px;
}
.stat-lbl { font-size: 0.79rem; color: var(--muted); font-weight: 500; }

/* ── POINT LIST ─────────────────────────────────── */
.points { display: grid; gap: 10px; }
.point {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.point:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 2px 12px rgba(194,91,63,0.07);
}
.point-ico { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.point strong { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.point span   { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

/* ── HORIZONTAL SCROLLER ────────────────────────── */
.scroller {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 14px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { height: 5px; }
.scroller::-webkit-scrollbar-track { background: var(--bg-warm); border-radius: 4px; }
.scroller::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.scroller .card { flex: 0 0 290px; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--ink-dark); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
}
.foot-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 44px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.foot-brand-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.foot-brand-name span { color: var(--accent-hi); }
.foot-brand p {
  font-size: 0.83rem; color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-bottom: 16px;
}
.foot-email-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.83rem; color: var(--accent-hi); text-decoration: none; font-weight: 500;
  transition: color 160ms;
}
.foot-email-link:hover { color: var(--accent-mid); }
.foot-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a {
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 160ms;
}
.foot-col a:hover { color: var(--accent-hi); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.foot-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.foot-bottom a { color: rgba(255,255,255,0.25); text-decoration: none; font-size: 0.78rem; }
.foot-bottom a:hover { color: var(--accent-hi); }

/* ── TRUST BADGES ───────────────────────────────── */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.78); padding: 7px 14px; border-radius: 999px;
  font-size: 0.79rem; font-weight: 500;
}
.trust-badge::before {
  content: "✓"; font-size: 0.68rem; font-weight: 700;
  color: var(--accent-hi); flex-shrink: 0;
}

/* ── CHIP ───────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--ink-2); padding: 7px 13px; border-radius: 999px;
  font-size: 0.81rem; font-weight: 500;
}

/* ── CONTACT CARD ───────────────────────────────── */
.ccard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(30,26,23,0.08);
}
.ccard-stripe { height: 3px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hi) 100%); }
.ccard-body { padding: 30px 28px; }
.ccard-body > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.email-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  margin-bottom: 22px; transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(194,91,63,0.3);
}
.email-btn:hover {
  background: var(--accent-d); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,91,63,0.4);
}
.ccard-div { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.chip-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}

/* ── AREAS GRID ─────────────────────────────────── */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px;
}
.area-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 18px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.area-card:hover {
  border-color: var(--accent-mid); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,26,23,0.08);
}
.area-pin { font-size: 1.2rem; margin-bottom: 8px; }
.area-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.area-card span { font-size: 0.78rem; color: var(--faint); }

/* ── CERT LINK ──────────────────────────────────── */
.cert-link {
  font-size: 0.79rem; font-weight: 700; color: var(--accent);
  text-decoration: none; white-space: nowrap; transition: color 160ms;
}
.cert-link:hover { color: var(--accent-d); text-decoration: underline; }

/* ── AVAILABILITY BADGE ─────────────────────────── */
.avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-pale); border: 1px solid rgba(90,122,101,0.3);
  color: var(--sage); padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  animation: pulseDot 2.2s ease infinite;
}
@keyframes pulseDot {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.3;transform:scale(0.5);}
}

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:translateY(0);}
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-1 { animation: fadeUp 0.55s 0.08s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.16s ease both; }
.fade-up-3 { animation: fadeUp 0.55s 0.24s ease both; }
.fade-up-4 { animation: fadeUp 0.55s 0.32s ease both; }
.fade-up-5 { animation: fadeUp 0.55s 0.40s ease both; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media(max-width:1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media(max-width:768px) {
  .nav-inner { padding: 0 20px; }
  .nav-menu { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,244,240,0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 11px 20px; border-radius: 0; }
  .nav-toggle { display: flex; }
  section { padding: 60px 0; }
  section.tight { padding: 44px 0; }
  .wrap { padding: 0 20px; }
  hr.div { margin: 0 20px; }
  .page-header { padding: 110px 0 55px; }
  .page-header-inner { padding: 0 20px; }
  .loc-inner { padding: 0 20px; }
  .scroller .card { flex: 0 0 82vw; }
  .areas-grid { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-inner { padding: 0 20px; }
  footer { padding: 36px 0 24px; }
  .why-block { padding: 22px 22px; }
}
@media(max-width:480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}