/*
Theme Name: Truter Accounting
Theme URI: https://truteraccounting.co.za
Author: Truter Accounting
Description: Professional website theme for Truter Accounting (Pty) Ltd, Centurion. Pages, menu, services list and contact details are created automatically when the theme is activated and can all be edited in WordPress.
Version: 2.0.4
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truter-accounting
*/

/* ---------- design tokens ---------- */
:root {
  --bg: #e4f2d8;
  --surface: #ffffff;
  --fg: #14191a;
  --muted: #55605a;
  --line: #cfe2bf;
  --frame: #9dbb84;
  --green: #3f8a17;
  --green-bright: #5fb02a;
  --green-soft: #d3e9bf;
  --on-green: #ffffff;
  --pink: #d4155a;
  --pink-soft: #fde5ee;
  --ink: #14191a;
  --on-ink: #f3f6ef;
  --font-display: "Plus Jakarta Sans", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1310; --surface: #161d18; --fg: #eef2ea; --muted: #a0ada3; --line: #28332b; --frame: #4a5f4d;
    --green: #7ccb46; --green-bright: #7ccb46; --green-soft: #1c2a18; --on-green: #0e1310;
    --pink: #ff5a8a; --pink-soft: #3a1523; --ink: #1b251d; --on-ink: #eef2ea;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); color: var(--fg); padding: 10px 14px; border-radius: 6px; width: auto; height: auto; clip: auto; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.wp-block-group__inner-container { display: contents; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-text b { font-family: var(--font-brand); font-weight: 800; font-size: 1.5rem; letter-spacing: .03em; }
.brand-text i { font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: .82rem; letter-spacing: .16em; color: var(--green); }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 52px; width: auto; }
.nav { margin-inline: auto 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--green-soft); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--fg); background: var(--green-soft); box-shadow: inset 0 -2px 0 var(--pink); }
/* services drop-down (desktop and tablet; on phones the Services link goes to the full list) */
.nav li { position: relative; }
.nav .sub-menu { display: none; }
@media (min-width: 761px) {
  .nav { overflow: visible; }
  .nav ul { flex-wrap: wrap; }
  .nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 330px; flex-direction: column; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20,25,26,.16); }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
  .nav .sub-menu a { border-radius: 8px; white-space: normal; padding: 10px 12px; }
  .nav .sub-menu .current-menu-item > a { box-shadow: none; }
}
@media (max-width: 760px) { .nav { order: 3; width: 100%; margin-inline: 0; } .top-in .btn-wa { margin-inline: auto 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 8px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-wa { background: var(--green); color: var(--on-green); }
.btn-wa:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.band .btn-line { border-color: var(--on-ink); color: var(--on-ink); }
.band .btn-line:hover { background: var(--on-ink); color: var(--ink); }
.band .btn-wa { background: var(--green-bright); color: #0e1310; }
.copy { font: 600 13px/1 var(--font-body); padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); cursor: pointer; }
.copy:hover { border-color: var(--green); }
.float-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; box-shadow: 0 6px 20px rgba(0,0,0,.25); border-radius: 999px; padding: 13px 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- page structure ---------- */
.tr-page { padding-bottom: 32px; }
.sec { padding-block: clamp(36px, 6vw, 72px); }
.sec.tint { background: var(--green-soft); }
.tr-page > .sec:first-child { padding-top: clamp(36px, 6vw, 72px); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: block; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; }
h1 em { font-style: italic; font-weight: 700; color: var(--pink); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 58ch; margin-top: 18px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.sec-head > * { min-width: 0; }
.sec-head .eyebrow { margin-top: 0; }
.lead + .grid, .lead + .svc-grid, .lead + .split { margin-top: 30px; }
.grid + .todo, .svc-grid + .todo, .lead + .todo { margin-top: 22px; }
.grid + .card { margin-top: 18px; }
.prose .todo { margin-top: 18px; }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.entry > * + * { margin-top: 1em; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-contact { margin-top: 22px; font-size: 15px; color: var(--muted); }
.due { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px rgba(20,25,26,.07); }
.due h2 { font-size: 1.35rem; margin-bottom: 4px; }
.due > p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.due ul { list-style: none; margin: 0; padding: 0; display: grid; }
.due li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); align-items: center; }
.due .day { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.due .day small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.due li:first-child .day { color: var(--pink); }
.due b { display: block; }
.due .d { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.due .foot { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- grids and cards ---------- */
.grid, .svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card, .svc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: 0; }
.card h3, .svc h3 { margin-bottom: 8px; }
.card p, .svc p { color: var(--muted); }
.svc ul, .card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }
.svc li, .card li { margin-block: 4px; }
.svc .svc-body > * + * { margin-top: 6px; }
.pairs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.pair { display: grid; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; align-content: start; }
.pair-q { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--pink); }
.pair p:not(.pair-q) { color: var(--muted); }
.todo { border: 2px dashed var(--pink); border-radius: 12px; padding: 18px 20px; background: var(--pink-soft); color: var(--fg); }
.todo p { color: var(--fg); }
.todo-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink) !important; font-weight: 700; margin-bottom: 4px; }
.shot { aspect-ratio: 3 / 2; max-width: 100%; margin: 0 0 16px; border-radius: 8px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-empty { aspect-ratio: 3 / 2; margin: 0 0 16px; border-radius: 8px; border: 2px dashed var(--green); background: var(--green-soft); display: grid; place-items: center; text-align: center; padding: 10px; }
.shot-empty p { color: var(--muted); font-weight: 600; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.card p + .note { margin-top: 10px; }
.card h3 + #enquiry { margin-top: 14px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- closing band ---------- */
.band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.band .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 80px); }
.band h2 { font-style: italic; font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--on-ink); }
.band p { margin-top: 12px; font-size: 1.2rem; opacity: .85; color: var(--on-ink); }
.band::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: min(46%, 380px); height: 70%; background: linear-gradient(135deg, transparent 44%, var(--green-bright) 44% 54%, transparent 54% 62%, var(--pink) 62% 68%, transparent 68%); opacity: .95; pointer-events: none; }

