/* Brooks Professional Services — shared styles */

@font-face {
  font-family: "Neuton";
  src: url("/assets/fonts/neuton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F5F0E6;
  --surface: #FBF8F2;
  --sand: #EDE5D6;
  --sand-2: #E3DACA;
  --line: #D9CFBD;
  --line-2: #CFC4B0;
  --ink: #1C2621;
  --body: #3E4943;
  --muted: #4F5A54;
  --green: #1F4A37;
  --green-tint: #DCE5DE;
  --on-green: #F5F0E6;
  --clay: #8F5220;
  --error: #9B2C1F;
  --footer-text: #E9E3D7;
  --footer-muted: #B9B2A5;
  --serif: "Neuton", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { opacity: 0.82; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul.plain, ol.plain { padding: 0; list-style: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; }
.section { padding: 96px var(--gutter); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.band { background: var(--sand); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 40px; }
.stack--sm { gap: 14px; }
.narrow { max-width: 860px; }
.measure { max-width: 36em; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: start; }
.grid--feature { grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) { .grid--feature { grid-template-columns: 1.35fr 1fr; } }
.grid--tight { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.row.split-row { justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.h4 { font-size: 19px; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 36em; text-wrap: pretty; }
.body { color: var(--body); }
.small { font-size: 14px; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--green); color: var(--surface);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn--light { background: var(--on-green); color: var(--green); }
.btn--outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn--outline-light { background: transparent; color: var(--on-green); box-shadow: inset 0 0 0 2px var(--on-green); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-strong { font-weight: 600; padding: 10px 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container { padding: 18px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--green); color: var(--on-green); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.brand-tag { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { color: var(--surface); padding: 0 22px; min-height: 46px; }

/* Hero */
.hero { padding: 96px var(--gutter) 88px; }
.hero .stack { gap: 28px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.pill svg { flex: none; }
.pill--quiet { background: transparent; border-color: transparent; padding-left: 4px; color: var(--muted); font-weight: 400; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.card--compact { border-radius: 22px; padding: 34px; gap: 14px; }
.card--outline { background: transparent; border-color: var(--line-2); }
.card--dark { background: var(--green); border-color: var(--green); color: var(--on-green); }
.card--dark .body, .card--dark .muted-on-dark { color: var(--green-tint); }
.card--dark a:not(.btn) { color: var(--on-green); }
.card .push { margin-top: auto; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.card-title--sm { font-size: 27px; line-height: 1.2; }

.tag-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px 24px; font-weight: 500; padding: 0; list-style: none; }
.tag-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.card--dark .tag-list li { border-top-color: rgba(245, 240, 230, 0.25); }

.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.mini-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mini-card strong { font-weight: 600; }
.mini-card span { color: var(--body); font-size: 15px; }

.fee-line { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.card--dark .fee-line { border-top-color: rgba(245, 240, 230, 0.25); }
.fee-amount { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.card--dark .link-strong { color: var(--on-green); }

/* Lists */
.check-list { display: flex; flex-direction: column; gap: 14px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; }
.rule-list { padding: 0; list-style: none; }
.rule-list li { padding: 14px 0; border-bottom: 1px solid var(--sand-2); }
.rule-list li:last-child { border-bottom: 0; }
.panel-list { padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.panel-list li { display: flex; gap: 16px; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--sand-2); font-weight: 500; }
.panel-list li:last-child { border-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; padding: 0; list-style: none; }
.steps li, .ruled { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--green); padding-top: 20px; }
.step-num { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--clay); }
.step-title { font-weight: 600; font-size: 19px; }

/* Fee table */
.fee-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 22px; overflow: hidden; }
.fee-table th { text-align: left; padding: 16px 24px; font-weight: 600; background: var(--sand-2); }
.fee-table td { padding: 20px 24px; vertical-align: top; border-top: 1px solid var(--sand-2); }
.fee-table strong { font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Notice */
.notice { border: 2px solid var(--ink); border-radius: 20px; padding: 32px 36px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.notice h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.notice p { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.4; }

/* CTA band */
.cta { background: var(--green); color: var(--on-green); border-radius: 32px; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.cta p { color: var(--green-tint); font-size: 19px; }
.cta .stack { gap: 12px; max-width: 36em; }

/* About */
.about-intro { max-width: 760px; }
.about-intro .lead { max-width: none; font-size: 20px; line-height: 1.6; }

.credential { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; margin-top: 8px; }
.credential img { flex: none; width: 112px; height: 112px; }
.credential .stack { flex: 1 1 280px; gap: 6px; }

/* Contact */
.contact-detail { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.label-caps { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.contact-email { font-family: var(--serif); font-weight: 400; font-size: 24px; word-break: break-word; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-weight: 600; font-size: 15px; }
.field input, .field textarea { min-height: 48px; padding: 12px 14px; border: 1px solid #A99C86; border-radius: 12px; background: #FFFFFF; font: inherit; color: var(--ink); }
.field textarea { resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #FFFFFF; }
.choice input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.form-status { color: var(--error); font-weight: 500; }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -9999px; }

/* Prose (privacy) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--body); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--ink); margin-top: 22px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Thank-you / 404 */
.center-msg { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.check-badge { width: 72px; height: 72px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 64px var(--gutter) 40px; }
.site-footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 26em; }
.footer-brand .name { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.footer-brand .desc { color: var(--footer-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-nav a { color: var(--footer-text); text-decoration: none; padding: 6px 0; }
.footer-nav a.email { text-decoration: underline; }
.footer-legal { border-top: 1px solid #3A4640; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--footer-muted); }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section--flush-top { padding-top: 0; }
  .section--flush-bottom { padding-bottom: 0; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .card { padding: 28px; }
  .form { padding: 24px; }
  .notice { padding: 24px; }
  .notice p { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
