/* SMR Consulting.
   A traditional, personal look: white pages, navy and blue, and one serif
   typeface for everything. No external fonts or scripts, so the
   Content-Security-Policy stays strict. */

:root {
  --navy: #17406d;
  --navy-deep: #0f2f54;
  --blue-mid: #4a668e;
  --sky: #5aa9d8;
  --sky-dark: #4497c9;
  --ink: #1c1c1c;
  --ink-2: #555d68;
  --line: #d6dbe3;
  --wash: #f3f5f8;
  --white: #ffffff;
  --good: #1f7a4d;
  --warn: #c07c0a;
  --bad: #b3261e;
  --none: #8d96a1;
  --serif: "EB Garamond", Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 1.2rem/1.55 var(--serif); font-variant-numeric: lining-nums;
  color: var(--ink); background: var(--white);
}
main { flex: 1; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: .16em; }
:focus-visible { outline: 2px solid var(--sky-dark); outline-offset: 3px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8em; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 20; background: var(--white); padding: .5rem 1rem; }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font: 400 1.08rem/1.2 var(--serif);
  padding: .85rem 1.8rem; color: var(--white); background: var(--navy);
  border: 1px solid var(--navy); border-radius: 4px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-sky { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); }
.btn-sky:hover { background: var(--sky-dark); border-color: var(--sky-dark); }
.btn-outline { background: var(--white); color: var(--navy); }
.btn-outline:hover { background: var(--wash); border-color: var(--navy); }
.btn-small { padding: .35rem .8rem; font-size: .95rem; }
.chev { font-weight: 700; line-height: 1; }
.more { text-decoration: none; display: inline-flex; gap: .45rem; align-items: baseline; border-bottom: 1px solid transparent; }
.more:hover { border-bottom-color: currentColor; }

