/* Known Bearing — site styles */
:root {
  --green: #0F4A38; /* Forest */
  --green-dark: #0a3528;
  --green-tint: #e8f0ec;
  --rust: #9A4F22; /* Copper: accent on light only */
  --rust-dark: #7d3f1a;
  --charcoal: #22282B; /* Charcoal */
  --ink: #22282B;
  --muted: #5b6569;
  --paper: #F2EFE8; /* Limestone */
  --paper-raised: #f8f6f1;
  --white: #ffffff;
  --line: #dcd7cb;
  --radius: 10px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green); }
.brand-sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--rust); }
.nav a.btn { box-shadow: none; padding: 8px 16px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; background: var(--rust); color: var(--white); text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 2px solid var(--rust);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn.ghost:hover { background: var(--green); color: var(--white); }
.btn.light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn.light:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(circle at 85% 30%, var(--green-tint), transparent 55%), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 500; margin-bottom: .8em; }
.section-dark .eyebrow { color: #cfe0d8; }
.tagline { font-style: italic; color: var(--green); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark { justify-self: center; width: min(320px, 70vw); opacity: .95; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--green); color: #dfe9e4; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.page-head { padding: 56px 0 24px; }
.page-head .lede { margin-bottom: 0; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; text-decoration: none; }
.icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; font-family: var(--serif); font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 24px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--rust); color: var(--rust); display: grid; place-items: center; font-weight: 700;
}
.steps h3 { margin-bottom: .2em; }

/* Service detail */
.service { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service .grid-2 { align-items: start; }
.service ul { padding-left: 1.2em; margin: 0 0 1em; }
.service li { margin-bottom: .4em; }
.tag { display: inline-block; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; font-weight: 500; color: var(--green); background: var(--green-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* About */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.bio img { border-radius: var(--radius); border: 1px solid var(--line); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); }

/* FAQ */
.faq-group { margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.5rem; border-bottom: 2px solid var(--rust); padding-bottom: 8px; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--rust); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 16px; color: var(--ink); }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.faq-toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: .95rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list strong { display: block; font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }

/* CTA band */
.cta { text-align: center; }
.cta p { max-width: 640px; margin: 0 auto 24px; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--green); color: #cfe0d8; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #e7ecee; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #9fbfb2; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.footer-brand img { width: 34px; height: 34px; background: var(--paper); border-radius: 50%; padding: 2px; }
.legal { border-top: 1px solid #2a6450; margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .bio { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio img { max-width: 280px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.align-center { align-items: center; }
.actions.center { justify-content: center; }
.note { margin-top: 24px; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.contact-form h2 { font-size: 1.6rem; }
.muted { color: var(--muted); font-size: .95rem; }
.field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label, .field legend { font-weight: 500; font-size: .95rem; color: var(--charcoal); }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { margin-bottom: 8px; padding: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); background: var(--white); width: 100%;
  border: 1px solid #c9c3b5; border-radius: 8px; padding: 10px 12px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.checks input { margin-top: .35em; accent-color: var(--green); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.turnstile-slot:not(:empty) { margin-bottom: 18px; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.error { color: #a3261b; }
.form-status.ok { color: var(--green); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .field-row, .checks { grid-template-columns: 1fr; } }
