/* Denis Accounting and Tax — warm paper, evergreen ink, one gold Call pill. */
:root {
  --field: #faf7f1;
  --ink: #20302a;
  --call: #c39a2b;
  --ghost: #20302a;
  --accent: #2e5e4e;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "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.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h2 {
  font-size: clamp(1.7rem, 3.2vw, 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);
  padding: 0.5rem 1rem;
}

:focus-visible {
  outline: 2px solid var(--call);
  outline-offset: 3px;
}

/* Type for chrome: kickers, nav, buttons, labels. */
.kicker,
.site-header nav a,
.btn,
.contact-label,
.form-note,
.footer-small {
  font-family: var(--font-ui);
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  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: var(--ink);
}
.btn-fill:hover {
  background: #d2a93c;
}
.btn-ghost {
  border-color: currentColor;
  color: var(--ghost);
  background: transparent;
}
.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);
}

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

/* Header: wordmark left, jumps, Call as a solid pill. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 4vw;
  background: rgba(250, 247, 241, 0.94);
  border-bottom: 1px solid rgba(32, 48, 42, 0.14);
}

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

.brand-short {
  display: none;
}

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

.site-header nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header .btn {
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
}

/* Hero: full-bleed plate, frosted copy slab. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 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: 35rem;
  margin: 0 5vw 9vh;
  padding: 1.9rem 2rem 1.7rem;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(32, 48, 42, 0.16);
  border-radius: 6px;
}
.hero-copy h1 {
  margin-bottom: 0.35em;
}
.hero-copy > p {
  margin-bottom: 0.9em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1em 0 0.9em;
}
.hero-proof {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  padding-top: 0.8em;
  border-top: 2px solid var(--call);
}

/* Sections. */
.services,
.about,
.area,
.contact {
  padding: 5rem 6vw;
}

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

.section-head p:last-child {
  margin-bottom: 0;
}

/* Services river: illustration one half, copy the other, flipping each row. */
.river {
  display: grid;
  gap: 3.5rem;
  max-width: 68rem;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service:nth-child(even) .service-img {
  order: 2;
}

.service-img {
  border-radius: 4px;
  border: 1px solid rgba(32, 48, 42, 0.14);
  width: 100%;
}

.service-text h3 {
  margin-bottom: 0.3em;
}

.service-text p {
  margin-bottom: 0;
  max-width: 34ch;
}

/* About: the dark ledger band. */
.about {
  background: var(--ink);
  color: var(--field);
}

.about .kicker {
  color: var(--call);
}

.about-body {
  max-width: 42rem;
}

.about-body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

.faq-list details {
  border-top: 1px solid currentColor;
}

.faq-list details:last-child {
  border-bottom: 1px solid currentColor;
}

.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: 42ch;
}

/* Area. */
.area .section-head {
  margin-bottom: 0;
}

/* Contact. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 68rem;
  margin-bottom: 2.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.3em;
}

.contact-note {
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: 1.4em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(32, 48, 42, 0.35);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.contact-form .btn {
  justify-self: start;
}

.map-wrap {
  max-width: 68rem;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 1px solid rgba(32, 48, 42, 0.14);
  border-radius: 4px;
}

/* Footer. */
.site-footer {
  background: var(--ink);
  color: var(--field);
  padding: 2.5rem 6vw;
}

.site-footer p {
  margin: 0 0 0.5em;
  max-width: 60rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-small {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* 390: same idea, narrower. Hero slab pins to the bottom third. */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
  }

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

  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.95rem 1rem 0.9rem;
  }

  .hero-copy .kicker {
    margin-bottom: 0.5em;
  }

  .hero-copy h1 {
    font-size: 1.62rem;
    line-height: 1.15;
    margin-bottom: 0.35em;
  }

  .hero-copy > p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.6em;
  }

  .hero-actions {
    margin: 0.8em 0 0.6em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
  }

  .hero-proof {
    font-size: 0.76rem;
    padding-top: 0.6em;
  }

  .site-header {
    gap: 0.8rem;
    padding: 0.75rem 4vw;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .site-header nav {
    display: none;
  }

  .site-header .btn {
    margin-left: auto;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service:nth-child(even) .service-img {
    order: 0;
  }

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

  .contact-row {
    grid-template-columns: 4.5rem 1fr;
  }

  .services,
  .about,
  .area,
  .contact {
    padding: 3.5rem 6vw;
  }
}

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

  .review-carousel.is-carousel .review-track {
    transition: none;
  }
}
