/* ------------------------------------------------------------------
   Service pages: websites, whatsapp, loyalty, ussd, software, mobile-apps
   Shared layout - each page adds its own hero visual.
   ------------------------------------------------------------------ */

.svc-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.svc-hero-copy .eyebrow { color: var(--orange); }
.svc-hero-copy .lead { margin: 1.3rem 0 2.1rem; max-width: 50ch; }
.svc-hero-visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
}

/* Hero media: screenshot in a frame, a phone, or a row of game shots */
.svc-hero-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: var(--bg-soft);
}
.svc-hero-media img { width: 100%; height: auto; display: block; }
.svc-hero-media.is-phone {
  max-width: 300px;
  margin-inline: auto;
  border-radius: 36px;
  border-width: 3px;
}
.svc-hero-media.is-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.svc-hero-media.is-shots img {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(244, 239, 230, 0.1);
}
.svc-hero-media.is-shots img:nth-child(2) { transform: translateY(-14px); }

.svc-facts { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-facts .stat-value { font-size: 1.7rem; }

.svc-usecases .cards-3 { margin-top: 2rem; }
.svc-usecases .card h3 { font-size: 1.15rem; margin-top: 1rem; }

.svc-steps {
  list-style: none;
  counter-reset: svc-step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.svc-steps li {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: rgba(244, 239, 230, 0.035);
  border: 1px solid rgba(244, 239, 230, 0.09);
  border-radius: var(--radius-lg);
}
.svc-steps li::before {
  counter-increment: svc-step;
  content: counter(svc-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.svc-steps h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.svc-steps p { color: var(--muted); font-size: 0.95rem; }
.svc-steps code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9em;
  color: var(--cream);
  background: rgba(244, 239, 230, 0.08);
  padding: 0.05em 0.35em;
  border-radius: 5px;
}
@media (max-width: 1000px) { .svc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-steps { grid-template-columns: 1fr; } }

.svc-callout {
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(107, 107, 245, 0.08);
  border: 1px solid rgba(107, 107, 245, 0.3);
}
.svc-callout h3 { margin-bottom: 0.4rem; }
.svc-callout > p { color: var(--muted); max-width: 70ch; }
.svc-callout > p a { color: var(--orange); font-weight: 600; }
.svc-callout ul {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.svc-callout li strong { color: var(--cream); font-weight: 600; }
@media (max-width: 700px) { .svc-callout ul { grid-template-columns: 1fr; } }

.svc-includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.svc-includes li {
  padding: 1.5rem 1.4rem;
  background: rgba(22, 17, 15, 0.55);
  border: 1px solid rgba(244, 239, 230, 0.09);
  border-radius: var(--radius);
}
.svc-includes h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--cream); }
.svc-includes p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 900px) { .svc-includes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-includes { grid-template-columns: 1fr; } }

/* Proof: live work the visitor can open */
.svc-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.svc-proof a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: rgba(244, 239, 230, 0.035);
  border: 1px solid rgba(244, 239, 230, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.svc-proof a:hover { transform: translateY(-4px); border-color: rgba(245, 115, 27, 0.5); }
.svc-proof a:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 115, 27, 0.3); }
.svc-proof img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--bg-soft);
}
.svc-proof .is-phone-shot { object-fit: contain; padding: 0.8rem 0 0; background: rgba(22, 17, 15, 0.7); }
/* Laptop mockups: contained and inset, so the whole device sits inside the card
   instead of being cropped by it and running out to its edges. */
.svc-proof .is-site-shot {
  object-fit: contain;
  padding: 1rem 1rem 0;
  background: transparent;
}
.svc-proof-body { padding: 1.1rem 1.3rem 1.3rem; }
.svc-proof-body .tag { margin-bottom: 0.5rem; }
.svc-proof-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.svc-proof-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.svc-proof-body .link-arrow { display: inline-block; margin-top: 0.7rem; }

