/* Stonebridge Advisory: inner pages, mobile menu and footer (loaded on every page after site.css) */

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 4px; border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10px; }
.menu-open .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 45; display: none;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--red); color: var(--alabaster); overflow-y: auto;
}
.menu-open .mobile-nav { display: block; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--red); color: var(--alabaster); box-shadow: none; }
.mobile-nav ul { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 4px; }
.mobile-nav a { display: block; padding: 10px 0; font: 400 clamp(28px, 7vw, 40px)/1.15 var(--serif); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: #f3e999; }
.mobile-nav .btn { font: 500 13px/1 var(--sans); padding: 0 26px; display: inline-flex; }
.mobile-nav__meta { margin-top: 40px; font-size: 14px; color: rgba(241, 242, 235, .8); }
.mobile-nav__meta p { margin: 0 0 6px; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .site-header > .btn--sm { display: none; }
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; opacity: 1; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--muted { background: var(--alabaster-200); }
.section--black { background: var(--black); color: var(--alabaster); }
.section--red { background: var(--red); color: var(--alabaster); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.section-head p { margin: 0; color: var(--grey-700); font-size: 17px; }
.section--black .section-head p, .section--red .section-head p { color: rgba(241, 242, 235, .82); }
.section--black .eyebrow, .section--red .eyebrow { color: #f3e999; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 18px; font-size: 17px; color: var(--grey-700); }
.prose p.lead { font: 400 clamp(20px, 2vw, 24px)/1.5 var(--serif); color: var(--black); }

/* ---------- Page hero (red band) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background: var(--red); color: var(--alabaster);
}
.page-hero__art { position: absolute; inset: 0; pointer-events: none; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.page-hero__art--print img { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; opacity: .28; }
.page-hero__art--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 15, .72) 0%, rgba(7, 9, 15, .35) 55%, rgba(7, 9, 15, .15) 100%); }
.page-hero .container { position: relative; }
.page-hero h1, .page-hero__title { max-width: 880px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.06; margin-bottom: 22px; text-wrap: balance; }
/* SEO: on pages with a kicker, the small line is the H1 (service + market) and the big line is display text with the same look */
.page-hero__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin-top: 0; }
.page-hero h1.page-hero__kicker { max-width: none; margin: 0 0 18px; font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-wrap: wrap; }
.page-hero__lead { max-width: 640px; margin: 0; font-weight: 300; font-size: clamp(16px, 1.4vw, 19px); color: rgba(241, 242, 235, .9); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.crumbs { margin: 0 0 20px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 242, 235, .7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Practice cards ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 28px 24px 24px; background: #fff; border-top: 2px solid; border-image: var(--gold) 1;
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(7, 9, 15, .08); }
.card__num { font: 400 15px/1 var(--serif); color: var(--red); }
.card h3 { margin: 0; font: 400 22px/1.2 var(--serif); }
.card p { margin: 0; color: var(--grey-700); font-size: 15px; }
.card__more { margin-top: auto; padding-top: 8px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: pillar; }
.pillar { padding-top: 20px; border-top: 1px solid rgba(241, 242, 235, .3); }
.section:not(.section--black):not(.section--red) .pillar { border-top-color: #d4d5cb; }
.pillar h3 { margin: 0 0 10px; font: 400 21px/1.25 var(--serif); }
.pillar h3::before { counter-increment: pillar; content: counter(pillar, lower-roman) ".  "; color: #c0a15e; }
.pillar p { margin: 0; font-size: 15px; opacity: .85; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(241, 242, 235, .18); font-size: 15px; }
.compare thead th { font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 242, 235, .65); }
.compare tbody th { width: 22%; font: 500 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #c0a15e; }
.compare td:last-child { color: var(--alabaster); }
.compare td:nth-child(2) { color: rgba(241, 242, 235, .62); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding-top: 16px; border-top: 2px solid; border-image: var(--gold) 1; }
.stat strong { display: block; font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* ---------- Practice page ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.split__media { position: sticky; top: calc(var(--header-h) + 24px); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption { margin-top: 10px; font-size: 13px; color: var(--grey); }
.scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: scope; }
.scope li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
.scope li::before { counter-increment: scope; content: counter(scope, lower-roman); grid-row: span 2; font: 400 20px/1.3 var(--serif); color: var(--red); }
.scope h3 { margin: 0; font: 400 21px/1.3 var(--serif); }
.scope p { margin: 0; color: var(--grey-700); font-size: 15px; }

/* ---------- Engagement list ---------- */
.eng { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d4d5cb; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) max-content; }
/* every row shares the list's columns, so names, descriptions and tags line up from row to row */
.eng li { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 250px; grid-template-columns: subgrid; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid #d4d5cb; }
.eng__name { font: 400 20px/1.3 var(--serif); }
.eng__what { color: var(--grey-700); font-size: 15px; }
.eng__meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-block; padding: 5px 10px; border: 1px solid #d4d5cb; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-700); white-space: nowrap; }
.tag--red { border-color: #eac9c9; background: #f7eded; color: var(--red-700); }
.eng li[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  min-height: 38px; padding: 0 16px; border: 1px solid #d4d5cb; background: #fff; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-700);
}
.filters button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--alabaster); }
.note { margin-top: 28px; font: italic 400 17px/1.5 var(--serif); color: var(--grey-700); }

/* ---------- People ---------- */
.people { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.person { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; background: var(--alabaster-200); margin-bottom: 12px; transition: filter .4s var(--ease); filter: grayscale(.15); }
a.person:hover img { filter: none; }
.person strong { font: 400 22px/1.2 var(--serif); }
.person span { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.person-lead { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; background: #fff; text-decoration: none; }
.person-lead img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.person-lead strong { display: block; font: 400 22px/1.2 var(--serif); }
.person-lead > span { display: block; min-width: 0; }
.person-lead > span > span { display: block; margin-top: 4px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.person-lead em { display: block; margin-top: 10px; font: 500 12px/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* ---------- Profile page ---------- */
.profile-hero { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; }
.profile-hero img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.profile-hero .role { margin: 0 0 18px; font: 500 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(241, 242, 235, .78); }
.profile-hero .tagline { margin: 0; font: italic 400 clamp(20px, 2.2vw, 26px)/1.45 var(--serif); color: #f3e999; }
.creds { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: #d4d5cb; border: 1px solid #d4d5cb; margin: 0 0 clamp(40px, 6vw, 72px); }
.creds div { padding: 20px; background: #fff; }
.creds dt { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.creds dd { margin: 8px 0 0; font: 400 17px/1.4 var(--serif); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d4d5cb; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid #d4d5cb; }
.timeline time { font: 400 15px/1.5 var(--serif); color: var(--red); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-weight: 500; }
.timeline span { color: var(--grey-700); font-size: 15px; }
.two-col { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.two-col h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }

/* ---------- Project page ---------- */
.facts-grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: rgba(241, 242, 235, .25); border: 1px solid rgba(241, 242, 235, .25); margin-top: 36px; max-width: 880px; }
.facts-grid div { padding: 18px 20px; background: var(--red); }
.facts-grid dt { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 242, 235, .65); }
.facts-grid dd { margin: 6px 0 0; font: 400 18px/1.35 var(--serif); }
.render-slot {
  aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid #d4d5cb; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(153, 51, 51, .04) 0 12px, transparent 12px 24px);
  font: 500 12px/1.8 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
}
.listing-cats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: #d4d5cb; border: 1px solid #d4d5cb; }
.listing-cats div { padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.listing-cats h3 { margin: 0; font: 400 20px/1.25 var(--serif); }
.listing-cats p { margin: 0; color: var(--grey-700); font-size: 15px; }
.listing-cats .tag { align-self: flex-start; margin-top: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--red); color: var(--alabaster); text-decoration: none; }
.feature__media { min-height: 320px; background: var(--red-900); position: relative; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.feature__media span { position: absolute; left: 16px; bottom: 14px; font: 500 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 242, 235, .75); }
.feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.feature__body h3 { margin: 0; font: 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); }
.feature__body h3 em { color: #f3e999; }
.feature__body p { margin: 0; color: rgba(241, 242, 235, .88); }
.feature__body .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey-700); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9cabf; border-radius: 0; background: #fff;
  font: 400 16px/1.4 var(--sans); color: var(--black);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 2px rgba(174, 128, 59, .25); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { display: none; font-size: 13px; color: var(--red); }
.field [aria-invalid="true"] ~ .err { display: block; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--grey-700); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.check a { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; display: none; padding: 18px 20px; font-size: 15px; }
.form-status.is-ok { display: block; background: #eef4ef; border-left: 3px solid #3f6e4c; color: #24402c; }
.form-status.is-err { display: block; background: #f7eded; border-left: 3px solid var(--red); color: var(--red-700); }
.form .btn { justify-self: start; }
.contact-cards { display: grid; gap: 20px; }
.contact-cards div { padding: 20px 0; border-top: 1px solid #d4d5cb; }
.contact-cards dt { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.contact-cards dd { margin: 6px 0 0; font: 400 18px/1.45 var(--serif); overflow-wrap: anywhere; }

/* ---------- Empty state ---------- */
.empty { padding: clamp(40px, 6vw, 72px); border: 1px dashed #c9cabf; text-align: center; }
.empty h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.empty p { margin: 0 auto 24px; max-width: 520px; color: var(--grey-700); }

/* ---------- Legal text ---------- */
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--grey-700); font-size: 16px; }
.legal ul { padding-left: 20px; }
.draft-flag { display: inline-block; margin-bottom: 24px; padding: 8px 12px; background: #fbfae3; border: 1px solid #c6be59; font-size: 14px; color: #533b19; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.15; margin: 0 auto 16px; max-width: 820px; text-wrap: balance; }
.cta-band p { margin: 0 auto 28px; max-width: 560px; color: rgba(241, 242, 235, .85); }
.cta-band .gold-rule { margin-bottom: 28px; }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer--full { padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--black); color: rgba(241, 242, 235, .78); border: 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.footer-grid h2 { margin: 0 0 14px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c0a15e; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--alabaster); text-decoration: underline; }
.footer-brand p { margin: 16px 0 0; max-width: 340px; font-size: 14px; }
.footer-brand .brand { color: var(--alabaster); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(241, 242, 235, .14); font-size: 13px; }
.footer-base p { margin: 0; }
.footer-base a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .two-col, .profile-hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .split__media { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .eng, .eng li { grid-template-columns: minmax(0, 1fr); }
  .eng__meta { justify-content: flex-start; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .person-lead { grid-template-columns: 88px minmax(0, 1fr); }
  .person-lead img { width: 88px; }
}

/* ---------- Official logo lockup ---------- */
.brand__logo { display: block; width: 197px; height: 42px; overflow: visible; }
.footer-brand .brand__logo { width: 225px; height: 48px; }
@media (max-width: 760px) { .brand__logo { width: 169px; height: 36px; } }

/* ---------- Official project render ---------- */
.render-figure { margin: 0; min-width: 0; }
.render-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.render-figure figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--grey); }
.feature__media img { object-position: 58% 50%; }
@media (max-width: 900px) { .feature__media { min-height: 0; aspect-ratio: 16 / 9; } }
