/* Tax Saver Accountants — site styles
   Palette drawn from the IPA and TPB marks. */
/* Self-hosted Schibsted Grotesk (SIL Open Font License), latin subset */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #023568;        /* logo navy */
  --ink-deep: #012650;
  --tick: #4a9832;       /* logo green (bars, arrow) */
  --tick-deep: #2e7a2c;  /* green for buttons and small text: passes AA with white */
  --tick-light: #7cc35a; /* green on navy backgrounds */
  --sky: #4a9832;        /* focus ring */
  --text: #16243f;
  --muted: #4f5d75;
  --paper: #ffffff;
  --mist: #f2f6fa;
  --line: #dbe3ec;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 1160px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { left: 16px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { height: 46px; width: auto; }
@media (max-width: 420px) { .brand-logo { height: 40px; } }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-sub { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .97rem; padding: 10px 12px; border-radius: var(--radius-s); white-space: nowrap; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--tick); border-radius: 0; }
.header-call { white-space: nowrap; }
.btn.header-call { padding: 9px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .btn.header-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--tick); padding-left: 16px; }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}
@media (min-width: 961px) { .nav .btn.nav-only-mobile { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--tick-deep); color: #fff; }
.btn-primary:hover { background: #256a24; color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero with service router ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { /* rising bars and arrow from the logo */
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 560px; height: 560px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%234a9832' opacity='.16'%3E%3Cpath d='M40 30l9-4v34l-9 6z'/%3E%3Cpath d='M55 23l9-4v30l-9 6z'/%3E%3C/g%3E%3Cpath d='M8 88 C30 74 52 62 86 22' fill='none' stroke='%234a9832' stroke-width='6' stroke-linecap='round' opacity='.16'/%3E%3Cpath d='M74 18l18-6-4 19z' fill='%234a9832' opacity='.16'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 72px 0 80px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #cdd8e8; }
.hero-tagline { color: var(--tick-light); font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 32px 0 0; padding: 0; list-style: none; color: #c9d0ea; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--tick-light); flex: none; }

.router { background: #fff; color: var(--text); border-radius: var(--radius-l); padding: 26px; box-shadow: 0 24px 60px -24px rgba(5,10,40,.55); }
.router h2 { font-size: 1.3rem; margin-bottom: 4px; }
.router > p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.router ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.router a {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.router a:hover { border-color: var(--ink); background: var(--mist); }
.router a:hover .chev { transform: translateX(3px); color: var(--ink); }
.router .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--mist); color: var(--ink); display: grid; place-items: center; }
.router a:hover .ico { background: var(--tick-deep); color: #fff; }
.router .ico svg { width: 22px; height: 22px; }
.router strong { display: block; color: var(--ink); font-size: 1.02rem; }
.router span.desc { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.chev { width: 20px; height: 20px; color: #9aa1bb; transition: transform .15s ease; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .router { padding: 18px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%234a9832' opacity='.18'%3E%3Cpath d='M40 30l9-4v34l-9 6z'/%3E%3Cpath d='M55 23l9-4v30l-9 6z'/%3E%3C/g%3E%3Cpath d='M8 88 C30 74 52 62 86 22' fill='none' stroke='%234a9832' stroke-width='6' stroke-linecap='round' opacity='.18'/%3E%3Cpath d='M74 18l18-6-4 19z' fill='%234a9832' opacity='.18'/%3E%3C/svg%3E") no-repeat center / contain; }
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lead { color: #cdd8e8; position: relative; }
.crumbs { font-size: .9rem; color: #aab3d6; margin-bottom: 14px; position: relative; }
.crumbs a { color: #dfe4f5; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 40px; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Service index on home: a list, not a card wall */
.service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr 24px; gap: 24px; align-items: baseline;
  padding: 26px 4px; text-decoration: none; color: var(--text);
}
.service-index a:hover h3 { text-decoration: underline; text-decoration-color: var(--tick); text-decoration-thickness: 3px; }
.service-index a:hover .chev { transform: translateX(4px); color: var(--ink); }
.service-index h3 { margin: 0; font-size: 1.3rem; }
.service-index p { margin: 0; color: var(--muted); }
.service-index .chev { align-self: center; }
@media (max-width: 760px) {
  .service-index a { grid-template-columns: 1fr 24px; gap: 6px 16px; padding: 20px 2px; }
  .service-index p { grid-column: 1; }
  .service-index .chev { grid-row: 1 / span 2; grid-column: 2; }
}

/* Tick list — echoes the TPB tick */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks strong { color: var(--ink); }

/* Detail blocks on service pages */
.detail-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .95rem; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); border-left-color: var(--tick); }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; } }

.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block > p { color: var(--muted); }
.block .ticks { margin-top: 18px; }

/* Credentials */
.creds { display: grid; grid-template-columns: auto auto 1fr; gap: 32px; align-items: center; }
.cred-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 20px; display: grid; place-items: center; }
.cred-logo img { max-height: 120px; width: auto; }
.creds p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .creds { grid-template-columns: 1fr 1fr; } .creds > div:last-child { grid-column: 1 / -1; } }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cdd8e8; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-band { padding: 28px 22px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--mist); color: var(--ink); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--ink); }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink); font-weight: 700; }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius-l); margin-top: 28px; background: var(--mist); }

.form { background: var(--mist); border-radius: var(--radius-l); padding: 32px; }
.form h2 { font-size: 1.5rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c6ccdb; border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.form-error { color: #a3123a; font-size: .9rem; font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #c5d0e2; font-size: .95rem; margin-top: 0; }
.footer-stripe { height: 5px; background: var(--tick); }
.footer-logo { width: 240px; height: auto; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe4f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #9da5c6; }
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* 404 */
.notfound { padding: 96px 0; text-align: left; }

/* Fixes from visual review */
.nav a.btn-ink, .nav a.btn-ink:hover { color: #fff; background: var(--ink); }
.section.section-cta { padding-top: 0; }

/* Trust strip under the header: statement and accreditation badges */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.trust-text { margin: 0; max-width: none; color: var(--muted); font-size: .98rem; }
.trust-text strong { color: var(--ink); font-weight: 700; margin-right: 4px; }
.trust-badges { display: flex; align-items: center; gap: 14px; flex: none; }
.trust-badges img { height: 58px; width: auto; }
@media (max-width: 760px) {
  .trust-inner { padding: 8px 0; gap: 12px; }
  .trust-text { font-size: .9rem; line-height: 1.35; }
  .trust-text span { display: none; }
  .trust-badges { gap: 10px; }
  .trust-badges img { height: 38px; }
}
