/* ============================================================
   Noblesville Tax Management — design system
   ============================================================ */

:root {
  --paper: #F7F4EE;
  --paper-dim: #EFEAE0;
  --ink: #1C1B19;
  --ink-soft: #58544C;
  --ink-faint: #6E6A5F;
  --accent: #B5502F;
  --accent-deep: #8A3B22;
  --accent-tint: #F0DDD2;
  --line: rgba(28, 27, 25, 0.12);
  --line-soft: rgba(28, 27, 25, 0.07);
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(28,27,25,0.04), 0 8px 24px -12px rgba(28,27,25,0.12);

  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--accent-tint); color: var(--accent-deep); }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  position: relative; z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
em, i.accent { font-style: italic; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 54ch;
}
p { color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  transition: all .18s ease; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFF9F3; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { font-family: var(--display); font-size: 20px; line-height: 1; color: var(--ink); white-space: nowrap; }
.brand-text small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-top: 3px; white-space: nowrap; }

nav.links { display: flex; align-items: center; gap: 24px; }
nav.links a.navlink {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 4px; white-space: nowrap;
}
nav.links a.navlink:hover { color: var(--ink); }
nav.links a.navlink.active { color: var(--ink); }
nav.links a.navlink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* "For Clients" dropdown */
.nav-drop { position: relative; }
.drop-toggle { font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.drop-toggle:hover { color: var(--ink); }
.drop-toggle .caret { font-size: 11px; transition: transform .15s ease; }
.nav-drop.open .caret { transform: rotate(180deg); }
.drop-menu::before { content: ""; position: absolute; top: -14px; left: -20px; right: -20px; height: 14px; }
.drop-menu { position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(28,27,25,.28);
  padding: 8px; min-width: 190px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease; }
.nav-drop.open .drop-menu, .nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop-menu a { font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 9px; white-space: nowrap; }
.drop-menu a:hover { background: var(--paper); }

.nav-toggle { display: none; }
.mobile-cta { display: none; }

@media (max-width: 940px) {
  header.site { position: sticky; }
  .nav { position: relative; }
  nav.links { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0; padding: 4px 20px 20px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 16px 32px -16px rgba(28,27,25,.18); max-height: calc(100vh - 64px); overflow-y: auto; }
  nav.links.open { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  nav.links a.navlink { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav-drop { width: 100%; }
  .drop-toggle { display: none; }
  .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; background: none; padding: 0; min-width: 0; border-radius: 0; }
  .drop-menu a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    font-size: 17px; color: var(--ink-soft); border-radius: 0; }
  .drop-menu a:hover { background: none; color: var(--ink); }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .mobile-cta { display: flex; margin-top: 16px; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; flex-shrink: 0; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 17px; }
}

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; padding-block: clamp(64px, 10vw, 120px); }
section.tight { padding-block: clamp(40px, 6vw, 72px); }
section.dark { background: var(--ink); color: var(--paper); }
section.dark .eyebrow { color: #E8A688; }
section.dark .eyebrow::before { background: #E8A688; }
section.dark h1, section.dark h2, section.dark h3 { color: #FBF7EF; }
section.dark p, section.dark .lede { color: #C9C4B8; }
section.dark .btn-ghost { border-color: rgba(255,255,255,.25); color: #FBF7EF; }
section.dark .btn-ghost:hover { border-color: #FBF7EF; }
section.tint { background: var(--paper-dim); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 14px; }

hr.rule { border: none; height: 1px; background: var(--line); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }

.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); margin-top: 8px;
}
.quote-card p.quote { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); margin-bottom: 18px; }
.quote-attr { display: flex; align-items: center; gap: 12px; }
.quote-attr .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: var(--sans); }
.quote-attr .who { font-size: 14px; }
.quote-attr .who b { display: block; font-weight: 600; color: var(--ink); }
.quote-attr .who span { color: var(--ink-faint); font-size: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(3, auto); gap: 48px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(1, auto); row-gap: 22px; }
}

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num { font-family: var(--display); font-size: 14px; color: var(--accent); margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon-tile svg { width: 20px; height: 20px; stroke: var(--accent-deep); }

/* dark cards on dark sections */
section.dark .card { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
section.dark .card h3 { color: #FBF7EF; }

/* ---------- Feature list rows ---------- */
.feature-row { display: flex; gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row .tag { flex-shrink: 0; width: 120px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { font-size: 14px; max-width: 60ch; }

/* ---------- Team / bio card ---------- */
.bio-card { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.bio-photo {
  aspect-ratio: 3/4; border-radius: 18px; background: linear-gradient(155deg, #2A2724, var(--ink));
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px;
}
.bio-photo::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(120% 90% at 20% 0%, rgba(181,80,47,.55), transparent 60%); }
.bio-photo .initials { position: relative; z-index: 1; font-family: var(--display); font-size: 3rem; color: #FBF7EF; }
@media (max-width: 700px) { .bio-card { grid-template-columns: 1fr; } .bio-photo { max-width: 200px; aspect-ratio: 1/1; } }

.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--paper-dim); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding-block: 20px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 1.15rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-family: var(--sans); font-size: 22px; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .a { padding-top: 12px; max-width: 68ch; font-size: 14px; }

/* ---------- Contact cards ---------- */
.contact-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 22px; }
.contact-tile .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
section.dark .contact-tile .label { color: #A69E8E; }
.contact-tile .value { font-family: var(--display); font-size: 1.25rem; margin-top: 6px; }

/* ---------- Form ---------- */
form.contact-form { display: grid; gap: 16px; max-width: 560px; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form.contact-form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--ink-faint); }
#form-status { font-size: 14px; margin-top: 4px; }
#form-status.ok { color: #4C7A4E; }
#form-status.err { color: var(--accent-deep); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #C9C4B8; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #E8A688; margin-bottom: 16px; }
.footer-grid a, .footer-grid li, .footer-grid span { font-size: 14px; color: #C9C4B8; margin-bottom: 10px; display: block; }
.footer-grid a:hover { color: #FBF7EF; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-text { color: #FBF7EF; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 12px; color: #8C8677; }

/* ---------- The Ledger ---------- */
.note-list { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.note-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .18s ease;
}
.note-card:hover { padding-inline: 12px; background: var(--paper-dim); }
.note-card-meta {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.note-card h3 { font-size: 1.6rem; margin: 8px 0 6px; }
.note-card p { font-size: 15px; color: var(--ink-soft); max-width: 68ch; }
.note-card-more {
  display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--accent-deep);
}
@media (max-width: 560px) { .note-card h3 { font-size: 1.35rem; } }

/* Headline and first paragraph belong to each other — the standard section
   rhythm puts far too much air between them on a reading page. */
.note-head { padding-bottom: 0; }
.note-body-section { padding-top: clamp(28px, 4vw, 44px); }
.note-head .eyebrow a { color: inherit; }
.note-head .eyebrow a:hover { color: var(--accent-deep); }
.note-meta {
  margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* The reading column. Measure is the whole design here — everything else is
   restraint. */
.note-body { max-width: 66ch; }
.note-body > p { margin-bottom: 20px; font-size: 17px; line-height: 1.72; }
.note-body h3 { font-size: 1.45rem; margin: 40px 0 12px; }
.note-body ul, .note-body ol { margin: 0 0 20px 22px; }
.note-body ul { list-style: disc; }
.note-body ol { list-style: decimal; }
.note-body li { margin-bottom: 10px; font-size: 17px; line-height: 1.7; }
.note-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.note-body blockquote {
  margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.3rem; line-height: 1.4;
}
.note-body em { font-style: italic; }

.note-video {
  position: relative; aspect-ratio: 16 / 9; margin-bottom: 32px;
  border-radius: 14px; overflow: hidden; background: var(--ink);
  box-shadow: var(--shadow);
}
.note-video iframe, .note-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.note-foot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
}
.note-foot p { font-size: 14px; color: var(--ink-faint); max-width: 62ch; }
.note-back { margin-top: 36px; font-size: 14px; font-weight: 600; }
.note-back a:hover { color: var(--accent-deep); }

/* ---------- Utility ---------- */
.mt-0{margin-top:0} .center{text-align:center;margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:10px 16px;z-index:100}
.skip-link:focus{left:12px;top:12px}
