/* Premier Accounting Group — warm paper, deep ink, one brass call pill. */
:root {
  --field: #faf6ec;
  --field-deep: #f3ecdb;
  --ink: #1e3329;
  --ink-soft: #33473d;
  --call: #c79a3b;
  --call-ink: #1e3329;
  --ghost: #faf6ec;
  --accent: #8a6414;
  --hairline: #ded4be;
  --night: #1e3329;
  --night-ink: #faf6ec;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, 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);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;

  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

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: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

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

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

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

/* Header: wordmark left, jumps, Call as a solid pill. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.8rem 4vw;
  background: rgba(250, 246, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a {
  text-decoration: none;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  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: var(--call-ink);
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ghost);
}
.call-nowrap {
  white-space: nowrap;
}

.site-header .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
}

/* 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);
}

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

/* Hero: full-bleed plate, copy on the image. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: max(640px, 100dvh);
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 62% 30%;
  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(92deg, rgba(24, 40, 32, 0.9) 0%, rgba(24, 40, 32, 0.62) 46%, rgba(24, 40, 32, 0.12) 72%, rgba(24, 40, 32, 0) 88%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto 0 6vw;
  padding: 5rem 2rem 5rem 0;
  color: var(--night-ink);
}
.hero-copy .kicker {
  color: var(--call);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
}

/* Sections. */
section {
  scroll-margin-top: 5.5rem;
}

.services,
.how,
.faq {
  padding: 5rem 6vw;
  max-width: calc(var(--max) + 12vw);
  margin: 0 auto;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

/* Services river: illustration one half, copy the other, flipping each row. */
.river {
  display: grid;
  gap: 3.5rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.river-row.flip figure {
  order: 2;
}
.river-row figure {
  margin: 0;
  background: var(--field-deep);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
.river-row h3 {
  margin-bottom: 0.35em;
}
.river-row p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
}

/* About. */
.about {
  background: var(--field-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 5rem 6vw;
}
.about-inner {
  max-width: 42rem;
  margin: 0 auto;
}

/* How it works. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.steps h3 {
  font-size: 1.15rem;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* FAQ. */
.faq-list {
  max-width: 42rem;
}
.faq-list details {
  border-top: 1px solid var(--ink);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--ink);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out-circ);
}
.faq-list summary:hover {
  color: var(--accent);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

/* Area. */
.area {
  padding: 0 6vw 5rem;
  max-width: calc(var(--max) + 12vw);
  margin: 0 auto;
}
.area-inner {
  max-width: 38rem;
}

/* Map: never animated, tappable on paint. */
.visit {
  padding: 0 6vw 5rem;
  max-width: calc(var(--max) + 12vw);
  margin: 0 auto;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  display: block;
}

/* Contact band. */
.contact {
  background: var(--night);
  color: var(--night-ink);
  padding: 5rem 6vw;
}
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact .kicker {
  color: var(--call);
}
.contact address {
  font-style: normal;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.contact a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contact form {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.contact label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.contact input,
.contact textarea {
  font: inherit;
  color: var(--night-ink);
  background: transparent;
  border: 1px solid rgba(250, 246, 236, 0.45);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--call);
  outline-offset: 2px;
}
.contact .btn-fill {
  justify-self: start;
  border: 0;
  cursor: pointer;
  margin-top: 0.4rem;
}
.form-note {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0.4rem 0 0;
}

/* Footer. */
.site-footer {
  background: var(--night);
  color: var(--night-ink);
  border-top: 1px solid rgba(250, 246, 236, 0.2);
  padding: 2rem 6vw 2.5rem;
  font-size: 0.92rem;
}
.site-footer p {
  max-width: var(--max);
  margin: 0 auto 0.4rem;
}

/* Motion hooks. */
[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);
}

[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. Hero copy pins to the bottom third. */
@media (max-width: 860px) {
  .river-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .river-row.flip figure {
    order: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.6rem 0.8rem;
    padding: 0.7rem 4vw;
  }
  .brand {
    font-size: 1rem;
  }
  .site-header .btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.86rem;
  }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    gap: 1rem;
    font-size: 0.9rem;
    overflow-x: auto;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(24, 40, 32, 0) 0%, rgba(24, 40, 32, 0.18) 42%, rgba(24, 40, 32, 0.88) 68%, rgba(24, 40, 32, 0.94) 100%);
  }
  .hero-img {
    object-position: 68% 12%;
  }
  .hero-copy {
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding: 1.25rem 1.15rem 1.1rem;
    max-width: none;
  }
  .hero-copy h1 {
    font-size: 1.65rem;
  }
  /* Tall copy would cover the face: on 390 the H1 plus the Call control
     carry the first screen, the body paragraph stays in the markup. */
  .hero-copy > p:nth-of-type(2) {
    display: none;
  }
  .hero-actions .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .services,
  .how,
  .faq {
    padding: 3.5rem 6vw;
  }
  .map-wrap iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover,
  .faq-list summary:hover {
    transform: none;
  }
  .link-underline::after {
    transform: scaleX(1);
  }
}
