/* ═══════════════════════════════════════════════
   TRUE TALLY BOOKKEEPING — Shared Stylesheet
   Brand: Terracotta #BD7655 (accent) · Indigo #2D3A8C (primary)
   Fonts: Montserrat (headings) · Poppins (body)
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --terra:      #BD7655;
  --terra-dk:   #A8613E;
  --terra-lt:   #D4967A;
  --terra-pale: #F7EDE6;
  --blue:       #2D3A8C;
  --blue-dk:    #1E2666;
  --blue-pale:  #EEF0FF;
  --cream:      #FFFFFF;
  --cream-dk:   #F5F7FA;
  --white:      #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1A2035;
  --text-muted: #5A6482;
  --font-head:  'Montserrat', -apple-system, 'Helvetica Neue', sans-serif;
  --font-body:  'Poppins', -apple-system, 'Helvetica Neue', sans-serif;
  --max:        860px;
  --max-wide:   1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-head); color: var(--blue); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--blue-dk); }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--text); }
a  { color: var(--terra); }
a:hover { color: var(--terra-dk); }
strong { color: var(--text); font-weight: 600; }

/* ── Layout ── */
.container      { max-width: var(--max);      margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; }
.bg-white    { background: var(--white); }
.bg-cream    { background: var(--cream); }
.bg-cream-dk { background: var(--cream-dk); }

/* ── Divider ── */
.divider { width: 44px; height: 3px; background: var(--terra); margin: 0.75rem 0 1.5rem; border-radius: 2px; }

/* ── Buttons ── */
.btn { display: inline-block; background: var(--terra); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.btn:hover { background: var(--terra-dk); transform: translateY(-1px); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--terra); color: var(--terra); }
.btn-outline:hover { background: var(--terra); color: var(--white); }
.btn-white { background: var(--white); color: var(--terra); }
.btn-white:hover { background: var(--cream); color: var(--terra-dk); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dk); color: var(--white); }

/* ── Top bar ── */
.topbar { background: var(--terra); color: #fff; font-size: 0.8rem; text-align: center; padding: 0.5rem 1.5rem; letter-spacing: 0.04em; }
.topbar a { color: var(--white); text-decoration: none; }

/* ── Nav ── */
nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 0.9rem 2rem; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 130px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--terra); }
.nav-phone { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.nav-phone:hover { color: var(--terra); }

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--terra); color: var(--white); padding: 4rem 0 3.5rem; }
.page-hero-eyebrow { display: inline-block; background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 50px; margin-bottom: 1rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; max-width: 700px; }
.page-hero p  { color: rgba(255,255,255,0.82); max-width: 600px; font-size: 1.1rem; margin-bottom: 0; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--terra); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── Trust bar ── */
.trustbar { background: var(--terra); }
.trustbar-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; }
.trust-item { padding: 1rem 1.75rem; text-align: center; color: rgba(255,255,255,0.9); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,0.15); flex: 1 1 150px; }
.trust-item:last-child { border-right: none; }
.trust-item strong { display: block; color: var(--white); font-size: 1.3rem; font-weight: 700; text-transform: none; letter-spacing: -0.02em; margin-bottom: 0.1rem; font-family: var(--font-head); }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.8rem 1.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card-top { border-top: 3px solid var(--terra); border-radius: 3px 3px 8px 8px; }

/* ── Lists ── */
.check-list { list-style: none; margin: 1.25rem 0; }
.check-list li { padding: 0.6rem 0 0.6rem 2rem; position: relative; border-bottom: 1px solid var(--border); font-size: 1rem; }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--terra); font-weight: 700; }

.cross-list { list-style: none; margin: 1.25rem 0; }
.cross-list li { padding: 0.6rem 0 0.6rem 2rem; position: relative; border-bottom: 1px solid var(--border); }
.cross-list li:last-child { border-bottom: none; }
.cross-list li::before { content: '✕'; position: absolute; left: 0; color: var(--terra); font-weight: 700; }

