/* Service pages. One template for every service, built from the home page's
   components (home.css: ad-*) and the about page's opening (about.css: ab-hero).
   These are the pieces only service pages have. Hover only changes colour. */

/* ---------- Opening ---------- */

.sv-crumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ad-faint);
}
.sv-crumb a { color: var(--ad-soft); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) { .sv-crumb a:hover { color: var(--ad-brand); } }

/* ---------- Three pillars ---------- */

.sv-pillars { display: grid; gap: 16px; }
@media (min-width: 860px) { .sv-pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sv-pillar { padding: 28px; border-radius: var(--ad-r); }
@media (min-width: 768px) { .sv-pillar { padding: 32px; } }
.sv-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--ad-brand);
  font-size: 19px;
  box-shadow: 0 1px 2px rgba(22, 20, 58, .06);
}
.sv-pillar h3 { margin: 20px 0 0; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.sv-pillar p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ad-soft); }

/* ---------- Problems: what goes wrong, each in its own card ---------- */

.sv-problems { display: grid; gap: 16px; }
@media (min-width: 700px) { .sv-problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sv-problems.is-three { grid-template-columns: repeat(3, 1fr); } }
.sv-problem {
  padding: 26px;
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .85);
}
.sv-problem-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ad-lav);
  color: var(--ad-brand);
  font-size: 14px;
}
.sv-problem h3 { margin: 16px 0 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.sv-problem p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ad-soft); }

/* ---------- Process: heading on one side, steps on the other ---------- */

@media (min-width: 1024px) { .ad-signup.sv-process { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.sv-process .ad-steps { margin-top: 0; }
.sv-process-lead { margin: 16px 0 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--ad-soft); }
@media (max-width: 1023px) { .sv-process .ad-steps { margin-top: 8px; } }

/* ---------- List: channels, deliverables, flows, each with a tag ---------- */

.sv-list {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-r);
  background: #fff;
  overflow: hidden;
}
.sv-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 20px;
  border-bottom: 1px solid var(--ad-line);
}
@media (min-width: 700px) { .sv-row { grid-template-columns: 44px 1fr auto; padding: 22px 28px; } }
.sv-row:last-child { border-bottom: 0; }
.sv-row-ico {
  grid-row: span 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ad-lav);
  color: var(--ad-brand);
  font-size: 15px;
}
@media (min-width: 700px) { .sv-row-ico { grid-row: auto; } }
.sv-row b { display: block; font-size: 16.5px; font-weight: 700; }
.sv-row span.sv-row-text { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--ad-soft); }
.sv-tag {
  grid-column: 2;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ad-lav);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ad-brand);
  white-space: nowrap;
}
@media (min-width: 700px) { .sv-tag { grid-column: 3; justify-self: end; } }

/* ---------- Extra sections: plain cards ---------- */

.sv-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .sv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sv-cards.is-three { grid-template-columns: repeat(3, 1fr); } }
.sv-card {
  padding: 28px;
  border: 1px solid var(--ad-line);
  border-radius: 24px;
  background: #fff;
}
.sv-card h3 { margin: 18px 0 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.sv-card .sv-sub { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--ad-brand); }
.sv-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ad-soft); }
.sv-card .sv-icon { background: var(--ad-lav); box-shadow: none; }

/* ---------- Objective planner (Meta and Google) ---------- */

.sv-planner {
  display: grid;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-r);
  background: var(--ad-sky);
}
@media (min-width: 1024px) { .sv-planner { grid-template-columns: 280px 1fr; gap: 24px; padding: 24px; } }

.sv-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sv-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .sv-tabs { flex-direction: column; overflow: visible; padding: 0; } }
.sv-tab {
  flex-shrink: 0;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  color: var(--ad-ink);
  font: 600 15px/1.3 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.sv-tab small { display: none; font-size: 12.5px; font-weight: 400; color: var(--ad-soft); }
@media (min-width: 1024px) { .sv-tab small { display: block; } .sv-tab { padding: 14px 18px; } }
.sv-tab[aria-selected="true"] { background: #fff; border-color: var(--ad-brand); box-shadow: 0 6px 18px rgba(22, 20, 58, .08); }
@media (hover: hover) { .sv-tab[aria-selected="false"]:hover { background: #fff; } }
.sv-tab:focus-visible { outline: 2px solid var(--ad-brand); outline-offset: 2px; }

.sv-panel { min-width: 0; }
.sv-panel[hidden] { display: none; }
.sv-panel-head { margin-bottom: 16px; }
.sv-panel-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sv-panel-head p { margin: 4px 0 0; font-size: 14.5px; color: var(--ad-soft); }
.sv-types { display: grid; gap: 12px; }
@media (min-width: 700px) { .sv-types { grid-template-columns: repeat(2, 1fr); } }
.sv-type { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ad-line); }
.sv-type-top { display: flex; align-items: center; gap: 12px; }
.sv-type-top i {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--ad-lav);
  color: var(--ad-brand);
  font-size: 15px;
}
.sv-type-top b { font-size: 15.5px; line-height: 1.3; }
.sv-type p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ad-soft); }
.sv-type .sv-best { margin-top: 12px; font-size: 13px; color: var(--ad-ink); }
.sv-type .sv-best span { color: var(--ad-faint); }

/* A new tab's cards fade in, so the swap reads as a change rather than a jump.
   Clicks are frequent here, so it stays short. */
.sv-panel.is-entering .sv-type { animation: sv-in 180ms var(--ad-ease-out) both; }
@keyframes sv-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Related services ---------- */

.sv-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.sv-related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ad-ink);
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}
.sv-related a i { font-size: 13px; color: var(--ad-brand); }
@media (hover: hover) { .sv-related a:hover { border-color: var(--ad-brand); color: var(--ad-brand); } }

@media (prefers-reduced-motion: reduce) {
  .sv-panel.is-entering .sv-type { animation: none; }
}
