/* ============================================================
   ACCOUNTANT WEBSITE TEMPLATE: STYLES
   Look: a well-kept ledger. Warm paper, navy ink, ruled lines,
   tabular numbers, and one red-pen accent used the way an
   accountant uses one: rarely, and only where it matters.
   Change your brand in one place: --red and --navy below.
   Fonts: Fraunces (display serif) + IBM Plex Sans (body),
   loaded in each page's <head>.
   ============================================================ */

:root {
  /* EDIT these two to re-brand the whole site */
  --red: oklch(54% 0.19 27);           /* the red pen */
  --navy: oklch(26% 0.045 260);        /* ink */

  /* Ledger paper. Warm and tinted, never pure white. */
  --paper: oklch(97% 0.008 85);
  --paper-deep: oklch(94% 0.014 85);   /* cards, bands */
  --ink-soft: oklch(45% 0.03 260);     /* secondary text */
  --line: oklch(87% 0.015 85);         /* ledger rules */
  --line-strong: oklch(70% 0.03 260);  /* heavier rules */
  --paper-on-navy: oklch(95% 0.01 85);
  --muted-on-navy: oklch(75% 0.02 260);
  --line-on-navy: oklch(40% 0.04 260);

  --max: 1100px;
}

/* Fallback for older browsers that don't know oklch */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --red: #b3362b;
    --navy: #232c47;
    --paper: #f7f5f0;
    --paper-deep: #efece3;
    --ink-soft: #5b6272;
    --line: #ddd8cc;
    --line-strong: #9aa0b0;
    --paper-on-navy: #f2f0e9;
    --muted-on-navy: #aab0c0;
    --line-on-navy: #3c4560;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .statement, .ledger .sum, .quote-feature blockquote, .deadline-line {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }
a { color: var(--navy); }

/* ============================================================
   INTRO ANIMATION: rise and settle, element by element.
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .kicker     { animation: rise 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.hero .statement  { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.14s both; }
.hero .lead       { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.24s both; }
.hero .actions    { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.34s both; }
.hero .ledger-card { animation: rise 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.30s both; }
.page-head .kicker { animation: rise 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.05s both; }
.page-head h1      { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.14s both; }
.page-head .lead   { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.24s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
}
.logo .amp { color: var(--red); }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main > a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}
nav.main > a:not(.btn):hover { color: var(--navy); }
nav.main > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px;
  background: var(--red); transition: right 0.25s ease;
}
nav.main > a:not(.btn):hover::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy);
  color: var(--paper-on-navy);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease;
}
.btn:hover { background: var(--red); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--navy); background: transparent; color: var(--navy); }

/* ============================================================
   THE SIGNATURE: ledger rows. Dotted leaders, right-aligned
   tabular figures, and a red-ruled total. Used for fees
   everywhere, so every price reads like a well-kept book.
   ============================================================ */
.ledger { border-top: 2px solid var(--navy); }
.ledger .row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.ledger .row .item { flex: none; max-width: 70%; }
.ledger .row .item small { display: block; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.ledger .row .dots {
  flex: 1; min-width: 24px;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-5px);
}
.ledger .row .fig { flex: none; font-weight: 600; white-space: nowrap; }
.ledger .row .fig small { font-weight: 400; color: var(--ink-soft); }
.ledger .sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 2px 4px;
  border-top: 2px solid var(--red);
  margin-top: -1px;
  font-size: 19px;
}
.ledger .sum .fig { color: var(--red); }

/* The red-pen underline: for the one number or phrase per page that matters */
.redpen {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 72px;
  align-items: center;
}
.kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.statement {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 18ch;
}
.hero .lead { margin: 22px 0 32px; font-size: 17.5px; color: var(--ink-soft); max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* The hero ledger card: what most clients pay, on the first screen */
.hero .ledger-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px 22px;
}
.hero .ledger-card .card-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero .ledger-card .note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.sec-label::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.sec-intro { color: var(--ink-soft); max-width: 56ch; }
.sec-head { margin-bottom: 48px; }
.sec-foot { margin-top: 48px; }

