/* William H. Downs, CPA — warm paper, deep green ink, gold rules. */
:root {
  --field: #faf6ee;
  --field-deep: #f1e9d8;
  --ink: #1c2a23;
  --muted: #4a5d52;
  --call: #1e5b3c;
  --call-deep: #15432c;
  --ghost: #1c2a23;
  --accent: #c19a2e;
  --hero-kicker: #ebd9a0;
  --hero-shade: #121e18;
  --footer-bg: #14231b;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--call);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--field);
  padding: 0.5rem 1rem;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--call);
  margin: 0 0 0.9em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), transform var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: #ffffff;
}
.btn-fill:hover {
  background: var(--call-deep);
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ghost);
}
.call-nowrap {
  white-space: nowrap;
}

/* Signature flourish: underline grows from the left. */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Header: wordmark left, jumps, Call pill. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 4vw;
  background: var(--field);
  border-bottom: 1px solid rgba(28, 42, 35, 0.14);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.site-header nav {
  display: flex;
  gap: 1.4rem;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}
.site-header .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* Hero: full-bleed plate, copy on the image over a green slab. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero.is-in .hero-img,
.hero-img.is-in {
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 30, 24, 0.86) 0%, rgba(18, 30, 24, 0.62) 46%, rgba(18, 30, 24, 0.12) 78%),
    linear-gradient(0deg, rgba(18, 30, 24, 0.45) 0%, rgba(18, 30, 24, 0) 30%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 6rem 6vw;
  color: #ffffff;
}
.hero-copy .kicker {
  color: var(--hero-kicker);
}
.hero-copy h1 {
  color: #ffffff;
}
.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
}
.hero-proof {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 0.8rem;
  margin: 0.4em 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6em 0 0;
}
.hero-actions .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

/* Sections. */
section {
  padding: 5rem 6vw;
}
.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.section-head::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--accent);
  margin-top: 1.2rem;
}

/* Services river: illustration one half, copy the other, flipping rows. */
.river {
  display: grid;
  gap: 3.5rem;
  max-width: 68rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.river-row.flip .river-media {
  order: 2;
}
.river-media {
  margin: 0;
}
.river-media img {
  width: 100%;
  border: 1px solid rgba(28, 42, 35, 0.16);
  border-radius: 4px;
}
.river-text h3 {
  margin-bottom: 0.35em;
}
.river-text p {
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}

/* About. */
#about {
  background: var(--field-deep);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  max-width: 68rem;
}
.about-grid .section-head {
  margin-bottom: 0;
}
.about-body p {
  max-width: 44ch;
}
.credential {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* FAQ + reviews share the roomy section rhythm. */
.reviews,
.faq {
  padding: 5rem 6vw;
}
.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.review-carousel .review-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}
.review-slide blockquote {
  margin: 0;
  max-width: 40rem;
}
.review-slide p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
}
.review-slide footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}
.review-slide cite {
  font-style: normal;
  font-weight: 600;
}
.review-nav {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.review-prev,
.review-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-circ);
}
.review-prev:hover,
.review-next:hover {
  transform: translate3d(0, -2px, 0);
}
.review-dots {
  display: flex;
  gap: 0.45rem;
}
.review-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  cursor: pointer;
}
.review-dots button[aria-current="true"] {
  opacity: 1;
}
.review-carousel.is-carousel .review-viewport {
  overflow: hidden;
}
.review-carousel.is-carousel .review-track {
  display: flex;
  gap: 0;
  transition: transform var(--dur-enter) var(--ease-out-expo);
}
.review-carousel.is-carousel .review-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.review-carousel.is-carousel .review-nav {
  display: flex;
}

.faq-list {
  max-width: 40rem;
}
.faq-list details {
  border-top: 1px solid rgba(28, 42, 35, 0.3);
}
.faq-list details:last-child {
  border-bottom: 1px solid rgba(28, 42, 35, 0.3);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 46ch;
  color: var(--muted);
}

/* Area + map. */
#area p {
  max-width: 44ch;
}
.map {
  margin-top: 2rem;
  max-width: 68rem;
  border: 1px solid rgba(28, 42, 35, 0.16);
  border-radius: 4px;
  overflow: hidden;
}
.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Contact. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  max-width: 68rem;
}
.contact-grid address {
  font-style: normal;
}
.contact-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
#contact-form {
  display: grid;
  gap: 0.6rem;
  max-width: 30rem;
}
#contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}
#contact-form input,
#contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(28, 42, 35, 0.4);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
#contact-form input:focus-visible,
#contact-form textarea:focus-visible {
  outline: 2px solid var(--call);
  outline-offset: 2px;
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer. */
.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 246, 238, 0.92);
  padding: 2.5rem 6vw;
}
.site-footer p {
  margin: 0 0 0.4em;
  max-width: none;
}
.site-footer a {
  color: #ffffff;
}

/* Sticky Call dock: the easiest tap on a narrow screen. */
.call-dock {
  display: none;
}

/* Reveal. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* A block of copy that belongs together: the container holds still and its
   children come in one after another, top first. motion.js sets the delays. */
[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Narrow: same brand, narrower. Illustration above its text, same order. */
@media (max-width: 750px) {
  .site-header nav {
    display: none;
  }
  .site-header {
    gap: 1rem;
  }
  .site-header .btn {
    margin-left: auto;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-img {
    object-position: 72% center;
  }
  .hero-copy {
    padding: 5rem 6vw 6.5rem;
  }
  section {
    padding: 3.5rem 6vw;
  }
  .river-row,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .river-row.flip .river-media {
    order: 0;
  }
  .map iframe {
    height: 280px;
  }
  .call-dock {
    display: inline-block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 6;
    text-align: center;
    padding: 0.9rem 1rem;
  }
  body {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover,
  .review-prev:hover,
  .review-next:hover {
    transform: none;
  }
  .review-carousel.is-carousel .review-track {
    transition: none;
  }
}
