/* ===========================================================
   Bane Bookkeeping — Design System
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color */
  --bg: #14181a;
  --bg-panel: #1c2220;
  --bg-panel-raised: #212824;
  --line: #2c3330;
  --green: #3f8657;
  --green-bright: #5bae78;
  --green-dim: #2c5f3f;
  --cream: #f3efe6;
  --cream-dim: #cfc9ba;
  --muted: #9ca6a0;

  /* Type */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'DejaVu Sans', 'Verdana', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  margin: 0 0 0.4em;
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--cream-dim); }

a { color: var(--green-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Ledger rule (signature divider) ---------- */
.ledger-rule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 64px;
  margin: 18px 0 28px;
}
.ledger-rule span {
  display: block;
  height: 2px;
  background: var(--green);
}
.ledger-rule span:last-child { background: var(--green-dim); }

.ledger-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Corner ticks (signature motif) ---------- */
.tick-frame {
  position: relative;
}
.tick-frame::before,
.tick-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--green-dim);
  opacity: 0.7;
}
.tick-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tick-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Header / Nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 26, 0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}
.brand span { color: var(--green-bright); }
.brand:hover { text-decoration: none; }

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.footer-brand .brand-logo { height: 54px; margin-bottom: 12px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--green-bright);
  text-decoration: none;
}

.nav-cta {
  background: var(--green);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: none !important;
}
.nav-cta:hover { background: var(--green-bright); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 8px 12px;
  font-size: 1.1rem;
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { max-width: 780px; }
.hero .lede {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--cream-dim);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-primary:hover { background: var(--green-bright); text-decoration: none; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card .tick-frame { padding: 0; }

.service-num {
  font-family: var(--font-display);
  color: var(--green-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Differentiator strip ---------- */
.strip {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.strip .years {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--green-bright);
  line-height: 1;
  white-space: nowrap;
}
.strip .years small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .brand { display: inline-block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--cream-dim); font-size: 0.92rem; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms (Contact) ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  margin-bottom: 4px;
}
.contact-list a, .contact-list span.value { color: var(--cream); font-size: 1.05rem; }

/* ---------- Blog ---------- */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post-row:first-child { padding-top: 0; }
.post-date {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 4px;
}
.post-row h3 { margin-bottom: 8px; }
.post-row h3 a { color: var(--cream); }
.post-row h3 a:hover { color: var(--green-bright); text-decoration: none; }
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-bright);
  border: 1px solid var(--green-dim);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

article.post-body { max-width: 700px; }
article.post-body h2 { margin-top: 1.6em; }
article.post-body p { color: var(--cream-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .ledger-rule { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .strip { flex-direction: column; gap: 16px; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--gutter);
  }
  nav.main-nav.open ul { flex-direction: column; gap: 18px; }
  .menu-toggle { display: inline-block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
