/* ==========================================================================
   M Setia Accounting Inc. — msacpa.ca
   Single stylesheet. No external dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
/* Brand palette sampled directly from the M Setia Accounting Inc. logo:
   #146CC0 (83% of the mark) and #48AF04 (the rising arrow).
   Contrast on white — brand 5.3:1, brand-dark 7.6:1, ink on accent 5.9:1. */
:root {
  --ink:        #0b2239;
  --navy:       #0e3f70;
  --navy-deep:  #092b4d;
  --brand:      #146cc0;
  --brand-dark: #0f5596;
  --accent:     #48af04;
  --accent-dark:#3a8c03;
  --accent-soft:#eaf7dd;
  --star:       #e8a020;

  --bg:         #ffffff;
  --surface:    #f2f7fc;
  --surface-2:  #e2edf9;
  --line:       #d9e5f2;
  --muted:      #52667c;

  --ok:         #1b7a4b;
  --ok-soft:    #e7f5ed;
  --warn:       #9a6206;
  --warn-soft:  #fdf3e0;
  --err:        #b3261e;
  --err-soft:   #fdecea;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 1px 3px rgba(11, 31, 51, .08);
  --shadow-md: 0 4px 12px rgba(11, 31, 51, .08), 0 2px 4px rgba(11, 31, 51, .04);
  --shadow-lg: 0 18px 40px rgba(11, 31, 51, .12);

  --wrap: 1140px;
  --gutter: 24px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .55vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

small { font-size: .875rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 940px; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-deep); color: #dbe6f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #9fe06a; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section--navy .section-head p { color: #b8c9d9; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .65rem;
}
.section--navy .eyebrow { color: var(--accent); }

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

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-deep); color: #fff; padding: .75rem 1.15rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--font-sans);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover { --btn-bg: var(--brand-dark); --btn-bd: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }

