/* Shari Haley Bookkeeping — site styles
   No external fonts or frameworks: system font stacks keep the page fast. */

:root {
  --green-900: #143630;
  --green-800: #1e4a42;
  --green-700: #285e54;
  --green-100: #e6efec;
  --coral-500: #ee8a76;
  --coral-300: #f6b3a5;
  --ink: #1b2421;
  --ink-soft: #46524e;
  --paper: #faf8f3;
  --white: #ffffff;
  --line: #d9dcd6;
  --error: #a4161a;
  --focus: #0b57d0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --wrap: 72rem;
  --shadow: 0 1px 2px rgb(20 54 48 / 6%), 0 8px 24px rgb(20 54 48 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; scroll-padding-bottom: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-left: 1.2em; }

a { color: var(--green-700); text-underline-offset: 0.18em; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--coral-500); color: var(--ink);
  padding: 0.75rem 1rem; font-weight: 700; border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-900);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--coral-500);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 60px; width: auto; max-width: 200px; object-fit: contain; }

.nav-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 2px solid rgb(255 255 255 / 55%); border-radius: 8px;
  padding: 0.45rem 0.8rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { display: inline-block; vertical-align: -3px; margin-right: 0.35rem; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.25rem;
}
.site-nav a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 6px;
  color: var(--white); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { background: rgb(255 255 255 / 10%); color: var(--white); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--coral-500); border-radius: 0; }
.site-nav .nav-cta a {
  background: var(--coral-500); color: var(--ink); margin-left: 0.5rem;
}
.site-nav .nav-cta a:hover { background: var(--coral-300); color: var(--ink); }
.site-nav .nav-phone a { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--green-900); border-bottom: 3px solid var(--coral-500); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .site-nav a { padding: 0.85rem 0.75rem; }
  .site-nav .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--coral-500); }
}
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-coral { background: var(--coral-500); color: var(--ink); }
.btn-coral:hover { background: var(--coral-300); color: var(--ink); }
.btn-green { background: var(--green-800); color: var(--white); }
.btn-green:hover { background: var(--green-900); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); color: var(--white); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--green-900); color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.hero .wrap { padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero h1, .hero h2 { color: var(--white); }
.hero .eyebrow { color: var(--coral-300); }
.hero-lede { font-size: 1.2rem; max-width: 40rem; color: #edf2f0; }
/* Hero metric badges: fade up one after another. Under reduced motion the
   global rule removes the animation, leaving them simply visible. */
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem;
}
.metric {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.1rem 1.15rem 1.15rem;
  background: rgb(20 54 48 / 72%);
  border: 1px solid rgb(246 179 165 / 40%);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: metric-in 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.metric:nth-child(1) { animation-delay: 0.35s; }
.metric:nth-child(2) { animation-delay: 0.55s; }
.metric:nth-child(3) { animation-delay: 0.75s; }
.metric:nth-child(4) { animation-delay: 0.95s; }
@media (min-width: 1000px) {
  .metric:nth-child(even) { transform: translateY(1.5rem); }
  .metric:nth-child(even) { animation-name: metric-in-offset; }
}
.metric-icon { color: var(--coral-300); margin-bottom: 0.35rem; }
.metric-value { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.1; color: var(--white); }
.metric-label { font-size: 0.95rem; line-height: 1.35; color: #e2ebe8; }
@keyframes metric-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes metric-in-offset { from { opacity: 0; transform: translateY(calc(1.5rem + 14px)); } to { opacity: 1; transform: translateY(1.5rem); } }


.page-hero { background: var(--green-900); color: var(--white); }
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: var(--white); margin-bottom: 0.4em; }
.page-hero p { color: #edf2f0; font-size: 1.15rem; max-width: 44rem; margin: 0; }

.eyebrow {
  display: block; font-family: var(--sans);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 0.75rem;
}

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.95rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--coral-300); }
.breadcrumb a { color: #edf2f0; }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--white); }
.section-dark { background: var(--green-800); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--coral-300); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-dark .section-head p { color: #e2ebe8; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-right > :first-child { order: 2; }
}
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--green-100);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame img.pos-top { object-position: center 20%; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--paper); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--green-100); color: var(--green-800);
}

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.section-dark .check-list li::before { background-color: var(--coral-500); }

/* Credentials */
.creds { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .creds { grid-template-columns: repeat(3, 1fr); } }
.cred { text-align: center; }
.cred .badge { height: 120px; display: grid; place-items: center; margin-bottom: 1rem; }
.cred .badge img { max-height: 120px; width: auto; }