/* Inner page header */
.page-head { padding: 72px 0 20px; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.14; max-width: 22ch; }
.page-head .lead { margin-top: 18px; font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Who we help: account codes, ruled columns ---------- */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 44px; }
.who-item { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.who-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.who-item h3 { font-size: 21px; margin-bottom: 8px; }
.who-item p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.who-item .from { margin-top: 12px; font-weight: 600; font-size: 15.5px; color: var(--navy); }

/* ---------- Photo slots ---------- */
.photo-wide { margin: 0; }
.photo-wide .ph {
  display: block; width: 100%;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.photo-wide figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.r21 { aspect-ratio: 21 / 9; }
.r32 { aspect-ratio: 3 / 2; }

/* Photo slots: click one in edit mode and your photo fills the frame. */
[data-photo] { position: relative; overflow: hidden; }
[data-photo] img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; background: none;
  border-radius: inherit;
}
[data-photo].has-img { background: none; }

/* ---------- Switching: the steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 44px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px; color: var(--red);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }

/* ---------- Kind words ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; margin-top: 44px; }
.quote-feature { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.quote-feature blockquote {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.42;
  margin-bottom: 20px;
}
.quote-side .quote { border-top: 1px solid var(--line); padding: 22px 0; }
.quote-side blockquote { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.quote cite {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote-feature cite { color: var(--navy); }

/* ---------- Deadline band ---------- */
.deadline { padding: 0; }
.deadline .container {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 32px; padding-bottom: 32px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.deadline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; align-self: center; }
.deadline-line { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.4; }
.deadline a { color: var(--navy); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.deadline a:hover { text-decoration-color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 92px 0; }
.cta-band h2, .cta-band p { color: var(--paper-on-navy); }
.cta-band .container {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 64px; align-items: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted-on-navy); max-width: 46ch; }
.cta-band .cta-alt { margin-top: 18px; font-size: 15px; }
.cta-band .cta-alt a { color: var(--paper-on-navy); text-decoration-color: var(--line-on-navy); text-underline-offset: 4px; }
.cta-band .cta-alt a:hover { text-decoration-color: var(--red); }
.cta-band .btn { background: var(--paper-on-navy); color: var(--navy); }
.cta-band .btn:hover { background: var(--red); color: var(--paper-on-navy); }

/* ---------- Fees page: the full ledger ---------- */
.fee-group { margin-top: 56px; }
.fee-group:first-of-type { margin-top: 0; }
.fee-group h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 6px; }
.fee-group .fee-intro { color: var(--ink-soft); font-size: 15.5px; max-width: 58ch; margin-bottom: 22px; }
.fee-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 62ch; }

/* Included list */
.included { columns: 2; column-gap: 48px; margin-top: 24px; }
.included li {
  list-style: none;
  break-inside: avoid;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.included li::before {
  content: "";
  position: absolute; left: 2px; top: 19px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Enquiry form ---------- */
form.enquiry { max-width: 560px; }
form.enquiry label {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 26px 0 8px;
}
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--navy);
  transition: border-color 0.2s ease;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus {
  outline: none;
  border-color: var(--red);
}
form.enquiry input::placeholder, form.enquiry textarea::placeholder { color: var(--ink-soft); }
form.enquiry select { appearance: none; -webkit-appearance: none; }
form.enquiry textarea { min-height: 130px; resize: vertical; }
form.enquiry .hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
form.enquiry button { margin-top: 30px; }

/* ---------- Contact rows ---------- */
.contact-rows { border-top: 1px solid var(--line-strong); max-width: 560px; }
.contact-rows .crow {
  display: grid; grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px; padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.contact-rows h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
.contact-rows p { font-size: 16px; }
.contact-rows a { color: var(--navy); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.contact-rows a:hover { text-decoration-color: var(--red); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); padding: 56px 0 36px; font-size: 15px; color: var(--muted-on-navy); }
footer.site h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-on-navy);
  margin-bottom: 12px;
}
footer.site a { color: var(--muted-on-navy); text-decoration: none; }
footer.site a:hover { color: var(--paper-on-navy); }
footer.site .cols { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
footer.site .legal { border-top: 1px solid var(--line-on-navy); padding-top: 20px; font-size: 13px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .who, .steps { grid-template-columns: 1fr; gap: 32px; }
  .quotes { grid-template-columns: 1fr; gap: 40px; }
  .cta-band .container { grid-template-columns: 1fr; }
  .included { columns: 1; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  section { padding: 60px 0; }
  header.site .container { justify-content: center; text-align: center; }
  nav.main { gap: 18px; }
  nav.main .btn { display: none; }
  .ledger .row .item { max-width: 60%; }
}

/* ---------- Sticky mobile CTA ---------- */
.cta-sticky { display: none; }
@media (max-width: 640px) {
  .cta-sticky {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    background: var(--navy);
    color: var(--paper-on-navy);
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 15px;
    border-radius: 3px;
    text-decoration: none;
    z-index: 60;
    box-shadow: 0 6px 24px rgba(20, 25, 45, 0.25);
  }
  body { padding-bottom: 88px; }
}
