/* ============================================================
   LSJ Consultation, LLC - Ledger Binder Style
   Theme: LIGHT Desk Linen desk, Fountain Ink text.
   Accent: OXBLOOD BINDING #7A3B34 binder-spine double duty.
   Support: BRASS RING #A98B4C, DESK GREY #8F9187,
            PAGE CREAM #FBF8EF, CLOSET SLATE #26282A.
   Motif: open ring binder; body sections are tab sections behind
          numbered dividers; spine header; ledger sheets.
   ============================================================ */

/* ---------- Palette ---------- */
:root {
  --linen: #F2EFE5;
  --ink: #2C2E2B;
  --ink-soft: #3E403B;
  --oxblood: #7A3B34;
  --oxblood-dark: #5E2C27;
  --brass: #A98B4C;
  --desk-grey: #8F9187;
  --cream: #FBF8EF;
  --closet: #26282A;
  --closet-line: #3A3C3E;
  --rule: #D6CFB9;
  --rule-faint: #E5DFCD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.7;
  background-color: var(--linen);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--oxblood);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  color: var(--ink);
}

p {
  margin: 0 0 1.1em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SPINE HEADER - the binder spine laid flat (not sticky)
   ============================================================ */
.spine-wrap {
  background-color: var(--closet);
  color: var(--cream);
  position: relative;
  border-bottom: 3px solid var(--brass);
}

.spine-wrap-inner {
  right: 2px;
}

.spine {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--cream);
  gap: 0;
}

.spine-inner {
  position: relative;
  z-index: 1;
}

.spine-head-felt {
  width: 100%;
}

.spine-ring-end {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.spine-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  position: relative;
  margin: 0 6px;
}

.spine-ring::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  background-color: var(--brass);
  transform: translateY(-50%);
}

.spine-brandplate {
  background-color: var(--oxblood);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 8px 18px;
  border-radius: 2px;
  position: relative;
  display: inline-block;
  margin-right: 18px;
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--oxblood-dark);
  box-shadow: 2px 2px 0 var(--oxblood-dark);
}

.spine-nav {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  gap: 6px;
  padding-left: 4px;
  flex-wrap: wrap;
}

.spine-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--cream);
  color: var(--ink);
  font-size: 14px;
  padding: 7px 15px 9px;
  border-radius: 3px 3px 0 0;
  margin-bottom: -14px;
  position: relative;
  top: 2px;
  box-shadow: inset 0 -2px 0 var(--cream);
}

.spine-tab.chosen {
  background-color: var(--oxblood);
  color: var(--cream);
}

.spine-tab-num {
  display: inline-block;
  background-color: var(--oxblood);
  color: var(--cream);
  font-size: 11px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 2px;
  padding: 0 3px;
}

.spine-tab.chosen .spine-tab-num {
  background-color: var(--cream);
  color: var(--oxblood);
}

.spine-tab:hover {
  text-decoration: none;
  background-color: #FFFFFF;
}

.spine-spacer {
  flex: 1 1 auto;
}

.spine-cta-chip {
  align-self: center;
  background-color: var(--oxblood);
  border: 2px solid var(--cream);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 3px;
  white-space: nowrap;
  margin-bottom: 18px;
}

.spine-cta-chip:hover {
  background-color: var(--oxblood-dark);
  text-decoration: none;
  color: var(--cream);
}

/* Pre header little line */
.pre-spine {
  background-color: var(--closet);
  height: 6px;
}

/* ============================================================
   TAB SECTION SHELL
   body sections = divider edge on left + content to the right
   ============================================================ */
.bind-sheet {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.bind-edge {
  flex: 0 0 56px;
  background-color: var(--oxblood);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 0;
  position: relative;
  min-height: 100%;
}

.bind-edge-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  position: relative;
  margin: 0 0 14px;
}

.bind-edge-ring::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  background-color: var(--brass);
  transform: translateY(-50%);
}

.bind-edge-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 0.9;
  color: var(--cream);
  opacity: 1;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 6px;
}

.bind-edge-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cream);
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-bottom: 6px;
}

.bind-body {
  flex: 1 1 auto;
  min-width: 0;
  background-color: var(--cream);
}

.bind-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 34px 56px;
}

/* alternate sheet tint */
.bind-sheet.alt-board .bind-edge {
  background-color: var(--oxblood-dark);
}

.bind-sheet.alt-board .bind-body {
  background-color: var(--cream);
}

/* opening engagement sheet sits on the linen desk top */
.bind-sheet.open-sheet .bind-body {
  background-color: var(--linen);
}

.bind-sheet.open-sheet .bind-edge {
  background-color: var(--oxblood);
}

/* Section anchor targets need breathing room above (no sticky nav,
   but the reveal uses transforms) */
section[id] {
  scroll-margin-top: 8px;
}

