
/* =========================================================
   NEW FEATURES — All new component styles
   ========================================================= */

/* ── VARIABLE ALIASES & UTILITIES ── */
:root {
  --card-bg: var(--bg-alt);
  --surf: var(--bg-alt);
  --text-muted: #6B6A70;
}
body.lm {
  --card-bg: #1F1D24;
  --surf: #1F1D24;
  --text-muted: #A3A1A8;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── READING PROGRESS BAR ── */
#readProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--acc), #f59e0b);
  z-index: 99999; transition: width 0.1s linear;
}

/* ── BACK TO TOP ── */
#btt {
  position: fixed; bottom: 6rem; left: 2rem; width: 48px; height: 48px;
  background: var(--card-bg); border: 1px solid var(--bord); border-radius: 50%;
  color: var(--text); font-size: 1.2rem; cursor: pointer; z-index: 990;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
  backdrop-filter: blur(10px);
}
#btt.visible { opacity: 1; pointer-events: auto; }
#btt:hover { border-color: var(--acc); transform: translateY(-3px); color: var(--acc); }

/* ── EXIT INTENT POPUP ── */
.exit-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px); z-index: 99000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.exit-popup-overlay.active { opacity: 1; pointer-events: auto; }
.exit-popup {
  background: var(--surf); border: 1px solid var(--bord); border-radius: 20px;
  padding: 3rem 2.5rem; max-width: 480px; width: 90%; text-align: center;
  position: relative; transform: translateY(30px);
  transition: transform 0.3s; box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.exit-popup-overlay.active .exit-popup { transform: translateY(0); }
.exit-popup-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-muted); cursor: pointer;
}
.exit-popup-icon { font-size: 3rem; margin-bottom: 1rem; }
.exit-popup-icon i { color: var(--acc); }
.exit-popup h3 { font-size: 1.6rem; margin-bottom: 0.75rem; color: var(--text); }
.exit-popup p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.exit-popup-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.exit-popup-wa {
  display: flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #fff; padding: 0.9rem 1.6rem;
  border-radius: 8px; font-weight: 600; font-size: 0.85rem; text-decoration: none;
}
.exit-popup-skip { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }

/* ── TESTIMONIALS SLIDER ── */
.testimonials-section { padding: 5rem 0; background: var(--bg-alt); }
.testimonials-track-wrap { overflow: hidden; position: relative; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.testimonial-card {
  min-width: 340px; flex-shrink: 0;
  background: var(--card-bg); border: 1px solid var(--bord);
  border-radius: 16px; padding: 2rem; position: relative;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--acc); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.95rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-quote::before { content: '"'; font-size: 2rem; color: var(--acc); line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), #f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.testimonial-biz { font-size: 0.78rem; color: var(--text-muted); }
.testimonials-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.testimonials-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--bord);
  color: var(--text); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.testimonials-nav button:hover { border-color: var(--acc); color: var(--acc); }
.testimonials-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.testimonials-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bord); cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.testimonials-dots span.active { background: var(--acc); transform: scale(1.3); }

/* ── CLIENT LOGO WALL ── */
.logo-wall-section { padding: 3rem 0; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); overflow: hidden; }
.logo-wall-label { text-align: center; font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.logo-wall-track {
  display: flex; gap: 3rem; animation: logoScroll 25s linear infinite;
  width: max-content;
}
.logo-wall-track:hover { animation-play-state: paused; }
.logo-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.9rem; color: var(--text-muted);
  white-space: nowrap; transition: color 0.2s;
  padding: 0.5rem 1.5rem; border: 1px solid var(--bord); border-radius: 50px;
  background: var(--card-bg);
}
.logo-item:hover { color: var(--acc); border-color: var(--acc); }
.logo-item i { font-size: 1.1rem; }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── BEFORE/AFTER RESULTS ── */
.results-section { padding: 5rem 0; }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.result-card {
  background: var(--card-bg); border: 1px solid var(--bord); border-radius: 16px;
  padding: 2rem; text-align: center; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc), #f59e0b);
}
.result-card:hover { border-color: var(--acc); transform: translateY(-4px); }
.result-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--acc); }
.result-metric { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.result-before-after { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.75rem 0; }
.result-before { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); }
.result-arrow { color: var(--acc); font-size: 1.2rem; }
.result-after { font-size: 2.2rem; font-weight: 800; color: var(--acc); font-family: 'Bebas Neue', sans-serif; }
.result-label { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; } }


