/* Milbourne Bookkeeping - built from the Claude Design mockup (direction A, 19 Nov 2026).
   Plain CSS, no build step. Colours come from Otho's logo. */
:root {
  --navy: #232c79;
  --navy-dark: #1a2160;
  --navy-deep: #151a4d;
  --lime: #8cc640;
  --lime-light: #9fd457;
  --lime-soft: #c8e6a0;
  --mist: #f1f1f6;
  --line: #dcdde8;
  --line-soft: #e4e5ee;
  --ink: #1b1d2a;
  --ink-2: #2c2f40;
  --ink-3: #3a3d50;
  --muted: #4a4e63;
  --field: #6b6f88;
  --error: #b42318;
  --on-navy: #dfe2f5;
  --slab: 'Roboto Slab', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(20px, 5.5vw, 80px);
  --shadow-photo: 0 24px 48px -24px rgba(35, 44, 121, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--slab); font-weight: 600; color: var(--navy); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; }
.wrap-wide { max-width: 1280px; margin: 0 auto; }
.section { padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Small label with the lime dash */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--lime); border-radius: 2px; flex: none; }
.bar { display: block; width: 48px; height: 4px; background: var(--lime); border-radius: 2px; }
.h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--mist); color: var(--navy); }
.btn-lime { background: var(--lime); color: var(--navy-deep); font-weight: 700; min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-lime:hover { background: var(--lime-light); color: var(--navy-deep); }
.btn-lime:focus-visible { outline-color: #fff; }
.link-underline {
  color: var(--navy); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: calc(1280px + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x);
  min-height: clamp(76px, 7vw, 100px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.brand img { height: clamp(48px, 4.4vw, 64px); width: auto; }
.nav-main { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-main a.nav-link {
  position: relative; display: flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
}
.nav-main a.nav-link:hover { color: var(--navy); }
.nav-main a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 2px; background: var(--lime);
}
.header-mobile { display: none; align-items: center; gap: 8px; flex: none; }
.header-mobile .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.menu-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 1.5px solid #c9cbdb; border-radius: 6px; cursor: pointer; padding: 0;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 1px; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -12px rgba(27, 29, 42, .25); padding: 8px 16px 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-bottom: 1px solid #ececf3; color: var(--ink); text-decoration: none;
  font-family: var(--slab); font-size: 20px; font-weight: 500;
}
.mobile-menu nav a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.mobile-menu .menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-menu .menu-actions .btn { min-height: 52px; width: 100%; }
.menu-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(27, 29, 42, .45); }
.menu-backdrop[hidden] { display: none; }
@media (max-width: 759px) {
  .nav-main { display: none; }
  .header-mobile { display: flex; }
}

/* Home: hero */
.hero { padding: clamp(36px, 6vw, 96px) var(--pad-x) clamp(48px, 6.5vw, 104px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 4.5vw, 72px); }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.hero .lead { margin-top: 24px; max-width: 36em; }
.hero mark {
  background: linear-gradient(transparent 58%, rgba(140, 198, 64, .45) 58%);
  color: inherit; font-weight: 600; padding: 0 2px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { flex: 1.15 1 520px; min-width: 0; width: 100%; }
.photo-frame { background: #fff; padding: 8px; border-radius: 6px; box-shadow: var(--shadow-photo); }
.hero-photo .photo-frame { aspect-ratio: 5 / 4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

/* Home: certifications */
.certs { padding: clamp(56px, 7vw, 104px) var(--pad-x); }
.certs .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.certs .bar { margin-bottom: 20px; }
.certs h2 { color: #fff; }
.certs .sub { margin-top: 12px; font-size: clamp(17px, 1.35vw, 19px); color: var(--on-navy); }
.cert-list {
  list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(24px, 3vw, 48px); align-items: center;
}
.cert-list li { display: flex; justify-content: center; }
.cert-list img { width: 100%; max-width: 300px; }

/* Home: services */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 56px);
}
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card .body { padding: clamp(22px, 2.4vw, 32px); }
.service-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.service-card p { color: var(--ink-3); text-wrap: pretty; }
.services-note { margin-top: clamp(28px, 3vw, 40px); color: var(--ink-3); }

/* Home: about */
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(36px, 6vw, 96px); }
.about-photo { flex: 0 1 400px; min-width: 0; width: 100%; }
.ledger {
  position: relative; padding: 24px 24px 24px 48px; border-radius: 10px; background-color: #fff;
  background-image:
    linear-gradient(to right, transparent 27px, var(--lime) 27px, var(--lime) 29px, transparent 29px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--line) 31px, var(--line) 32px);
}
.ledger .photo-frame img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 25%; }
.name-tag {
  position: absolute; left: 12px; bottom: 40px; background: #fff; border-radius: 6px; padding: 12px 16px;
  box-shadow: 0 10px 24px -10px rgba(27, 29, 42, .35); display: flex; align-items: center; gap: 12px; line-height: 1.3;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.name-tag strong { display: block; font-family: var(--slab); font-weight: 600; color: var(--navy); font-size: 17px; }
.name-tag span.role { font-size: 14px; color: var(--muted); }
.about-text { flex: 1 1 520px; min-width: 0; }
.about-text h2 { margin-bottom: 24px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 38em; color: var(--ink-2); text-wrap: pretty; }
.pullquote { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 38em; background: #fff; border-radius: 10px; padding: clamp(24px, 2.6vw, 36px); }
.pullquote .bar { margin-bottom: 18px; }
.pullquote p { font-family: var(--slab); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; color: var(--navy); font-weight: 500; text-wrap: pretty; }

/* Inner pages */
.page-head { padding: clamp(36px, 5.5vw, 88px) var(--pad-x) clamp(56px, 7vw, 112px); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.15; text-wrap: balance; }
.page-head .lead { margin-top: 20px; max-width: 40em; }

/* Schedule */
.schedule-grid { display: flex; flex-wrap: wrap; flex-direction: row-reverse; align-items: flex-start; gap: clamp(24px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.schedule-main { flex: 1 1 640px; min-width: 0; }
.cal-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(35, 44, 121, .45); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--navy); color: #fff; }
.cal-bar .title { font-family: var(--slab); font-weight: 500; font-size: 17px; }
.cal-bar .meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-navy); }
.cal-bar .meta .dot { width: 8px; height: 8px; }
.calendly-inline-widget { min-width: 300px; height: 720px; background: #fff; }
@media (max-width: 759px) { .calendly-inline-widget { height: 1000px; } }
/* Loader shown until Calendly says the calendar has drawn (assets/js/site.js) */
.cal-body { position: relative; }
.cal-loader {
  position: absolute; inset: 0; z-index: 2; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: clamp(120px, 18vh, 200px); gap: 14px; color: var(--muted); font-size: 16px; text-align: center;
  transition: opacity .25s ease, visibility .25s ease;
}
.cal-loader.is-done { opacity: 0; visibility: hidden; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--lime); border-right-color: var(--navy);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
.cal-slow[hidden] { display: none; }
.cal-slow { max-width: 22em; padding: 0 16px; }
.cal-fallback {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 20px; padding: 20px 24px; border-radius: 10px; background: var(--mist); color: var(--ink-2);
}
.cal-fallback .btn-outline:hover { background: var(--navy); color: #fff; }
.schedule-aside { flex: 1 1 300px; max-width: 100%; min-width: 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.person { display: flex; align-items: center; gap: 16px; line-height: 1.35; }
.person img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; object-position: 50% 25%; flex: none; }
.person .small { font-size: 14px; color: var(--muted); }
.person .name { font-family: var(--slab); font-weight: 600; font-size: 20px; color: var(--navy); }
.divider { height: 1px; background: var(--line-soft); margin: 22px 0; }
.card .talk { margin: 0 0 12px; font-family: var(--slab); font-weight: 500; font-size: 18px; color: var(--navy); }
.icon-links { display: flex; flex-direction: column; gap: 8px; }
.icon-link { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.icon-link.light { font-weight: 500; }
.icon-link:hover { color: var(--navy); }
.icon-box { width: 40px; height: 40px; border-radius: 8px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex: none; color: var(--navy); font-weight: 700; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4vw, 56px); }
.contact-info { flex: 1 1 320px; min-width: 0; }
.contact-info .person { margin-bottom: 24px; }
.contact-info .person img { width: 72px; height: 72px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; align-items: center; gap: 16px; min-height: 72px; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--navy); }
.contact-list .icon-box { width: 44px; height: 44px; font-size: 16px; }
.contact-list .label { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.contact-list .value { font-weight: 600; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.contact-list .value.email { font-size: 17px; }
@media (max-width: 420px) {
  .contact-list .value.email { font-size: 15px; }
  .contact-list a { gap: 12px; }
}
.contact-info .ready { margin-top: 24px; color: var(--ink-3); }
.contact-form-col { flex: 1.4 1 460px; min-width: 0; max-width: 100%; }
.form-card { background: var(--mist); border-radius: 12px; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field label .req { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  min-height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--field); border-radius: 6px; width: 100%;
}
.field textarea { min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 15px; font-weight: 500; }
.field .error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .note { font-size: 15px; color: var(--muted); }
.form-alert { padding: 14px 16px; border-radius: 8px; background: #fef3f2; border: 1px solid #fecdca; color: var(--error); font-weight: 500; }
.form-alert[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-card { background: var(--mist); border-radius: 12px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sent-card[hidden] { display: none; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.sent-card h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; }
.sent-card .big { font-size: 18px; color: var(--ink-2); }
.sent-card .rule { height: 1px; align-self: stretch; background: var(--line); }
.sent-card .sooner { color: var(--ink-3); }
.sent-card .btn-outline:hover { background: #e7e8f2; }

/* Closing call to action */
.cta-band { padding: clamp(56px, 7vw, 104px) var(--pad-x); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.cta-text { flex: 1 1 520px; min-width: 0; }
.cta-text .bar { margin-bottom: 24px; }
.cta-text h2 { max-width: 20em; font-weight: 500; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.3; color: #fff; text-wrap: balance; }
.cta-actions { flex: 0 1 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.cta-contacts a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.cta-contacts a:hover { color: var(--lime-soft); }
.cta-contacts a:focus-visible { outline-color: var(--lime); outline-offset: 2px; }
.cta-contacts svg { flex: none; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: clamp(48px, 5vw, 72px) var(--pad-x) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px 48px; }
.footer-grid img { height: 60px; width: auto; }
.footer-grid .tagline { margin-top: 18px; max-width: 22em; color: var(--ink-3); font-size: 16px; text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; min-width: 0; }
.footer-col .head { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-col a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--navy); text-decoration: underline; }
.footer-col a.strong { font-weight: 600; }
.footer-col a.with-icon { gap: 12px; }
.ficon { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* 404 */
.notfound { text-align: left; }
.notfound .hero-actions { margin-top: 28px; }
.form-card[hidden] { display: none; }
