/* ============================================================
   Absolute Bookkeeping — "harbour ink" design system
   Deep ink navy + warm amber accent. Modern, professional,
   conversion-first: clean elevated cards, soft gradient depth,
   no ruled-paper or ledger-line decoration.
   ============================================================ */

:root {
  --navy:      #16304A;  /* dark sections */
  --navy-2:    #1F4066;  /* raised surfaces on navy */
  --ink-deep:  #0F1F30;  /* footer, mobile bar */
  --heading:   #152C44;  /* headings on light */
  --link:      #20618F;  /* links/eyebrows on light — AA on paper */
  --soft:      #9DB9D1;  /* soft blue — labels and secondary text on navy */
  --accent:    #F0A43C;  /* warm amber — CTAs, highlights */
  --accent-deep:#CE851A;
  --paper:     #FAFAF8;
  --card:      #FFFFFF;
  --tint:      #EEF3F7;  /* cool light alternate sections */
  --ink:       #283846;  /* body text on light */
  --muted:     #5A6B79;  /* secondary text on light — AA */
  --light:     #D5E0EA;  /* body text on navy */
  --light-max: #F8FBFD;  /* headings on navy */
  --line:      #E3E7EA;
  --radius: 16px;
  --measure: 36rem;
  --shadow-card: 0 1px 2px rgba(15, 31, 48, 0.05), 0 16px 32px -18px rgba(15, 31, 48, 0.25);
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--heading);
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-family: "Karla", sans-serif; font-weight: 700; font-size: 1.1rem; }
h1, h2, h3 { text-wrap: balance; }

p { max-width: var(--measure); text-wrap: pretty; }

::selection { background: var(--accent); color: #1D2B3A; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--heading); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 0.6em 1.2em; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
[id] { scroll-margin-top: 5.5rem; }

.eyebrow {
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--link);
  display: block;
  margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--soft); }

/* Short amber accent bar under section headings */
.totals::after {
  content: "";
  display: block;
  width: 3rem;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 1rem;
}

/* The key word in the headline picks up the accent colour */
.hl { color: var(--accent); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.78em 1.6em;
  transition: background-color 130ms ease, color 130ms ease,
              border-color 130ms ease, box-shadow 130ms ease;
}
.btn-coral {
  background: linear-gradient(180deg, #F4B254 0%, #E89A2C 100%);
  color: #1D2B3A;
  border: 1px solid #D9910F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 3px 10px -3px rgba(148, 94, 8, 0.5);
}
.btn-coral:hover {
  background: linear-gradient(180deg, #E89A2C 0%, #D2861A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 2px 6px -2px rgba(148, 94, 8, 0.5);
}
.btn-line-light {
  color: var(--light-max);
  border: 2px solid rgba(157, 185, 209, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.btn-line-light:hover { border-color: var(--soft); color: var(--light-max); }
.btn:active { transform: translateY(1px); }

/* ============ Brand lockup ============ */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 2.8rem; height: 2.8rem; flex: none; }
.lm-ring { stroke: var(--soft); }
.lm-diag { fill: var(--soft); }
.lm-star { fill: var(--navy); }
.lm-north { fill: var(--accent); }
.wm { display: flex; flex-direction: column; line-height: 1.08; font-family: "Lora", Georgia, serif; font-weight: 600; }
.wm-top { font-size: 0.8rem; color: var(--muted); }
.wm-bot { font-size: 1.24rem; color: var(--heading); }

/* ============ Header ============ */
.site-header {
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 31, 48, 0.06);
  position: sticky; top: 0; z-index: 90;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.85rem;
}
.site-nav { display: none; gap: 1.5rem; }
@media (min-width: 54rem) { .site-nav { display: flex; } }
.site-nav a { font-weight: 700; font-size: 0.98rem; text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--heading); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--link); text-decoration: underline; }
.header-actions .btn { font-size: 0.95rem; padding: 0.55em 1.3em; }
@media (max-width: 36rem) {
  .header-actions .btn { display: none; } /* the phone number is the stronger mobile CTA */
  .brand-mark { width: 2.4rem; height: 2.4rem; }
  .wm-top { font-size: 0.7rem; }
  .wm-bot { font-size: 1.08rem; }
}

