/* ============================================================
   ACCOUNTING & BOOKKEEPING LANDING PAGE
   (core/templates/core/service_pages/accounting-bookkeeping.html)

   Loaded together with service-pages.css, which supplies the shared pieces
   (.cs-grid, sticky .cs-rail, cards, tables, FAQ grid, reviews, offices,
   related). Everything here is prefixed .ab- and is this page's own look:
   a dark hero, "ways we work" columns, a month flow, report tiles,
   a comparison table, warm "signs" checklist and a numbered "choose" list.
   ============================================================ */

.ab-hero {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    color: #e2e8f0;
    background:
        radial-gradient(760px 380px at 92% -10%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%),
        radial-gradient(620px 320px at 0% 100%, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0) 70%),
        linear-gradient(135deg, #0b1220 0%, #10264d 62%, #12305f 100%) !important;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 0 !important;
}
.ab-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .ab-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.ab-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: clamp(0.75rem, 2.5vw, 2rem);
}
.ab-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #cbd5e1;
    text-decoration: none;
}
.ab-crumbs a:hover { color: #ffffff; }
.ab-crumbs span[aria-current] { color: #ffffff; }
.ab-crumbs span[aria-hidden] { color: #475569; }

.ab-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.ab-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
}
.ab-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1rem;
}
.ab-hero-intro {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 1.75rem;
    max-width: 700px;
}
.ab-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ab-hero-actions .svc-rd-btn { font-size: 0.92rem; padding: 0.8rem 1.4rem; gap: 0.5rem; }
.ab-hero-actions .cs-ico { width: 16px; height: 16px; }
.ab-btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.ab-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #ffffff; }

/* Signature visual: a month-end close checklist */
.ab-close {
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 1.4rem 1.5rem 1.25rem;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ab-close-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ab-close-title {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.ab-close-sub { display: block; font-size: 0.8rem; color: #475569; margin-top: 0.1rem; }
.ab-close-badge {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    white-space: nowrap;
}
.ab-close-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.ab-close-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.93rem;
    font-weight: 600;
    color: #1e293b;
}
.ab-close-list .cs-ico {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    color: #ffffff;
    background: #10b981;
    stroke-width: 3;
}
.ab-close-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 1rem; }
.ab-close-bar span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #10b981, #38bdf8); }
.ab-close-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}
.ab-close-link .cs-ico { width: 15px; height: 15px; transition: transform 0.2s; }
.ab-close-link:hover .cs-ico { transform: translateX(4px); }

.ab-stats {
    list-style: none;
    margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ab-stats li { padding: 1.15rem 1rem 1.3rem; text-align: center; }
.ab-stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.ab-stats strong {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}
.ab-stats span { display: block; font-size: 0.82rem; font-weight: 600; color: #94a3b8; margin-top: 0.2rem; }

/* ---------- Shared heading rhythm inside this page ---------- */
.cs-main h3 { letter-spacing: -0.005em; }

/* ---------- Ways we work ---------- */
.ab-ways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.ab-way {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-top: 4px solid #2563eb;
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.3rem;
    display: flex;
    flex-direction: column;
}
.ab-way-2 { border-top-color: #0ea5e9; background: #f5f9ff; box-shadow: 0 16px 34px -20px rgba(37, 99, 235, 0.45); }
.ab-way-3 { border-top-color: #10b981; }
.ab-way header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.ab-way-tag {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #cfe0fb;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
.ab-way-2 .ab-way-tag { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
.ab-way-3 .ab-way-tag { color: #047857; background: #d1fae5; border-color: #a7f3d0; }
.ab-way h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
}
.ab-way-best { font-size: 0.85rem; line-height: 1.5; color: #1e293b; margin: 0 0 0.9rem; }
.ab-way-best strong { color: #0f172a; }
.ab-way ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ab-way li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: #334155; }
.ab-way li .cs-ico { width: 16px; height: 16px; margin-top: 3px; color: #2563eb; stroke-width: 2.6; }
.ab-way-2 li .cs-ico { color: #0284c7; }
.ab-way-3 li .cs-ico { color: #059669; }

/* ---------- A month with Lira ---------- */
.ab-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: none;
}
.ab-flow-item {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.1rem 1.25rem 1.25rem;
}
.ab-flow-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.ab-flow-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(140deg, #2563eb 0%, #38bdf8 100%);
}
.ab-flow-when {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
}
.ab-flow-item .cs-tile { margin-bottom: 0.6rem; }
.ab-flow-item h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
}
.ab-flow-item p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #334155; }

/* ---------- Reports ---------- */
.ab-reports {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}
.ab-report {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.25rem;
    transition: border-color 0.2s;
}
.ab-report h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.8rem 0 0.35rem;
}
.ab-report p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #334155; }

/* ---------- Software ---------- */
.ab-soft { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem; }
.ab-soft-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(160deg, #f5f9ff 0%, #ffffff 70%);
    border: 1px solid #cfe0fb;
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.25rem;
}
.ab-soft-item h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
}
.ab-soft-item p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #334155; }
.ab-soft-other { background: #ffffff; border: 1px dashed #93b4f5; }

/* ---------- Bookkeeping vs accounting ---------- */
.ab-vs thead th:nth-child(2) { color: #1d4ed8; background: #eff6ff; }
.ab-vs thead th:nth-child(3) { color: #0369a1; background: #e0f2fe; }
.ab-vs thead th { font-size: 0.78rem; }
.ab-vs tbody th { width: 22%; }
.ab-vs tbody td { width: 39%; }

/* ---------- Signs (warm accent) ---------- */
.ab-signs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.ab-signs li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.5;
    color: #1e293b;
}
.ab-signs .cs-ico {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: #b45309;
}

/* ---------- How to choose ---------- */
.ab-choose {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.ab-choose li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
}
.ab-choose-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: #0f172a;
}
.ab-choose strong { display: block; font-size: 0.95rem; color: #0f172a; line-height: 1.35; }
.ab-choose li span:not(.ab-choose-num) { display: block; font-size: 0.86rem; line-height: 1.55; color: #334155; margin-top: 0.15rem; }

/* ---------- Records & GST/HST ---------- */
.ab-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ab-record {
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.2rem 1.25rem 1.3rem;
}
.ab-record header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.ab-record h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.ab-record > p { margin: 0 0 0.85rem; font-size: 0.92rem; line-height: 1.65; color: #1e293b; }
.ab-record ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ab-record li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.ab-record li .cs-ico { width: 16px; height: 16px; color: #059669; stroke-width: 2.6; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .ab-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ab-close { max-width: 520px; }
}
@media (max-width: 767px) {
    .ab-flow,
    .ab-signs,
    .ab-choose,
    .ab-records { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .ab-hero-actions .svc-rd-btn { width: 100%; justify-content: center; }
    .ab-stats { grid-template-columns: minmax(0, 1fr); }
    .ab-stats li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
    /* comparison table: stack each row into a small card, with the column
       name shown as a label above each answer */
    .ab-vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ab-vs, .ab-vs tbody, .ab-vs tr, .ab-vs th, .ab-vs td { display: block; width: auto; }
    .ab-vs tr { padding: 0.9rem 1rem; border-bottom: 1px solid #eef2f7; }
    .ab-vs tbody tr:last-child { border-bottom: 0; }
    .ab-vs tbody th { padding: 0 0 0.4rem; border: 0; font-size: 0.95rem; }
    .ab-vs tbody td { padding: 0.35rem 0; border: 0; font-size: 0.88rem; }
    .ab-vs tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #1d4ed8;
        margin-bottom: 0.1rem;
    }
    .ab-vs tbody td:nth-of-type(2)::before { color: #0369a1; }
    .cs-chips li { font-size: 0.82rem; }
}

/* Link to a related service under an FAQ answer. */
.ab-faq-link { margin: 0.6rem 0 0; }
.ab-faq-link a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; font-size: 0.92rem; font-weight: 800; color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.ab-faq-link a:hover { color: #1e3a8a; }
