/* ==========================================================================
   Thielen Tax & Accounting, LLC — site styles
   Palette drawn from the firm logo: brand green, near-black, white.
   System font stacks only: zero font downloads = fast Core Web Vitals.
   ========================================================================== */

:root {
  --green: #00915b;
  --green-dark: #007249;
  --green-tint: #e9f5ef;
  --ink: #171717;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --paper-warm: #f7f7f4;
  --rule: #e2e2dc;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }

p { margin: 0 0 1em; }

a { color: var(--green-dark); }
a:hover { color: var(--green); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-dark); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header ---------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #9fdcc1; }

.site-header {
  border-bottom: 3px solid var(--green);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 68px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 58px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green-dark); }
.site-nav a[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--green); }

/* Hero ------------------------------------------------------------------ */

.hero { background: var(--paper-warm); border-bottom: 1px solid var(--rule); padding: 3.5rem 0; }
.hero .wrap { max-width: 52rem; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); }
.hero h1 span { color: var(--green-dark); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border: 2px solid var(--green); color: var(--green-dark); }
.btn-ghost:hover { background: var(--green-tint); }

/* Sections -------------------------------------------------------------- */

.section { padding: 3rem 0; }
.section-alt { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2:first-child, .section .wrap > h2:first-child { margin-top: 0; }

.kicker {
  display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin-top: 1.5rem; }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--green);
  border-radius: 6px; padding: 1.4rem 1.5rem;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0.5rem; color: var(--ink-soft); font-size: 0.98rem; }
.card a { font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

/* Contact / NAP --------------------------------------------------------- */

.nap { font-style: normal; line-height: 1.8; }
.nap strong { font-family: var(--serif); font-size: 1.1rem; }
.nap a { font-weight: 600; }

.contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }

.map-frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

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

.faq details {
  border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 0.8rem;
  background: var(--paper);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 1rem 1.25rem;
  font-family: var(--serif);
}
.faq summary:hover { color: var(--green-dark); }
.faq details[open] summary { border-bottom: 1px solid var(--rule); color: var(--green-dark); }
.faq details > div { padding: 1rem 1.25rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band -------------------------------------------------------------- */

.cta-band { background: var(--green-dark); color: #fff; padding: 2.75rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 0.4em; }
.cta-band p { color: #d9efe5; max-width: 40rem; margin: 0 auto 1.4rem; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); }
.cta-band .btn-primary:hover { background: var(--green-tint); }
.cta-band a.phone-link { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.3rem; }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #cfcfcf; padding: 2.75rem 0 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 0.7rem; }
.site-footer a { color: #9fdcc1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal { border-top: 1px solid #333; margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; color: #9a9a9a; grid-column: 1 / -1; }

/* Small screens ---------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .topbar .wrap { justify-content: center; }
  .hero { padding: 2.5rem 0; }
}