/* ---------- about / contact ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 + .lead { margin-top: 14px; }
.person { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 20px; align-items: start; }
.person > * { min-width: 0; }
@media (max-width: 480px) { .person { grid-template-columns: minmax(0, 1fr); } .person .portrait { max-width: 220px; } }
.portrait img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.person .role { color: var(--fg); font-weight: 600; margin-top: 2px; }
.person p + p { margin-top: 4px; }
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.facts .icon { color: var(--green); margin-top: 3px; }
.facts b { display: block; color: var(--fg); }
.facts .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow-wrap: anywhere; color: var(--fg); }
.card.contact-card { color: var(--fg); }
form.enquiry { display: grid; gap: 14px; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.f input, .f select, .f textarea { font: 400 16px/1.4 var(--font-body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
.f textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.notice.ok { background: var(--green-soft); color: var(--fg); border: 1px solid var(--green); }
.notice.err { background: var(--pink-soft); color: var(--fg); border: 1px solid var(--pink); }
.prose h2 { font-size: 1.5rem; margin: 28px 0 8px; }
.prose p { color: var(--muted); max-width: 70ch; }
.prose .todo p { max-width: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; padding-block: 40px 96px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 980px) { .foot-grid { grid-template-columns: 1.1fr .8fr 1.5fr 1.3fr 1.2fr; } }
.site-footer h4 { font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* ---------- local SEO content: areas, chips, questions, service pages ---------- */
.area-h { font-size: 1.5rem; margin-bottom: 10px; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 600; }
.chips-links li { padding: 0; }
.chips-links a { display: block; padding: 6px 14px; text-decoration: none; color: var(--fg); }
.chips-links li:hover { border-color: var(--green); background: var(--green-soft); }
.sec .grid + .card { margin-top: 18px; }
.faq { display: grid; gap: 10px; }
.wp-block-details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.wp-block-details summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; list-style-position: outside; }
.wp-block-details[open] summary { color: var(--green); }
.wp-block-details > :not(summary) { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }
.svc-grid:has(.svc-more) { align-items: start; }
.svc-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.svc-more summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 8px 0; color: var(--green); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.svc-more[open] summary::after { transform: rotate(-135deg); }
.svc-more .svc-body ul { margin: 4px 0 6px; }
.svc-more .svc-body p { margin-top: 8px; }
.svc-more .svc-inc { font-weight: 700; color: var(--fg) !important; margin-top: 14px !important; }
.wp-block-details.suburbs { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 14px; }
.wp-block-details.suburbs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--green); }
.wp-block-details.suburbs summary::-webkit-details-marker { display: none; }
.wp-block-details.suburbs summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.wp-block-details.suburbs[open] summary::after { transform: rotate(-135deg); }
.wp-block-details.suburbs > :not(summary) { padding: 0 0 6px; }
.wp-block-details.suburbs ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-details.suburbs li { margin: 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 600; }
.svc { border: 1px solid var(--frame); }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.svc .more { margin-top: 12px; font-weight: 600; font-size: 15px; }
.svc .more a { color: var(--green); text-decoration: none; }
.svc .more a:hover { text-decoration: underline; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose-svc > * + * { margin-top: 1em; }
.prose-svc p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.prose-svc h2 { margin-top: 1.6em; }
.included .svc-body ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--fg); }
.included .cta-row { margin-top: 18px; }

