/* Xavier Yu & Associates, CPA — a quiet Woodland Hills ledger. */
:root {
  --field: #faf6ed;
  --field-soft: #f3ecdd;
  --ink: #1b2a41;
  --ink-soft: #3d4a61;
  --call: #1e5b3f;
  --call-ink: #ffffff;
  --ghost: #1b2a41;
  --accent: #8a6414;
  --line: #d9cfb8;

  --font-display: "Newsreader", 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);
  --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;
}

*,
*::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: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.4em;
}

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

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

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

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.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  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-fill:hover {
  background: #17492f;
}
.btn-ghost {
  border: 1.5px solid var(--ghost);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--field);
}
.call-nowrap {
  white-space: nowrap;
}

.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.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 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 4vw;
  background: var(--field);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  gap: 1.4rem;
}
.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-header .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 5rem 6vw;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}
.section-head p:last-child {
  color: var(--ink-soft);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 22%;
  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(180deg, rgba(27, 42, 65, 0.08) 0%, rgba(27, 42, 65, 0.18) 46%, rgba(27, 42, 65, 0.72) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 6vw 6vh;
  padding: 2rem 2.1rem 1.9rem;
  background: var(--field);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--ink);
}
.hero-copy .kicker {
  margin-bottom: 0.5rem;
}
.hero-copy h1 {
  margin-bottom: 0.55rem;
}
.hero-copy > p:nth-of-type(2) {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}

/* Services river */
#services {
  background: var(--field);
}
.river {
  display: grid;
  gap: 3.5rem;
  max-width: 68rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}
.river-row:nth-child(even) img {
  order: 2;
}
.river-row img {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--field-soft);
}
.river-row h3 {
  margin-bottom: 0.4rem;
}
.river-row p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

/* About */
#about {
  background: var(--field-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-body {
  max-width: 44rem;
}
.about-body p {
  color: var(--ink-soft);
}
.about-body p:first-child {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.55;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 68rem;
}
.steps li {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--field);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.steps p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

/* FAQ + reviews shared */
.reviews,
.faq {
  padding: 5rem 6vw;
}
.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.faq-list {
  max-width: 44rem;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.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 {
  background: var(--ink);
  color: var(--field);
  padding: 4rem 6vw;
}
#area .kicker {
  color: #d8b45c;
}
#area .section-head {
  margin: 0;
}
#area .section-head p:last-child {
  color: var(--field);
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 68rem;
  margin-bottom: 2.5rem;
}
.contact-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}
.contact-line svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--accent);
}
.contact-line a {
  color: var(--ink);
  font-weight: 600;
}
.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--field-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--field);
  color: var(--ink);
  width: 100%;
}
.contact-form button {
  border: 0;
  cursor: pointer;
  justify-self: start;
}
.form-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}
.map-wrap {
  max-width: 68rem;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
}

/* Footer */
.site-footer {
  padding: 2.5rem 6vw 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--ink);
}

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

/* 390 */
@media (max-width: 760px) {
  .site-header {
    gap: 0.8rem;
    padding: 0.7rem 4vw;
  }
  .site-header nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
  .brand {
    font-size: 0.98rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
  }
  .hero-img {
    object-position: center 12%;
  }
  .hero-copy {
    width: auto;
    max-width: none;
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding: 1.15rem 1.1rem 1.05rem;
  }
  .hero-copy h1 {
    font-size: 1.65rem;
  }
  .hero-copy > p:nth-of-type(2) {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .hero-actions .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.92rem;
  }
  section {
    padding: 3.25rem 5vw;
  }
  .river-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .river-row:nth-child(even) img {
    order: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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