/* SowCrown service detail pages */
.sc-service {
  --sc-navy: #001c5d;
  --sc-cyan: #00bae6;
  --sc-text: #444;
  --sc-muted: #737373;
  --sc-line: #d9e2ec;
  --sc-soft: #f3f7fb;
  font-family: "Josefin Sans", Sans-serif;
  color: var(--sc-text);
}

.sc-service * { box-sizing: border-box; }

.sc-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 70px;
  background:
    linear-gradient(120deg, rgba(0, 28, 93, 0.92), rgba(0, 186, 230, 0.78)),
    url('/assets/uploads/2023/04/devOps.jpg') center/cover no-repeat;
  color: #fff;
}

.sc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sc-hero p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.95;
}

.sc-hero .sc-divider {
  width: 80px;
  height: 3px;
  margin: 18px auto 0;
  background: #fff;
}

.sc-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.sc-section {
  padding: 56px 0;
}

.sc-section.alt { background: var(--sc-soft); }

.sc-section h2 {
  margin: 0 0 12px;
  color: var(--sc-navy);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.sc-section h3 {
  margin: 0 0 10px;
  color: var(--sc-navy);
  font-size: 20px;
  font-weight: 600;
}

.sc-section > .sc-wrap > p,
.sc-intro p {
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 16px;
}

.sc-rule {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-cyan), var(--sc-navy));
  margin: 0 0 22px;
}

.sc-grid {
  display: grid;
  gap: 18px;
}

.sc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sc-item {
  padding: 18px 18px 16px;
  border-left: 3px solid var(--sc-cyan);
  background: #fff;
}

.sc-section.alt .sc-item { background: #fff; }
.sc-section:not(.alt) .sc-item { background: var(--sc-soft); }

.sc-item h3 { margin-bottom: 8px; }
.sc-item p,
.sc-item li {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sc-muted);
}

.sc-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.sc-item li + li { margin-top: 4px; }

.sc-list {
  margin: 0;
  padding-left: 20px;
}

.sc-list li {
  margin: 0 0 8px;
  line-height: 1.55;
}

.sc-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: linear-gradient(90deg, var(--sc-cyan), var(--sc-navy));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.sc-cta:hover {
  background: linear-gradient(270deg, var(--sc-cyan), var(--sc-navy));
}

/* Flow / ecosystem diagrams */
.sc-diagram {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sc-line);
}

.sc-section.alt .sc-diagram { background: #fff; }

.sc-diagram-title {
  margin: 0 0 18px;
  text-align: center;
  color: var(--sc-navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sc-flow-node {
  min-width: 120px;
  padding: 12px 14px;
  text-align: center;
  background: var(--sc-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.sc-flow-node.accent { background: var(--sc-cyan); color: var(--sc-navy); }
.sc-flow-node.soft {
  background: #e8f7fc;
  color: var(--sc-navy);
  border: 1px solid #b7e7f5;
}

.sc-flow-arrow {
  color: var(--sc-cyan);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.sc-flow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sc-flow-col .sc-flow-arrow { transform: rotate(90deg); }

.sc-tree {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.sc-tree-root {
  padding: 14px 28px;
  background: var(--sc-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sc-tree-branches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.sc-tree-branch {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 14px;
  background: var(--sc-soft);
  border-top: 3px solid var(--sc-cyan);
}

.sc-tree-branch h4 {
  margin: 0 0 10px;
  color: var(--sc-navy);
  font-size: 15px;
}

.sc-tree-branch ul {
  margin: 0;
  padding-left: 16px;
}

.sc-tree-branch li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sc-muted);
  margin-bottom: 4px;
}

.sc-tools {
  display: grid;
  gap: 16px;
}

.sc-tool-group h4 {
  margin: 0 0 10px;
  color: var(--sc-navy);
  font-size: 15px;
  font-weight: 700;
}

.sc-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-tool-tags span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--sc-line);
  color: var(--sc-navy);
  font-size: 13px;
  font-weight: 500;
}

.sc-section.alt .sc-tool-tags span { background: #fff; }
.sc-section:not(.alt) .sc-tool-tags span { background: var(--sc-soft); }

.sc-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .sc-grid-2,
  .sc-grid-3,
  .sc-grid-4,
  .sc-two-col {
    grid-template-columns: 1fr;
  }

  .sc-flow-arrow:not(.sc-flow-col .sc-flow-arrow) {
    transform: rotate(90deg);
  }

  .sc-flow {
    flex-direction: column;
  }
}