/* cards that open on click (Industries) */
.grid:has(.card.toggle) { align-items: start; }
.card.toggle .shot, .card.toggle .shot-empty, .card.toggle h3 { cursor: pointer; }
.js .card.toggle > p, .js .card.toggle > .wp-block-group__inner-container > p { display: none; }
.js .card.toggle.open > p, .js .card.toggle.open > .wp-block-group__inner-container > p { display: block; }
.js .card.toggle h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.js .card.toggle h3::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.js .card.toggle.open h3 { margin-bottom: 8px; }
.js .card.toggle.open h3::after { transform: rotate(-135deg); }
.js .card.toggle .shot, .js .card.toggle .shot-empty { margin-bottom: 14px; }

/* ---------- blog and articles ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--frame); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0; }
.post-excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.blog-list .post-drop > .post-excerpt { margin: 0; padding-top: 2px; }
.blog-list .post-drop > .post-meta { margin: 0; padding-top: 0; padding-bottom: 18px; }
.post-meta { font-size: 14px; color: var(--muted); margin: 0; margin-top: auto; }
.post-meta a { color: var(--green); font-weight: 600; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.article-head h1 { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.article-head .post-meta { margin-top: 16px; }
.article-body { align-items: start; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-content p, .entry-content li { font-size: 1.05rem; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li + li { margin-top: .5em; }
.entry-content p.note { font-size: 14px; }
.entry-content a, .prose-svc a { color: var(--green); }
.side-card { position: sticky; top: 96px; }
.side-card .cta-row { margin-top: 16px; }
.navigation.pagination { margin-top: 28px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 600; }
.navigation.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.tr-page > .sec + .sec.tint:last-child { padding-bottom: clamp(36px, 6vw, 72px); }
.faq + .todo, .faq + .wp-block-group.todo { margin-top: 22px; }
.prose-svc .faq { margin-top: 12px; }

/* ---------- generic posts and pages ---------- */
.entry-title { margin-bottom: 18px; }
.post-list article + article { margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) { .btn, .copy { transition: filter .15s, background .15s, color .15s; } }

/* ---------- block editor ---------- */
.editor-styles-wrapper { background: var(--bg); color: var(--fg); font-family: var(--font-body); }
.editor-styles-wrapper .wp-block-group.sec, .editor-styles-wrapper .wp-block-group.hero, .editor-styles-wrapper .wp-block-group.band { max-width: none; }

