/* ==========================================================================
   Beningbrough Advisory — shared styles

   A Xero + AI consulting practice. This stylesheet is adapted from the
   So You Grow Capital design system (same disciplined, contained, left-aligned
   convention) with a new palette:

     navy  #0C3B5A  ink-accent / dark grounds
     blue  #14618F  headings
     teal  #0E9F8E  action colour (CTAs), pairs with dark text, square corners
     grey  #F4F6F8  section grounds

   Type: Work Sans SemiBold headings, Nunito Sans body.

   Discipline kept from the source system: no full-bleed colour bands, no
   centred hero, no oversized leading. The accent (teal) is reserved for CTAs
   and never carries small body text.
   ========================================================================== */

:root {
  --navy:      #0C3B5A;
  --blue:      #14618F;
  --blue-dk:   #0E4A6E;
  --blue-lo:   #E9F1F7;
  --teal:      #0E9F8E;
  --teal-dk:   #0B8577;
  --teal-lo:   #E7F7F4;
  --violet:    #5B54C9;   /* used sparingly to signal the "AI" half */
  --green:     #0B7A57;

  --paper:     #FFFFFF;
  --ground:    #FFFFFF;
  --sunk:      #F4F6F8;
  --ink:       #0B1418;
  --stone:     #5B6770;
  --rule:      #E3E7EA;

  --head: "Work Sans", Arial, Helvetica, sans-serif;
  --body: "Nunito Sans", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 38rem;
  --wide: 71.25rem;   /* 1140px */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
a, button, label, input, select, textarea { touch-action: manipulation; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-dk); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--ground); position: sticky; top: 0; z-index: 50; }
.masthead-in {
  max-width: var(--wide); margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--blue-dk);
  font-family: var(--head); font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem); line-height: 1.15; white-space: nowrap;
}
.wordmark > svg.brandlock { height: 44px; width: auto; display: block; }

.masthead nav { display: flex; gap: 1.5rem; align-items: center; }
.masthead nav a:not(.btn) {
  font-family: var(--head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--teal-dk); text-decoration: none; padding: 0.6rem 0; white-space: nowrap;
}
.masthead nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 40rem) {
  .masthead-in { padding-inline: 1rem; gap: 0.6rem; }
  .masthead nav { gap: 0.8rem; }
  .masthead nav a:not(.btn) { display: none; }
  .wordmark > svg.brandlock { height: 38px; }
}

/* ---------- layout ---------- */
.band { padding: 3.5rem 1.5rem; }
.band-sunk { background: var(--sunk); border-block: 1px solid var(--rule); }
.inner { max-width: var(--wide); margin: 0 auto; }
.narrow { max-width: 58ch; margin-inline: 0; }
.inner.narrow { max-width: 58ch; margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1rem 3.5rem; align-items: start; }
.split-lead { display: flex; flex-direction: column; gap: 0.6rem; }
.split-body { display: flex; flex-direction: column; gap: 0.9rem; }
.split-body .muted { max-width: 62ch; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: 1.25rem; } }

.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--head); font-weight: 600; color: var(--blue);
  margin: 0; text-wrap: balance; line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.014em; color: var(--navy); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.008em; }
h3 { font-size: 1rem; color: var(--blue-dk); line-height: 1.35; }
p { margin: 0; }
.lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.eyebrow {
  font-family: var(--head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--teal-dk); margin: 0;
}
.muted { color: var(--stone); }
.small { font-size: 0.875rem; }
.fine { font-size: 0.8rem; color: var(--stone); line-height: 1.5; max-width: 62ch; }
a { color: var(--blue-dk); text-underline-offset: 2px; }

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.hero-art { margin: 0; }
.hero-art .panel {
  aspect-ratio: 1 / 1; border: 1px solid var(--rule);
  background:
    radial-gradient(120% 120% at 15% 15%, rgba(14,159,142,0.14), transparent 55%),
    radial-gradient(120% 120% at 85% 85%, rgba(91,84,201,0.14), transparent 55%),
    var(--sunk);
  display: grid; place-items: center; padding: 2rem; overflow: hidden;
}
.hero-art svg { width: 100%; height: auto; max-width: 340px; }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-art { order: -1; }
  .hero-art .panel { aspect-ratio: 16 / 9; }
}

