/* Essential CPA — warm paper, navy ink, one gold rule. */
:root {
  --field: #f7f3ea;
  --soft: #e9e1d0;
  --ink: #1b2e45;
  --ink-soft: #43586f;
  --call: #1b3a5c;
  --call-ink: #ffffff;
  --ghost: #1b2e45;
  --accent: #b98a2f;
  --kicker: #6e5212;
  --kicker-dark: #e8c96a;
  --hero-shade: #101c2c;

  --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-hero: 1.5s;
}

*,
*::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.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

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: 10;
  background: var(--field);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

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

/* Header — sticky, never animated. */
.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 var(--soft);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  gap: 1.4rem;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  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), border-color var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: var(--call-ink);
}
.btn-fill:hover {
  background: var(--ink);
}
.btn-ghost {
  border-color: 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: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

[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);
}

/* Hero — copy on the plate, left third quiet. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 28, 44, 0.84) 0%, rgba(16, 28, 44, 0.58) 44%, rgba(16, 28, 44, 0.06) 72%);
  pointer-events: none;
}
.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-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto 0 7vw;
  padding: 6rem 0;
  color: #ffffff;
}
.hero-copy .kicker {
  color: var(--kicker-dark);
}
.hero-copy h1 {
  color: #ffffff;
}
.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
}
.hero-actions .btn-fill {
  background: var(--call-ink);
  color: var(--call);
}
.hero-actions .btn-fill:hover {
  background: #ffffff;
}
.hero-actions .btn-ghost {
  color: #ffffff;
}

/* Sections. */
section {
  padding: 5.5rem 6vw;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 3rem;
}
.section-head::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
  margin-top: 1.4rem;
}

/* Services river. */
.river {
  display: grid;
  gap: 4.5rem;
  max-width: 72rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.river-row:nth-child(even) img {
  order: 2;
}
.river-row img {
  border-radius: 4px;
  background: var(--soft);
}
.river-text h3 {
  margin-bottom: 0.35em;
}
.river-text p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

/* About. */
#about {
  background: var(--soft);
}
.about-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.about-inner p {
  color: var(--ink);
}

.reviews,
.faq {
  padding: 5rem 6vw;
}

.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 42rem;
}

.faq-list details {
  border-top: 1px solid var(--accent);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--accent);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 52ch;
  color: var(--ink-soft);
}

/* Area + map. Never animate the map. */
.map-wrap {
  max-width: 72rem;
  border: 1px solid var(--soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--soft);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Contact. */
#contact {
  background: var(--ink);
  color: #ffffff;
}
#contact .section-head .kicker {
  color: var(--kicker-dark);
}
#contact .section-head h2 {
  color: #ffffff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 72rem;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.contact-line svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--kicker-dark);
}
.contact-line a {
  color: #ffffff;
  font-weight: 600;
}
.contact-sub {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  font-size: 0.95rem;
}
.contact-info > p:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form .btn-fill {
  background: var(--call-ink);
  color: var(--call);
  border: 0;
  cursor: pointer;
  justify-self: start;
  font: inherit;
  font-weight: 600;
}

/* Footer. */
.site-footer {
  padding: 2.5rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer p {
  margin: 0;
}

/* 390: image occupies the first screen; type overlaps only the bottom third
   so a face in the upper two-thirds stays visible. */
@media (max-width: 640px) {
  .site-header {
    gap: 0.8rem;
    padding: 0.7rem 1rem;
  }
  .site-header nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
    align-items: stretch;
  }

  .hero-img {
    object-position: 60% 18%;
  }

  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding: 1.3rem 1.2rem 1.2rem;
    background: linear-gradient(160deg, rgba(16, 28, 44, 0.92), rgba(16, 28, 44, 0.78));
    border-radius: 6px;
  }
  .hero-copy h1 {
    font-size: 1.9rem;
  }
  .hero-copy > p:not(.kicker):not(.hero-actions) {
    display: none;
  }
  .hero-copy p {
    font-size: 1rem;
  }
  .hero-actions .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .river {
    gap: 3rem;
  }
  .river-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .river-row:nth-child(even) img {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .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 {
    transform: none;
  }
}