/* Services detail */
.service { scroll-margin-top: 6rem; }
.service + .service { margin-top: 1.25rem; }
.service-num {
  display: inline-block; font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
  color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: 0.15rem 0.7rem; margin-bottom: 0.8rem;
}

/* Testimonials */
.quote {
  position: relative; margin: 0; padding: 2rem 1.75rem 1.5rem;
  background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--coral-500); box-shadow: var(--shadow);
}
.quote > svg { position: absolute; top: -1.1rem; left: 1.5rem; width: 2.2rem; height: 2.2rem; color: var(--coral-500); background: var(--white); border-radius: 50%; padding: 0.35rem; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; color: var(--green-900); }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--green-100); }
.quote figcaption span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--green-900); color: var(--white); text-align: center; }
.cta-band .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #e2ebe8; max-width: 38rem; margin-inline: auto; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.25rem; margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-weight: 700; color: var(--green-900); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--green-700);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* Video facade */
.video-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--green-900);
  box-shadow: var(--shadow);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: var(--coral-500); display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / 35%);
}
.video-facade:hover .play { background: var(--coral-300); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ---------- Form ---------- */
.form-shell { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .form-shell { grid-template-columns: 1fr 20rem; } }

.intake {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--shadow);
}
.intake fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.intake fieldset fieldset { margin: 0 0 1.5rem; }
.intake legend { padding: 0; }
.step-legend {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--green-900);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.step-legend .num {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-800); color: var(--white); font-family: var(--sans); font-size: 0.95rem;
}
.group-legend { font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }

.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.req { color: var(--error); font-weight: 700; }
.req-note { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.hint { display: block; font-size: 0.9rem; color: var(--ink-soft); margin: -0.15rem 0 0.4rem; font-weight: 400; }

.intake input[type="text"],
.intake input[type="email"],
.intake input[type="tel"],
.intake select,
.intake textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #8a948f; border-radius: 8px;
}
.intake textarea { min-height: 8rem; resize: vertical; }
.intake input:hover, .intake select:hover, .intake textarea:hover { border-color: var(--green-700); }
.intake input:focus-visible, .intake select:focus-visible, .intake textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.intake [aria-invalid="true"] { border-color: var(--error) !important; }

.choices { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.75rem 0.9rem; border: 2px solid var(--line); border-radius: 8px; cursor: pointer;
  background: var(--paper);
}
.choice:hover { border-color: var(--green-700); }
.choice:has(input:checked) { border-color: var(--green-800); background: var(--green-100); }
.choice input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--green-800); cursor: pointer; }
.choice span { font-weight: 600; }
.choice small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.fieldset-invalid .choice { border-color: var(--error); }

.error-msg { display: block; color: var(--error); font-weight: 700; font-size: 0.95rem; margin-top: 0.35rem; }
.error-msg:empty { display: none; }

.error-summary {
  border: 3px solid var(--error); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #fff5f5;
}
.error-summary h2 { font-size: 1.2rem; color: var(--error); margin-bottom: 0.5rem; font-family: var(--sans); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--error); font-weight: 700; }

.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--green-800); }

.hp { position: absolute !important; left: -9999px; }

.aside-card { background: var(--green-900); color: var(--white); border-radius: var(--radius); padding: 1.6rem; }
.aside-card h2 { color: var(--white); font-size: 1.4rem; }
.aside-card a:not(.btn) { color: var(--coral-300); font-weight: 700; }
.aside-card .check-list li::before { background-color: var(--coral-500); }
@media (min-width: 960px) { .aside-sticky { position: sticky; top: 6.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6dcda; font-size: 0.97rem; }
.site-footer .wrap { padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 68px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral-300); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--coral-300); }
.footer-bottom { border-top: 1px solid #36403d; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; color: #aab4b0; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 40;
    box-shadow: 0 -4px 16px rgb(0 0 0 / 18%);
  }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 54px; font-weight: 700; text-decoration: none; }
  .call-bar .call { background: var(--green-800); color: var(--white); }
  .call-bar .book { background: var(--coral-500); color: var(--ink); }
  body { padding-bottom: 54px; }
}

@media print {
  .site-header, .call-bar, .nav-toggle, .cta-band, .video-facade { display: none !important; }
  body { background: #fff; }
}

/* Simple / Advanced form switch */
.mode-toggle { margin-bottom: 1.25rem !important; }
.mode-toggle .choice small { margin-top: 0.1rem; }
.no-js .mode-toggle { display: none; }

/* Calendly step */
.no-js .js-only { display: none; }
.scheduler h2 { margin-bottom: 0.5rem; }
.scheduler > p { color: var(--ink-soft); }
.scheduler-frame { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.scheduler-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 640px) { .scheduler-frame iframe { height: 1050px; } }
