/* Knoxville Bookkeeping — rebuilt from the live Duda site.
   Palette + type match the original: Sora headings, Source Sans body,
   olive green accent on charcoal/white. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --green: #a3b864;
  --green-dark: #8ea354;
  --charcoal: #2f3330;
  --ink: #000;
  --paper: #fff;
  --mist: #f4f4f4;
  --line: #e3e3e3;
  --heading: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.15; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* Buttons — green pill, matching original */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 50px;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn .arrow { display: inline-block; margin-left: 6px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  max-width: 1500px;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 96px;
  transition: min-height 0.25s ease;
}
.logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.logo img { width: 78px; height: 60px; object-fit: contain; transition: width 0.25s ease, height 0.25s ease; }
/* shrink on scroll (class toggled in main.js) */
.site-header.shrunk .wrap { min-height: 64px; }
.site-header.shrunk .logo img { width: 58px; height: 44px; }
.main-nav { display: flex; align-items: center; gap: 36px; margin: 0 auto; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: #fff; }
.header-cta { margin-left: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; stroke: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 72px 0 88px;
  background: var(--charcoal);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.55;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  margin-bottom: 24px;
}
.hero .sponsored { font-size: 1.15rem; margin-bottom: 20px; }
.hero .sponsored a { color: var(--green); text-decoration: none; }
.hero .lede { font-size: 1.2rem; max-width: 40rem; margin-bottom: 40px; }
.stats { display: flex; gap: 56px; flex-wrap: wrap; }
.stat .num {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--green);
}
.stat .label { font-family: var(--heading); font-weight: 600; font-size: 1.05rem; color: #fff; }

/* Lead form card */
.lead-card {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 48px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.lead-card h2, .lead-card h3 { font-size: 1.9rem; text-align: center; margin-bottom: 8px; }
.lead-card .sub { text-align: center; color: rgba(0, 0, 0, 0.6); margin-bottom: 28px; }
.lead-card .lead-card-cta { display: block; width: 80%; margin: 24px auto 0; text-align: center; }
.lead-card .lead-card-alt { margin: 18px 0 0; }
.lead-card .lead-card-alt a { color: var(--green-dark); font-weight: 600; text-decoration: none; }

/* Coraline embedded form (lazy-loaded by main.js) */
.coraline-form__placeholder {
  border: 2px dashed var(--green);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
}
.coraline-form__placeholder p { margin-bottom: 12px; }
.coraline-form__placeholder strong { font-family: var(--heading); font-size: 1.3rem; }
.coraline-form__load-btn { margin-top: 12px; }

/* ---------- Services strip ---------- */
.services-strip { padding: 88px 0 64px; }
.services-strip h2 { font-size: 2.4rem; margin-bottom: 48px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
}
.services-grid li { display: flex; align-items: center; gap: 16px; }
.services-grid .ico {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.services-grid .ico svg { stroke: #fff; }
.services-grid a {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}
.services-grid a:hover { color: var(--green-dark); }

/* ---------- Text sections ---------- */
.prose-section { padding: 56px 0; }
.prose-section.tint { background: var(--mist); }
.prose-section h2 { font-size: 2.2rem; margin-bottom: 24px; }
.prose-section .wrap { max-width: 1000px; }
.prose-section p + p { margin-top: 20px; }
.prose-section.centered { text-align: center; }

.why-list { max-width: 1000px; }
.why-block { padding: 36px 0; }
.why-block h2 { font-size: 1.9rem; margin-bottom: 16px; }

/* ---------- Service detail rows ---------- */
.service-row { padding: 64px 0; }
.service-row:nth-of-type(even) { background: var(--mist); }
.service-row .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-row.flip .media { order: 2; }
.service-row .media img { border-radius: 10px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-row h2 { font-size: 2.1rem; margin-bottom: 20px; }
.service-row p { margin-bottom: 28px; }

/* ---------- Parallax band ---------- */
.parallax-band {
  height: 328px;
  background: url("../images/parallax-band.jpg") center/cover no-repeat;
  background-attachment: fixed;
}

/* ---------- Steps ---------- */
.steps {
  padding: 88px 0;
  background:
    linear-gradient(rgba(47, 51, 48, 0.88), rgba(47, 51, 48, 0.88)),
    url("../images/steps-bg.jpg") center/cover no-repeat var(--charcoal);
  color: #fff;
}
.steps .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.steps .steps-heading h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.steps .steps-heading .accent { color: var(--green); display: block; }
.steps ol { list-style: none; display: grid; gap: 48px; }
.steps li { display: grid; grid-template-columns: 84px 1fr; gap: 28px; }
.steps .n {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 3.4rem;
  color: var(--green);
  line-height: 1;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 12px; }
.steps p { color: rgba(244, 244, 244, 0.8); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 88px 0; }
.testimonials .kicker { text-align: center; font-family: var(--heading); font-weight: 600; color: var(--green-dark); margin-bottom: 8px; }
.testimonials h2 { text-align: center; font-size: 2.4rem; margin-bottom: 56px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testi-card {
  background: var(--mist);
  border-radius: 10px;
  padding: 40px 32px;
  text-align: center;
}
.testi-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}
.testi-card .quote-mark { color: var(--green); margin: 0 auto 12px; width: 28px; }
.testi-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.testi-card blockquote { font-style: normal; color: rgba(0, 0, 0, 0.75); }

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; background: var(--mist); }
.faq h2 { font-size: 2.4rem; margin-bottom: 48px; text-align: center; }
.faq .qa { max-width: 860px; margin: 0 auto 36px; }
.faq h3 { font-size: 1.35rem; margin-bottom: 10px; }
.faq p { color: rgba(0, 0, 0, 0.8); }

/* ---------- CTA band ---------- */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: 2.4rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #fff; padding: 64px 0 32px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h3 { font-family: var(--heading); font-size: 1.15rem; margin-bottom: 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .foot-logo img { width: 90px; height: 70px; object-fit: contain; margin-bottom: 16px; }
.social-row { display: flex; gap: 16px; list-style: none; }
.social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 244, 244, 0.64);
  border-radius: 50%;
}
.social-row a:hover { border-color: var(--green); }
.social-row svg { stroke: currentColor; }
.site-footer address { font-style: normal; color: rgba(244, 244, 244, 0.8); }
.site-footer address p + p { margin-top: 16px; }
.foot-nav ul { list-style: none; display: grid; gap: 12px; }
.foot-bottom {
  border-top: 1px solid rgba(244, 244, 244, 0.2);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.95rem;
  color: rgba(244, 244, 244, 0.64);
}
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Interior page heroes ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 96px 0 110px;
  background: var(--charcoal);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-img) center/cover no-repeat;
  opacity: 0.5;
}
.page-hero .wrap { position: relative; max-width: 1000px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 24px; }
.page-hero p { max-width: 46rem; font-size: 1.2rem; }

