/* Consulting Services page -- reuses .app-section/.cta-btn from
   overview.css; this file only adds the bits unique to this page: the
   alternating visual/text rows and the CTA banner. The visuals are
   animated HTML/SVG recreations of the dashboard widgets (sample
   figures, no live data) -- this page never runs a live check. */

.consult-services-list{
  display:flex; flex-direction:column; gap:8px;
  padding-top:20px;
}

.consult-service-row{
  display:flex; align-items:center; gap:36px;
  padding:28px 0;
}
.consult-service-row + .consult-service-row{
  border-top:1px solid var(--line);
}
.consult-service-row-reverse{
  flex-direction:row-reverse;
}

.consult-service-media{
  flex:0 0 44%;
  min-height:0;
  border:none;
  background:none;
  box-shadow:none;
  display:flex; align-items:stretch;
  padding:4px 0;
  box-sizing:border-box;
}

.consult-service-body{ flex:1; min-width:0; }
.consult-service-title{
  margin:0 0 8px; font-size:1.6rem; font-weight:600; letter-spacing:-.02em;
  font-feature-settings:"ss01","cv11";
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  color:var(--ink);
}
.consult-service-tools{
  font-size:0.76rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  color:var(--accent); margin-bottom:10px;
}
.consult-service-desc{ margin:0 0 16px; font-size:0.9rem; font-weight:400; letter-spacing:normal; color:var(--muted); line-height:1.65; }
.consult-service-link{
  display:inline-block; font-size:0.86rem; font-weight:700;
  color:var(--accent); text-decoration:underline; text-underline-offset:3px;
}
.consult-service-link:hover{ color:#0d3f99; }

/* Stack to image-on-top / text-below on narrow screens -- the
   left/right alternation only makes sense with room on both sides. */
@media (max-width: 760px){
  .consult-service-row, .consult-service-row-reverse{
    flex-direction:column; align-items:stretch; gap:18px;
  }
  .consult-service-media{ flex:none; height:220px; }
}

.consult-cta{
  margin-top:24px; padding:22px;
  background:#0d3f99; border-radius:var(--radius-card);
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.consult-cta-title{
  margin:0 0 6px; font-size:1.3rem; font-weight:600; letter-spacing:-.02em;
  font-feature-settings:"ss01","cv11";
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  color:#fff;
}
.consult-cta-desc{ margin:0; font-size:0.86rem; font-weight:400; letter-spacing:normal; color:rgba(255,255,255,.85); max-width:480px; }
.consult-cta-btn{
  background:#fff; color:#0d3f99; border-color:#fff;
  min-width:160px;
  height:auto; border-radius:6px; padding:15px 16px; gap:8px;
  font-size:0.85rem; font-weight:500;
}
.consult-cta-btn:hover{ background:#eef3fc; }

/* ---- Animated showcase visuals (sample figures, no live data) ----
   Hidden states only apply under .cv-live (added by the page script
   when motion is allowed) -- no-JS / reduced-motion sees final states.
   .inview is added per section by IntersectionObserver. */
.cv-scope{ width:100%; }
.cv-good{ color:#1a7f37; }
.cv-bad{ color:#c0392b; }
.cv-rise{ transition:opacity .5s ease, transform .5s ease; }
.cv-live .cv-scope:not(.inview) .cv-rise{ opacity:0; transform:translateY(14px); }
[data-bar]{ transition:width 1s cubic-bezier(.22,1,.36,1); }
.cv-live .cv-scope:not(.inview) [data-bar]{ width:0 !important; }
.cv-draw{ transition:stroke-dashoffset 2s cubic-bezier(.22,1,.36,1); stroke-dasharray:1; stroke-dashoffset:0; }
.cv-live .cv-scope:not(.inview) .cv-draw{ stroke-dashoffset:1; }
.cv-fill{ transition:opacity .8s ease .3s; }
.cv-live .cv-scope:not(.inview) .cv-fill{ opacity:0; }
.cv-enddot{
  transform-box:fill-box; transform-origin:center;
  transition:opacity .4s ease 1.5s, transform .4s cubic-bezier(.22,1,.36,1) 1.5s;
}
.cv-live .cv-scope:not(.inview) .cv-enddot{ opacity:0; transform:scale(0); }
.cv-bar{ transition:transform .8s cubic-bezier(.22,1,.36,1); transform-origin:bottom; }
.cv-live .cv-scope:not(.inview) .cv-bar{ transform:scaleY(0); }

/* Arcs (rings + gauge) grow via dasharray; same hidden-state pattern. */
.cv-ring-arc{ transition:stroke-dasharray 1.2s ease; }
.cv-live .cv-scope:not(.inview) .cv-ring-arc{ stroke-dasharray:0 1 !important; }
.cv-dot{ flex:none; width:10px; height:10px; border-radius:3px; }

/* AEO summary rings */
.cv-summary{ width:100%; }
.cv-insight{
  margin:0 0 12px; font-size:0.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted);
}
.cv-rings{ display:flex; gap:12px; justify-content:space-around; }
.cv-ring{ flex:1; max-width:130px; display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; }
.cv-live .cv-scope.inview .cv-ring svg{ animation:cv-ring-pop .6s ease; }
@keyframes cv-ring-pop{ from{ transform:scale(.9); } to{ transform:scale(1); } }
.cv-ring svg{ width:100%; max-width:104px; height:auto; display:block; }
.cv-ring-dial{ position:relative; display:block; width:100%; max-width:104px; }
.cv-ring-dial svg{ max-width:none; }
.cv-ring-dial b{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; color:#1a1a1a;
}
.cv-ring > span:last-child{ font-size:12px; font-weight:600; color:var(--muted); }

/* SEO gauge + segmented bar */
.cv-gauge{ display:flex; gap:20px; align-items:center; width:100%; }
.cv-hl{
  margin:20px 0 0; padding:6px 10px;
  background:#fff7d6; border-radius:8px;
  font-size:0.85rem; line-height:1.55; color:var(--ink);
}
.cv-gauge-side{ flex:1; min-width:0; }
.cv-checks{ margin:0 0 10px; font-size:1.05rem; color:var(--muted); }
.cv-checks b{ font-size:1.6rem; font-weight:800; color:#5b9bd5; }
.cv-segbar{ display:flex; height:10px; border-radius:99px; overflow:hidden; background:#eef0f4; margin-bottom:12px; }
.cv-segbar i{ display:block; height:100%; width:var(--w); }
.cv-seglist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cv-seglist li{ display:flex; align-items:center; gap:8px; font-size:0.82rem; color:var(--ink); }
.cv-seglist b{ margin-left:auto; font-size:0.85rem; }
.cv-counts{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
.cv-count{
  border:1px solid var(--line); border-radius:10px; padding:10px 6px;
  display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center;
}
.cv-count b{ font-size:1.2rem; color:var(--ink); }
.cv-count span:last-child{ font-size:0.68rem; color:var(--muted); }

/* Tables (AEO prompts / Content pages) */
.cv-tablewrap{ width:100%; overflow-x:auto; }
.cv-table{ width:100%; min-width:560px; border-collapse:collapse; font-size:0.78rem; }
.cv-table th{
  text-align:left; font-size:0.68rem; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted); font-weight:700; padding:6px 8px; border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.cv-table td{ padding:8px; border-bottom:1px solid var(--line); color:var(--ink); vertical-align:top; }
.cv-table tr:last-child td{ border-bottom:none; }
.cv-pages td small{ display:block; color:var(--muted); font-size:0.68rem; margin-top:2px; word-break:break-all; }
.cv-num{ font-weight:700; white-space:nowrap; }
.cv-track{ display:block; height:6px; border-radius:99px; background:#eef0f4; overflow:hidden; margin-top:6px; min-width:80px; }
.cv-track i{ display:block; height:100%; width:var(--w); background:var(--accent); border-radius:99px; }
.cv-dist{ list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.cv-dist li{ display:flex; align-items:center; gap:8px; font-size:0.8rem; color:var(--ink); }
.cv-dist .cv-track{ flex:1; margin-top:0; }
.cv-dist b{ min-width:20px; text-align:right; }
.cv-hint{ font-size:0.8rem; color:var(--muted); margin:12px 0 0; }
.cv-rank .cv-counts{ grid-template-columns:repeat(3, 1fr); }

/* Line chart (link building) */
.cv-chart{ width:100%; }
.cv-chart svg{ width:100%; height:auto; display:block; }
.cv-legend{ display:flex; gap:16px; justify-content:center; font-size:0.75rem; color:var(--muted); margin-bottom:8px; }
.cv-legend span{ display:inline-flex; align-items:center; gap:6px; }
.cv-legend i{ width:14px; height:10px; border-radius:2px; display:inline-block; }

/* Stacked bars (strategy) */
.cv-stackwrap{ width:100%; }
.cv-stack{ display:flex; align-items:flex-end; gap:8px; height:180px; padding-top:8px; }
.cv-bar{ flex:1; display:flex; flex-direction:column; border-radius:4px 4px 0 0; overflow:hidden; background:#eef0f4; }
.cv-bar i{ display:block; width:100%; }
.cv-xlabels{ display:flex; gap:8px; margin-top:6px; }
.cv-xlabels span{ flex:1; text-align:center; font-size:0.6rem; color:var(--muted); }
.cv-stackwrap .cv-legend{ margin-top:10px; flex-wrap:wrap; }

@media (prefers-reduced-motion:reduce){
  .cv-rise, [data-bar], .cv-draw, .cv-bar, .cv-fill, .cv-enddot{ transition:none !important; }
  .cv-ring svg{ animation:none !important; }
}