/* Services index + detail. Layout only — colours, cards and buttons come
   from the design system in base.css. */

/* ---------- Index ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service-card p { flex: 1; margin-bottom: 20px; }
.service-card .btn-link { margin-top: auto; }

.stack-lead { max-width: 720px; margin: 0 0 30px; font-size: 17px; }
.stack-steps { margin-top: 4px; }

/* ---------- Detail ---------- */
.service-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.service-hero .page-title { margin-top: 10px; }

@media (max-width: 620px) {
  /* Stack the plate above the title: side by side it squeezes the heading
     into a narrow column that wraps after two or three words. */
  .service-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .icon-tile--lg { width: 52px; height: 52px; border-radius: 15px; }
  .icon-tile--lg svg { width: 25px; height: 25px; }
}

/* ---------- What you get ---------- */
.deliverable {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px;
}
.deliverable p { margin: 0; font-size: 15px; color: var(--text-dim); line-height: 1.6; }
.deliverable-check {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 0, 0.28);
  color: var(--accent-hi);
}
.deliverable-check svg { width: 16px; height: 16px; }

/* ---------- Proof block ---------- */
.proof-panel { position: relative; border-color: rgba(255, 106, 0, 0.28); }
.proof-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-hi);
}
.proof-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.proof-text {
  margin: 18px 0 20px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text);
  max-width: 820px;
}

/* ---------- Audit feature strip ---------- */
.audit-feature {
  display: flex;
  gap: clamp(20px, 3vw, 34px);
  align-items: flex-start;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--accent-line);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.audit-feature::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.24), transparent 70%);
  pointer-events: none;
}
.audit-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -26px rgba(255, 106, 0, 0.6);
}
.audit-feature > * { position: relative; z-index: 1; }
.audit-feature .section-title { margin: 12px 0 14px; font-size: clamp(24px, 2.8vw, 32px); }
.audit-feature p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}
@media (max-width: 620px) {
  .audit-feature { flex-direction: column; gap: 18px; }
}

/* ---------- Facts (stat tiles under the hero) ---------- */
.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 36px 0 0;
}
.fact {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fact dt {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  color: transparent;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.fact dd { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }

/* ---------- Capabilities ---------- */
.capability .icon-tile { margin-bottom: 18px; }
.capability h3 { font-size: 19px; margin-bottom: 8px; }

/* ---------- Showcase: device mockups borrowed from the case page ---------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.showcase-item { margin: 0; }
.showcase-item--browser { grid-column: 1; }
.showcase-item--phone { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.showcase figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 640px;
}
.showcase-item--phone figcaption { text-align: center; margin-inline: auto; }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-item--browser, .showcase-item--phone { grid-column: auto; grid-row: auto; }
}

.principles { margin-top: 4px; }
.principles li { color: var(--text); }

/* ---------- CRM feature card on the index ---------- */
.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-feature::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.service-feature:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.service-feature > * { position: relative; z-index: 1; }
.service-feature .section-title { margin: 12px 0 14px; font-size: clamp(24px, 2.8vw, 32px); }
.service-feature p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
}
.service-feature-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-deep);
}
.service-feature-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .service-feature { grid-template-columns: 1fr; }
  .service-feature-shot { order: -1; }
}