/* ── Highlight box ── */
.highlight { background: var(--blue-pale); border-left: 3px solid var(--blue); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; font-size: 0.97rem; color: var(--blue-dk); }
.highlight strong { color: var(--blue-dk); }
.highlight-terra { background: var(--terra-pale); border-left: 3px solid var(--terra); color: var(--terra-dk); }
.highlight-terra strong { color: var(--terra-dk); }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem 1.5rem; }
.testimonial-body { font-style: italic; color: var(--text); font-size: 0.97rem; margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-footer { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-stars { color: var(--terra); font-size: 0.9rem; letter-spacing: -1px; display: block; margin-bottom: 0.15rem; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--blue-dk); display: block; }
.testimonial-co   { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; list-style: none; padding: 1.25rem 0; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--terra); flex-shrink: 0; line-height: 1; }
details[open] .faq-q::after { content: '−'; }
.faq-a { padding-bottom: 1.25rem; color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; max-width: 720px; }
.faq-a ul { margin: 0.5rem 0 0.5rem 1.5rem; }
.faq-a li { margin-bottom: 0.3rem; }

/* ── Offer box ── */
.offer-box { background: var(--terra); color: var(--white); border-radius: 16px; padding: 3rem 2.5rem; }
.offer-tag { display: inline-block; background: rgba(255,255,255,0.2); color: var(--white); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 1rem; }
.offer-box h2 { color: var(--white); font-weight: 400; }
.offer-box p  { color: rgba(255,255,255,0.85); }
.offer-includes { list-style: none; margin: 1.5rem 0 2rem; }
.offer-includes li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; color: rgba(255,255,255,0.9); font-size: 0.97rem; }
.offer-includes li::before { content: '→'; position: absolute; left: 0; color: rgba(255,255,255,0.8); }

/* ── CTA section ── */
.cta-section { background: var(--blue); text-align: center; padding: 5rem 0; }
.cta-section h2 { color: var(--white); }
.cta-section p  { color: rgba(255,255,255,0.82); max-width: 520px; margin: 0.75rem auto 2rem; }
.cta-micro { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.75rem; }
.cta-micro a { color: rgba(255,255,255,0.9); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; text-decoration: none; display: block; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(189,118,85,0.12); }
.blog-card-body { padding: 1.5rem; }
.blog-tag { display: inline-block; background: var(--terra-pale); color: var(--terra-dk); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.65rem; border-radius: 50px; margin-bottom: 0.75rem; }
.blog-card h3 { font-size: 1.05rem; color: var(--blue-dk); margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* ── Article body ── */
.article-body { max-width: 700px; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 0.6rem; }
.article-body h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.article-body p  { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.article-meta span { margin-right: 1rem; }

/* ── Location chips ── */
.location-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip { display: inline-block; background: var(--terra-pale); color: var(--terra-dk); font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.85rem; border-radius: 50px; text-decoration: none; transition: background 0.15s; }
.chip:hover { background: var(--terra); color: var(--white); }

/* ── Footer ── */
footer { background: var(--blue-dk); color: #fff; padding: 3.5rem 0 2rem; font-size: 0.85rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; margin-bottom: 2.5rem; align-items: flex-start; }
.footer-brand { max-width: 320px; flex: 1 1 280px; }
.footer-logo { display: block; margin-bottom: 1.25rem; }
.footer-logo img { height: 120px; width: auto; opacity: 0.95; }
.footer-creds-inline { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 0 1.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 0.5rem; }
.footer-creds-inline img { height: 60px; width: auto; }
.footer-col h4 { color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.8); }

/* ── Responsive ── */

@media (max-width: 480px) {
  .trust-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}


/* ── Mobile nav ──────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BAS logo — white on footer ───────────── */

.footer-creds { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 0 1.5rem; }
.footer-cred-card { background: rgba(255,255,255,0.95); border-radius: 8px; padding: 8px 14px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 70px; min-width: 90px; max-width: 120px; overflow: hidden; }
.footer-cred-card img { height: 40px !important; width: auto !important; max-width: 90px !important; display: block !important; filter: none !important; }
.footer-cred-card span { color: #4d4642 !important; font-size: 10px !important; }

@media (max-width: 760px) {
  nav { padding: 0.85rem 1.25rem; position: relative; }
  .nav-hamburger { display: flex; }
  .btn-sm { display: none; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    z-index: 200;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a { padding: 0.8rem 0; display: block; font-size: 1rem; color: var(--text); }
  .nav-links li a:hover { color: var(--terra); }
  .nav-phone { display: block !important; }

  /* Mobile CTA optimisations */
  .btn { display: block; width: 100%; text-align: center; padding: 1rem 1.5rem; font-size: 1.05rem; }
  .btn + .btn { margin-top: 0.75rem; }
  .cta-section { padding: 3.5rem 0; }
  .cta-section .btn { max-width: 320px; margin-left: auto; margin-right: auto; }
  .offer-box { padding: 2rem 1.5rem; }
  section { padding: 3rem 0; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .footer-inner { gap: 2rem; }
  .footer-brand { max-width: 100%; }

  /* Sticky mobile call bar */
  body { padding-bottom: 64px; }
}

/* Sticky bottom CTA bar — mobile only */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--terra);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  .mobile-cta-bar a:first-child {
    border-right: 1px solid rgba(255,255,255,0.25);
    background: var(--terra-dk);
  }
}

/* Blog search & category filter */
.blog-toolbar { margin-bottom: 1.5rem; }
.blog-search { position: relative; margin-bottom: 1.1rem; max-width: 480px; }
.blog-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1.25rem 0.8rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text);
}
.blog-search input:focus { outline: none; border-color: var(--terra); }
.blog-search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.95rem; pointer-events: none;
}
.blog-filter-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.blog-filter-pill {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 50px; border: 1px solid var(--border);
  background: var(--white); color: var(--text-muted); cursor: pointer;
  transition: all 0.15s;
}
.blog-filter-pill:hover { border-color: var(--terra-lt); color: var(--terra); }
.blog-filter-pill.active { background: var(--terra); border-color: var(--terra); color: var(--white); }
.blog-no-results { text-align: center; color: var(--text-muted); padding: 2rem 0; display: none; }