/* ============ Hero — split with credentials card ============ */
.hero {
  background-image:
    radial-gradient(110% 140% at 85% -20%, #23507C 0%, #16304A 48%, #102338 100%);
  color: var(--light);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 58rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { color: var(--light-max); max-width: 17ch; margin-bottom: 1.3rem; }
.hero .lede { font-size: 1.16rem; max-width: 31rem; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.cta-note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--soft); max-width: 30rem; }

.cred-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: 0 30px 60px -25px rgba(4, 12, 22, 0.65);
  color: var(--ink);
}
.cred-title { font-weight: 700; color: var(--heading); margin-bottom: 0.6rem; }
.cred-card ul { list-style: none; }
.cred-card li { display: flex; align-items: center; gap: 0.95rem; padding-block: 0.6rem; }
.cred-card img { height: 2.6rem; width: auto; flex: none; }
.cred-card li:nth-child(3) img { height: 1.6rem; } /* the Xero badge is very wide */
.cred-card b { display: block; color: var(--heading); line-height: 1.3; }
.cred-card span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.cred-foot { margin-top: 0.9rem; color: var(--muted); font-size: 0.9rem; }

/* ============ Pain points ============ */
.pains { background: var(--tint); }
.pain-list {
  list-style: none;
  display: grid; gap: 1.6rem;
  margin-top: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .pain-list { grid-template-columns: 1fr 1fr; gap: 2rem 3.5rem; } }
.pain-list li {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--heading);
  max-width: 28ch;
  padding-left: 2.2rem;
  position: relative;
}
.pain-list li::before {
  content: "\201C";
  position: absolute; left: 0; top: -0.1em;
  font-style: normal;
  font-size: 2.4em;
  line-height: 1;
  color: var(--accent);
}
.pains .reassure { margin-top: 2.6rem; color: var(--muted); }

