/* ===================================================
   LEDGENZA — shared stylesheet
   Palette: paper, ink, ledger green, brass
=================================================== */

:root {
  --paper: #FAF7F2;
  --paper-dim: #F1ECE2;
  --ink: #1C2521;
  --ink-soft: #3A4440;
  --muted: #6B6558;
  --line: #D8D2C4;
  --accent: #2F5D50;
  --accent-dark: #203F37;
  --brass: #B8863E;
  --brass-light: #E4C382;
  --white: #FFFFFF;
  --radius: 4px;
  --max-width: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark {
  background: var(--brass);
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--brass-light); }

/* ---------- nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--accent); }

.nav-links a.btn { padding: 10px 20px; font-size: 0.88rem; }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }

.menu-toggle { display: none; }

/* ---------- ledger tick divider (signature element) ---------- */
.ledger-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 64px 0;
  opacity: 0.9;
}

.ledger-divider::before,
.ledger-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 6px,
    transparent 6px,
    transparent 12px
  );
}

.ledger-divider .stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ledger card visual */
.ledger-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 60px -30px rgba(28, 37, 33, 0.35);
  overflow: hidden;
}

.ledger-card-head {
  background: var(--accent);
  color: var(--white);
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.ledger-rows { padding: 8px 0; }

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px dashed var(--line);
  opacity: 0;
  animation: rowIn 0.5s ease forwards;
}

.ledger-row:last-child { border-bottom: none; }
.ledger-row:nth-child(1) { animation-delay: 0.15s; }
.ledger-row:nth-child(2) { animation-delay: 0.35s; }
.ledger-row:nth-child(3) { animation-delay: 0.55s; }
.ledger-row:nth-child(4) { animation-delay: 0.75s; }

.ledger-row .label { font-weight: 500; font-size: 0.95rem; }
.ledger-row .status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ledger-card-foot {
  background: var(--paper-dim);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.ledger-card-foot .balance { color: var(--brass); font-weight: 600; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ledger-row { animation: none; opacity: 1; }
}

/* ---------- sections ---------- */
section { padding: 24px 0; }

.section-head { max-width: 62ch; margin-bottom: 44px; }

.intro-statement {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro-statement p { margin-left: auto; margin-right: auto; }

/* what we do cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.service-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

/* how it works */
.steps {
  position: relative;
  padding-left: 8px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 46px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}

.step:last-child::before { display: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  z-index: 1;
}

.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; }

/* why ledgenza */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.why-item .check {
  color: var(--brass);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

/* closing CTA band */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 56px 48px;
  text-align: center;
  margin: 40px 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(250, 247, 242, 0.72); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-row .logo { font-size: 1.1rem; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- page header banner (services / contact) ---------- */
.page-banner {
  padding: 64px 0 24px;
}

.page-banner .wrap { max-width: 74ch; }

/* ---------- services page ---------- */
.service-entry {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.service-entry:last-of-type { border-bottom: none; }

.service-entry .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-entry li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.service-entry li:last-child { border-bottom: none; }

/* pricing card */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  margin: 40px 0;
}

.pricing-figure {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--accent);
  margin: 4px 0 12px;
}

.pricing-lead {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.pricing-figure span { font-size: 0.4em; color: var(--muted); }

/* ---------- contact page ---------- */
.contact-grid {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 64px;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

textarea { resize: vertical; min-height: 100px; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 6px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.92rem;
}

.checkbox-row input { width: auto; }

.contact-side {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  height: fit-content;
}

.contact-side h3 { margin-bottom: 18px; }

.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.contact-line:last-of-type { border-bottom: none; }

.contact-line .k { color: var(--muted); }

.response-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.success { display: block; background: #E6EFE9; color: var(--accent-dark); }
.form-status.error { display: block; background: #F6E7E3; color: #8A3B2E; }

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
}

.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding-bottom: 18px;
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.industry-card .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.industry-card span {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---------- blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card .date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

.blog-card h3 { margin-bottom: 0; }
.blog-card p { font-size: 0.92rem; margin-bottom: 0; }

.blog-card .read-more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.blog-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .service-entry { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}
