/* Logo wordmark typeface, self-hosted (SIL Open Font License) */
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/assets/fonts/noto-serif-600.woff2") format("woff2"); }
/* Healthy Margins Partners (working name): public site styles.
   Brand colors live in the custom properties below; change them here. */
:root {
  --ink: #14211f;
  --ink-soft: #4a5654;
  --brand: #12443f;
  --brand-dark: #0b2f2b;
  --brand-tint: #e7f0ee;
  --accent: #b8862b;
  --accent-soft: #f6ecd8;
  --accent-text: #8a6416; /* gold for text: meets WCAG AA contrast on white and cream */
  --paper: #ffffff;
  --paper-alt: #f6f3ee;
  --line: #e1dacd;
  --ok: #2f6b3a;
  --warn: #8a4b0f;
  --danger: #a12a1a;
  --radius: 12px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(20, 33, 31, .08);
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --logo-serif: var(--serif);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); letter-spacing: -0.015em; margin-bottom: .4em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }
.review-banner { background: #fff4d6; color: #5b4300; text-align: center; font-size: .85rem; padding: .35rem 1rem; border-bottom: 1px solid #ecd9a0; }
.draft-flag { display: inline-block; background: #fff4d6; border: 1px dashed #c9a640; color: #5b4300; border-radius: 6px; padding: .25rem .6rem; font-size: .9rem; }
.notice { background: var(--accent-soft); border: 1px solid #e7d3a8; border-radius: 8px; padding: .75rem 1rem; }
.fine { font-size: .9rem; color: var(--ink-soft); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--brand); }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; font-family: var(--logo-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.1; color: var(--brand); }
.brand-sub { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); margin-top: .15rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--brand); border-bottom: 2px solid var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .8rem; font: inherit; color: var(--ink); cursor: pointer; }

/* Buttons and links */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.site-nav a.btn { color: #fff; }
.btn-small { padding: .5rem 1.05rem; font-size: .95rem; }
.btn-block { display: block; width: 100%; }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); color: var(--brand-dark); border-color: var(--accent-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn[disabled] { opacity: .65; cursor: wait; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); color: var(--brand); }
.text-link::after { content: " \2192"; }

