:root {
  /* Brand colours, taken from the Alcaraz Accounting logo */
  --navy-900: #0B2545;
  --navy-700: #13315C;
  --gold-600: #A87830;
  --gold-500: #C9A04A;
  --gold-400: #E2BE6A;
  --gold-300: #D9C79E;
  --gold-text: #7E5B1C;
  --cream: #F8F5EE;
  --ivory: #EDE6D6;
  --line-warm: #E6DECD;
  --ink: #1F2937;
  --muted: #566070;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin-bottom: 28px; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); }

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow { max-width: 780px; }

/* Sections */
main > section { padding: 64px 0; scroll-margin-top: 16px; }
main > section:nth-of-type(even) { background: var(--cream); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:not(.btn):hover { color: var(--navy-700); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  color: #fff;
  background: var(--navy-900);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

.btn:hover { background: var(--navy-700); }

.btn-small { min-height: 44px; padding: 0 18px; }

.btn-light { color: var(--navy-900); background: var(--gold-400); }
.btn-light:hover { background: var(--gold-500); }

.text-link {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}

/* Hero and page heads */
.hero { padding: 72px 0 80px; }
.hero h1 { max-width: 18ch; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.btn-outline {
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--gold-300);
}

.btn-outline:hover { background: var(--cream); }

.note { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }

.hero {
  background:
    radial-gradient(ellipse at 88% 8%, var(--cream) 0, rgba(248, 245, 238, 0) 42%),
    var(--bg);
}

.hero-grid { display: grid; gap: 40px; align-items: center; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.byline { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-500);
}

.messenger { margin: 4px 0 0; }
.messenger .text-link { gap: 8px; }

/* Reconciliation example beside the hero text */
.recon {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line-warm);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
  font-variant-numeric: tabular-nums;
}

.recon-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.recon-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.recon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.recon-row.is-off { border-color: #F3C4BE; background: #FFF8F7; }

.recon-source { font-weight: 600; color: var(--ink); }
.recon-amount { font-weight: 700; color: var(--navy-900); text-align: right; }

.recon-gap {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #B42318;
}

.recon-gap .icon { width: 1.1em; height: 1.1em; }

.recon-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.recon-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gold-300);
  border-radius: 10px;
  background: var(--cream);
}

.recon-result .icon { width: 28px; height: 28px; color: var(--gold-600); }
.recon-result p { margin: 0; line-height: 1.35; }
.recon-result strong { display: block; color: var(--navy-900); }
.recon-result span { font-size: 0.95rem; color: var(--ink); }

.page-head .grid { margin-top: 12px; }

/* Problem */
.lead-in { font-size: 1.15rem; font-weight: 600; color: var(--navy-700); margin: -12px 0 24px; }

.checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 16px 18px 16px 54px;
  background: #fff;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
}

/* An empty box to tick in your head */
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-500);
  border-radius: 5px;
  background: #fff;
}

.closing {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

/* Grids and cards */
.grid { display: grid; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head h3 { margin: 0; }

.badge {
  flex: none;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--cream);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
}

.card-for { color: var(--muted); font-size: 0.95rem; }

.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  text-underline-offset: 4px;
}

.result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy-900);
}

/* Screenshot at the top of a tool card, edge to edge */
.card-img {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Service cards: icon on top, result as a tinted strip along the bottom */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--navy-700);
  background: var(--cream);
}

.service-icon .icon { width: 26px; height: 26px; }

.service .result {
  margin: auto -28px -28px;
  padding: 18px 28px;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--cream);
}

.card-featured { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.card-featured h3 { color: #fff; }
.card-featured .result { color: #fff; border-top-color: rgba(255, 255, 255, 0.2); }
.card-featured .service-icon { color: #fff; background: rgba(255, 255, 255, 0.12); }
.card-featured.service .result { background: rgba(255, 255, 255, 0.1); }

/* Placeholder cards whose text still starts with TODO */
.card-todo { border-style: dashed; border-color: var(--gold-300); background: transparent; color: var(--muted); }

.fit {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--radius);
}

.fit p { margin-bottom: 8px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 28px;
}

.section-head h2 { margin: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--gold-400);
  background: var(--navy-900);
}

.steps h3 { margin-bottom: 6px; }

/* Results */
/* Results (case studies) */
.case-before { color: var(--muted); }
.case-after { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* About */
.about { display: grid; gap: 28px; align-items: center; }

.about-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
}

/* Blue band */
main > section.band {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.band h2 { color: #fff; margin-bottom: 12px; }
.band p { max-width: 60ch; margin: 0 auto 28px; color: var(--ivory); text-wrap: balance; }
.band .messenger { margin: 12px auto 0; }
.band .messenger a { color: #fff; }
.band .messenger a:hover { color: var(--ivory); }
.band :focus-visible { outline-color: #fff; }

/* Footer */
.footer {
  padding: 40px 0 28px;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p { margin: 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer-name { font-weight: 700; color: var(--navy-900); }

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-social a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer-social a:hover .brand-icon { transform: scale(1.08); }
.brand-icon { display: block; transition: transform 0.15s ease; }

.footer-legal { margin-top: 20px; }

/* Mobile menu (only collapses when JS is running) */
@media (max-width: 767px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }

  .js .site-nav.open { display: flex; }
  .js .site-nav .btn { margin-top: 8px; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .wrap { padding: 0 24px; }
  .narrow { max-width: 828px; }
  main > section { padding: 104px 0; }
  .hero { padding: 104px 0 112px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 320px 1fr; gap: 56px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .about-no-photo { grid-template-columns: 1fr; }
  .about-no-photo > div { max-width: 780px; }
}

/* Brand touches from the logo: thin gold rules, gold-underlined links, logo mark */
.brand { gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-900); }
.brand-sub { margin-top: 4px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--navy-700); }

main h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.band h2::before { margin-left: auto; margin-right: auto; }
.section-head h2::before { margin-bottom: 14px; }

a, .text-link { text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.band .messenger a { text-decoration-color: var(--gold-400); }

.card-featured .service-icon { color: var(--gold-400); }
.card-featured .result strong { color: var(--gold-400); }
