/* =========================================================
   SERVICES DETAIL PAGE (Services.html) - uses the variables and base styles of style.css
   ========================================================= */

.sv-hero {
  position: relative;
  padding: 110px 0 40px;
  text-align: center;
  overflow: hidden;
}

.sv-hero h1 {
  color: var(--text-dark);
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.sv-hero p {
  max-width: 660px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* Jump list: one pill per service, sticks under the header while reading */
.sv-nav {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 12px 0;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.sv-nav .container {
  position: relative; /* pills measure offsetLeft from here */
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sv-nav .container::-webkit-scrollbar { display: none; }

.sv-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sv-nav a img { width: 20px; height: 20px; }

.sv-nav a:hover { border-color: var(--primary); color: var(--primary); }

.sv-nav a.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #fff;
}

/* ---------- One service ---------- */
.sv-block {
  padding: 80px 0 30px;
  scroll-margin-top: 130px;
}

.sv-block + .sv-block { border-top: 1px solid var(--border); }

.sv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.sv-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sv-title .sv-icon {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid #e9d6fc;
  border-radius: 18px;
  background: var(--primary-soft);
}

.sv-title .sv-icon img { width: 100%; height: 100%; object-fit: contain; }

.sv-num {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sv-title h2 {
  color: var(--text-dark);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.sv-tagline {
  margin-top: 16px;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.sv-copy h3 {
  margin: 30px 0 10px;
  color: var(--text-dark);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.sv-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.sv-copy p + p { margin-top: 10px; }

.sv-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-top: 6px;
}

.sv-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.sv-list li b { color: var(--text-dark); }

.sv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.sv-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* How our team works: numbered steps */
.sv-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.sv-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sv-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sv-steps li b {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 14px;
}

/* Side card: who it is for, technologies, actions */
.sv-side {
  position: sticky;
  top: 140px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f9f5fe 100%);
  box-shadow: var(--shadow-sm);
}

.sv-side h4 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sv-side h4 + * { margin-top: 10px; }

.sv-side ul.sv-for {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.sv-side ul.sv-for li {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
}

.sv-side ul.sv-for li::before {
  content: "→ ";
  color: var(--primary);
}

.sv-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.sv-tech span {
  padding: 5px 11px;
  border: 1px solid #e9d6fc;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.sv-actions {
  display: grid;
  gap: 10px;
}

.sv-actions .button {
  width: 100%;
  min-height: 50px;
}

.sv-related {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ---------- Shared process + FAQ ---------- */
.sv-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sv-process article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sv-process span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.sv-process h3 {
  margin-top: 16px;
  color: var(--text-dark);
  font-size: 17px;
}

.sv-process p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.sv-faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.sv-faq details {
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.sv-faq summary {
  position: relative;
  padding: 19px 30px 19px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.sv-faq summary::-webkit-details-marker { display: none; }

.sv-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
}

.sv-faq details[open] summary::after { content: "–"; }

.sv-faq details p {
  padding-bottom: 19px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sv-grid { grid-template-columns: 1fr; gap: 28px; }
  .sv-side { position: static; }
  .sv-process { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sv-hero { padding: 90px 0 30px; }
  .sv-nav { top: 64px; }
  .sv-block { padding: 56px 0 20px; }
  .sv-list { grid-template-columns: 1fr; }
  .sv-steps { grid-template-columns: 1fr; }
}
