/* ==========================================================================
   Burr Systems — site stylesheet
   Mobile-first: base styles target phones; @media (min-width) layers add
   columns for tablets/desktops. No framework, no build step.
   ========================================================================== */

/* ---------- 1. Self-hosted fonts (no third-party requests = better privacy
   and a tighter Content-Security-Policy). font-display: swap avoids
   invisible text while fonts load. ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

/* ---------- 2. Design tokens. Change the brand here, once. ---------- */
:root {
  --navy-900: #0f1b33;
  --navy-800: #162544;
  --navy-700: #1f3360;
  --gold-600: #8a6a32;   /* text-safe gold (passes 4.5:1 on white) */
  --gold-400: #c2a06a;   /* decorative gold (lines, icons) */
  --ink: #1b2233;
  --muted: #4d5668;      /* 7:1 on white */
  --line: #e3dfd6;
  --paper: #ffffff;
  --cream: #f7f4ee;
  --success: #1e6b45;
  --error: #a2281c;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 8px 24px rgba(15, 27, 51, .06);
  --max: 72rem;
  --gutter: 1rem;          /* 16px phone gutter */
  --section: 4rem;         /* vertical rhythm, grows on desktop */
  --tap: 44px;             /* minimum touch target (WCAG 2.5.8 / Apple HIG) */
}
@media (min-width: 48rem) { :root { --gutter: 2rem; --section: 6rem; } }

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: .2em; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw + .5rem, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw + .6rem, 3rem); }
h3 { font-size: 1.55rem; }
h4 { font: 600 1rem/1.4 var(--font-sans); margin: 0 0 .35em; color: var(--navy-900); }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--gold-600); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-900); color: #e9ecf3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--gold-400); }
.section--navy .eyebrow { color: var(--gold-400); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.section--navy .lead { color: #c5cbd8; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

/* Visually hidden but available to screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.35rem;
  font: 600 .95rem/1.2 var(--font-sans); text-decoration: none;
  border: 1px solid var(--navy-900); border-radius: var(--radius);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy-900); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: #fff; }
.btn--gold { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); }
.btn--gold:hover { background: #d4b583; color: var(--navy-900); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 5. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); } }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy-900); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { font: 600 1.45rem/1 var(--font-serif); letter-spacing: .01em; }
.brand-name small { display: block; font: 600 .6rem/1.6 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--navy-900);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Phone: menu is a dropdown panel. Without JS (.no-js) it's always shown,
   so navigation never depends on script. */
.site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.is-open, .no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; box-shadow: none; border: 0; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.site-nav a:not(.btn) { display: flex; align-items: center; min-height: var(--tap); padding: .25rem 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold-600); }
.site-nav .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 1.75rem; padding: 0; }
  .site-nav a:not(.btn) { border: 0; font-size: .95rem; }
  .site-nav .btn { width: auto; margin: 0 0 0 .5rem; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: 3rem var(--section); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .6em; }
.hero .lead { margin-bottom: 2rem; }
.hero-portrait { position: relative; max-width: 22rem; margin-inline: auto; width: 100%; }
.hero-portrait::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--gold-400); border-radius: var(--radius); }
.hero-portrait img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-800); }
.hero-portrait figcaption { position: relative; margin-top: 1.5rem; font-size: .85rem; color: var(--muted); text-align: center; }
.audiences { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.audiences p { font: 600 .7rem/1.4 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .5rem; }
.audiences ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0; padding: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 52rem) {
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
  .hero-portrait { margin-right: 1rem; }
}

/* ---------- 7. Practice areas (cards) ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-icon { width: 2.75rem; height: 2.75rem; color: var(--gold-600); margin-bottom: 1.25rem; }
.card p { color: var(--muted); }
.card ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.card ul li { margin-bottom: .3rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " →"; }

/* ---------- 8. "From possibility to practical progress" ---------- */
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.progress-item { background: var(--navy-900); padding: 1.75rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; }
.progress-num { grid-row: span 3; font: 500 2.5rem/1 var(--font-serif); color: var(--gold-400); }
.progress-tag { font: italic 500 1.15rem/1.2 var(--font-serif); color: var(--gold-400); }
.progress-item h3 { font: 600 1.05rem/1.35 var(--font-sans); color: #fff; margin: 0; }
.progress-item p { margin: .35rem 0 0; color: #c5cbd8; font-size: .95rem; }
@media (min-width: 48rem) { .progress-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .progress-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 9. Comparison table (responsive: stacks on phones) ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; background: var(--cream); color: var(--muted); }
.compare thead th:last-child { color: var(--navy-900); }
.compare tbody th { font-weight: 600; color: var(--navy-900); width: 22%; }
.compare td.without { color: var(--muted); }
.compare td.with { color: var(--navy-900); font-weight: 500; }
@media (max-width: 40rem) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
  .compare th, .compare td { display: block; padding: .2rem 0; border: 0; width: auto !important; }
  .compare td::before { content: attr(data-label) ": "; font: 600 .7rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); display: block; margin-top: .4rem; }
}

