/* SMP Advisors — shared stylesheet
   Palette sampled directly from the logo artwork:
   slate  #14303c  (wordmark)
   teal   #448b85  (chart bars, tagline)
   gray   #f0f0f0  (logo background — reused as the site's band colour, which is
                    why the logo drops into the header with no seam)
   Small teal text uses --accent-text, a darkened teal, because the logo teal
   only reaches 3.98:1 on white and small text needs 4.5:1. */

:root {
  --ink:         #14303c;
  --ink-soft:    #3f5a64;
  --ink-faint:   #78909a;

  --brand:       #1d4757;
  --brand-deep:  #14303c;

  --accent:      #448b85;   /* graphics: rules, borders, fills */
  --accent-text: #2f6b66;   /* text: 6.1:1 on white */
  --accent-deep: #33736e;   /* accent buttons: white text hits 5.5:1 */
  --accent-soft: #a8cbc7;   /* light borders */
  --accent-lift: #6bb8b1;   /* spare — a lifted teal, if anything ever goes dark */

  --tint:        #eef5f4;
  --paper:       #ffffff;
  --shell:       #f0f0f0;
  --rule:        #dfe4e4;

  --measure: 68ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --shadow: 0 1px 2px rgba(20,48,60,.05), 0 8px 24px rgba(20,48,60,.07);

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--accent-text); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }

.wrap { width: min(1140px, 100% - (var(--pad) * 2)); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240,240,240,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #dcdcdc;
}
.nav-bar { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }

.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 42px; width: auto; }

.footer-brand { display: block; line-height: 0; }
.footer-brand img { height: 38px; width: auto; }

/* Text wordmark — kept as a fallback if the logo image is ever swapped out */
.brand-mark { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: var(--brand-deep); }
.brand-mark .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a[aria-current="page"] { color: var(--brand-deep); border-bottom-color: var(--accent); }
.nav-links .btn[aria-current="page"] { border-bottom-color: transparent; color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid #cfcfcf; border-radius: 6px;
  padding: .45rem .6rem; cursor: pointer; font-size: 1rem; color: var(--ink);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .brand img { height: 34px; }
  .nav-links {
    display: none; position: absolute; inset: 100% 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--shell);
    border-bottom: 1px solid #dcdcdc; padding: .5rem var(--pad) 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li + li { border-top: 1px solid #dcdcdc; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: none; }
  .nav-links .btn { margin-top: .75rem; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 650; font-size: .95rem;
  padding: .7rem 1.4rem; border-radius: 6px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #0a1c24; color: #fff; }
.btn-ghost { border-color: #cfd6d6; color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-accent { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn-accent:hover { background: #2a615d; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band-shell { background: var(--shell); }
.band-tint  { background: var(--tint); }

/* Formerly a dark band. Kept as a light teal-tinted panel with a rule top and
   bottom, so it still separates from the sections around it without going dark. */
.band-navy {
  background: var(--tint); color: var(--ink);
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
}
.band-navy h2, .band-navy h3 { color: var(--brand-deep); }
.band-navy a { color: var(--brand); }

.eyebrow {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: .9rem;
}

.lede { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }

.rule-gold { width: 54px; height: 3px; background: var(--accent); border: 0; margin: 0 0 1.6rem; }
.center .rule-gold { margin-inline: auto; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(68,139,133,.13), transparent 60%),
    radial-gradient(800px 420px at 95% 0%, rgba(20,48,60,.08), transparent 62%),
    var(--paper);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 56ch; }
.hero .btn-row { margin-top: 2rem; }

.page-head {
  background: var(--shell);
  border-bottom: 1px solid #dcdcdc;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head h1 { max-width: 22ch; }
.page-head .lede { max-width: 62ch; margin-bottom: 0; }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .3rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 6px;
  background: var(--tint); border: 1px solid var(--accent-soft);
  color: var(--accent-text); font-weight: 800; font-size: .9rem; margin-bottom: .9rem;
}

.service {
  border-left: 3px solid var(--accent); background: var(--paper);
  border-radius: 0 10px 10px 0; padding: 1.75rem 1.9rem;
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
}
.service h3 { color: var(--brand-deep); }
.service .who {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--rule);
  font-size: .9rem; color: var(--ink-faint);
}
.service .who strong { color: var(--ink-soft); }

.tick { list-style: none; margin: 0 0 1.1em; padding: 0; }
.tick li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.tick li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: .95rem;
}

.stat-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { border-top: 3px solid var(--accent); padding-top: 1rem; }
.stat .big { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--brand-deep); line-height: 1.1; }
.stat .cap { font-size: .88rem; color: var(--ink-faint); }

/* ---------- video / demo cards ---------- */

.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px 10px 0 0;
  overflow: hidden; background: var(--tint);
  border-bottom: 1px solid var(--rule);
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem; text-align: center;
  color: var(--ink-faint); padding: 1.5rem; font-size: .9rem;
  background: linear-gradient(135deg, var(--tint), #e2eeec);
}
.video-placeholder .play {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-size: 1.1rem;
}
.demo-card { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.demo-body { padding: 1.4rem 1.6rem 1.7rem; }
.demo-body h3 { margin-bottom: .4rem; }
.demo-meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; margin-bottom: .6rem; }

/* ---------- insights ---------- */

.post {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: 10px; padding: 1.6rem 1.75rem;
  background: var(--paper); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.post:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.post .kicker { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.post h3 { margin: .5rem 0 .5rem; color: var(--brand-deep); }
.post p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .8rem; }
.post .more { font-size: .88rem; font-weight: 700; color: var(--accent-text); }

.pull {
  border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.4rem;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45; color: var(--brand-deep); margin: 2rem 0;
}

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 1.1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--tint); border: 1px solid var(--accent-soft);
  border-radius: 6px; padding: .7rem .85rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-text); outline-offset: 1px; background: #f8fcfb;
}
.form-note { font-size: .85rem; color: var(--ink-faint); }

/* Netlify honeypot — a field only a bot will fill in. Must stay in the DOM. */
.hp { position: absolute; left: -9999px; }

.contact-line { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-line .ico { color: var(--accent-text); font-size: 1.05rem; line-height: 1.5; font-weight: 700; }
.contact-line .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

/* ---------- CTA strip ---------- */

.cta-strip { background: var(--tint); color: var(--ink); border-top: 1px solid var(--accent-soft); }
.cta-strip .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem; padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.cta-strip h2 { margin-bottom: .35rem; color: var(--brand-deep); }
.cta-strip p { color: var(--ink-soft); margin: 0; max-width: 48ch; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--shell); color: var(--ink-soft);
  border-top: 1px solid #dcdcdc;
  padding: 3rem 0 2rem; font-size: .9rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 {
  color: var(--brand-deep); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid #d5d5d5; display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; font-size: .82rem; color: var(--ink-faint);
}

/* ---------- placeholder marker ----------
   Deliberately amber so it clashes with the brand palette and cannot be
   mistaken for finished design. Search the project for "TODO". */
.todo {
  background: #fff4d1; border-bottom: 1px dashed #c79a1a;
  color: #7a5c00; font-style: italic; padding: 0 .2em; border-radius: 2px;
}
.todo-block {
  background: #fff4d1; border: 1px dashed #c79a1a; border-radius: 8px;
  color: #6b5000; font-size: .9rem; padding: 1rem 1.2rem; margin: 1.25rem 0;
}
.todo-block strong { color: #7a5c00; }
.todo-block p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -9999px; background: var(--brand-deep); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 6px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