.icon { width: 2.4rem; height: 2.4rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--navy); }
.logo-mark { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none; background: var(--navy); color: var(--white); font: 400 2rem/1 var(--serif); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 1.3rem; font-weight: 700; }
.logo-sub { font-size: .92rem; color: var(--ink-2); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.4rem; }
.nav-link {
  font: 400 .84rem/1 var(--serif); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: none; text-decoration: none; cursor: pointer;
  padding: .8rem .6rem; border: 0; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- hero and page headings ---------- */
.hero {
  background: var(--blue-mid) url("hero-bg.svg") center / 100% 100% no-repeat;
  color: var(--white); text-align: center;
  padding: clamp(4.75rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
}
.hero h1 { font-weight: 400; font-size: clamp(2.2rem, 4.3vw, 3.2rem); max-width: 19em; margin: 0 auto .9rem; }
.hero p { font-size: 1.28rem; max-width: 34rem; margin: 0 auto 1.7rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.35rem;
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-size: 1.08rem;
}
.hero-secondary:hover { text-decoration-thickness: 2px; }
.hero-actions :focus-visible { outline-color: var(--white); }
.page-intro {
  padding: clamp(1.6rem, 3.3vw, 2.25rem) 0;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  color: var(--navy);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
}
.page-intro p { max-width: 42rem; margin: .5rem 0 0; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.page-intro + .section { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.section-wash { background: var(--wash); }
.section-title { color: var(--navy); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); text-align: center; margin-bottom: 2.2rem; }
.section-action { text-align: center; margin: 2.2rem 0 0; }

/* contact call to action */
.band { background: var(--navy); color: var(--white); text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band-title { font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.2rem); margin-bottom: 1.7rem; }
.band p { max-width: 38rem; margin-left: auto; margin-right: auto; }

.founder {
  display: flex;
  align-items: flex-start;
  gap: clamp(.85rem, 2vw, 1.4rem);
  max-width: 42rem;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  font-size: 1.05rem;
}
.avatar { border-radius: 50%; object-fit: cover; }
.founder .avatar { width: clamp(3.25rem, 8vw, 4.5rem); aspect-ratio: 1; height: auto; flex: none; }
.founder h2 { color: var(--navy); font-size: 1.3rem; margin-bottom: .35rem; }
.founder p { margin: 0 0 .4rem; }

/* service tiles: navy caption bar on a bordered card */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile { display: flex; flex-direction: column; border: 1px solid var(--navy); background: var(--white); color: var(--ink); text-decoration: none; }
.tile-cap { background: var(--navy); color: var(--white); text-align: center; font-size: 1.15rem; line-height: 1.25; padding: .6rem .75rem; }
.tile-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: 1.5rem 1.2rem 1.6rem; font-size: 1.1rem; line-height: 1.45; }
.tile .icon { color: var(--navy); width: 2.8rem; height: 2.8rem; }
a.tile:hover { box-shadow: 0 6px 18px rgba(15, 47, 84, .16); }

/* numbers band */
.stats { background: var(--navy-deep) url("stats-bg.svg") center / cover no-repeat; color: var(--white); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.stats-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 62rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center; }
.stat-num { display: block; font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: 1; }
.stat-label { display: block; font-weight: 700; font-size: 1.3rem; line-height: 1.2; max-width: 12.5em; margin: .3rem auto 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split h2 { color: var(--navy); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.split .btn { margin-top: .6rem; }

/* example dashboard card */
.sample { background: var(--white); border-radius: 6px; box-shadow: 0 10px 34px rgba(15, 47, 84, .14); padding: clamp(1.4rem, 3vw, 2rem); font-family: var(--sans); font-size: .98rem; }
.sample-score { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 0; }
.sample-list { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.sample-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sample-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sample-list li span:last-child { color: var(--ink-2); text-align: right; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-plain { grid-template-columns: minmax(0, 1fr); }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; border-radius: 4px; }
.portrait figcaption { text-align: center; font-style: italic; color: var(--navy); margin-top: .8rem; line-height: 1.35; }
.prose { max-width: 40rem; }
.prose h2 { color: var(--navy); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.prose p { margin-bottom: 1.05em; }
.creds { margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--navy); }
.creds > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.creds dt { font-weight: 700; color: var(--navy); }
.creds dd { margin: 0; grid-column: 2; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.svc { border: 1px solid var(--navy); display: flex; flex-direction: column; scroll-margin-top: 6rem; }
.svc h2 { display: flex; align-items: center; gap: .8rem; background: var(--navy); color: var(--white); font-weight: 400; font-size: 1.45rem; padding: .7rem 1.3rem; }
.svc h2 .icon { width: 1.9rem; height: 1.9rem; }
.svc-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.svc-body p { margin: 0; }
.gets { margin-top: auto; padding-top: 1.2rem; }
.gets p { border-top: 1px solid var(--line); padding-top: .9rem; font-style: italic; color: var(--navy); }
.gets strong { font-style: normal; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; text-align: center; }
.steps li::before { content: counter(step); display: block; font-size: 3.6rem; line-height: 1; color: var(--navy); margin-bottom: .5rem; }
.steps h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: .5rem; }
.steps p { margin: 0; }

/* ---------- forms ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-side .avatar { width: 8rem; height: 8rem; margin-bottom: 1.2rem; }
.contact-side h2 { color: var(--navy); font-size: 1.6rem; margin-bottom: .7rem; }
.form-card { background: var(--wash); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2.3rem); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: block; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: .3rem; }
.optional { font-weight: 400; font-style: italic; color: var(--ink-2); }
.field-help { color: var(--ink-2); font-size: .95rem; margin: 0 0 .4rem; }
input, select, textarea {
  width: 100%; font: 400 1.1rem/1.4 var(--serif); color: var(--ink); background: var(--white);
  border: 1px solid #98a3b3; border-radius: 4px; padding: .6rem .75rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky-dark); outline-offset: 0; border-color: var(--navy); }
[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 1rem; margin: .3rem 0 0; }
.notice { padding: .8rem 1rem; border: 1px solid; border-radius: 4px; background: var(--white); margin-bottom: 1.5rem; }
.notice-ok { border-color: var(--good); color: #145234; }
.notice-error { border-color: var(--bad); color: var(--bad); }
.login { max-width: 27rem; margin: 0 auto; }
.login-help { margin-top: 1.5rem; text-align: center; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- client dashboard (data is set in a sans face so it stays easy to scan) ---------- */
.section-tight { padding: clamp(2.2rem, 4vw, 3.2rem) 0 clamp(3.5rem, 7vw, 5rem); background: var(--wash); }
.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .6rem; }
.title { color: var(--navy); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 1.8rem; }
.report-head > p { margin: 0; color: var(--ink-2); font: 400 .95rem var(--sans); }
.back { margin-bottom: 1.3rem; font-size: 1.08rem; }

.figures { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.figure { background: var(--white); border-radius: 6px; border-top: 4px solid var(--navy); padding: 1.2rem 1.4rem 1.3rem; }
.figure-main { background: var(--navy); color: var(--white); }
.figure-main .eyebrow, .figure-main .figure-note { color: #cdd9e8; }
.figure-value { font: 400 3.4rem/1.05 var(--serif); margin: 0; }
.figure-value small, .sample-score small { font: 400 1rem var(--sans); opacity: .75; }
.figure-note { font: 400 .92rem/1.4 var(--sans); color: var(--ink-2); margin: .3rem 0 0; }
.figure-main .status { color: var(--white); font-weight: 600; }
.bar { display: block; width: 100%; max-width: 14rem; height: 4px; margin: .7rem 0 .6rem; }
.bar-track { fill: var(--line); }
.figure-main .bar-track { fill: rgba(255, 255, 255, .28); }
.bar-value { fill: var(--navy); }
.bar-good .bar-value { fill: var(--good); } .bar-warn .bar-value { fill: #e0a100; } .bar-bad .bar-value { fill: #e2574c; }

.two-up { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.panel { background: var(--white); border-radius: 6px; padding: 1.5rem 1.6rem 1.3rem; min-width: 0; margin-bottom: 1.1rem; font-family: var(--sans); font-size: .95rem; }
.two-up .panel { margin-bottom: 0; }
.panel h2 { color: var(--navy); font-weight: 700; font-size: 1.55rem; margin-bottom: .9rem; }
.footnote { font: 400 .88rem/1.5 var(--sans); color: var(--ink-2); max-width: 46rem; margin: 1.5rem 0 0; }

.table-scroll { overflow-x: auto; }
.finding-label { display: none; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 600 .74rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: .5rem 1.25rem .6rem 0; border-bottom: 2px solid var(--navy); white-space: nowrap; }
td { padding: .7rem 1.25rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.message { min-width: 16rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-form { display: flex; gap: .4rem; align-items: center; }
.status-form select { width: auto; padding: .3rem .45rem; font: 400 .9rem var(--sans); }
.status-form .btn { font-family: var(--sans); font-size: .88rem; }
.empty { color: var(--ink-2); margin: 0; }

.status { white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; background: var(--none); }
.status-good::before { background: var(--good); }
.status-warn::before { background: var(--warn); }
.status-bad::before { background: var(--bad); }
.figure-main .status-bad::before { background: #f0776d; }
.figure-main .status-good::before { background: #5fd09a; }
td .status-bad { font-weight: 600; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.log li:first-child { padding-top: 0; }
.log li:last-child { border-bottom: 0; }
.log p { margin: 0; }
.log-when { font-size: .84rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 1.4rem; font-size: 1.08rem; }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem 3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { font-size: .92rem; color: var(--ink-2); margin: 1.6rem 0 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .split, .two-up, .svc-grid, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 20rem; }
}
@media (max-width: 700px) {
  body { font-size: 1.12rem; }
  .wrap { padding-left: 1.15rem; padding-right: 1.15rem; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; gap: 0 .5rem; }
  .nav-link { padding: .6rem .45rem; }
  .stats-grid, .steps { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .stat-label { margin-left: auto; margin-right: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .creds > div { grid-template-columns: 1fr; gap: 0; }
  .creds dd { grid-column: 1; }
  .findings-table,
  .findings-table tbody { display: block; }
  .findings-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .findings-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: .45rem .6rem;
    padding: .85rem 0;
    border-top: 1px solid var(--line);
  }
  .findings-table td {
    padding: 0;
    border: 0;
    font-size: .88rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .findings-table .finding-title {
    grid-column: 1 / -1;
    font-size: .97rem;
    font-weight: 600;
  }
  .findings-table .status { white-space: normal; }
  .finding-label {
    display: block;
    color: var(--ink-2);
    font-size: .72rem;
    font-weight: 600;
  }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .figure { padding: .85rem; }
  .figure .eyebrow { font-size: .7rem; }
  .figure-value { font-size: 2.45rem; }
  .figure-value small { font-size: .8rem; }
  .figure-note { font-size: .82rem; }
  .figure-note .status { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
