:root {
  --indigo: #3F48CC;
  --turq: #00A2E8;
  --lt: #99D9EA;
  --ink: #1f2340;
  --muted: #4a4f6a;
  --line: #e6e8f2;
  --banner: #8b1e1e;
  --open-bg: #fff3bf;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--indigo); font-weight: 600; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--banner);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}
.guide-draft-label {
  background: #6b3a00;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.site-header {
  background: #fff;
  border-top: 10px solid var(--lt);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 0;
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
}
.logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 12px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  padding: 0 0 10px;
}
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: #eef3ff;
  text-decoration: underline;
}

main {
  flex: 1;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--indigo);
  font-weight: normal;
  line-height: 1.25;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.6em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.3em 0 0.4em; }
h1 + p, .lede { font-size: 1.06rem; }
hr.rule { width: 72px; height: 4px; background: var(--turq); border: 0; border-radius: 2px; margin: 0 0 1.4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 0.35em; }
blockquote {
  margin: 1em 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 4px solid var(--turq);
  color: var(--ink);
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.2em;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: #f5f7fb; }
img { max-width: 100%; height: auto; }
.bio-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 0 1.2em;
}
.bio-row img.headshot {
  width: 220px;
  max-width: 40%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
mark.ph-token {
  background: var(--open-bg);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
}

.form-disabled-note {
  background: #fff4e5;
  border: 1px solid #e0b35a;
  color: #5a3b00;
  padding: 12px 14px;
  margin: 0 0 1rem;
  border-radius: 4px;
  font-weight: 600;
}
form.quote-form {
  border: 1px solid var(--line);
  padding: 18px 18px 8px;
  border-radius: 6px;
  background: #fafbff;
  margin: 0 0 1.5em;
}
form.quote-form label,
form.quote-form .field-label {
  display: block;
  font-weight: 600;
  margin: 0 0 4px;
}
form.quote-form .field { margin: 0 0 14px; }
form.quote-form input[type="text"],
form.quote-form input[type="email"],
form.quote-form input[type="tel"],
form.quote-form select,
form.quote-form textarea {
  width: 100%;
  max-width: 440px;
  padding: 8px 10px;
  border: 1px solid #c5c9db;
  border-radius: 4px;
  font: inherit;
  background: #f3f3f3;
  color: #555;
}
form.quote-form textarea { min-height: 110px; max-width: 100%; }
form.quote-form .helper { font-size: 0.92rem; color: var(--muted); margin: 4px 0 0; font-weight: 400; }
form.quote-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  font-weight: 400;
}
form.quote-form .consent input { margin-top: 5px; flex: 0 0 auto; }
form.quote-form button[disabled] {
  background: #9aa0b8;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: not-allowed;
}
form.quote-form .submit-notice { font-size: 0.95rem; color: var(--muted); margin: 12px 0 8px; }
.interest-options { display: flex; flex-wrap: wrap; gap: 10px 16px; }

.guides-list { list-style: none; padding: 0; }
.guides-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 12px;
}
.guides-list .draft-tag {
  display: inline-block;
  background: #6b3a00;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  background: #fafbff;
}
.site-footer p { margin: 0 0 0.55em; }
.site-footer a { font-weight: 600; }
.footer-name { color: var(--ink); }

@media (max-width: 640px) {
  .bio-row img.headshot { max-width: 180px; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
}

/* ───── 11/11 review items ───── */
/* D12: skip link + visible focus everywhere */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--indigo); color: #fff; padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 8px; outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--indigo); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 2px;
}
main:focus { outline: none; }

/* D1: header phone + Request a quote review */
.header-actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin: 0 0 10px;
}
.header-phone { font-weight: 700; color: var(--ink); }
.header-phone a { color: var(--indigo); }

/* B16 + D2: enabled primary button and CTA links styled as buttons */
.btn, .btn-primary, form.quote-form button[type="submit"]:not([disabled]) {
  display: inline-block; background: #3F48CC; color: #fff; border: 2px solid #3F48CC; border-radius: 4px;
  padding: 10px 18px; font: inherit; font-weight: 700; text-decoration: none; line-height: 1.3; cursor: pointer;
}
.btn:hover, .btn-primary:hover, form.quote-form button[type="submit"]:not([disabled]):hover { background: #333bb0; border-color: #333bb0; text-decoration: none; }
.btn:focus-visible, .btn-primary:focus-visible,
form.quote-form button[type="submit"]:not([disabled]):focus-visible {
  outline: 3px solid #fff; outline-offset: -5px; box-shadow: 0 0 0 3px #1f2340;
}
.nav a.btn, .header-actions a.btn { color: #fff; }

/* B15: live form (same .quote-form layout; enabled fields get a white background) */
form.quote-form input:not([disabled]), form.quote-form select:not([disabled]), form.quote-form textarea:not([disabled]) {
  background: #fff; color: var(--ink); border-color: #8a8fa8;
}
.req { color: #8b1e1e; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* v3 additions */
.notice { background: #f4f6fc; border-left: 4px solid var(--indigo); padding: 10px 14px; border-radius: 2px; }
p > .btn + .btn { margin-left: 8px; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field legend { padding: 0; font-weight: 600; margin-bottom: 4px; }
.bio-text { flex: 1 1 280px; } .bio-text > :first-child { margin-top: 0; }