/* ---------- 10. Approach steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.25rem 1.5rem 4.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 1.25rem; top: 1.35rem; font: 500 1.9rem/1 var(--font-serif); color: var(--gold-600); }
.step h3 { font-size: 1.4rem; margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 4.25rem 1.25rem 1.5rem; }
  .step::before { top: 1.25rem; }
}

/* ---------- 11. Work / case studies ---------- */
.work-card { border-top: 3px solid var(--gold-400); }
.work-meta { font: 600 .72rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0 !important; margin: 0 0 1.25rem !important; }
.tags li { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; background: var(--cream); color: var(--navy-800); margin: 0 !important; }
.case { display: grid; gap: 2rem; padding-block: 3rem; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case dl { margin: 0; display: grid; gap: 1.25rem; }
.case dt { font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); }
.case dd { margin: .3rem 0 0; color: var(--muted); }
.case dd ul { margin: .3rem 0 0; padding-left: 1.1rem; }
@media (min-width: 56rem) { .case { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* ---------- 12. About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.highlights li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.highlights li::before { content: ""; position: absolute; left: 0; top: .7em; width: .6rem; height: 1px; background: var(--gold-600); }
.highlights strong { color: var(--navy-900); font-weight: 600; }
.credential-strip { margin-top: 1.5rem; font: 600 .75rem/1.6 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
@media (min-width: 56rem) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.team-heading { margin: 3rem 0 1.25rem; font-size: 1.75rem; }
.team-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.team-head h4 { font: 500 1.5rem/1.2 var(--font-serif); margin: 0; }
.team-role { margin: .15rem 0 0; font: 600 .72rem/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.avatar { flex: none; width: 4rem; height: 4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-900); color: var(--gold-400); font: 500 1.4rem/1 var(--font-serif); object-fit: cover; }
.avatar--bench { background: var(--cream); color: var(--gold-600); border: 1px dashed var(--gold-400); font-size: 2rem; }
.team-card .highlights { gap: .6rem; font-size: .95rem; }

/* ---------- 13. FAQ "Before we talk" (native <details>: works without JS,
   keyboard and screen-reader accessible by default) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  min-height: var(--tap); padding: 1.25rem 0; font-weight: 600; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-num { font: 500 1.2rem/1 var(--font-serif); color: var(--gold-600); }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-sans); color: var(--gold-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem 2.6rem; color: var(--muted); max-width: 48rem; }
.faq-layout { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .faq-layout { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* ---------- 14. Contact form ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.contact-aside p { color: #c5cbd8; }
.contact-aside a { color: var(--gold-400); }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 40rem) { .form { padding: 2.25rem; } }
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 40rem) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy-900); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: .7rem .85rem;
  /* 16px+ font stops iOS Safari from auto-zooming on focus */
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: #fff; border: 1px solid #b9bfca; border-radius: var(--radius);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold-400); outline-offset: 1px; border-color: var(--navy-700); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; min-height: 1.2em; margin-top: .3rem; font-size: .85rem; color: var(--error); }
.field-hint { display: block; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
/* Honeypot: hidden from humans and from assistive tech, but present for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-bottom: 1.25rem; min-height: 65px; }
.form-footer { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-status { margin: 1rem 0 0; padding: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); padding: .85rem 1rem; background: #e8f4ed; border-radius: var(--radius); }
.form-status.is-error { color: var(--error); padding: .85rem 1rem; background: #fbecea; border-radius: var(--radius); }

/* ---------- 15. CTA band & footer ---------- */
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }
.site-footer { background: var(--navy-900); color: #c5cbd8; padding-block: 3.5rem 2rem; font-size: .92rem; }
.site-footer a { color: #e9ecf3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h2 { font: 600 .72rem/1.4 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { border-radius: 7px; box-shadow: 0 0 0 1px rgba(194, 160, 106, .55); } /* keeps the navy mark visible on navy */
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- 16. Simple content pages (privacy, 404) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.page-hero { padding-block: 3.5rem 2rem; background: var(--cream); border-bottom: 1px solid var(--line); }

/* ---------- 17. Print: clean, ink-friendly ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .form, .btn { display: none !important; }
  .section--navy { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
