/* THT Tax & Accounting Services: one-page site.
   Colors: --green is sampled from THT's logo (#1C793C); --green-text from the logo wordmark (#056839);
   --gold and --gold-deep come from the logo's gold gradient. The darker greens and neutrals are design choices. */
:root {
  --green: #1c793c;
  --green-text: #056839;
  --green-deep: #0f3d24;
  --green-ink: #0a2b19;
  --gold: #e8c872;
  --gold-deep: #c9963f;
  --paper: #faf8f2;
  --tint: #f0eee3;
  --line: #ddd8c6;
  --ink: #18221c;
  --muted: #47534b;
  --radius: 10px;
  --header-h: 72px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--green-ink); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 4px; }
.facts :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--green-deep); color: #fff; padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons: 48px tall touch targets */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3em; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green-text); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--gold { background: var(--gold); color: var(--green-ink); }
.btn--gold:hover { background: #f3da97; color: var(--green-ink); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-ink); }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,242,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(250,248,242,.85); backdrop-filter: blur(6px); } }
.site-header__inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 10px 0; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--green-text); margin-right: auto; min-height: 44px; align-items: center; }
.wordmark__tht { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--green-ink); background: linear-gradient(135deg, var(--gold), var(--gold-deep)); padding: 0 8px; border-radius: 4px; line-height: 1.35; }
.wordmark__rest { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 6px; }
.site-nav a:hover { background: var(--tint); color: var(--green-ink); }
.header-call { display: none; }

@media (max-width: 719px) {
  :root { --header-h: 132px; }
  .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: 4px; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding: 0 8px; }
  .wordmark__rest { max-width: 15ch; }
  .header-call { display: inline-flex; }
}
@media (min-width: 720px) {
  .header-call { display: inline-flex; }
}
@media (max-width: 999px) {
  .header-call .nowrap { display: none; }
}

/* Hero: decorative hexagon pattern echoes the logo's shape */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%231c793c' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E") right top / 56px 97px,
  linear-gradient(180deg, var(--paper), var(--tint)); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--green-text); margin-bottom: .75em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }

.facts { background: var(--green-deep); color: #eef3ee; border-radius: 14px; padding: 28px; border-top: 4px solid var(--gold); box-shadow: 0 18px 40px -24px rgba(10,43,25,.6); }
.facts a { color: #fff; }
.facts__rating { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-decoration: none; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.facts__score { grid-row: span 2; font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; }
.facts__count { font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.facts__list { margin: 0; display: grid; gap: 16px; }
.facts__list div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; }
.facts__list dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding-top: 3px; }
.facts__list dd { margin: 0; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.card::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.card p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 24px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.price-table tbody th { font-weight: 600; }
.price-table td:last-child { font-weight: 700; color: var(--green-text); white-space: nowrap; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 559px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; }
  .price-table td:nth-child(2) { color: var(--muted); }
  .price-table td:last-child { text-align: right; }
}

.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--green-ink); }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: .9rem; color: var(--muted); font-weight: 600; }
.more { margin-top: 24px; }

.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 12px 48px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; margin-top: -6px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.cta { background: var(--green-deep); color: #eef3ee; padding: clamp(48px, 7vw, 80px) 0; border-top: 4px solid var(--gold); }
.cta h2 { color: #fff; }
.cta address { font-style: normal; font-size: 1.1rem; }
.cta__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta__inner { grid-template-columns: 1fr auto; } .cta .actions { justify-content: flex-end; } }

.site-footer { background: var(--green-ink); color: #c9d6cd; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }
.small { font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
