/* Colab Accounting site styles.
   Colours and fonts are set once in :root below; change them there. */

/* Base */
html { color-scheme: light; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: one column of full-width bands; content held to a 1120px measure; a ledger-ruled hero with the NZ tax calendar as its working detail. Brand: Colab black wordmark, black and white photography, Montserrat throughout, emphasis by weight not colour. */
:root {
  --paper: #f6f7f8;
  --surface: #ffffff;
  --ink: #141517;
  --ink-soft: #52575e;
  --rule: #e0e2e6;
  --pine: #141517;
  --pine-soft: #eceef0;
  --gold: #141517;
  --band: #121315;
  --band-ink: #f2f3f5;
  --band-soft: #b4b8be;
  --logo-filter: none;
  --accent-on-dark: #ffffff;
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101113; --surface: #17191c; --ink: #eceef1; --ink-soft: #a4a9b0;
    --rule: #2a2d32; --pine: #f2f3f5; --pine-soft: #23262a; --gold: #f2f3f5;
    --band: #050506; --band-ink: #eceef1; --band-soft: #a4a9b0; --logo-filter: invert(1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101113; --surface: #17191c; --ink: #eceef1; --ink-soft: #a4a9b0;
  --rule: #2a2d32; --pine: #f2f3f5; --pine-soft: #23262a; --gold: #f2f3f5;
  --band: #050506; --band-ink: #eceef1; --band-soft: #a4a9b0; --logo-filter: invert(1); color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15.5px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--pine); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 70ch; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; filter: var(--logo-filter); display: block; }
.brand small { font-size: .78rem; color: var(--ink-soft); border-left: 1px solid var(--rule); padding-left: 14px; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--pine); }
.btn { letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 12px 20px; font: 700 1rem var(--font-body); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--pine); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
@media (max-width: 760px) { nav.main { display: none; } .brand small { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); background: var(--band); color: var(--band-ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8, 9, 10, .9) 0%, rgba(8, 9, 10, .72) 55%, rgba(8, 9, 10, .55) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero .lede { color: var(--band-soft); }
.hero .creds { color: var(--band-soft); }
.hero .creds b { color: var(--band-ink); }
.hero .btn-ghost { color: var(--band-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.hero .btn-primary { background: var(--accent-on-dark); color: #111214; }
.hero a:focus-visible, .band a:focus-visible, .hero .logo-swap:focus-visible { outline-color: #ffffff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 500; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; font-weight: 800; color: var(--accent-on-dark); }
.hero-copy { display: grid; gap: 22px; }
.hero .lede { max-width: 46rem; }
@media (min-width: 720px) { .hero h1 { font-size: clamp(2.1rem, calc((100vw - 32px) / 15.5), 4rem); } .hero h1 .h1-line { display: block; white-space: nowrap; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.accred { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
@media (max-width: 900px) { .accred { flex-wrap: wrap; justify-content: flex-start; } }
.accred img { display: block; max-width: 100%; }
.accred .accred-ca { height: 52px; width: auto; }
.accred-xero { height: 52px; width: 52px; }
.accred .accred-xero-h { height: 44px; width: auto; }
.accred-xero-wrap { display: flex; align-items: center; gap: 10px; }
.accred .accred-tmnz { height: 30px; width: auto; }
.logo-swap { position: relative; display: inline-block; line-height: 0; border-radius: 10px; }
.logo-swap img { transition: opacity .25s ease; }
.logo-swap .colour { position: absolute; inset: 0; opacity: 0; }
.logo-swap:hover .colour, .logo-swap:focus-visible .colour { opacity: 1; }
.logo-swap:hover .white, .logo-swap:focus-visible .white { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .logo-swap img { transition: none; } }
.accred-ca-group { display: flex; align-items: center; gap: 14px; }
.accred-ca-group .accred-text { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.accred-text { display: grid; font-size: .85rem; color: var(--band-soft); line-height: 1.35; }
.accred-text b { color: var(--band-ink); font-size: .95rem; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-soft); }
.creds b { color: var(--ink); }

.ledger { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(10, 40, 34, .45); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.ledger-head h3 { font-size: 1rem; }
.ledger-head span { font-size: .78rem; color: var(--ink-soft); }
.ledger table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger td { padding: 11px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.date { font-weight: 700; font-family: var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--pine); width: 1%; }
.ledger td.what small { display: block; color: var(--ink-soft); font-size: .8rem; }
.ledger td.when { width: 1%; white-space: nowrap; text-align: right; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--pine-soft); color: var(--ink); font-variant-numeric: tabular-nums; }
.chip.soon { background: var(--ink); color: var(--surface); }
.ledger-foot { padding: 12px 20px; font-size: .78rem; color: var(--ink-soft); background: var(--pine-soft); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.service { padding: 26px 24px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; background: var(--surface); min-width: 0; }
.service .code { font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; font-size: .78rem; color: var(--ink); }
.service p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Tools band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-ink); }
.band .lede { color: var(--band-soft); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); border-left: 1px solid rgba(255, 255, 255, .16); }
.tool { border-right: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); padding: 32px 32px 34px; display: grid; grid-template-rows: 56px auto; gap: 22px; align-content: start; min-width: 0; }
.tool-logo { display: flex; align-items: center; min-height: 56px; }
.tool-logo img { display: block; max-width: 100%; }
.tool-logo .tl-xerogold { height: 40px; width: auto; }
.tool-logo .tl-tmnz { height: 26px; width: auto; }
.tool-logo .tl-dext { height: 48px; width: auto; }
.tool-logo-pair { gap: 22px; flex-wrap: wrap; }
.tool-logo .tl-reckon { height: 28px; width: auto; }
.tool-logo .tl-myob { height: 30px; width: auto; }
.tool-body { display: grid; gap: 8px; }
.tool-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-soft); }
.tool h3 { font-size: 1.1rem; font-weight: 700; }
.tool p:not(.tool-tag) { max-width: 48ch;  color: var(--band-soft); font-size: .92rem; }
.tool:hover .logo-swap .colour { opacity: 1; }
.tool:hover .logo-swap .white { opacity: 0; }
@media (max-width: 680px) { .tools { grid-template-columns: 1fr; } .tool { padding: 26px 22px 28px; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--ink-soft); max-width: 62ch; }
.people { display: grid; gap: 14px; }
.person { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.mono { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); font: 700 1.1rem var(--font-display); }
.person .role { font-size: .88rem; color: var(--ink-soft); }
.person .post { font-weight: 600; font-family: var(--font-body); font-size: .8rem; color: var(--pine); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.fact { border-top: 2px solid var(--pine); padding-top: 10px; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.fact span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--pine); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 2px 20px; color: var(--ink-soft); max-width: 68ch; }
.faq-group { margin-top: 40px; max-width: 820px; }
.faq-group > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); padding: 6px 0; }
.faq-group > summary::-webkit-details-marker { display: none; }
.faq-group > summary::after { content: "+"; font-weight: 700; }
.faq-group[open] > summary::after { content: "–"; }
.faq-group-body { padding-top: 12px; }
.faq-group p.note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; max-width: 68ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 8px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list dd a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
form.enquiry { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
input, textarea, select { font: 500 1rem var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 11px 12px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: .9rem; padding: 12px 14px; border-radius: 6px; background: var(--pine-soft); color: var(--ink); }
.cf-turnstile { min-height: 65px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 36px; font-size: .88rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.form-note { font-size: .8rem; color: var(--ink-soft); }
.form-note a { color: var(--ink-soft); }

/* Tax dates inside Services */
.dates-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.dates-copy { display: grid; gap: 12px; padding-top: 8px; }
.dates-copy p { margin: 0; }
.dates-copy .dates-aside { font-size: .9rem; padding-left: 12px; border-left: 2px solid var(--ink); }
.dates-copy .btn { margin-top: 6px; }
.ledger td.what b { font-weight: 600; }
.ledger td.what .desc { margin: 6px 0 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.55; max-width: 34rem; }
.dates-row .ledger td { padding-block: 14px; }
.dates-copy .code { font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; font-size: .78rem; color: var(--ink); }
.dates-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-wrap: balance; }
.dates-copy p { color: var(--ink-soft); }
@media (max-width: 900px) { .dates-row { grid-template-columns: minmax(0, 1fr); } }

/* Footer company name link */
footer a.footer-name { color: var(--ink); font-weight: 700; text-decoration: none; }
footer a.footer-name:hover { text-decoration: none; opacity: .75; }

/* IRD card on phones: date and countdown on one line, details full width below */
@media (max-width: 560px) {
  .ledger tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td, .dates-row .ledger td { padding: 0; border: 0; width: auto; }
  .ledger td.what { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .ledger td.when { grid-column: 2; grid-row: 1; }
}
