/* Kestrel Report — shared site styles
   Light editorial system, shared with the client report design. */

:root {
  --paper: #faf9f6;
  --paper-2: #f3f1ec;
  --white: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --rule: #e6e3dc;
  --rule-2: #d8d4cb;

  --green: #1f5c47;
  --green-2: #174837;
  --green-tint: #e7f1ec;
  --green-tint-2: #cfe3d9;
  --red: #c93025;
  --red-tint: #fbeae8;
  --amber: #b26a00;
  --amber-tint: #fff4e0;

  --font-display: 'Crimson Pro', 'New York', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1180px;
  --max-prose: 720px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 12px 40px -16px rgba(29, 29, 31, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
section[id], div[id] { scroll-margin-top: 84px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.prose { max-width: var(--max-prose); }
.prose p { color: var(--ink-2); }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 1.1rem; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.bg-alt { background: var(--paper-2); }
.bg-white { background: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.btn-sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn svg { width: 1em; height: 1em; }
.link {
  color: var(--green); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--green-tint-2); transition: border-color .18s;
}
.link:hover { border-color: var(--green); }
.arrow-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 600; text-decoration: none; }
.arrow-link svg { width: 1em; height: 1em; transition: transform .18s; }
.arrow-link:hover svg { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav.nav-over {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .25s ease, border-color .25s ease;
}
.nav.nav-over.scrolled {
  background: rgba(250, 249, 246, .9);
  border-bottom-color: var(--rule);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.nav-over:not(.scrolled) .brand, .nav-over:not(.scrolled) .nav-links a { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-over:not(.scrolled) .nav-links a:hover { color: #fff; opacity: .8; }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-over:not(.scrolled) .nav-toggle { color: #fff; border-color: rgba(255,255,255,.4); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-menu {
  display: none; position: absolute; left: 0; right: 0; top: 72px;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow);
}
.nav-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-menu a:last-child { border-bottom: 0; }
.nav.menu-open .nav-menu { display: block; }
.nav.menu-open { background: var(--paper); border-bottom-color: var(--rule); }
.nav.menu-open .brand, .nav.menu-open .nav-toggle { color: var(--ink); border-color: var(--rule-2); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* Page header (interior pages) */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head .lede { margin-top: 1rem; max-width: 640px; }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--green); }

/* Forms */
.field { display: grid; gap: .4rem; margin-bottom: 1.25rem; }
.field label, .field .label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: -.1rem; }
.input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-2); border-radius: var(--radius-sm);
  padding: .8rem .95rem; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.choice-grid { display: grid; gap: .6rem; }
.choice {
  display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--ink); }
.choice input { margin-top: .25rem; accent-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.choice b { display: block; font-weight: 600; font-size: .95rem; }
.choice span { font-size: .85rem; color: var(--muted); }
.notice { padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .92rem; line-height: 1.5; }
.notice-green { background: var(--green-tint); color: var(--green-2); }
.notice-amber { background: var(--amber-tint); color: #6b4300; }
.notice-red { background: var(--red-tint); color: var(--red); }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.footer a:hover { color: var(--ink); }
.footer-note { color: var(--muted); font-size: .9rem; max-width: 34ch; margin-top: .75rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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