/* ============================================================
   IDAS — warm editorial design system
   Ivory paper, ink text, two partner accent colors.
   Built for readability first: large type, high contrast,
   generous spacing, obvious buttons.
   ============================================================ */

:root {
  /* Palette C: deep navy ground, tan ink, royal gold used sparingly */
  color-scheme: dark;
  --paper: #141c30;      /* page ground */
  --surface: #1c263d;    /* raised cards */
  --paper-deep: #18213a; /* inset panels */
  --ink: #e7dac0;        /* tan text */
  --ink-soft: #b6a98d;
  --gold: #c9a043;       /* royal gold: diamond, dividers, one hero rule */
  --line: #2a344c;       /* hairlines */

  --isaak: #9cbcd6;      /* Isaak's blue, lifted to read on navy */
  --isaak-soft: #2b3b58;
  --dylan: #d98f5f;
  --dylan-soft: #3a2e2e;

  --ok: #8cc49a;
  --warn-bg: #3d3624;
  --warn-ink: #f0d58a;

  --font-display: "Libre Caslon Display", Georgia, serif;  /* big headlines + wordmark (one weight, no italic) */
  --font-head: "Libre Caslon Text", Georgia, serif;        /* small headings + quotes (real bold and italic) */
  --font-body: Merriweather, Georgia, serif;

  --radius: 3px;
  --shadow: 0 1px 2px rgba(4, 7, 15, 0.35), 0 10px 28px rgba(4, 7, 15, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
}

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
body { font-synthesis: none; } /* never fake bold or italic */
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; margin-bottom: 0.35em; }

p { max-width: 62ch; }

