/* altru.care site chrome: header, footer, type scale, buttons, cards and colour tokens.
   One source of truth for the look every page shares. The values were measured on 2026-10-04 from
   the home page (web/index.html, styled at runtime by its Tailwind config), so a page that links this
   file wears the home's chrome without loading Tailwind. The home can adopt this file later. */

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3F66;
  --teal: #0D7377;
  --teal-light: #14a8ae;
  --cream: #F7F5F0;
  --cream-dark: #EDEAE3;
  --muted: #6B7280;
  --white: #FFFFFF;
  --line: rgba(27, 42, 74, 0.1);
  --line-strong: rgba(27, 42, 74, 0.2);
  --shadow-card: 0 4px 24px rgba(27, 42, 74, 0.08);
  --shadow-card-hover: 0 10px 32px rgba(27, 42, 74, 0.13);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --wrap: 72rem;
}

/* Base: the parts of the home's reset that its chrome depends on */
*, ::before, ::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; -webkit-tap-highlight-color: transparent; }
body { margin: 0; line-height: inherit; font-family: var(--font-body); background: var(--cream); color: var(--navy); }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; font-family: var(--font-heading); }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
b, strong { font-weight: bolder; }

/* Layout container (home: max-w-6xl mx-auto px-6) */
.site-wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Colour transition shared by links and buttons (home: transition-colors) */
.site-nav__links a, .site-nav__cta, .site-footer a, .btn {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Header */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(247, 245, 240, 0.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.site-nav__brand { display: flex; align-items: center; gap: 0.5rem; }
.site-brand__name { font-weight: 600; color: var(--navy); font-style: italic; }
.site-nav__brand .site-brand__name { font-size: 1.1rem; }
.site-nav__links {
  display: none; align-items: center; gap: 2rem;
  font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
/* The five links need about 1000px beside the brand and the button; below that they wrapped and the header grew
   to 93px (768 to ~900px), so tablets get the phone header (brand + Request assessment), same as the home. */
@media (min-width: 1024px) { .site-nav__links { display: flex; } }
.site-nav__links a { position: relative; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--teal); }
.site-nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--teal); transition: width 0.2s ease;
}
.site-nav__links a:hover::after, .site-nav__links a[aria-current="page"]::after { width: 100%; }
.site-nav__cta {
  background-color: var(--teal); color: var(--white);
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
}
.site-nav__cta:hover { background-color: var(--teal-light); }
/* phone tap targets of at least 44px (home, 10/2) */
.site-nav a[href] { min-height: 44px; display: inline-flex; align-items: center; }

/* Type scale */
.t-h1 { font-family: var(--font-heading); font-size: 2.25rem; line-height: 1.25; font-weight: 700; color: var(--navy); }
.t-h2 { font-family: var(--font-heading); font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--navy); }
.t-h3 { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--navy); }
@media (min-width: 768px) {
  .t-h1 { font-size: 3.75rem; line-height: 1; }
  .t-h2 { font-size: 2.25rem; line-height: 2.5rem; }
}
.t-eyebrow { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.t-lead { font-size: 1.125rem; line-height: 1.625; color: var(--muted); }
.t-small { font-size: 0.875rem; line-height: 1.625; color: var(--muted); }
.t-accent { color: var(--teal); }

/* Buttons: primary = home "Request LMN assessment", secondary = home "How it works" */
.btn { display: inline-block; text-align: center; cursor: pointer; padding: 0.875rem 2rem; border-radius: 0.5rem; font-size: 1rem; line-height: 1.5rem; }
.btn-primary { background-color: var(--teal); color: var(--white); font-weight: 600; box-shadow: var(--shadow-card); }
.btn-primary:hover { background-color: var(--teal-light); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--navy); font-weight: 500; }
.btn-secondary:hover { background-color: var(--cream-dark); }
.btn-row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* Cards (home: bg-white rounded-2xl p-8 card-shadow, lift on hover) */
.card { display: block; position: relative; background: var(--white); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

/* Footer */
.site-footer { background: var(--cream-dark); border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.site-footer__about { font-size: 0.875rem; line-height: 1.625; color: var(--muted); max-width: 20rem; }
.site-footer__note { font-size: 0.75rem; line-height: 1.625; color: var(--muted); margin-top: 1rem; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__col a { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.site-footer__col--meta { gap: 0.5rem; }
@media (min-width: 768px) { .site-footer__col--meta { align-items: flex-end; } }
.site-footer__col--meta a, .site-footer__copy { font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--teal); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
