/* LMN Capital Holdings — shared stylesheet
   Palette: deep navy anchor, warm cream background, terracotta accent used sparingly.
   Type: Fraunces (serif) for headings, system sans for body/perf. */

:root {
  /* Palette derived from the LMN wordmark (watercolor oak + sage-green serif type). */
  --navy: #3a4a2c;          /* deep sage-green — replaces the old navy anchor */
  --navy-ink: #29331e;      /* near-black sage — headings, high-contrast text */
  --sage: #556b2f;          /* text-safe brand green (5.5:1 on --cream) — eyebrows, links, small accents */
  --sage-light: #93a56e;    /* lighter decorative green — large fills only, not text */
  --sage-pale: #eef1e6;     /* pale sage-tinted section background */
  --bark: #9c7a4e;          /* warm brown from the tree trunk/roots — sparing accent */
  --cream: #fbfaf6;         /* clean warm-white background */
  --cream-deep: #f0efe6;
  --rust: #3a4a2c;          /* primary CTA color now maps to deep sage, not rust */
  --rust-dark: #29331e;
  --ink: #24281c;
  --ink-soft: #565f4c;
  --line: #ddd3bd;
  --line-sage: #dee3d0;
  --white: #ffffff;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 6px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--sage); font-weight: 500; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-lockup .brand-mn { font-weight: 700; letter-spacing: 0.02em; }
.brand-lockup .brand-sub { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-top: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-ink);
  border-bottom-color: var(--rust);
}
.main-nav .btn-primary,
.main-nav .btn-primary:hover {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover { background: var(--rust-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy-ink);
  border-color: var(--navy-ink);
}
.btn-secondary:hover { background: var(--navy-ink); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy-ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-ink); }
.btn-block { width: 100%; justify-content: center; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 2.4em;
  padding-top: 1.8em;
  border-top: 1px solid var(--line-sage);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--sage);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--sage);
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-alt {
  background: var(--sage-pale);
  border-top: 1px solid var(--line-sage);
  border-bottom: 1px solid var(--line-sage);
}
.section-navy {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  border-top: 1px solid var(--line);
}
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy .lede { color: rgba(255,255,255,0.72); }

.section-head { max-width: 700px; margin-bottom: 2rem; }
.lede { color: var(--ink-soft); font-size: 1.05rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage-light);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(41, 51, 30, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-top-color 0.18s ease;
}
.diff-item:hover, .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(41, 51, 30, 0.09);
  border-top-color: var(--sage);
}

.diff-item h4 {
  color: var(--navy-ink);
  margin-bottom: 0.4em;
}

/* ---------- Strip (what we buy summary) ---------- */
.strip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
}
.strip dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
}
.strip dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 4px;
}
.strip dd { margin: 0; color: var(--ink); }

/* ---------- Team / bios ---------- */
.team-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.team-block:first-of-type { border-top: none; }
.team-block-flip { grid-template-columns: 1fr 200px; }

.headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}
.headshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(160deg, #e7ddc4, #d8cbaa);
}
.headshot-placeholder.small {
  font-size: 1.1rem;
}
.headshot.small {
  width: 72px;
  height: 72px;
  flex: none;
}

.role-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}

/* ---------- TODO placeholders ---------- */
.todo {
  display: block;
  background: repeating-linear-gradient(
    135deg, #efe3c9, #efe3c9 10px, #e7d8b6 10px, #e7d8b6 20px
  );
  border: 1px dashed #b79a5e;
  color: #6b5320;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
}
.todo::before {
  content: "TODO — ";
  font-weight: 800;
}
.todo-inline {
  display: inline-block;
  background: #efe3c9;
  border: 1px dashed #b79a5e;
  color: #6b5320;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 2px 0;
}
.todo-inline::before { content: "TODO: "; font-weight: 800; }

/* ---------- Lists ---------- */
.check-list, .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.85;
}
.x-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.x-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-left: 2px solid #a99a78;
  border-bottom: 2px solid #a99a78;
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: 22px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h4 { margin-bottom: 0.4em; }
.faq-item p { color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Contact tiles ---------- */
.contact-tiles {
  display: grid;
  gap: 20px;
}
.contact-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.contact-tile h4 { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a { text-decoration: none; color: rgba(255,255,255,0.75); }
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.small-note { font-size: 0.85rem; color: var(--ink-soft); }
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .team-block { grid-template-columns: 140px 1fr; }
  .team-block-flip { grid-template-columns: 1fr 140px; }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 20px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; border-top: 1px solid var(--line); }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .main-nav .btn { margin-top: 14px; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .team-block { grid-template-columns: 1fr; }
  .team-block-flip .headshot { order: -1; }
  .headshot { width: 140px; margin: 0 auto; }
  .step { grid-template-columns: 36px 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .form-card { padding: 22px; }
  .strip { padding: 22px; }
}

/* ---------- Scroll reveal (subtle — applied by nav.js to sections below the hero) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .diff-item:hover { transform: none; }
}