/* About page */
.about-story { padding: 88px 0; }
.about-story .kicker { font-family: var(--heading); letter-spacing: 0.35em; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.about-story h1 { color: var(--green); font-size: clamp(3rem, 7vw, 4.6rem); margin-bottom: 56px; }
.about-story .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-story .grid img { border-radius: 10px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-story p + p { margin-top: 20px; }
.about-apart { padding: 24px 0 88px; }
.about-apart .kicker { font-family: var(--heading); letter-spacing: 0.35em; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.apart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 56px; }
.apart-stat { text-align: center; }
.apart-stat .stat-caption { font-family: var(--heading); font-weight: 600; color: rgba(0, 0, 0, 0.6); }
.apart-stat .stat-num {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  color: var(--green);
  line-height: 1.1;
}
.about-banner {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 24px;
  background: var(--charcoal);
}
.about-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/about-2.jpg") center/cover no-repeat;
  opacity: 0.45;
}
.about-banner > * { position: relative; }
.about-banner h2 { font-size: 2.4rem; margin-bottom: 20px; }
.about-banner p { max-width: 44rem; margin: 0 auto 32px; }
.about-banner .btn + .btn { margin-left: 16px; }

/* Contact page */
.contact-hero {
  position: relative;
  background: var(--charcoal);
}
.contact-hero .photo {
  position: absolute;
  inset: 0;
  background: url("../images/contact-hero.jpg") center/cover no-repeat;
}
.contact-hero .panel {
  position: relative;
  background: #fff;
  max-width: 720px;
  margin-right: 40%;
  padding: 96px 64px;
}
.contact-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 24px; }
.contact-hero p { margin-bottom: 36px; }
.contact-main { padding: 88px 0; }
.contact-main .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info .kicker { font-family: var(--heading); letter-spacing: 0.3em; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 32px; }
.contact-info h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.contact-info address { font-style: normal; }
.contact-info table { border-collapse: collapse; }
.contact-info td { padding: 4px 24px 4px 0; }

/* Blog */
.blog-page { padding: 96px 0; min-height: 40vh; }
.blog-page h1 { font-size: 2.6rem; margin-bottom: 24px; }

/* Legal pages */
.legal-page { padding: 72px 0; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal-page .updated { color: rgba(0,0,0,0.55); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal-page p + p, .legal-page ul { margin-top: 12px; }
.legal-page ul { padding-left: 24px; }
.legal-page a { color: var(--green-dark); }

/* 404 */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 3rem; margin-bottom: 16px; }
.error-page p { margin-bottom: 32px; }

/* Mobile click-to-call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--green);
  text-align: center;
  padding: 14px;
}
.call-bar a {
  color: #fff;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* Breadcrumbs */
.crumbs { font-size: 0.95rem; padding: 20px 0 0; color: rgba(0,0,0,0.6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--green-dark); }
.page-hero .crumbs, .steps .crumbs { color: rgba(244,244,244,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .contact-hero .panel { margin-right: 15%; }
}
@media (max-width: 820px) {
  .hero .wrap, .steps .wrap, .service-row .wrap,
  .about-story .grid, .contact-main .wrap, .apart-grid { grid-template-columns: 1fr; }
  .service-row.flip .media { order: 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .call-bar { display: block; }
  body { padding-bottom: 56px; }
  .contact-hero .photo { position: static; height: 220px; }
  /* iOS Safari can't do fixed background-attachment */
  .parallax-band { background-attachment: scroll; height: 240px; }
  .contact-hero .panel { margin: 0; padding: 48px 24px; max-width: none; }
  .services-grid { grid-template-columns: 1fr; }
}
