/* Ashworth Accounting & Tax */
:root {
  --teal: #0e3a4a;
  --teal-dark: #092a36;
  --mist: #e6ecee;
  --paper: #fafaf8;
  --ink: #17262e;
  --body: #33444c;
  --muted: #5b6b73;
  --line: #d8e0e3;
  --accent: #6aa7b8;
  --on-teal: #c5d6dc;
  --radius: 10px;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--teal); padding: .6rem 1rem; border-radius: 6px; z-index: 20; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--teal); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: .75rem 1rem; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 7px 16px 7px 12px; border-radius: 6px; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 500; font-size: 1.5rem; letter-spacing: .06em; color: #2866a0; }
.logo-sub { font-size: .62rem; letter-spacing: .26em; color: #5f686d; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--on-teal); padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.site-nav .nav-cta { background: var(--mist); color: var(--teal); font-weight: 600; padding: .45rem 1rem; border-radius: 8px; border: 0; }
.site-nav .nav-cta:hover { background: #fff; color: var(--teal); }

/* Buttons */
.btn { display: inline-block; background: var(--mist); color: var(--teal); padding: .8rem 1.5rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--teal); margin-bottom: .75rem; }

/* Home hero */
.hero { color: #fff; padding: 84px 0 96px; background: linear-gradient(100deg, rgba(14,58,74,.95) 0%, rgba(14,58,74,.88) 42%, rgba(9,42,54,.55) 100%), url("images/grand-haven-pier.jpg") center 35% / cover no-repeat var(--teal); }
.hero-note { margin-top: 1.75rem; font-family: var(--serif); font-size: 1.1rem; color: #dbe6ea; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.hero-lede { color: var(--on-teal); font-size: 1.08rem; margin: 1.25rem 0 1.75rem; max-width: 46ch; }

/* Home hero animation */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 14px; align-items: start; background: rgba(9,42,54,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 50px rgba(0,0,0,.28); border-radius: 14px; padding: 20px; }
.flow-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; white-space: nowrap; }
.flow-list { list-style: none; display: grid; gap: 8px; min-height: 252px; align-content: start; }
.flow-list li { background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 11px; display: grid; gap: 3px; font-size: .8rem; line-height: 1.3; transition: opacity .45s ease, transform .45s ease; }
.flow-list .doc { font-weight: 600; }
.flow-list .amt { color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-list li.enter { opacity: 0; transform: translateY(-10px); }
.flow-list li.leave { opacity: 0; transform: translateX(24px); }
.pill { justify-self: start; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill.ok { background: #dcefe4; color: #1f6b3f; }
.pill.warn { background: #fbecd3; color: #8a5a0f; }
.flow-agent { display: grid; justify-items: center; gap: 10px; text-align: center; align-self: center; }
.agent-core { width: 88px; height: 88px; border-radius: 50%; background: var(--mist); color: var(--teal); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.05; transition: transform .3s ease; }
.agent-core.busy { transform: scale(1.06); animation: pulse 1s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(106,167,184,.6); } to { box-shadow: 0 0 0 18px rgba(106,167,184,0); } }
.agent-status { font-size: .75rem; color: var(--on-teal); min-height: 2.6em; line-height: 1.3; }
.flow-foot { grid-column: 1 / -1; font-size: .8rem; color: var(--on-teal); border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.flow-foot strong { color: #fff; font-variant-numeric: tabular-nums; }
.sample { float: right; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; padding-top: 2px; }

/* Inner page hero */
.page-hero { background: var(--teal); color: #fff; padding: 56px 0 64px; }
.page-hero h1 { max-width: 22ch; }
.page-hero p:not(.eyebrow) { color: var(--on-teal); max-width: 60ch; margin-top: 1rem; font-size: 1.1rem; }

/* Sections and cards */
.section { padding: 80px 0; }
.section-mist { background: var(--mist); }
.section-lede { color: var(--muted); margin: -0.5rem 0 2rem; max-width: 60ch; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-gap-top { margin-top: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card p { color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--mist); padding: .2rem .55rem; border-radius: 4px; margin-bottom: .75rem; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,58,74,.08); }
.card-feature { border-top: 4px solid var(--teal); }
.card-feature h3 { font-size: 1.55rem; }
.card-feature .tag { background: var(--teal); color: #fff; }
.more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .92rem; color: var(--teal); }
.more::after { content: " →"; }
.serve { margin-top: 2rem; color: var(--muted); }
.mission { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.5; color: var(--teal); }

/* Home: mission and photo band */
.intro { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.intro-photo { width: 220px; height: 260px; object-fit: cover; object-position: center 25%; border-radius: var(--radius); }
.sig { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.sig a { color: var(--teal); font-weight: 600; }
.photo-band { min-height: 380px; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(9,42,54,.8), rgba(9,42,54,0) 55%), url("images/grand-haven-pier.jpg") center / cover no-repeat var(--teal); color: #fff; }
.photo-band .wrap { width: 100%; padding-block: 28px; }
.photo-band p { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.prose p { margin-bottom: 1.1rem; color: var(--body); max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; color: var(--teal); }
.prose ul { margin: 0 0 1.5rem 1.25rem; color: var(--body); }
.prose li { margin-bottom: .35rem; }
.side { display: grid; gap: 1.25rem; position: sticky; top: 24px; }
.about-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.facts { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.5rem; }
.facts li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; color: var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* Focus: workflow map */
.workflow { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 24px; }
.track { position: absolute; left: calc(24px + (100% - 48px) / 12); right: calc(24px + (100% - 48px) / 12); top: 54px; height: 3px; background: var(--line); border-radius: 2px; }
.track-fill { height: 100%; width: 0; background: var(--teal); border-radius: 2px; transition: width .8s ease; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; position: relative; }
.stage-btn { width: 100%; background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 10px; padding: 4px; font: inherit; color: var(--muted); }
.stage-btn .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 600; color: var(--muted); transition: all .35s ease; }
.stage-btn .stage-name { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.25; }
.stage-btn.passed .dot { border-color: var(--teal); color: var(--teal); }
.stage-btn[aria-current="step"] { color: var(--ink); }
.stage-btn[aria-current="step"] .dot { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(14,58,74,.12); }
.stage-btn:hover .dot { border-color: var(--teal); }
.stage-panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 172px; animation: panelIn .45s ease; }
.stage-panel .tag { margin-bottom: 0; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: .9rem; }
.compare > div { border-radius: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); }
.compare .after { background: #eef6f4; border-color: #cfe5df; }
.compare-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.compare .after .compare-label { color: #1f6b3f; }
.compare p:last-child { color: var(--body); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.workflow-note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* Focus: engagement timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.timeline li { display: flex; gap: 1rem; align-items: flex-start; transition: opacity .6s ease, transform .6s ease; }
.timeline span { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; }
.timeline p { color: var(--muted); }
.timeline.armed li { opacity: 0; transform: translateY(12px); }
.timeline.armed.in li { opacity: 1; transform: none; }
.timeline.armed.in li:nth-child(2) { transition-delay: .25s; }
.timeline.armed.in li:nth-child(3) { transition-delay: .5s; }
.after-timeline { margin-top: 2.25rem; }

/* Apps */
.dash-figure { max-width: 960px; margin: 0 auto 2.5rem; }
.apps-hero { display: block; width: 100%; border-radius: var(--radius); }
.dash-figure figcaption { margin-top: .75rem; text-align: center; font-size: .88rem; color: var(--muted); }

/* Contact and footer */
.contact-band { background: var(--teal); color: #fff; padding: 72px 0; }
.contact-band h2 { margin-bottom: .5rem; }
.contact-lede { color: var(--on-teal); font-size: 1.08rem; max-width: 56ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, max-content)); gap: 2rem 4rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 2rem; }
.contact-grid h3 { font-size: .8rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .5rem; }
.contact-grid a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-grid a:hover { border-bottom-color: #fff; }
.contact-grid p { color: #dbe6ea; }
.site-footer { background: var(--teal-dark); color: #9db4bc; padding: 22px 0; font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; background: linear-gradient(180deg, rgba(14,58,74,.93) 0%, rgba(14,58,74,.84) 100%), url("images/grand-haven-pier.jpg") 30% center / cover no-repeat var(--teal); }
  .page-hero { padding: 40px 0 48px; }
  .site-nav { gap: 1.1rem; width: 100%; }
  .site-nav .nav-cta { margin-left: auto; }
  .logo img { height: 38px; }
  .logo-name { font-size: 1.3rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-photo { width: 150px; height: 180px; }
  .photo-band { min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .side { position: static; order: -1; grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
  .track { display: none; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .stage-panel { min-height: 268px; }
  .compare, .timeline { grid-template-columns: 1fr; }
  .compare { gap: 10px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; padding: 16px; }
  .flow-list { min-height: 0; }
  #flow-in li:nth-child(n+3), #flow-out li:nth-child(n+4) { display: none; }
  .flow-agent { grid-auto-flow: column; justify-content: start; align-items: center; justify-items: start; text-align: left; }
  .agent-core { width: 60px; height: 60px; font-size: .85rem; }
  .agent-status { min-height: 0; }
  .sample { float: none; display: block; margin-top: 4px; }
  .grid-4 { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; }
  .btn-row .btn, .contact-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agent-core.busy, .stage-panel { animation: none; }
  .flow-list li, .track-fill, .stage-btn .dot, .timeline li, .btn, .card-link { transition: none; }
}