.audience-grid {
  list-style: none;
  margin-top: 2.4rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.audience-grid li {
  background: var(--card);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.audience-grid b { display: block; color: var(--heading); }
.audience-grid span { color: var(--muted); font-size: 0.94rem; }

/* ============ Services ============ */
.service-grid {
  list-style: none;
  margin-top: 2.6rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.service-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 3px rgba(15, 31, 48, 0.05), 0 22px 38px -18px rgba(15, 31, 48, 0.32);
}
.service-grid svg {
  width: 3rem; height: 3rem;
  padding: 0.7rem;
  background: var(--tint);
  border-radius: 12px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.service-grid h3 { margin-bottom: 0.4rem; color: var(--heading); }
.service-grid p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

.extra-heading { margin-top: 2.6rem; color: var(--heading); }
.extra-list {
  list-style: none;
  margin-top: 1rem;
  display: grid; gap: 0.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .extra-list { grid-template-columns: 1fr 1fr; } }
.extra-list li {
  background: var(--tint);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
}
.extra-list b { display: block; color: var(--heading); }
.extra-list span { color: var(--muted); font-size: 0.95rem; }

/* ============ CIS feature ============ */
.cis { background: var(--tint); }
.cis-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; margin-top: 2.2rem; }
@media (min-width: 50rem) { .cis-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.cis-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.cis-card-title { font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }

/* Plain check lists — no leaders, no rules */
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  padding-block: 0.45rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute; left: 0;
  font-weight: 700;
  color: var(--accent-deep);
}
.on-dark .check-list li::before { color: var(--accent); }

/* ============ Why me (navy trust panel) ============ */
.why {
  background-image:
    radial-gradient(120% 130% at 10% -10%, #1E4266 0%, #16304A 55%, #12283E 100%);
  color: var(--light);
}
.why h2 { color: var(--light-max); }
.why p { color: var(--light); }
.why .check-list { margin-top: 1.8rem; max-width: 34rem; }
.why-grid { display: grid; gap: 2.8rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 52rem) { .why-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.licence-card {
  margin-top: 2.2rem;
  background: var(--navy-2);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex; align-items: center; gap: 1.3rem;
  box-shadow: 0 18px 36px -18px rgba(4, 12, 22, 0.6);
}
.licence-card img { height: 5rem; width: auto; background: #fff; border-radius: 8px; padding: 0.3rem; }
.licence-card p { font-size: 0.97rem; color: var(--light); }
.licence-card b { color: var(--light-max); }

.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(4, 12, 22, 0.6);
}

/* ============ How it works ============ */
.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 3rem;
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 6px 14px -4px rgba(15, 31, 48, 0.4);
  display: grid; place-items: center;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}
.steps h3 { margin-bottom: 0.4rem; color: var(--heading); }
.steps p { font-size: 0.97rem; color: var(--muted); }

/* ============ Mid-page CTA band ============ */
.cta-band {
  background-image: linear-gradient(100deg, #1F4066 0%, #16304A 65%);
  color: var(--light);
  padding-block: clamp(2.8rem, 6vw, 4.2rem);
}
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem 2.5rem;
}
.cta-band h2 { color: var(--light-max); font-size: clamp(1.5rem, 3.5vw, 2rem); max-width: 24ch; }
.cta-band .note { margin-top: 0.6rem; color: var(--light); font-size: 0.98rem; max-width: 34rem; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============ Pricing ============ */
.pricing { background: var(--tint); }
.pricing-lede { margin-top: 1.4rem; color: var(--muted); }
.price-cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.2rem; }
@media (min-width: 44rem) { .price-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 58rem) { .price-cards { grid-template-columns: repeat(3, 1fr); } }
.price-card .check-list { margin-top: 0.9rem; }
.price-card .check-list li { font-size: 0.95rem; padding-block: 0.3rem; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
}
.price-card h3 { margin-bottom: 0.6rem; color: var(--heading); font-size: 1.2rem; }
.price-card p { color: var(--muted); font-size: 0.97rem; }
.price-range {
  margin-top: 2rem;
  background: #FBF0DC;
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--heading);
  max-width: none;
}
.pricing .honesty { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* ============ Local ============ */
.local-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 50rem) { .local-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.testimonial-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  font-size: 0.85rem; line-height: 1.6;
  color: var(--muted);
}
.area-chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.6rem;
}
.area-chips li {
  background: var(--tint);
  color: var(--heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45em 1em;
  border-radius: 999px;
}

/* Gentle scroll-in reveal — modern browsers only, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .price-card, .cis-card, .faq-list details, .extra-list li, .steps li {
      animation: rise-in both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============ FAQ ============ */
.faq { background: var(--tint); }
.faq-list { margin-top: 2.4rem; max-width: 46rem; }
.faq-list details {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding-inline: 1.35rem;
  margin-bottom: 0.7rem;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  padding-block: 1.05rem;
  font-weight: 700; font-size: 1.05rem;
  color: var(--heading);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem; line-height: 1;
  color: var(--accent-deep);
  flex: none;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); padding-bottom: 1.2rem; }

/* ============ Contact ============ */
.contact {
  background-image:
    radial-gradient(130% 120% at 90% 110%, #1E4266 0%, #16304A 52%, #112640 100%);
  color: var(--light);
}
.contact h2 { color: var(--light-max); }
.contact > .wrap > p { color: var(--light); margin-top: 1rem; }
.gets-title { font-weight: 700; color: var(--light-max); margin-top: 1.4rem; }
.contact-gets { margin-top: 0.4rem; color: var(--light); max-width: 34rem; }
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 2.6rem; }
@media (min-width: 50rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }

form {
  display: grid; gap: 1.1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  color: var(--ink);
  box-shadow: 0 30px 60px -25px rgba(4, 12, 22, 0.65);
}
label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7em 0.95em;
  border: 1px solid #C2CCD4;
  border-radius: 10px;
  background: #FDFDFC;
  color: var(--ink);
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
textarea { min-height: 8rem; resize: vertical; }
.required::after { content: " *"; color: var(--accent-deep); }
.form-note { font-size: 0.88rem; color: var(--muted); }

.contact-details { font-style: normal; }
.contact-details h3 { color: var(--light-max); font-size: 1.2rem; margin-bottom: 1.1rem; }
.contact-details dl { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem 1.4rem; margin-bottom: 2rem; }
.contact-details dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--soft);
  padding-top: 0.3rem;
}
.contact-details dd { color: var(--light); overflow-wrap: anywhere; }
.contact-details a { color: var(--light-max); }
.contact-details a:hover { color: var(--soft); }
.big-phone {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-deep);
  color: var(--soft);
  padding-block: 2rem;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer .brand-mark { width: 2.1rem; height: 2.1rem; }
.site-footer .lm-star { fill: var(--light-max); }
.site-footer .wm-top { color: var(--soft); }
.site-footer .wm-bot { color: var(--light-max); font-size: 1.08rem; }
.footer-blurb { flex-basis: 100%; color: var(--soft); max-width: 44rem; }
.site-footer a { color: var(--light); }
.site-footer a:hover { color: var(--light-max); }

/* ============ Sticky mobile action bar ============ */
.mobile-bar { display: none; }
@media (max-width: 36rem) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    display: flex; gap: 0.6rem;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--ink-deep);
    border-top: 1px solid var(--navy-2);
    box-shadow: 0 -6px 20px rgba(4, 12, 22, 0.4);
  }
  .mobile-bar .btn { flex: 1; text-align: center; font-size: 1rem; padding: 0.7em 0.5em; }
}