a { color: var(--isaak); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--isaak);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.bar-links { display: flex; gap: 20px; white-space: nowrap; }
.bar-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  transition: color 0.15s ease;
}
.bar-links a:hover { color: var(--ink); }
.bar-cta { justify-self: end; }
.bar-cta .btn { white-space: nowrap; }
@media (max-width: 420px) { .bar-cta .btn { padding: 10px 16px; font-size: 0.95rem; } }
.wordmark {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--ink); line-height: 1.1;
}
.wordmark .mark {
  font-family: var(--font-display);
  font-weight: 400; font-size: 1.8rem;
  letter-spacing: 0.24em; margin-right: -0.24em; /* cancel trailing tracking */
}
.wordmark .sub {
  font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.16em;
  text-transform: uppercase; margin-top: 5px;
}
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-links, .wordmark .sub { display: none; }
  .wordmark { align-items: flex-start; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #f1e7d2; border-color: #f1e7d2; }
.btn:active { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(231, 218, 192, 0.08); border-color: var(--ink); }
.btn.isaak:hover { background: #b6cfe3; border-color: #b6cfe3; }
.btn.isaak { background: var(--isaak); border-color: var(--isaak); color: var(--paper); }
.btn.dylan { background: var(--dylan); border-color: var(--dylan); color: var(--paper); }
.btn.big { font-size: 1.15rem; padding: 18px 36px; }
.btn.full { display: block; width: 100%; text-align: center; }

/* ---------- hero: one centered column, headline -> body -> buttons ---------- */

.hero { padding: 0; }
.hero-inner {
  min-height: calc(84vh - 76px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 72px; padding-bottom: 64px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.08;
  max-width: 16ch; text-wrap: balance; margin: 0 auto 28px;
}
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 40px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Section divider — the logo's "line ◆ line" motif carried through the site */
.rule, .rule.thin {
  border: none; margin: 0 auto;
  width: 220px; height: 9px; position: relative;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 86px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 86px 1px no-repeat;
}
.rule::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- sections ---------- */

section { padding: 72px 0; }
section h2 { text-wrap: balance; text-align: center; max-width: 26ch; margin-left: auto; margin-right: auto; }
.intro { color: var(--ink-soft); font-size: 1.1rem; text-align: center; max-width: 60ch; margin: 0 auto; }
.practice, .steps, .faq, .promise { max-width: 52rem; margin-left: auto; margin-right: auto; }
.closing { margin-top: 44px; text-align: center; }

/* ---------- practice areas ---------- */

.practice { margin-top: 36px; border-top: 1px solid var(--line); }
.practice > div {
  display: grid; grid-template-columns: 250px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.practice dt { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.practice dd { color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 640px) { .practice > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- how it works steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.step .n {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 400;
  color: var(--ink-soft); line-height: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step .n { font-size: 2.2rem; }
}

.promise {
  margin-top: 40px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  font-size: 1.08rem;
}

/* ---------- partner doors ---------- */

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; margin-top: 40px; }
.door {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.door .role {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.door.isaak .role { color: var(--isaak); }
.door.dylan .role { color: var(--dylan); }
.door h3 { font-size: 1.8rem; }
.door .bio { color: var(--ink-soft); margin: 12px 0 20px; font-size: 1.02rem; }
.door ul { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.door li {
  padding: 10px 0 10px 34px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.door li:last-child { border-bottom: none; }
.door li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.door.isaak li::before { color: var(--isaak); }
.door.dylan li::before { color: var(--dylan); }

/* ---------- clients: credibility right under the first screen ---------- */

.clients { padding-top: 8px; }
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px;
  max-width: 60rem; margin: 36px auto 0; align-items: stretch;
}
/* while a full quote is open, let each card size to its own content */
.quotes:has(.full[open]) { align-items: start; }
.quote-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px 30px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.quote-card .pull {
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: 1.4rem; line-height: 1.3; text-wrap: pretty;
}
.quote-card figcaption { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.full { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.quote-card figcaption { margin-bottom: 18px; }
.full summary {
  list-style: none; cursor: pointer; color: var(--isaak); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.full summary::-webkit-details-marker { display: none; }
.full summary::after {
  content: ""; width: 11px; height: 11px;
  background:
    linear-gradient(var(--isaak), var(--isaak)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--isaak), var(--isaak)) center / 1.5px 100% no-repeat;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.full[open] summary::after { transform: rotate(45deg); }
.full summary:focus-visible { outline: 3px solid var(--isaak); outline-offset: 3px; border-radius: 2px; }
.full p { margin-top: 12px; font-size: 1.02rem; line-height: 1.65; max-width: none; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; margin-top: 32px; padding-top: 6px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  padding: 22px 8px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 2px 100% no-repeat;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--isaak); outline-offset: 2px; border-radius: 4px; }
.faq .a { padding: 0 8px 26px; color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px; margin-top: 40px;
  color: var(--ink-soft); font-size: 0.95rem;
}
.site-footer .wrap { display: flex; justify-content: center; gap: 24px 64px; flex-wrap: wrap; text-align: center; }
.foot-mark { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; letter-spacing: 0.24em; }

/* ---------- entrance animation (landing only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s ease both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.18s; }
  .rise.d3 { animation-delay: 0.3s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* static site: direct email under each partner's button */
.door .direct { margin: 10px 0 0; text-align: center; font-size: 0.95rem; color: var(--ink-soft); }
/* a lone partner card stays card-width instead of spanning the page */
.doors:has(> .door:only-child) { grid-template-columns: minmax(0, 36rem); justify-content: center; }


/* ---------- browser surfaces ---------- */
::selection { background: var(--gold); color: var(--paper); }
html { scrollbar-color: var(--line) var(--paper); accent-color: var(--isaak); }

/* paper language: cards share the hero card's near-square corners */
.door, .quote-card { border-radius: var(--radius); }
.door .role {
  text-transform: none; letter-spacing: 0.02em; font-weight: 600;
  font-family: var(--font-body); font-size: 0.95rem; margin: 4px 0 0;
}

/* ---------- approach + Isaak's note ---------- */
.approach-note { margin-top: 28px; font-size: 1rem; }
.note { margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note summary {
  list-style: none; cursor: pointer; padding: 14px 2px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-head); font-style: italic; font-size: 1.1rem; color: var(--ink);
}
.note summary::-webkit-details-marker { display: none; }
.note summary::after {
  content: ""; flex-shrink: 0; width: 13px; height: 13px;
  background:
    linear-gradient(var(--isaak), var(--isaak)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--isaak), var(--isaak)) center / 1.5px 100% no-repeat;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.note[open] summary::after { transform: rotate(45deg); }
.note summary:focus-visible { outline: 3px solid var(--isaak); outline-offset: 2px; border-radius: 2px; }
.note-body { padding: 4px 2px 18px; }
.note-body p { font-size: 0.98rem; line-height: 1.75; margin-bottom: 14px; color: var(--ink); }
.note-body .note-sign { font-family: var(--font-head); font-style: italic; color: var(--isaak); margin-bottom: 0; }
.door { scroll-margin-top: 100px; }
.note { scroll-margin-top: 110px; }

/* ---------- local focus: copy left, Indiana map right ---------- */
.local-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 60rem;
}
.local h2 { text-align: left; max-width: none; margin: 0 0 8px; }
.local-sub {
  font-family: var(--font-head); font-style: italic; font-size: 1.2rem;
  color: var(--isaak); margin-bottom: 22px;
}
.local-copy p:not(.local-sub) { color: var(--ink-soft); max-width: 52ch; margin-bottom: 14px; }
.local-copy .btn { margin-top: 12px; }
.local-map { margin: 0; }
.in-map { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; overflow: visible; }
.in-edge { fill: none; stroke: var(--ink-soft); stroke-width: 3.5; stroke-linejoin: round; }
.in-fill { fill: var(--surface); }
.in-county { fill: none; stroke: var(--line); stroke-width: 0.8; stroke-linejoin: round; }
.in-hl { fill: var(--gold); stroke: var(--paper); stroke-width: 1; stroke-linejoin: round; }
.in-lead { stroke: var(--ink-soft); stroke-width: 0.8; }
.in-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.in-label { fill: var(--ink); font-family: var(--font-body); font-size: 12.5px; font-weight: 700; }
.in-halo { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 5 5; }
@media (max-width: 760px) {
  .local-grid { grid-template-columns: 1fr; }
  .local h2, .local-copy { text-align: center; }
  .local-copy p:not(.local-sub) { margin-left: auto; margin-right: auto; }
  .in-map { max-width: 280px; }
}

/* ---------- contact form ---------- */
.contact-form {
  max-width: 44rem; margin: 32px auto 0; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.field em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--isaak); outline-offset: 1px; border-color: var(--isaak); }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.5em; color: var(--isaak); font-size: 0.98rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-alt { text-align: center; margin: 22px auto 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 560px) { .contact-form { padding: 22px; } .contact-form .btn { justify-self: stretch; } }

/* in-page jumps land below the sticky header */
section[id] { scroll-margin-top: 84px; }