/* Logo green needs dark text — white on #48af04 is only 2.8:1. */
.btn--accent  { --btn-bg: var(--accent); --btn-bd: var(--accent); color: #08210b; }
.btn--accent:hover { --btn-bg: var(--accent-dark); --btn-bd: var(--accent-dark); color: #08210b; }

.btn--ghost   { --btn-bg: transparent; --btn-bd: var(--brand); color: var(--brand-dark); }
.btn--ghost:hover { --btn-bg: var(--brand); color: #fff; }

.btn--light   { --btn-bg: #fff; --btn-bd: #fff; color: var(--navy-deep); }
.btn--light:hover { --btn-bg: #eaf1f7; --btn-bd: #eaf1f7; color: var(--navy-deep); }

.btn--outline-light { --btn-bg: transparent; --btn-bd: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; color: #fff; }

.btn--sm  { padding: .55rem 1rem; font-size: .9rem; }
.btn--lg  { padding: .95rem 1.9rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* --------------------------------------------------------------------------
   5. Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: #b8c9d9;
  font-size: .85rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.25rem; min-height: 40px;
}
.topbar a { color: #dbe6f0; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__contact { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.15rem; }
.topbar__contact span::before,
.topbar__contact a + a::before { content: none; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__portal { font-weight: 600; }
@media (max-width: 720px) {
  .topbar__hours, .topbar__mail { display: none; }
}

.social { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: inherit; transition: background .18s ease, color .18s ease;
}
.social a:hover { background: rgba(255,255,255,.14); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* No backdrop-filter here: a filter on this element would make it the
     containing block for the position:fixed mobile nav panel below. */
}
.header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand__logo { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .brand__logo { height: 38px; } }
@media (max-width: 380px) { .brand__logo { height: 33px; } }

/* The logo is blue-on-transparent, so on the dark footer it sits on a white
   chip rather than being recoloured — keeps the mark exactly as supplied. */
.brand--chip {
  background: #fff; border-radius: var(--radius);
  padding: .7rem .9rem; box-shadow: var(--shadow-sm);
}
.brand--chip .brand__logo { height: 42px; }

.nav { margin-left: auto; }
.nav > ul {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: block; padding: .5rem .68rem; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--navy-deep); }
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--accent); border-radius: 2px;
}

.header__cta { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--navy-deep);
}
.nav-toggle svg { width: 22px; height: 22px; margin-inline: auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav {
    /* --nav-top is set by site.js from the live header height, so the panel
       sits flush under the header at any scroll position. */
    position: fixed;
    top: var(--nav-top, 112px); right: 0; bottom: 0; left: 0;
    background: #fff; padding: 1rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
    border-top: 1px solid var(--line);
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .22s ease;
  }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { border-left: 3px solid var(--accent); padding-left: .75rem; }
  .nav-toggle { display: grid; place-items: center; }
  .header__cta .btn { display: none; }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 5%, rgba(20,108,192,.30) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, #10457c 55%, #0b3160 100%);
  color: #dbe6f0;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -10%; bottom: -30%;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(72,175,4,.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero__sub { font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem); color: #c3d5e5; max-width: 62ch; }
.hero .btn-row { margin-top: 2rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem;
  margin-top: 2.5rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .92rem; color: #b8c9d9;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.2; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, #12508f 100%);
  color: #c3d5e5;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { max-width: 68ch; margin-bottom: 0; font-size: 1.06rem; }

.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: #93aec6; }
.breadcrumb a { color: #cfe0ee; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { padding: 0 .4rem; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9d9e6; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card__foot { margin-top: auto; padding-top: 1.15rem; }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--brand-dark);
  margin-bottom: 1rem;
}
.card__icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--brand-dark);
}
.link-arrow::after { content: "→"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Split CTA (new vs existing client) */
.split-cta { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split-cta__item {
  border-radius: var(--radius-lg); padding: 1.9rem;
  border: 1.5px solid var(--line); background: #fff;
  display: flex; flex-direction: column;
}
.split-cta__item--alt { background: var(--surface); border-color: var(--surface-2); }
.split-cta__item h3 { margin-bottom: .35rem; }
.split-cta__item p { color: var(--muted); font-size: .97rem; }

/* Feature list with checkmarks */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-top: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.1rem; height: .6rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Numbered process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { position: relative; padding-left: 3.4rem; margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-deep); color: #fff;
  font: 700 .95rem var(--font-sans);
}
.steps h4 { margin-bottom: .2rem; }
.steps p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* Media block (Meet Mona) */
.media {
  display: grid; gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: minmax(240px, .8fr) 1.2fr;
  align-items: center;
}
.media--flip .media__figure { order: 2; }
@media (max-width: 800px) { .media { grid-template-columns: 1fr; } .media--flip .media__figure { order: 0; } }

.media__figure { margin: 0; }
.media__figure img, .media__figure .portrait-ph {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.portrait-ph {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--surface-2), #d7e3ed);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .88rem; padding: 1.5rem;
  border: 1px dashed #b6c8d6;
}
.media__figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; }
.stat { text-align: center; padding: 1.25rem .75rem; }
.stat__num { font-family: var(--font-serif); font-size: 2.3rem; line-height: 1; color: var(--accent); }
.stat__label { font-size: .92rem; color: #b8c9d9; margin-top: .45rem; }

/* --------------------------------------------------------------------------
   8. Testimonials
   -------------------------------------------------------------------------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote__stars { color: var(--star); letter-spacing: .12em; font-size: 1.02rem; margin-bottom: .85rem; }
.quote__body { font-size: .99rem; color: #33465a; margin-bottom: 1.15rem; }
.quote__body p { margin-bottom: .8em; }
.quote__author { margin-top: auto; font-weight: 700; color: var(--navy-deep); font-size: .95rem; }
.quote__source { font-size: .82rem; color: var(--muted); font-weight: 400; }
.quote--clamp .quote__body {
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Tables (pricing, checklists)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
thead th {
  text-align: left; background: var(--surface); color: var(--navy-deep);
  font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
td.price { font-weight: 700; color: var(--navy-deep); white-space: nowrap; }

.tbd {
  display: inline-block; background: var(--warn-soft); color: var(--warn);
  border: 1px dashed #e0b768; border-radius: 6px;
  padding: .1rem .45rem; font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   10. Notices
   -------------------------------------------------------------------------- */
.notice {
  border-radius: var(--radius); padding: 1rem 1.15rem;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .95rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--navy-deep); }
.notice--info  { background: #eef5fb; border-color: #c9ddef; }
.notice--warn  { background: var(--warn-soft); border-color: #e8cd97; }
.notice--warn strong { color: var(--warn); }
.notice--ok    { background: var(--ok-soft); border-color: #b4dfc7; }
.notice--secure { background: var(--surface); border-color: #c9ddef; }
.notice--secure strong { color: var(--brand-dark); }

.dev-banner {
  background: repeating-linear-gradient(135deg, #fdf3e0, #fdf3e0 12px, #fbebd0 12px, #fbebd0 24px);
  border-bottom: 1px solid #e8cd97;
  color: var(--warn);
  font-size: .85rem; text-align: center; padding: .5rem var(--gutter);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm);
}

fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
fieldset:last-of-type { margin-bottom: 1.25rem; }
legend {
  font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; color: var(--navy-deep);
  padding: 0 0 .35rem; margin-bottom: 1.1rem; width: 100%;
  border-bottom: 1px solid var(--line);
}
legend .legend-note { display: block; font: 400 .88rem/1.5 var(--font-sans); color: var(--muted); margin-top: .3rem; }

.field-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field-grid--3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.field { display: block; margin-bottom: 1.15rem; }
.field-grid .field { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }

.field > label, .field-label {
  display: block; font-size: .9rem; font-weight: 600; color: var(--navy-deep); margin-bottom: .38rem;
}
.req { color: var(--err); font-weight: 700; }

/* Marks a field whose value is encrypted in the browser before sending. */
.lock-badge {
  display: inline-flex; align-items: center; gap: .28rem;
  margin-left: .4rem; padding: .1rem .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #2f6f06; background: var(--accent-soft); border-radius: 999px; vertical-align: middle;
}
.lock-badge::before {
  content: ""; width: 9px; height: 11px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11h14v10H5z'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11h14v10H5z'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .15rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], input[type="url"], input[type="password"],
input[type="month"], select, textarea {
  width: 100%;
  padding: .68rem .8rem;
  font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1.5px solid #c8d5e0; border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 140px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356697c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px;
  padding-right: 2.4rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,110,168,.16);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--err); background: #fffafa;
}
input::placeholder, textarea::placeholder { color: #9aacbc; }

input[type="file"] {
  width: 100%; padding: .6rem; font: inherit; font-size: .95rem;
  border: 1.5px dashed #c8d5e0; border-radius: var(--radius); background: var(--surface);
}

.error-msg {
  display: none; color: var(--err); font-size: .85rem; font-weight: 600; margin-top: .35rem;
}
.error-msg.is-visible { display: block; }

.check {
  display: flex; align-items: flex-start; gap: .65rem;
  margin: 0 0 .55rem; font-size: .96rem; cursor: pointer; line-height: 1.5;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; flex: 0 0 auto;
  accent-color: var(--brand); cursor: pointer;
}
.check-grid { display: grid; gap: .1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.check-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--surface); }

/* Worksheet tables — dense, so inputs sit tight inside cells */
.form-shell .table-wrap table { min-width: 640px; }
.form-shell .table-wrap td { padding: .4rem .5rem; }
.form-shell .table-wrap th[scope="row"] { font-size: .93rem; }
.form-shell .table-wrap input,
.form-shell .table-wrap select { padding: .45rem .55rem; font-size: .93rem; }
.form-shell .table-wrap tbody tr:hover { background: #fbfdff; }
.trip-km { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }

/* Live totals panel */
.totals {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.total__label { font-size: .9rem; color: var(--muted); }
.total__value {
  font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.total--major {
  grid-column: 1 / -1;
  background: var(--navy-deep); border-color: var(--navy-deep);
}
.total--major .total__label { color: #b8c9d9; font-size: .95rem; }
.total--major .total__value { color: #fff; font-size: 1.25rem; }

/* Honeypot — visually hidden but not display:none (bots skip display:none) */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.form-actions .muted { font-size: .87rem; }

/* Signature pad */
.sigpad { margin-top: .4rem; }
.sigpad__canvas-wrap {
  position: relative;
  border: 1.5px dashed #b6c8d6; border-radius: var(--radius);
  background: #fdfefe; overflow: hidden;
}
.sigpad__canvas-wrap.is-signed { border-style: solid; border-color: var(--ok); background: #fff; }
.sigpad canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.sigpad__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #9aacbc; font-size: .93rem; pointer-events: none; text-align: center; padding: 1rem;
}
.sigpad__canvas-wrap.is-signed .sigpad__placeholder { display: none; }
.sigpad__baseline {
  position: absolute; left: 8%; right: 8%; bottom: 42px;
  border-bottom: 1px solid #d7e2ea; pointer-events: none;
}
.sigpad__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-top: .6rem; font-size: .87rem; color: var(--muted);
}
.sigpad__status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.sigpad__status[data-state="signed"] { color: var(--ok); }

/* Success panel */
.form-success {
  display: none;
  background: var(--ok-soft); border: 1px solid #b4dfc7; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center;
}
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 62px; height: 62px; margin: 0 auto 1.15rem; border-radius: 50%;
  background: var(--ok); display: grid; place-items: center;
}
.form-success__icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 { color: #10593a; margin-bottom: .5rem; }
.form-success p { color: #245c42; max-width: 52ch; margin-inline: auto; }

.form-error-summary {
  display: none;
  background: var(--err-soft); border: 1px solid #f0bfba; border-radius: var(--radius);
  padding: 1rem 1.15rem; margin-bottom: 1.5rem; color: #8c1d18; font-size: .95rem;
}
.form-error-summary.is-visible { display: block; }
.form-error-summary ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.form-error-summary a { color: #8c1d18; }

/* --------------------------------------------------------------------------
   12. Forms hub / doc cards
   -------------------------------------------------------------------------- */
.doc-card { position: relative; }
.doc-card__num {
  position: absolute; top: 1.1rem; right: 1.25rem;
  font: 700 .78rem var(--font-sans); color: #b6c8d6;
}
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; margin-bottom: .8rem;
}
.badge--sig    { background: var(--accent-soft); color: #2f6f06; }
.badge--nosig  { background: var(--surface-2); color: #3c5568; }
.badge--secure { background: #e6f0f9; color: var(--brand-dark); }
.badge--legal  { background: #efe7f7; color: #5b3a86; }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.badge-row .badge { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem .5rem 1.15rem 0;
  font-weight: 600; color: var(--navy-deep); font-size: 1.03rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); flex: 0 0 auto;
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--brand-dark); }
.faq__body { padding: 0 2rem 1.35rem 0; color: var(--muted); font-size: .98rem; }

/* --------------------------------------------------------------------------
   14. Blog
   -------------------------------------------------------------------------- */
.post-list { display: grid; gap: 1.5rem; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem; box-shadow: var(--shadow-sm);
}
.post__meta { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-bottom: .55rem; }
.post h3 { margin-bottom: .5rem; }
.post h3 a { text-decoration: none; color: inherit; }
.post h3 a:hover { color: var(--brand-dark); }
.post__excerpt { color: var(--muted); font-size: .98rem; }
.feed-status { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.35fr .85fr; } }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; margin: 0 0 1.35rem; }
.info-list svg { width: 21px; height: 21px; flex: 0 0 auto; margin-top: .2rem; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-list strong { display: block; color: var(--navy-deep); font-size: .93rem; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.map-embed {
  border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg);
  background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #a9bed1; font-size: .95rem; padding-top: clamp(2.75rem, 5vw, 4rem); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 2.5rem;
}
.footer-brand { grid-column: span 2; max-width: 420px; }
@media (max-width: 700px) { .footer-brand { grid-column: span 1; } }
.footer-tagline { font-size: .93rem; line-height: 1.7; margin-top: 1.15rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 .6rem; }

.newsletter { max-width: 380px; }
.newsletter label { display: block; font-size: .93rem; color: #cfe0ee; margin-bottom: .6rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff;
  padding: .6rem .75rem; font-size: .95rem;
}
.newsletter input[type="email"]::placeholder { color: #8fa8bf; }
.newsletter input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(72,175,4,.28); }
.newsletter .btn { padding: .6rem 1.05rem; font-size: .93rem; }
.newsletter__msg { font-size: .87rem; margin-top: .6rem; min-height: 1.2em; }
.newsletter__msg.is-ok { color: #7fd3a6; }
.newsletter__msg.is-err { color: #f2a49e; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.35rem 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem;
  font-size: .87rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* --------------------------------------------------------------------------
   18. Contact channel list (Contact page)
   -------------------------------------------------------------------------- */
.channels { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.channel {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.channel:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.channel__icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--brand-dark);
}
.channel__icon svg { width: 18px; height: 18px; fill: currentColor; }
.channel__label { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.channel__meta  { display: block; font-size: .84rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   19. Print (form copies)
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .dev-banner,
  .form-actions, .breadcrumb, .no-print { display: none !important; }
  body { font-size: 11.5pt; color: #000; background: #fff; }
  .page-hero { background: none !important; color: #000; padding: 0 0 1rem; }
  .page-hero h1, .page-hero p { color: #000; }
  .form-shell { border: 0; box-shadow: none; padding: 0; }
  .section { padding: 0; }
  fieldset { break-inside: avoid; }
  legend { border-bottom: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