.svc-faq { max-width: 820px; }
.svc-faq details {
  border-top: 1px solid rgba(36, 29, 24, 0.14);
  padding: 0.2rem 0;
}
.svc-faq details:last-of-type { border-bottom: 1px solid rgba(36, 29, 24, 0.14); }
.svc-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #241d18;
}
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}
.svc-faq details[open] summary::after { content: '\2013'; }
.svc-faq details p { color: #4a3f36; padding: 0 0 1.1rem; max-width: 68ch; }
.svc-faq details p + p { margin-top: -0.4rem; }
/* Prose links only - a button inside an answer keeps its own colours. */
.svc-faq details a:not(.btn) { color: var(--orange); font-weight: 600; }
/* Each answer ends with a way to act on it, carrying the question into the form. */
.faq-cta { padding: 0 0 1.3rem; margin: 0; }

.svc-band { text-align: center; }
.svc-band .container { max-width: 760px; }
.svc-band p { color: var(--muted); }
.svc-band .hero-actions { justify-content: center; margin-top: 1.8rem; }

.svc-cta { text-align: center; }
.svc-cta .container { max-width: 720px; }
.svc-cta p { color: var(--muted); }
.svc-cta .hero-actions { justify-content: center; margin-top: 1.8rem; }
.svc-cta-note { margin-top: 2rem; font-size: 0.9rem; color: var(--muted-dark); }
.svc-cta-note a { color: var(--orange); font-weight: 600; }

/* ===== Services hub: one card per service, consistent width per row ===== */
.svc-hub-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 440px));
  justify-content: start;
}
.svc-hub-cards .card-links { flex-wrap: wrap; row-gap: 0.4rem; }
@media (max-width: 700px) {
  .svc-hub-cards { grid-template-columns: 1fr; }
}

/* ===== Messaging hub: channel tiles + comparison table ===== */
.svc-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  width: 100%;
  max-width: 420px;
}
.svc-tile {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid rgba(244, 239, 230, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.svc-tile:hover { border-color: var(--orange); transform: translateY(-3px); }
.svc-tile:nth-child(2):hover { transform: translateX(24px) translateY(-3px); }
.svc-tile:hover h3 { color: var(--orange); }
.svc-tile:nth-child(2) { transform: translateX(24px); }
.svc-tile .card-icon { width: 52px; height: 52px; }
.svc-tile.is-wa .card-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.svc-tile.is-ussd .card-icon { background: linear-gradient(135deg, var(--peri), #4040c8); }
.svc-tile h3 { font-size: 1.05rem; margin: 0 0 0.15rem; }
.svc-tile p { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) {
  .svc-tile:nth-child(2),
  .svc-tile:nth-child(2):hover { transform: none; }
  .svc-tile:nth-child(2):hover { transform: translateY(-3px); }
}

.svc-compare-wrap { margin-top: 2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.svc-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
}
.svc-compare th, .svc-compare td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(244, 239, 230, 0.09);
}
.svc-compare thead th {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(244, 239, 230, 0.05);
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
.svc-compare thead th:first-child { border-top-left-radius: 14px; }
.svc-compare thead th:last-child { border-top-right-radius: 14px; }
.svc-compare tbody th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cream);
  width: 20%;
}
.svc-compare td { color: var(--muted); }
.svc-compare td strong { color: var(--cream); font-weight: 600; }
.svc-compare .is-good { color: #9fe8b3; font-weight: 600; }
.svc-compare .is-bad { color: #ff8a8f; font-weight: 600; }

/* ===== SMS page: phone mock with message bubbles ===== */
.svc-sms {
  width: 100%;
  max-width: 320px;
  background: #0f0c0b;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 10px;
}
.svc-sms-screen {
  background: #1b1614;
  border-radius: 24px;
  min-height: 460px;
  padding: 0.9rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.svc-sms-head {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cream);
  padding: 0.3rem 0 0.8rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.svc-sms-head span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: var(--muted-dark); }
.svc-sms-bubble {
  max-width: 86%;
  align-self: flex-start;
  background: #2a221d;
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.6rem 0.8rem;
  border-radius: 16px 16px 16px 4px;
  white-space: pre-wrap;
}
.svc-sms-bubble.is-out { align-self: flex-end; background: var(--orange); color: #fff; border-radius: 16px 16px 4px 16px; }
.svc-sms-time { font-size: 0.65rem; color: var(--muted-dark); text-align: center; }

/* Breadcrumb-style link in a channel page's eyebrow, back up to the hub */
.svc-up { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(245, 115, 27, 0.4); }
.svc-up:hover { border-bottom-color: var(--orange); }
