/* The Kline Law Firm — base typography and texture.
   Pairs with assets/theme.js. Keeps every page on the same warm tone. */

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #33302C;
  background: #FBF7F2;
  -webkit-font-smoothing: antialiased;
}

/* Soft serif, sentence case, generous line height.
   Deliberately NOT uppercase — all-caps is what read as corporate. */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
  letter-spacing: -0.012em;
  line-height: 1.15;
  font-weight: 600;
}

/* Body copy wants room to breathe so it reads as a conversation, not a brief */
p { line-height: 1.75; }

/* Small label above a heading. Lowercase-friendly, lightly spaced. */
.eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C07B57;
}

/* Hand-drawn-feeling underline instead of a hard 4px bar */
.squiggle {
  display: block;
  width: 108px;
  height: 10px;
  margin: 1.25rem auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 10'%3E%3Cpath d='M2 7c14-5 28 2 42-1s26-5 40 1' fill='none' stroke='%2355A098' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.squiggle-left { margin-left: 0; margin-right: 0; }

/* Buttons: pill shaped and soft, not square and sharp */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-primary { background: #55A098; color: #fff; box-shadow: 0 6px 18px rgba(85,160,152,0.28); }
.btn-primary:hover { background: #3F7C75; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid #55A098; color: #3F7C75; background: transparent; }
.btn-ghost:hover { background: #55A098; color: #fff; }
.btn-onteal { background: #fff; color: #3F7C75; }
.btn-onteal:hover { background: #33302C; color: #fff; }
.btn-ondark { border: 1.5px solid rgba(255,255,255,0.75); color: #fff; }
.btn-ondark:hover { background: #fff; color: #33302C; }

/* Hero overlay: warm and light enough to still see the people in the video */
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(47,91,86,0.42) 0%, rgba(51,48,44,0.62) 100%);
}

/* Cards lift gently on hover rather than snapping to a hard border */
.card {
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(51,48,44,0.07), 0 24px 56px rgba(51,48,44,0.09);
}

/* Anchor-link pages (what-we-do) need room under the sticky header */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 104px; }

/* Long-form article body: wider leading, warm rhythm */
.prose-warm p { color: #6E655C; font-size: 1.0625rem; margin-bottom: 1.25rem; }
.prose-warm h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.prose-warm h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.prose-warm ul { margin: 0 0 1.25rem 0; padding-left: 0; list-style: none; }
.prose-warm ul li {
  color: #6E655C; margin-bottom: 0.7rem; padding-left: 1.75rem; position: relative; line-height: 1.7;
}
.prose-warm ul li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 9999px; background: #55A098;
}
.prose-warm strong { color: #33302C; font-weight: 600; }
.prose-warm a:not(.btn) { color: #3F7C75; text-decoration: underline; text-underline-offset: 2px; }
.prose-warm a.btn { text-decoration: none; }

/* ---------- Article infographics ----------
   Built in HTML/CSS, not generated images: no typo risk on legal content,
   crisp at any zoom, readable by screen readers, searchable by Google,
   and editable without regenerating anything. */

.ig {
  margin: 2.5rem 0;
  border: 1px solid #E8DDD0;
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(51,48,44,0.05), 0 12px 32px rgba(51,48,44,0.06);
}
.ig-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E8DDD0;
  background: #FBF7F2;
}
.ig-head h4 {
  font-size: 1.125rem;
  margin: 0;
  color: #33302C;
}
.ig-head p { margin: 0.35rem 0 0; font-size: 0.9375rem; color: #6E655C; line-height: 1.5; }

/* two-column comparison */
.ig-compare { display: grid; grid-template-columns: 1fr 1fr; }
.ig-col { padding: 1.5rem; }
.ig-col + .ig-col { border-left: 1px solid #E8DDD0; }
.ig-col h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem; font-weight: 600; margin: 0 0 0.25rem; color: #33302C;
}
.ig-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 9999px; margin-bottom: 0.9rem;
}
.ig-tag-teal { background: #DDEDEA; color: #3F7C75; }
.ig-tag-clay { background: rgba(192,123,87,0.12); color: #C07B57; }
.ig-col ul { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.ig-col ul li {
  font-size: 0.9375rem; color: #6E655C; line-height: 1.5;
  padding-left: 1.4rem; margin-bottom: 0.55rem; position: relative;
}
.ig-col ul li::before {
  content: ''; position: absolute; left: 0; top: 0.52em;
  width: 6px; height: 6px; border-radius: 9999px; background: currentColor; opacity: 0.45;
}
.ig-note {
  padding: 1rem 1.5rem; background: #F3EBE1;
  font-size: 0.9375rem; color: #6E655C; line-height: 1.6;
  border-top: 1px solid #E8DDD0;
}
.ig-note strong { color: #33302C; }

/* numbered steps */
.ig-steps { padding: 0.5rem 0; }
.ig-step { display: flex; gap: 1rem; padding: 1.1rem 1.5rem; align-items: flex-start; }
.ig-step + .ig-step { border-top: 1px solid #E8DDD0; }
.ig-num {
  flex: 0 0 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: #55A098; color: #fff;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.0625rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ig-step-body h5 { font-size: 1.0625rem; font-weight: 600; margin: 0.25rem 0 0.3rem; color: #33302C; font-family: 'Inter', sans-serif; }
.ig-step-body p { font-size: 0.9375rem; color: #6E655C; margin: 0; line-height: 1.6; }

@media (max-width: 640px) {
  .ig-compare { grid-template-columns: 1fr; }
  .ig-col + .ig-col { border-left: 0; border-top: 1px solid #E8DDD0; }
}

/* checklist variant */
.ig-check { padding: 0.5rem 0; }
.ig-check li {
  list-style: none; display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 1.5rem; font-size: 0.9375rem; color: #6E655C; line-height: 1.55;
}
.ig-check li + li { border-top: 1px solid #E8DDD0; }
.ig-check ul { margin: 0; padding: 0; }
.ig-check svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; color: #55A098; margin-top: 0.1rem; }

/* number / math breakdown */
.ig-math { padding: 0.5rem 1.5rem 1.25rem; }
.ig-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.8rem 0; border-bottom: 1px dashed #E8DDD0;
}
.ig-row:last-of-type { border-bottom: 0; }
.ig-row .lbl { font-size: 0.9375rem; color: #6E655C; line-height: 1.4; }
.ig-row .val {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem;
  font-weight: 600; color: #33302C; white-space: nowrap;
}
.ig-row.total { border-top: 2px solid #33302C; border-bottom: 0; margin-top: 0.4rem; padding-top: 0.9rem; }
.ig-row.total .val { color: #3F7C75; font-size: 1.5rem; }
.ig-row.good .val { color: #3F7C75; }

/* ---- infographics inside .prose-warm ----
   The article list styling must not leak into an infographic: it was adding a
   second bullet next to the checkmarks and forcing the article's indent. */
.prose-warm .ig ul li { padding-left: 0; margin-bottom: 0; }
.prose-warm .ig ul li::before { content: none; }

/* re-assert the infographic's own list treatment at higher specificity */
.prose-warm .ig .ig-col ul li {
  padding-left: 1.4rem; margin-bottom: 0.55rem;
  font-size: 0.9375rem; color: #6E655C; line-height: 1.5;
}
.prose-warm .ig .ig-col ul li::before {
  content: ''; position: absolute; left: 0; top: 0.52em;
  width: 6px; height: 6px; border-radius: 9999px; background: currentColor; opacity: 0.45;
}
.prose-warm .ig .ig-check li {
  padding: 0.85rem 1.5rem; display: flex; gap: 0.85rem; align-items: flex-start;
}
