/* ==========================================================
   Fiscerra — site styles
   Colors and fonts live in :root so the brand is easy to tweak.
   ========================================================== */

:root {
  --ink: #16241f;          /* main text */
  --ink-soft: #4a5a54;     /* secondary text */
  --forest: #1f4d3f;       /* primary brand green */
  --forest-deep: #143429;  /* dark sections */
  --sage: #e6eee9;         /* soft green tint */
  --cream: #faf8f3;        /* page background */
  --paper: #ffffff;        /* cards */
  --brass: #b8863b;        /* accent */
  --brass-soft: #f3e7d3;
  --line: #dfe5e1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 36, 31, .06), 0 8px 24px rgba(22, 36, 31, .06);
  --max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Placeholders (things Almat must fill in) ---------- */
.ph {
  background: var(--brass-soft);
  border-bottom: 1px dashed var(--brass);
  padding: 0 .2em;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .98rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); color: #fff; }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest-deep); }
.btn-light:hover { background: var(--brass-soft); color: var(--forest-deep); }
.nav-links .btn { color: #fff; padding: 10px 20px; }
.nav-links .btn:hover { color: #fff; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.bg-sage { background: var(--sage); }
.bg-paper { background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 em { font-style: italic; color: var(--forest); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: -18px -18px auto auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--brass-soft); z-index: -1;
}
.hero-card h3 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ledger-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row .tick {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage); color: var(--forest); font-size: .8rem; font-weight: 700;
  margin-right: 10px;
}
.ledger-row .status { font-size: .85rem; color: var(--forest); font-weight: 600; }
.ledger-total {
  margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--forest-deep); color: #fff;
  display: flex; justify-content: space-between; align-items: baseline;
}
.ledger-total strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0; }
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  color: var(--ink-soft); font-weight: 500; font-size: .98rem;
}
.trust li::before { content: "◆"; color: var(--brass); font-size: .7rem; margin-right: 10px; vertical-align: 2px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sage); color: var(--forest);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
  color: var(--brass); line-height: 1; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); }

/* ---------- Split block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(31,77,63,.05) 14px 28px),
    var(--sage);
  border: 2px dashed #b9cbc2;
  display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); font-size: .95rem; padding: 24px;
}

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--forest); position: relative; }
.price-card .badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--brass); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--ink); margin: 6px 0 4px; }
.price small { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.price-card .checklist { flex: 1; margin-top: 18px; }
.price-card .checklist li { font-size: .98rem; color: var(--ink); }
.fine-print { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Service detail ---------- */
.service-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block .split { align-items: start; }
.service-block h3 { font-size: 1.6rem; }

.future {
  border: 1px dashed var(--brass);
  background: linear-gradient(180deg, var(--brass-soft), transparent 80%);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest-deep);
  color: #e8efe9;
  border-radius: 24px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c5d4cb; max-width: 520px; }
@media (max-width: 640px) { .cta-band { padding: 36px 26px; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 80px 0 56px; background: var(--sage); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #cdd7d1; border-radius: 10px;
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,77,63,.15); }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--forest); }
.form-status.is-error { color: #b42318; }
button[disabled] { opacity: .7; cursor: wait; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 40px; height: 40px; border-radius: 10px; flex: none; margin: 0; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep); color: #c5d4cb;
  padding: 64px 0 32px; margin-top: 0;
}
.site-footer a { color: #e8efe9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .ph { background: rgba(243,231,211,.15); border-bottom-color: var(--brass); color: #f3e7d3; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem;
}

/* ---------- Photo, pricing extras, reviews ---------- */
.photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  border-radius: 20px; box-shadow: var(--shadow);
}
.tier-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--brass); font-weight: 600; margin-bottom: 6px; }
.fit { font-size: .92rem; color: var(--forest); font-weight: 600; margin: 4px 0 0; }
.terms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  font-weight: 600; color: var(--forest);
}
.quote blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }
.quote figcaption { font-size: .92rem; color: var(--ink-soft); }
.quote::before { content: "★★★★★"; display: block; color: var(--brass); letter-spacing: 2px; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.price small { white-space: nowrap; }
.price .ph { font-size: .8em; }
.split .photo { max-width: 460px; justify-self: center; }

/* ---------- Blog ---------- */
.blog-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.blog-head h2 { margin-bottom: 0; }
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--forest); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22,36,31,.06), 0 14px 32px rgba(22,36,31,.10); }
.post-card p { flex: 0; }
.post-card .post-date { margin-top: auto; font-size: .88rem; }
.post-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; }
.post-cat { color: var(--brass); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }

.narrow { max-width: 760px; }
.post-hero { padding: 64px 0 40px; background: var(--sage); margin-bottom: 48px; }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; }
.byline span { font-size: .9rem; color: var(--ink-soft); }

.prose { padding-bottom: 72px; font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose p { margin-bottom: 1.2em; }
.callout {
  background: var(--brass-soft); border-left: 4px solid var(--brass);
  border-radius: 10px; padding: 20px 24px; margin: 2em 0;
}
.price-pre { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- QuickBooks access ---------- */
.qb-steps { padding-left: 22px; margin: 16px 0 20px; }
.qb-steps li { margin-bottom: 8px; padding-left: 4px; }
.qb-steps li::marker { color: var(--brass); font-weight: 700; }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--sage); border-radius: 10px; padding: 10px 10px 10px 14px;
}
.copy-row code { font-size: 1rem; font-weight: 600; color: var(--forest-deep); word-break: break-all; }
.btn-sm { padding: 7px 14px; font-size: .88rem; background: #fff; }

/* ---------- Booking pop-up ---------- */
.booking-modal {
  width: min(760px, calc(100vw - 24px));
  height: min(820px, calc(100vh - 40px));
  padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  background: #fff;
}
.booking-modal[open] { display: flex; flex-direction: column; }
.booking-modal::backdrop { background: rgba(20, 52, 41, .6); backdrop-filter: blur(2px); }
.booking-modal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 12px 22px; background: var(--forest-deep); color: #fff;
  font-family: var(--font-display); font-size: 1.15rem;
}
.booking-close {
  background: transparent; border: 0; color: #fff; font-size: 1.8rem; line-height: 1;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
}
.booking-close:hover { background: rgba(255,255,255,.12); }
.booking-modal iframe { flex: 1; width: 100%; border: 0; }

/* ---------- Reviews carousel ---------- */
.carousel { --per: 3; --gap: 24px; }
@media (max-width: 900px) { .carousel { --per: 2; } }
@media (max-width: 640px) { .carousel { --per: 1; } }
.carousel-viewport { overflow: hidden; padding: 6px 4px 14px; margin: -6px -4px 0; }
.carousel-track { display: flex; gap: var(--gap); transition: transform .6s ease; will-change: transform; }
.carousel-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); margin: 0; display: flex; flex-direction: column; }
.carousel-slide blockquote { flex: 1; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--forest); font-size: 1.1rem; cursor: pointer;
}
.carousel-btn:hover { border-color: var(--forest); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #c9d5ce; cursor: pointer;
}
.carousel-dots button[aria-selected="true"] { background: var(--forest); width: 24px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.niche { border-top: 3px solid var(--brass); }
.niche h3 { font-size: 1.2rem; }
.niche p { color: var(--ink-soft); margin: 0; }

/* ---------- ProAdvisor badge (footer) ---------- */
.qb-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  color: #e8efe9; font-size: .88rem; line-height: 1.3;
}
.qb-badge strong { display: block; color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.qb-check {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #2ca01c; color: #fff; font-weight: 700; flex: none;
}
.qb-badge-img { display: block; margin-top: 10px; width: 120px; height: auto; }
