/*
 * Truehome static site: shared chrome (header, footer, buttons).
 * Loaded after tailwind.css on every page of the static export.
 */

/* Fonts are self-hosted (SIL Open Font License, see fonts/OFL-*.txt), so loading
   them sends no visitor data to a third-party font service. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #293237;
  --navy-dark: #1e262a;
  --beige: #e9e8e4;
  --beige-soft: #f5f4f1;
  --beige-mid: #d4d2cc;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #CCFBF1;
  --text: #293237;
  --text-2: #4a5963;
  --muted: #8a9399;
  --border: #d4d2cc;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1.25rem; background: var(--teal-dark); color: #fff; font-weight: 700; border-radius: 0 0 .5rem 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

svg.i { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(245,244,241,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212,210,204,.7); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.site img { height: 30px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { font-weight: 700; font-size: .95rem; color: var(--text-2); padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
nav.main a:hover { background: var(--beige); color: var(--text); }
@media (max-width: 640px) { nav.main a { padding: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; padding: 13px 22px; border-radius: 14px; text-decoration: none; transition: background .2s, box-shadow .2s; }
.btn svg.i { width: 1rem; height: 1rem; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: #fff; }
.btn-ghost-dark { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer.site-footer { background: #fff; border-top: 1px solid rgba(212,210,204,.7); padding: 48px 0 28px; }
.f-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer.site-footer img { height: 28px; width: auto; display: block; margin-bottom: 14px; }
footer.site-footer p.co { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin: 0; }
footer.site-footer h2 { margin: 0 0 12px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site-footer ul a { font-size: .92rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
footer.site-footer ul a:hover { color: var(--teal-dark); }
.f-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--beige-soft); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: var(--beige-soft); color: var(--text-2); }
.social a:hover { background: var(--beige); color: var(--text); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; display: block; }