.blog-recent { background: var(--blue-pale); padding: 2.5rem 0; }
.blog-recent .blog-card { position: relative; }
.blog-card-new-badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: var(--terra); color: var(--white); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 50px;
}

/* ===== Subtle scroll/hover animation (animations.js) ===== */
.tt-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; will-change: opacity, transform; }
.tt-reveal.tt-visible { opacity: 1; transform: translateY(0); }

.card, .blog-card, .step, .chip, .quote { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover, .blog-card:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(189,118,85,0.14); border-color: var(--terra-lt); }
.chip:hover { transform: translateY(-2px); background: var(--terra-pale); }

.btn { transition: background 0.2s, transform 0.18s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(189,118,85,0.30); }
.btn:active { transform: translateY(0); }

.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--terra); transition: width 0.25s ease; }
.nav-links a:hover::after { width: 100%; }

.page-hero h1, .page-hero p { animation: tt-fade-in-up 0.7s ease both; }
.page-hero p { animation-delay: 0.12s; }
@keyframes tt-fade-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.faq-item summary::after { display: inline-block; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .tt-reveal, .card, .blog-card, .step, .chip, .btn, .page-hero h1, .page-hero p { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===== Animated review slide-through (review-slider.js) ===== */
.tt-review-slider { position: relative; max-width: 720px; margin: 2.5rem auto 0; overflow: hidden; }
.tt-review-track { display: flex; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.tt-review-slide { flex: 0 0 100%; padding: 0 0.5rem; box-sizing: border-box; }
.tt-review-slide .quote { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--terra); border-radius: 0 12px 12px 0; padding: 1.75rem 2rem; box-shadow: 0 4px 18px rgba(189,118,85,0.08); min-height: 150px; }
.tt-review-slide .quote p { font-size: 1.05rem; line-height: 1.65; color: var(--text); margin: 0 0 1rem; }
.tt-review-slide .quote footer { font-weight: 700; color: var(--terra-dk); font-size: 0.9rem; }
.tt-review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.25rem; }
.tt-review-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: background 0.25s, transform 0.25s; }
.tt-review-dot.active { background: var(--terra); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .tt-review-track { transition: none; } }