/* ============================================================
   SECTION 1 - THE ENGAGEMENT SHEET (opening ledger sheet)
   ============================================================ */
.open-sheet {
  background-color: var(--linen);
}

.engage-top {
  padding: 30px 0 8px;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.ring-glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  position: relative;
  flex: 0 0 auto;
  transform: translateY(-4px);
}

.ring-glyph::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  background-color: var(--brass);
  transform: translateY(-50%);
}

.practice-title {
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
  max-width: 14em;
}

.practice-overline {
  color: var(--oxblood);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.standfirst {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin: 26px 0 0 44px;
}

.margin-rule {
  width: 40px;
  align-self: stretch;
  position: relative;
  margin-top: 18px;
  border-left: 1px solid var(--oxblood);
  margin-left: 44px;
  flex: 0 0 auto;
  align-self: stretch;
  display: none;
}

.sheet-legal-foot {
  font-size: 13px;
  color: var(--desk-grey);
}

/* The engage opening uses a left ruled column mock for the law
   (an oxblood margin rule double-line with index ticks beside title).
   Implemented as divs below, not fixed rail. */
.engage-rule {
  width: 100%;
  display: flex;
  gap: 6px;
  margin: 18px 0 6px;
}

.engage-rule-line {
  width: 3px;
  height: 64px;
  background-color: var(--oxblood);
  margin-right: 2px;
}

.engage-rule-ticks {
  width: 3px;
  height: 64px;
  background-color: var(--oxblood);
  position: relative;
}

/* mini ticks to satisfy index ticks */
.engage-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  margin-left: 10px;
  padding: 6px 0;
}

.engage-ticks i {
  width: 12px;
  height: 2px;
  background-color: var(--brass);
  display: block;
}

/* ============================================================
   SECTION 2 - THE FILED LEDGERS (services 3x2 stack end, rows 2)
   ============================================================ */
.ledger-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.ledger-row {
  display: contents;
}

.ledger-sheet {
  background-color: var(--cream);
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  box-shadow: 3px 3px 0 var(--rule-faint);
  position: relative;
  padding: 26px 24px 22px 24px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 28px,
    var(--rule-faint) 28px,
    var(--rule-faint) 29px
  );
  border-radius: 0;
  outline: 1px solid var(--rule-faint);
  outline-offset: 0;
}

.ledger-punch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background-color: var(--linen);
  position: absolute;
  top: 12px;
  left: 12px;
}

.ledger-index {
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: var(--oxblood);
  line-height: 1;
  font-weight: bold;
}

.ledger-sheet h3 {
  font-size: 19px;
  color: var(--ink);
  margin: 6px 26px 0 30px;
  padding-top: 8px;
}

.ledger-sheet p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 0 30px;
  line-height: 1.6;
}

.ledger-sheet a.ledger-line {
  display: inline-block;
  margin: 12px 0 0 30px;
  color: var(--oxblood);
  font-size: 14px;
  border-bottom: 1px solid var(--brass);
}

/* ============================================================
   SECTION 3 - MARGIN NOTES
   ============================================================ */
.notes-flex {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.notes-copy {
  flex: 1 1 62ch;
  max-width: 62ch;
}

.notes-copy p {
  margin-bottom: 1.3em;
}

.notes-copy strong {
  color: var(--oxblood);
  font-weight: normal;
  font-family: Georgia, serif;
}

.margin-drawn {
  flex: 0 0 150px;
  min-height: 260px;
  position: relative;
  border-left: 3px solid var(--oxblood);
  margin-left: 6px;
}

.margin-drawn::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  width: 12px;
  height: 3px;
  background-color: var(--oxblood);
}

.margin-drawn::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 40px;
  width: 12px;
  height: 3px;
  background-color: var(--brass);
}

.arch-year {
  position: relative;
  left: -12px;
  width: 100%;
}

.flag-one {
  background-color: var(--oxblood);
  color: var(--cream);
  font-size: 12px;
  padding: 5px 14px;
  margin-top: 24px;
  display: inline-block;
  position: relative;
  left: -8px;
}

.flag-two {
  margin-top: 46px;
  margin-left: 26px;
}

.flag-three {
  margin-top: 40px;
  margin-left: 6px;
}

.flag-stem {
  position: relative;
  width: 3px;
  height: 60px;
  background-color: var(--brass);
  margin-left: -8px;
}

/* ============================================================
   SECTION 4 - INTAKE COUNTER (contact form + bookplate)
   ============================================================ */
.intake-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.intake-form {
  flex: 1 1 480px;
  background-color: var(--cream);
  border-left: 12px solid var(--oxblood);
  border: 1px solid var(--rule);
  padding: 24px 24px 20px;
  box-shadow: 4px 4px 0 var(--rule-faint);
  position: relative;
}