/* ---------- callout line ---------- */
.callout {
  border-left: 4px solid var(--teal); background: var(--teal-lo);
  color: var(--ink); padding: 0.75rem 1rem;
  font-size: 0.9rem; font-weight: 600; font-family: var(--head);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--head); font-size: 0.9rem; font-weight: 600;
  padding: 0.7rem 1.35rem; min-height: 44px;
  border-radius: 0; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--teal); color: #06231F; }
.btn-primary:hover { background: var(--teal-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-dk); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--blue-dk); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-dk); outline-offset: 2px;
}
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- key numbers strip ---------- */
.strip { background: var(--navy); }
.strip-in {
  max-width: var(--wide); margin: 0 auto; padding: 1.15rem 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem 1.5rem;
}
.strip-in div { display: flex; flex-direction: column; gap: 0.1rem; }
.strip-n {
  font-family: var(--head); font-weight: 600; font-size: 1.35rem; color: #fff;
  line-height: 1.15; font-variant-numeric: tabular-nums;
}
.strip-l {
  font-family: var(--head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: #B9CEDD;
}

/* ---------- services / cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.cards > article {
  background: var(--ground); padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.cards .ic {
  width: 38px; height: 38px; color: var(--teal-dk); margin-bottom: 0.2rem;
}
.cards h3 { color: var(--navy); font-size: 1.05rem; }

/* ---------- proof grid ---------- */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 3rem; }
@media (max-width: 44rem) { .proof { grid-template-columns: 1fr; } }
.proof > div {
  display: flex; flex-direction: column; gap: 0.4rem;
  border-left: 3px solid var(--blue); padding-left: 1.1rem;
}

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.steps li { background: var(--ground); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.steps h3 { color: var(--navy); }

/* ---------- lists ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
ul.ticks li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.68rem; height: 0.34rem;
  border-left: 2.5px solid var(--teal-dk); border-bottom: 2.5px solid var(--teal-dk);
  transform: rotate(-45deg);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.about-portrait {
  aspect-ratio: 4 / 5; border: 1px solid var(--rule);
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(14,159,142,0.16), transparent 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(91,84,201,0.16), transparent 55%),
    var(--sunk);
  display: grid; place-items: center; overflow: hidden;
}
/* Drop-in replacement: when a real photo exists, use
   <img class="about-portrait" src="assets/portrait.jpg" alt="Paul Langston">
   and this makes it crop nicely instead of stretching. */
img.about-portrait { object-fit: cover; object-position: center 30%; }
.about-portrait svg { width: 62%; height: auto; }
@media (max-width: 52rem) { .about-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone);
}
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.8rem; border: 1px solid var(--rule); border-radius: 0; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--blue-dk); outline: none; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0392B; }
.field .err { font-size: 0.78rem; color: #C0392B; font-family: var(--head); font-weight: 600; }

/* honeypot: off-screen, not display:none (bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit result */
.form-status {
  font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 0.9rem; border-left: 4px solid var(--teal);
}
.form-status.is-ok { background: var(--teal-lo); color: #06231F; border-left-color: var(--teal); }
.form-status.is-err { background: #FBEDEB; color: #7A241B; border-left-color: #C0392B; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 30rem) { .two-up { grid-template-columns: 1fr; } }
.contact-detail { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-detail .row { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-detail .row .k {
  font-family: var(--head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
.contact-detail .row a, .contact-detail .row span { font-size: 1rem; color: var(--ink); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--rule); background: var(--sunk);
  padding: 2rem 1.5rem; font-size: 0.8rem; color: var(--stone);
}
footer.site .inner { display: flex; flex-direction: column; gap: 1.5rem; }
footer.site p { max-width: 60ch; }
.foot-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.25rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.foot-contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.foot-contact > a { font-family: var(--head); font-weight: 600; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
@media (max-width: 52rem) { .foot-cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.foot-cols > div { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-h {
  font-family: var(--head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dk); margin: 0;
}
footer.site strong { color: var(--ink); }
