/* ── Thrive Safe marketing-site shared styles ──
   Source of truth for colors/typography is the app itself (app/index.html);
   these values are copied 1:1 so the site and app are visually identical. */
:root {
  --w-green: #1E4D35;
  --w-green-mid: #2D6B4A;
  --w-green-light: #4A9268;
  --w-green-pale: #E8F4ED;
  --w-honey: #C8963E;
  --w-honey-light: #E8B96A;
  --w-honey-pale: #FBF4E8;
  --w-cream: #F7F5F0;
  --w-white: #FFFFFF;
  --w-off-white: #FAFAFA;
  --w-border: #E7E4DC;
  --w-ink: #1F2A24;
  --w-ink-mid: #5B675F;
  --w-ink-light: #8A948C;
  --concern-red: #8B1A2A;
  --serif: "Playfair Display", "Noto Sans Khmer", Georgia, serif;
  --sans: "Inter", "Noto Sans Khmer", -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--w-cream);
  color: var(--w-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--w-green-mid); }

/* ── Header / nav ── */
.site-header {
  background: var(--w-cream);
  border-bottom: 1px solid var(--w-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.site-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.site-logo img { width: 30px; height: 37px; object-fit: contain; }
.site-logo strong {
  font-family: var(--serif);
  font-size: 23px; font-weight: 700; color: var(--w-green);
  letter-spacing: -0.01em; line-height: 1;
}
.site-logo strong em { color: var(--w-honey); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--w-ink-mid);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--w-green-pale); color: var(--w-green); }
.site-nav a.active { color: var(--w-green); font-weight: 600; }
.site-nav a.nav-cta {
  background: var(--w-green); color: #fff; font-weight: 600;
  padding: 9px 16px; border-radius: 10px; margin-left: 6px;
}
.site-nav a.nav-cta:hover { background: var(--w-green-mid); color: #fff; }
@media (max-width: 480px) {
  .site-nav a { padding: 8px 8px; font-size: 13px; }
  .site-nav a.nav-cta { padding: 8px 12px; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--w-green); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 15px 34px; border: 0; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(30,77,53,0.28);
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: var(--w-green-mid); transform: translateY(-1px); }
.btn-gold-rule { width: 40px; height: 3px; background: var(--w-honey); border-radius: 2px; }

/* ── Footer ── */
.site-footer {
  background: var(--w-green); color: #DDEAE2;
  margin-top: 64px; padding: 36px 20px 30px;
}
.site-footer-inner { max-width: 960px; margin: 0 auto; }
.site-footer .foot-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff;
}
.site-footer .foot-logo em { color: var(--w-honey-light); font-style: italic; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 18px; }
.site-footer nav a { color: #CFE0D6; text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-note { font-size: 12.5px; color: #9FBCAC; }
.site-footer .foot-accent {
  display: inline-block; width: 26px; height: 3px;
  background: var(--concern-red); border-radius: 2px;
  margin-right: 8px; vertical-align: middle; opacity: 0.85;
}
.foot-socials { display: flex; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.foot-socials a { color: #CFE0D6; text-decoration: none; font-size: 14px; font-weight: 500; }
.foot-socials a:hover { color: var(--w-honey-light); }

/* ── Generic page shell (blog/contact) ── */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 20px; }
.page-title {
  font-family: var(--serif); font-size: clamp(30px, 6vw, 42px);
  font-weight: 700; color: var(--w-green); letter-spacing: -0.01em; line-height: 1.2;
}
.page-sub { color: var(--w-ink-mid); font-size: 16px; margin-top: 10px; }
.card {
  background: var(--w-white); border: 1px solid var(--w-border);
  border-radius: 16px; padding: 24px; margin-top: 24px;
}
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--w-green-mid); background: var(--w-green-pale);
  border-radius: 999px; padding: 3px 11px;
}

/* Khmer/English pill — same gold plaque pill as the app's header toggle,
   sized down to sit inside the site header nav. */
.lang-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 6px 14px; border: none; border-radius: 999px;
  background: url('/plaque-pill.webp') center / 100% 100% no-repeat;
  cursor: pointer; filter: drop-shadow(0 3px 8px rgba(30,77,53,0.3));
  transition: transform .15s;
}
.lang-pill img { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; pointer-events: none; }
.lang-pill span {
  font-family: "Playfair Display", "Noto Sans Khmer", serif;
  font-size: 13px; font-weight: 700; color: #E9C97F;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); pointer-events: none; white-space: nowrap;
}
.lang-pill:active { transform: scale(0.96); }