.clip {
  position: absolute;
  top: -18px;
  left: 40px;
  width: 20px;
  height: 44px;
  border-radius: 6px 6px 3px 3px;
  background-color: var(--oxblood);
  border: 1px solid var(--oxblood-dark);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--oxblood);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: Georgia, serif;
}

.form-field {
  width: 100%;
  border: 1px solid var(--rule);
  background-color: #FFFEFA;
  padding: 9px 12px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
}

.form-field:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 0;
  border-color: var(--oxblood);
}

textarea.form-field {
  min-height: 130px;
  resize: vertical;
}

.btn-primary {
  background-color: var(--oxblood);
  color: var(--cream);
  border: 2px solid var(--oxblood-dark);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 10px 26px;
  cursor: pointer;
  display: inline-block;
  border-radius: 2px;
}

.btn-primary:hover {
  background-color: var(--oxblood-dark);
  color: var(--cream);
}

.mail-fallback {
  font-size: 12px;
  color: var(--desk-grey);
  margin-top: 10px;
  display: inline-block;
}

.intake-bookplate {
  flex: 0 0 300px;
}

.bookplate {
  background-color: var(--cream);
  border: 1px solid var(--rule);
  border-left: 12px solid var(--brass);
  padding: 22px;
  font-size: 14px;
  color: var(--ink);
}

.bookplate-name {
  font-size: 18px;
  color: var(--oxblood);
  letter-spacing: 1px;
  font-family: Georgia, serif;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bookplate-line {
  margin-bottom: 7px;
  line-height: 1.45;
}

.bookplate-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--desk-grey);
  margin-bottom: 2px;
}

/* FAQ bookplate notes */
.faq-block {
  margin-top: 26px;
}

.faq-q {
  font-family: Georgia, serif;
  color: var(--oxblood);
  margin-top: 18px;
  position: relative;
  padding-left: 18px;
}

.faq-q::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 3px;
  background-color: var(--brass);
}

.faq-a {
  margin: 6px 0 0 18px;
  font-size: 15px;
}

/* ============================================================
   DIVIDER row headings on internal content (services breakdown)
   ============================================================ */
.sheet-h2 {
  font-size: 24px;
  color: var(--oxblood);
  margin-bottom: 10px;
  font-family: Georgia, serif;
}

.issue-line {
  color: var(--desk-grey);
  border-top: 1px solid var(--rule);
  margin: 6px 0 20px;
}

.clear-ledger {
  background-color: var(--linen);
  border: 1px solid var(--rule);
  padding: 22px;
  margin-top: 12px;
}

/* ============================================================
   Generic reveal motion.
   Hidden states are applied ONLY when the html element carries
   the js-class (added at runtime by main.js). Without JavaScript
   everything stays visible — noscript safe.
   ============================================================ */
.reveal {
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

html.js-on .reveal.rv {
  opacity: 0;
  transform: translateY(16px);
}

html.js-on .reveal.rv.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BACK BOARD FOOTER (closet board)
   ============================================================ */
.footer-board {
  background-color: var(--closet);
  border-top: 3px solid var(--brass);
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 26px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: var(--brass);
  color: #FFFFFF;
}

.footer-legal {
  color: var(--cream);
  font-size: 14px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

.footer-legal a {
  color: var(--brass);
}

.footer-legal a:hover {
  color: #FFFFFF;
}

.footer-board-mark {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--brass);
  text-transform: uppercase;
}

/* go-to-top button: fixed is not a bottom-bar; allowed as round button */
.go-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--oxblood);
  border: 2px solid var(--cream);
  color: var(--cream);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 2px 2px 0 var(--oxblood-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  line-height: 1;
}

.go-top.show {
  opacity: 1;
  pointer-events: auto;
}

.go-top:hover {
  background-color: var(--oxblood-dark);
  color: #FFFFFF;
}

/* Plain utility margins */
.mtb {
  margin-bottom: 10px;
}

/* responsive - each breakpoint uses its own compound selector so no
   simple binder class is declared a second time */
@media (max-width: 900px) {
  .bind-body .ledger-rows {
    grid-template-columns: repeat(2, 1fr);
  }

  .spine-wrap .spine {
    flex-wrap: wrap;
    gap: 6px 0;
  }

  .spine-wrap .spine-cta-chip {
    margin-left: 4px;
  }
}

@media (max-width: 620px) {
  .spine-wrap > .spine > .spine-ring-end + .spine-brandplate {
    font-size: 18px;
    padding: 6px 12px;
  }

  .bind-sheet .bind-inner {
    padding: 30px 20px 44px;
  }

  .bind-sheet .ledger-rows {
    grid-template-columns: 1fr;
  }

  .bind-sheet .bind-edge {
    flex-basis: 44px;
  }

  .bind-sheet .bind-edge-num {
    font-size: 32px;
  }

  .open-sheet .practice-title {
    font-size: 27px;
  }

  .footer-board .footer-links {
    gap: 14px;
  }
}