/* ---------- deadline calendar (home page) ---------- */
.cal { background: var(--surface); border: 1px solid var(--frame); border-radius: 14px; padding: 18px; width: 100%; max-width: 480px; box-shadow: 0 10px 30px rgba(20,25,26,.07); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-month { font-size: 1.2rem; margin: 0; text-align: center; flex: 1; }
.cal-head button { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.js .cal-head button { display: inline-grid; place-items: center; }
.cal-head button:hover { border-color: var(--green); background: var(--green-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-dow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 10px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--green); }
.cal-day.has { background: var(--pink-soft); color: var(--pink); font-weight: 800; }
.cal-day.has::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.cal-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cal-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-list li.past { opacity: .55; }
.cal-list .dt { font-family: var(--font-display); line-height: 1; color: var(--pink); }
.cal-list .dt b { font-size: 1.5rem; font-weight: 800; display: block; }
.cal-list .dt small { font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cal-list b { display: block; }
.cal-list .d { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.cal-list li.cal-empty { display: block; color: var(--muted); font-size: 14px; }
.cal-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- areas drop-downs ---------- */
.wp-block-details.areas-acc > p { margin-block: 14px 8px; }
.wp-block-details.areas-acc > p:first-of-type { margin-top: 0; }
.wp-block-details.areas-acc > p strong { color: var(--fg); }
.wp-block-details.areas-acc > .chips { margin-top: 0; padding-bottom: 10px; }

/* ==========================================================================
   Truter Accounting: CORPORATE LOOK (approved by the client, November 2026)
   Overrides the original look above. To go back, delete everything from this comment down.
   ========================================================================== */

/* ---------- colours: white, charcoal, green as an accent only ---------- */
:root,
:root:not([data-theme="dark"]) {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #1f2626;          /* charcoal, from "TRUTER" in the logo */
  --muted: #59625f;
  --line: #e2e6e4;
  --frame: #c9d0cd;
  --green: #4f7d1c;       /* deeper version of the logo green, readable on white */
  --green-bright: #8ab02e;/* the logo green, for small accents on dark */
  --green-soft: #f4f6f5;  /* light grey for alternate sections */
  --on-green: #ffffff;
  --pink: #1f2626;        /* no pink outside the logo */
  --pink-soft: #f4f6f5;
  --ink: #1c2322;         /* dark band and footer */
  --on-ink: #f2f4f3;
  /* same fonts as wesseltruter.com: Cormorant Garamond for headings, Inter for text */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c-radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff; --surface: #ffffff; --fg: #1f2626; --muted: #59625f; --line: #e2e6e4;
    --green: #4f7d1c; --green-soft: #f4f6f5; --pink: #1f2626; --pink-soft: #f4f6f5;
    --ink: #1c2322; --on-ink: #f2f4f3; color-scheme: light;
  }
}
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
.btn, .nav a, input, textarea, select, button { font-family: var(--font-body); }

/* ---------- typography ---------- */
/* Cormorant Garamond is small for its size, so headings are set a little larger */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.005em; }
h1, .hero h1, .article-head h1 { font-weight: 600; font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.1; }
h2 { font-weight: 600; font-size: clamp(1.8rem, 3.3vw, 2.4rem); line-height: 1.15; }
h3 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.svc h3, .card h3 { font-size: 1.35rem; }
@media (min-width: 1000px) { body.home .svc h3 { font-size: 1.25rem; } }
h1 em, .hero h1 em, body.home .hero h1 em { font-style: italic; font-weight: 500; color: var(--green) !important; }
.eyebrow { color: var(--green); letter-spacing: .18em; font-size: 12px; }
.lead { color: var(--muted); }

/* ---------- header ---------- */
.top { background: #ffffff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.nav a { border-radius: 0; padding: 10px 14px; color: #3c4543; font-weight: 600; }
.nav a:hover { background: transparent; color: var(--fg); box-shadow: inset 0 -2px 0 var(--line); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a {
  background: transparent; color: var(--fg); box-shadow: inset 0 -2px 0 var(--green);
}

/* ---------- buttons: square-ish, calm ---------- */
.btn { border-radius: 4px; font-weight: 600; letter-spacing: .01em; }
.btn-wa { background: var(--green); color: #fff; }
.btn-line { border-width: 1.5px; border-color: var(--fg); }
.btn-primary { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn-primary:hover { background: #000; }
.float-wa { border-radius: 999px; padding: 11px 16px; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ---------- cards and sections ---------- */
.card, .svc, .due, .pair, .post-card { border-radius: var(--c-radius); border-color: var(--line); box-shadow: none; }
.svc { border-top: 3px solid var(--green); }
.sec.tint { background: var(--green-soft); border-block: 1px solid var(--line); }
.sec { padding-block: clamp(44px, 6.5vw, 84px); }

/* ---------- hero with photo ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, #f7f9f8 100%); border-bottom: 1px solid var(--line); }
.c-photo { margin: 0; position: relative; }
.c-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--c-radius); box-shadow: 0 18px 40px rgba(28,35,34,.14); }
.c-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: 4px; padding: 12px 14px; font-size: 14px; line-height: 1.4; color: var(--muted); border-left: 3px solid var(--green); }
.c-photo figcaption b { display: block; color: var(--fg); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
@media (max-width: 900px) { .c-photo { max-width: 420px; } }

/* ---------- trust strip under the hero ---------- */
.c-trust { background: #ffffff; border-bottom: 1px solid var(--line); }
.c-trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.c-trust li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--green); }
.c-trust b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--fg); line-height: 1.2; }
.c-trust span { font-size: 14px; color: var(--muted); }

/* ---------- deadline highlights: no pink ---------- */
.due li:first-child .day, .due .day { color: var(--green); }
.cal .has, .cal-day.has { background: #eef3e6; color: var(--fg); }
.cal-day.today { outline-color: var(--green); }

/* ---------- dark band and footer ---------- */
.band { background: var(--ink); }
.band h2 { font-style: normal; font-weight: 600; }
.band::after { background: linear-gradient(135deg, transparent 50%, rgba(138,176,46,.35) 50% 54%, transparent 54%); opacity: 1; }
.band .btn-wa { background: var(--green-bright); color: #1c2322; }
.site-footer { background: var(--ink); color: #c9d0cd; border-top: 0; }
.site-footer h4 { color: var(--green-bright); }
.site-footer ul { color: #c9d0cd; }
.site-footer a { color: #e6eae8; }
.site-footer .custom-logo, .site-footer img { filter: brightness(0) invert(1); opacity: .9; }
.site-footer p, .site-footer span, .site-footer small { color: #aab3b0; }

/* ---------- "Qualified and registered" card ---------- */
.creds-grid p { border-left-color: var(--green); }
