/* TruBalance Accounting — site styles
   Brand: direct, expert, warm, plain-spoken. Construction-finance.
   Palette: deep navy + warm amber accent + clean neutrals. */

:root {
  --navy: #102a3e;
  --navy-700: #16384f;
  --navy-600: #1d4a66;
  --ink: #15212b;
  --slate: #4a5b67;
  --mist: #6b7c88;
  --line: #e4e9ed;
  --paper: #ffffff;
  --bg: #f7f9fb;
  --amber: #ff6200;
  --amber-dark: #d75400;
  --teal: #145a7a;
  --green: #1f7a5a;
  --max: 1140px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,42,62,.04), 0 8px 28px rgba(16,42,62,.08);
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; color: var(--slate); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--amber-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.22rem; color: var(--slate); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--amber-dark); margin: 0 0 .8em; }
.center { text-align: center; }
.muted { color: var(--mist); }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 6px 18px rgba(255,98,0,.30); }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--amber-dark); }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--navy); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--navy-700); }
.nav-links a:hover { color: var(--amber-dark); }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: linear-gradient(165deg, #0c2335 0%, #143246 55%, #16394f 100%); color: #eaf1f6; position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 85% 20%, rgba(255,98,0,.16), transparent 40%); pointer-events:none; }
.hero-inner { padding: 92px 0 100px; position: relative; z-index: 1; max-width: 780px; }
.hero h1 { color: #fff; }
.hero p { color: #c4d3de; font-size: 1.3rem; max-width: 640px; }
.hero .btn-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .tag { display:inline-block; font-family:var(--font-head); font-weight:700; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; color:#ffce9b; border:1px solid rgba(255,206,155,.4); padding:6px 14px; border-radius:999px; margin-bottom:22px; }

/* Sections */
section { padding: 78px 0; }
section.tight { padding: 54px 0; }
.section-bg { background: var(--bg); }
.section-navy { background: var(--navy); color: #dce6ec; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #b9c8d2; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left:auto; margin-right:auto; }

/* Fit columns */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.fit-list { list-style: none; padding: 0; margin: 0; }
.fit-list li { padding: 9px 0 9px 34px; position: relative; color: var(--slate); border-bottom: 1px solid var(--line); }
.fit-list li:last-child { border-bottom: 0; }
.fit-list.yes li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.fit-list.no li::before { content: "✕"; position: absolute; left: 0; color: #c0492f; font-weight: 700; }

/* Service tiers */
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.tier.featured { border-color: var(--amber); box-shadow: 0 10px 34px rgba(255,98,0,.16); position: relative; }
.tier.featured::before { content: "Most common starting point"; position: absolute; top: -13px; left: 32px; background: var(--amber); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tier .kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--amber-dark); }
.tier h3 { margin: 6px 0 4px; }
.tier .price { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; }
.tier ul li { padding: 8px 0 8px 26px; position: relative; font-size: .98rem; color: var(--slate); }
.tier ul li::before { content: "→"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.tier .right-for { font-size: .92rem; color: var(--mist); font-style: italic; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* Q list */
.q-list { display: grid; gap: 14px; max-width: 760px; }
.q-list .q { background:#fff; border:1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* CTA band */
.cta-band { background: linear-gradient(160deg, #12658f 0%, #0f4a6b 100%); color: #fff; border-radius: 18px; padding: 54px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6ef; max-width: 560px; margin-left:auto; margin-right:auto; }
.cta-band .btn-row { margin-top: 26px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* Form */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--font-head); font-weight:600; font-size:.92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,98,0,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--mist); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,42,62,.12); }
.post-card .meta { font-size:.82rem; color: var(--mist); font-family: var(--font-head); font-weight:600; text-transform: uppercase; letter-spacing:.07em; }
.post-card h3 { margin: 10px 0 8px; }
.post-card h3 a { color: var(--navy); }
.post-card .more { font-family: var(--font-head); font-weight:700; color: var(--amber-dark); font-size:.95rem; }

/* Article */
.article { max-width: 740px; margin: 0 auto; }
.article .meta { color: var(--mist); font-family: var(--font-head); font-weight:600; text-transform: uppercase; letter-spacing:.07em; font-size:.82rem; margin-bottom: 14px; }
.article h1 { margin-bottom: .3em; }
.article h2 { margin-top: 1.6em; font-size: 1.6rem; }
.article p, .article li { font-size: 1.12rem; color: #33424d; }
.article ul { padding-left: 1.2em; }
.article blockquote { border-left: 4px solid var(--amber); margin: 1.5em 0; padding: 6px 0 6px 22px; font-family: var(--font-head); font-style: italic; color: var(--navy); font-size: 1.2rem; }
.article .post-cta { margin-top: 40px; }

/* Footer */
.site-footer { background: var(--navy); color: #aebecb; padding: 56px 0 30px; }
.site-footer h4 { color:#fff; font-size: 1.05rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.site-footer a { color:#cdd9e2; }
.site-footer a:hover { color:#fff; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size:.86rem; color:#7e93a2; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; background:#fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom:1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width:100%; border-bottom:1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 12px; }
  .nav-toggle { display: block; }
  .cta-band { padding: 38px 24px; }
  body { font-size: 17px; }
}

/* --- Contact lead form (custom HTML → posts to HubSpot Forms API) --- */
.name-row { display: flex; gap: 14px; }
.name-row .field { flex: 1; margin-bottom: 18px; }
.hp-field { display: none; }
.form-error { color: #b42318; font-size: .92rem; margin-top: 12px; }
@media (max-width: 520px){ .name-row { flex-direction: column; gap: 0; } }

/* Contact person-card + onsite (restored 2026-06-07) */
.person-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; box-shadow:var(--shadow); margin-bottom:18px;}
.person-photo { width:76px; height:76px; border-radius:50%; object-fit:cover; flex:none;}
.person-name { font-family:var(--font-head); font-weight:800; color:var(--navy); margin:0; font-size:1.02rem;}
.person-role { margin:0; font-size:.9rem; color:var(--mist);}
