/* United Tax Financial Services — site styles */
/* Fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #0c2a42;
  --navy-deep: #081d2f;
  --teal: #1d6a80;
  --sage: #8fae82;
  --sage-deep: #4f7346;
  --mist: #e4ece1;
  --paper: #f4f6f3;
  --ink: #172430;
  --muted: #4b5964;
  --line: #cdd8c9;
  --white: #ffffff;

  --serif: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.35rem, 6vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); line-height: 1.15; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.35; margin: 0; color: var(--navy); }
p { margin: 0; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 8px; border: 2px solid transparent;
  font: 500 1.02rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--teal); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sage { background: var(--sage); color: var(--navy-deep); }
.btn-sage:hover { background: #a3c096; color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 246, 243, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; }
.brand-name span { font-size: .72rem; letter-spacing: .26em; color: var(--muted); margin-top: 4px; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--teal); }
.header-cta { min-height: 44px; padding: 0 16px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-lede { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { flex: 1 1 240px; }
.proof { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.proof li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
.proof svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--sage-deep); }

.portrait { position: relative; width: 100%; max-width: min(420px, calc(100% - 64px)); justify-self: start; }
.portrait-backdrop {
  position: absolute; inset: 8% -6% -4% 10%;
  background: var(--mist); border-radius: 18px;
}
.portrait picture { position: relative; display: block; z-index: 1; }
.portrait img { position: relative; border-radius: 14px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; box-shadow: 0 24px 48px -28px rgba(8, 29, 47, .55); }
.swoosh { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.swoosh path { fill: none; stroke-linecap: round; }
.swoosh .s1 { stroke: var(--sage); stroke-width: 13; }
.swoosh .s2 { stroke: #c2cad0; stroke-width: 6; }
.portrait-caption {
  position: absolute; z-index: 2; left: -12px; bottom: 7%;
  background: var(--white); color: var(--navy);
  padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px -16px rgba(8, 29, 47, .5);
  font-size: .92rem; line-height: 1.3;
}
.portrait-caption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .swoosh path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) .35s forwards; }
  .swoosh .s2 { animation-delay: .55s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Section rhythm ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 640px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Statement (services + pricing) ---------- */
.services { background: var(--mist); }
.statement {
  margin-top: 40px; background: var(--white);
  border-radius: 14px; padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--line), 0 20px 50px -36px rgba(8, 29, 47, .45);
}
.statement-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 2px solid var(--navy);
  font-size: .95rem; color: var(--muted);
}
.statement-top strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.item-line { display: flex; align-items: flex-end; gap: 10px; }
.item-line h3 { flex: 0 1 auto; }
.leader { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted #aab8a6; margin-bottom: .42em; }
.price { flex: none; font-weight: 600; color: var(--navy); white-space: nowrap; line-height: 1.35; }
.price.quote { font-weight: 500; color: var(--teal); }
.item p { margin-top: 6px; color: var(--muted); max-width: 62ch; }
.item.featured .item-line h3 { font-size: 1.3rem; }
.item.featured .price { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.item.featured .price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.includes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink); }
.includes li { position: relative; padding-left: 22px; }
.includes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: rotate(-45deg) translateY(-3px); }
.statement-note { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.statement-note p { color: var(--muted); max-width: 56ch; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.step { position: relative; padding-left: 64px; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--sage); color: var(--navy);
  font-family: var(--serif); font-size: 1.3rem;
}
.step p { margin-top: 6px; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--navy); color: #dfe8ee; }
.about h2 { color: var(--white); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-photo { max-width: 420px; width: 100%; justify-self: center; position: relative; }
.about-photo img { border-radius: 14px; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 15%; }
.about-photo::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 58%; height: 46%; border-right: 3px solid var(--sage); border-bottom: 3px solid var(--sage); border-radius: 0 0 18px 0; pointer-events: none; }
.about-copy p { margin-top: 16px; max-width: 60ch; font-size: 1.08rem; }
.creds { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; color: var(--white); }
.creds svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--sage); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
.reach { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.reach a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.reach a:hover { border-color: var(--teal); color: var(--ink); }
.reach .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); flex: none; }
.reach .ico svg { width: 20px; height: 20px; }
.reach span { display: flex; flex-direction: column; line-height: 1.3; }
.reach small { color: var(--muted); font-size: .9rem; }
.reach strong { font-weight: 600; word-break: break-word; }
.area { margin-top: 20px; color: var(--muted); }

.form-card { background: var(--white); border-radius: 14px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); box-shadow: 0 20px 50px -36px rgba(8, 29, 47, .45); }
.form-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; }
.form-card > p { margin-top: 6px; color: var(--muted); }
.form { margin-top: 22px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 500; font-size: .98rem; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #b9c6b5; border-radius: 8px;
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230c2a42' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29, 106, 128, .2); background: var(--white); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.choice span { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid #b9c6b5; background: var(--paper); font-size: .98rem; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--sage); outline-offset: 2px; }
.two { display: grid; gap: 18px; }
.form .btn { width: 100%; }
.fineprint { font-size: .9rem; color: var(--muted); }
.hidden { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c7d2; padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { background: var(--white); border-radius: 10px; padding: 12px 16px; width: 190px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #dfe8ee; text-decoration: none; }
.site-footer a:hover { color: var(--sage); text-decoration: underline; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: .86rem; color: #8fa3b2; }

/* ---------- Thank-you page ---------- */
.thanks { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 64px 0; text-align: left; }
.thanks-card { max-width: 620px; }
.thanks-card p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.thanks-card .hero-actions .btn { flex: 0 1 auto; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .two { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: repeat(4, 1fr); }
  .proof { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; }
  .hero-actions .btn { flex: 0 1 auto; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .portrait { justify-self: end; max-width: 440px; }
  .proof { grid-template-columns: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .brand img { width: 40px; }
  .brand-name strong { font-size: 1.2rem; }
  .header-cta { padding: 0 14px; }
  .item.featured .item-line { flex-wrap: wrap; }
  .item.featured .leader { display: none; }
  .item.featured .price { width: 100%; }
  .statement-top span { display: none; }
  .about-photo::after { inset: auto -8px -10px auto; }
}