/* ── TABLE OF CONTENTS ── */
.toc-panel {
  position: sticky; top: 100px;
  background: var(--card-bg); border: 1px solid var(--bord); border-radius: 14px;
  padding: 1.5rem; margin-bottom: 2rem; max-height: 70vh; overflow-y: auto;
}
.toc-panel h4 { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.toc-panel ol { list-style: none; counter-reset: toc; }
.toc-panel ol li { counter-increment: toc; margin-bottom: 0.5rem; }
.toc-panel ol li a {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s; line-height: 1.4;
}
.toc-panel ol li a::before { content: counter(toc) '.'; color: var(--acc); font-weight: 700; flex-shrink: 0; }
.toc-panel ol li a:hover { color: var(--acc); }
.toc-panel ol li a.toc-active { color: var(--acc); font-weight: 600; }

/* ── SOCIAL SHARE BAR ── */
.share-bar {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 980;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surf); border: 1px solid var(--bord); border-radius: 50px;
  padding: 0.6rem 1rem; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.share-bar.visible { transform: translateX(0); }
.share-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; white-space: nowrap; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: transform 0.2s, background 0.2s; text-decoration: none; color: #fff;
}
.share-wa { background: #25D366; }
.share-li { background: #0077B5; }
.share-tw { background: #000; }
.share-copy { background: var(--acc); }
.share-btn:hover { transform: scale(1.15); }
@media (max-width: 768px) {
  .share-bar { bottom: 5rem; right: 1rem; }
}

/* ── RELATED POSTS ── */
.related-posts-section { padding: 4rem 0; background: var(--bg-alt); border-top: 1px solid var(--bord); }
.related-posts-title { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 2rem; color: var(--text); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related-post-card {
  background: var(--card-bg); border: 1px solid var(--bord); border-radius: 14px;
  padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.related-post-card:hover { border-color: var(--acc); transform: translateY(-3px); }
.related-post-tag { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.related-post-card h4 { font-size: 0.95rem; color: var(--text); line-height: 1.5; margin: 0; }
.related-post-link { font-size: 0.8rem; color: var(--acc); margin-top: auto; display: flex; align-items: center; gap: 0.3rem; }
@media (max-width: 768px) { .related-posts-grid { grid-template-columns: 1fr; } }

/* ── ROI CALCULATOR ── */
.calc-section { padding: 5rem 0; }
.calc-card {
  background: var(--card-bg); border: 1px solid var(--bord); border-radius: 24px;
  padding: 3rem; max-width: 780px; margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.calc-group { margin-bottom: 1.5rem; }
.calc-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.calc-group input,
.calc-group select {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--bord);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s; box-sizing: border-box;
}
.calc-group input:focus,
.calc-group select:focus { outline: none; border-color: var(--acc); }
.calc-btn {
  width: 100%; padding: 1.1rem; background: var(--acc); color: #fff;
  border: none; border-radius: 12px; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s; margin-top: 0.5rem;
  grid-column: 1 / -1;
}
.calc-btn:hover { background: #6d28d9; transform: translateY(-2px); }
.calc-results {
  background: var(--bg-alt); border: 1px solid var(--bord); border-radius: 16px;
  padding: 2rem; margin-top: 2rem; display: none;
}
.calc-results.visible { display: block; animation: fadeIn 0.4s ease; }
.calc-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.calc-result-item { text-align: center; padding: 1rem; }
.calc-result-value { font-size: 2rem; font-weight: 800; color: var(--acc); font-family: 'Bebas Neue', sans-serif; }
.calc-result-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 1px; }
.calc-cta-row { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } .calc-results-grid { grid-template-columns: 1fr; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  padding: 0.75rem 2rem; background: transparent;
  border-bottom: 1px solid var(--bord);
}
.breadcrumb-list { display: flex; align-items: center; gap: 0.5rem; list-style: none; flex-wrap: wrap; }
.breadcrumb-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb-list li a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-list li a:hover { color: var(--acc); }
.breadcrumb-list li:last-child { color: var(--text); font-weight: 500; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; opacity: 0.4; }

/* ── ANIMATED COUNTER ── */
.stat-counter { transition: all 0.3s; }

/* ── PAGE HERO (reusable centered hero) ── */
.page-hero-section {
  padding: 140px 0 4rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--bord);
  transition: background .3s;
  position: relative; z-index: 1;
  text-align: center;
}
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .88;
  background: linear-gradient(135deg, var(--text) 50%, var(--acc));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
.page-hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin: 0 auto 2rem;
}

/* ── FAQ CATEGORY PILLS ── */
.faq-cats {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin-top: 1.5rem;
}
.faq-cat-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1.1rem; border-radius: 50px;
  border: 1px solid var(--bord); background: var(--bg-alt);
  color: var(--text-muted); font-size: .8rem; font-weight: 600;
  text-decoration: none; letter-spacing: .3px;
  transition: all .2s;
}
.faq-cat-pill:hover { border-color: var(--acc); color: var(--acc); background: transparent; }
.faq-cat-pill i { font-size: 1rem; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--bord); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; gap: 1rem;
  font-size: .95rem; font-weight: 600; color: var(--text);
  text-align: left; cursor: pointer; font-family: inherit;
  transition: color .2s;
}
.faq-q:hover { color: var(--acc); }
.faq-q.open { color: var(--acc); }
.faq-icon {
  font-size: 1.3rem; font-weight: 300; flex-shrink: 0;
  color: var(--text-muted); transition: transform .3s, color .2s;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
}
.faq-q.open .faq-icon { transform: rotate(45deg); color: var(--acc); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-a.open { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a > div > p { margin: 0; padding: 0 2rem 1.25rem; font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* ── FAQ PAGE BODY ── */
.faq-page-body { padding: 4rem 0 2rem; background: var(--bg); transition: background .3s; }
.faq-page-container { max-width: 820px; }

/* ── FAQ GROUP ── */
.faq-group {
  background: var(--bg-alt);
  border: 1px solid var(--bord);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color .3s;
}
.faq-group:hover { border-color: rgba(211,18,42,.25); }
.faq-group-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--bord);
  background: linear-gradient(135deg, rgba(211,18,42,.04), transparent);
}
.faq-group-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), #f59e0b);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-group-icon i { font-size: 1.4rem; color: #fff; }
.faq-group-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin: 0;
}
.faq-list { padding: .5rem 0; }

/* ── FAQ CTA ICON ── */
.faq-cta-icon {
  font-size: 3rem; color: var(--acc);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .page-hero-section { padding: 120px 1.5rem 3rem; }
  .faq-group-header { padding: 1.25rem 1.25rem; }
  .faq-list .faq-q, .faq-list .faq-a { padding-left: 1.25rem; padding-right: 1.25rem; }
}