/* Sections */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-tint), transparent), linear-gradient(180deg, var(--paper-alt), var(--paper)); padding: 3rem 0 2.75rem; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 3rem; align-items: center; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.hero-card-label { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--brand); margin-bottom: .2rem; }
.hero-card-sub { color: var(--ink-soft); margin-bottom: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--accent-text); margin-bottom: .75rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; align-items: center; }
.center-actions { justify-content: center; }
.scope-note { font-size: .95rem; color: var(--ink-soft); }
.section { padding: 3rem 0; }
/* Two white sections in a row: don't stack both paddings */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
.section-alt { background: var(--paper-alt); }
.section-intro { color: var(--ink-soft); max-width: 46em; margin-bottom: 1.5rem; }
.page-header { padding: 2.5rem 0 1.75rem; background: radial-gradient(900px 400px at 90% -20%, var(--brand-tint), transparent), var(--paper-alt); }
.grid { display: grid; gap: 1.25rem; margin-bottom: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.card p:last-child { margin-bottom: 0; }
.pillar { border-top: 4px solid var(--brand); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: .25rem; top: .55em; width: .65rem; height: .35rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checklist.compact li { margin-bottom: .4rem; font-size: .98rem; }
.numbered { padding-left: 1.3rem; }
.numbered li { margin-bottom: .5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .75rem; }
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 2.75rem 0; }
.cta-band h2, .cta-band p { color: #fff; }
.note { font-size: .93rem; color: var(--ink-soft); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .75rem 0 0; }

/* Offers and pricing */
.offers .offer { display: flex; flex-direction: column; border-top: 5px solid var(--brand); box-shadow: var(--shadow); }
.offers .offer:first-child { border-top-color: var(--accent); }
.offer-tag { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: var(--accent-text); margin-bottom: .4rem; }
.offer-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-top: .5rem; }
.price { margin: .5rem 0 .75rem; }
.price-amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--brand); }
.price-unit { color: var(--ink-soft); font-size: .98rem; }
.pricing { border-top: 5px solid var(--accent); box-shadow: var(--shadow); }
.quote { border-top: 5px solid var(--accent); box-shadow: var(--shadow); margin-bottom: 2rem; }
.feature { background: var(--brand-tint); border-color: #cfe0dc; }
.facts { margin: 0; }
.facts div { padding: .6rem 0; border-top: 1px solid #cfe0dc; }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 700; color: var(--brand); }
.facts dd { margin: .15rem 0 0; }

/* ROI */
.roi-figure { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.figure-row { display: flex; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.figure-value { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: #f1d39a; min-width: 4.5rem; }
.figure-label { font-size: 1.02rem; }
.figure-caption { font-size: .85rem; color: rgba(255, 255, 255, .8); margin: 1rem 0 0; }
.calculator { box-shadow: var(--shadow); }
.calc-output { display: block; background: var(--brand-tint); border-radius: 8px; padding: 1rem 1.1rem; margin-top: .5rem; }
.calc-output p { margin: 0 0 .4rem; }
.calc-output p:last-child { margin: 0; }
.calc-output strong { color: var(--brand); }

/* People */
.people { text-align: center; }
.person-card { padding: 1rem; }
.person-card .role, .bio .role { color: var(--accent-text); font-weight: 600; font-size: .95rem; margin-top: -.3rem; }
.headshot { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--paper); box-shadow: var(--shadow); }
.monogram { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #f1d39a; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; }
.bio { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.bio:last-child { border-bottom: 0; }
.bio .headshot { margin: 0; }

/* Forms */
.form-wrap { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.form-warning { font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
input, select, textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #a9a194; border-radius: 8px; background: #fff; color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; align-items: start; margin-bottom: .9rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; }
.check label { font-weight: 500; margin: 0; }
.hint { font-size: .88rem; color: var(--ink-soft); margin: .3rem 0 0; }
.error { color: var(--danger); font-size: .9rem; margin: .3rem 0 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirmation { background: #e3f0e5; border: 1px solid #b7d6bd; border-radius: 8px; padding: 1.25rem; margin-top: 1rem; }

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.25rem 0; font-size: .95rem; color: var(--ink-soft); background: var(--paper-alt); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.6fr; gap: 2rem; }
.brand-footer { display: flex; align-items: center; gap: .55rem; font-family: var(--logo-serif); font-weight: 400; color: var(--brand); font-size: 1.15rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; }

/* Collapse the header menu before the links crowd each other */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .site-nav a:not(.btn) { padding: .25rem 0; }
}

@media (max-width: 920px) {
  .grid-2, .grid-3, .split, .steps, .footer-inner, .hero-grid, .field-row { grid-template-columns: 1fr; }
  .split, .hero-grid { gap: 2rem; }
  .bio { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding: 2.25rem 0 2rem; }
  .section { padding: 2.25rem 0; }
  .section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Larger, easier-to-tap checkboxes */
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--brand); }

/* Spacing: no trailing margin at the end of a section, and a tighter join under the hero/page header */
.section > .container > :last-child, .section .split > :last-child > :last-child, .page-header .container > :last-child { margin-bottom: 0; }
.hero + .section:not(.section-alt), .page-header + .section:not(.section-alt) { padding-top: 2rem; }

/* Full-width card in a grid (an odd item out) */
.pillar-wide, .card-wide { grid-column: 1 / -1; }

/* Insights articles */
.breadcrumb { font-size: .9rem; margin-bottom: .75rem; color: var(--ink-soft); }
.breadcrumb a { display: inline-block; padding: .2rem 0; }
.byline { font-size: .9rem; color: var(--ink-soft); margin-top: 0; }
.answer { background: var(--paper-alt); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.answer p { margin: 0; }
.article h2 { margin-top: 2rem; }
.article ul:not(.related) { padding-left: 1.3rem; }
.article li { margin-bottom: .4rem; }
.article-cta { margin: 2rem 0 0; }
.article-cta h2 { margin-top: 0; }
.related { list-style: none; padding: 0; }
.related li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.related a { display: inline-block; padding: .2rem 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--paper-alt); font-weight: 600; }
.card-title { font-size: 1.15rem; margin-top: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover, .card-title a:focus-visible { text-decoration: underline; }
.forms-closed { margin-bottom: 1.5rem; }
.forms-closed h2 { margin-top: 0; }
.forms-closed p { overflow-wrap: anywhere; }

/* Homepage team strip */
.team-strip { padding: 2rem 0; }
.team-strip-title { font-size: 1.35rem; margin-bottom: 1.1rem; }
.team-member { display: flex; gap: 1rem; align-items: center; }
.team-member .headshot { width: 88px; height: 88px; flex: 0 0 88px; margin: 0; border-width: 3px; }
.team-member h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.team-member .role { color: var(--accent-text); font-weight: 600; font-size: .92rem; margin: 0 0 .25rem; }
.team-member .cred { font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.team-strip-link { margin: 1rem 0 0; }
.steps-cta { margin: 1.5rem 0 0; }
