/* Service pages (/websites/, /e-commerce/, /saas/, /custom-software/, /mobile-apps/,
   /automation-ai/ and their Arabic twins): one template. Class prefix: sv-.
   Each service belongs to a family (data-family), and the family's glaze runs through the page:
   in the hero the cube stands assembled with the family's block floating above it (site.css,
   .hm-visual.one), and what the client gets is laid as a course of bricks in that glaze. */

/* ---------- hero ---------- */
.sv-hero .page-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sv-hero h1 { font-size: clamp(32px, 4vw, 54px); max-width: 16em; text-wrap: pretty; }
[dir="ltr"] .sv-hero h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.14; }
.sv-hero .lead { text-wrap: pretty; }
.sv-hero .hm-visual { max-width: 380px; }

/* ---------- who it is for: each audience under its family's diamond ---------- */
.sv-for-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sv-for-grid .head { margin-bottom: 0; }
.sv-for-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 36px; }
.sv-for-list li { position: relative; padding-top: 20px; border-top: 2px solid var(--line); }
.sv-for-list li::before {
  content: ""; position: absolute; top: -6px; inset-inline-start: 0; width: 10px; height: 10px;
  background: var(--fam); transform: rotate(45deg); box-shadow: inset 0 -2px 0 rgba(0,0,0,.22);
}
.sv-for-list h3 { font-size: 20px; color: var(--lapis-900); margin-bottom: 6px; }
.sv-for-list p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- what you get: a course of bricks laid in bond, half bricks at the ends ---------- */
.sv-wall { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.sv-block {
  grid-column: span 2; display: flex; flex-direction: column; gap: 6px; min-height: 150px;
  padding: 22px 24px 26px; border-radius: 3px; color: #fff;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -5px 0 rgba(0,0,0,.28), 0 2px 0 rgba(14,27,82,.16);
}
.sv-block b { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.35; }
.sv-block span { font-size: 15.5px; line-height: 1.7; color: var(--sub); }
[data-family="auto"] .sv-block { color: var(--lapis-950); }
.sv-half {
  grid-column: span 1; border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g2) 82%, #000), color-mix(in srgb, var(--g2) 70%, #000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -4px 0 rgba(0,0,0,.25);
}

/* ---------- examples: one case gets the width of one card ---------- */
.hm-work.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .sv-for-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 920px) {
  .sv-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-hero .hm-visual { max-width: 280px; }
  .sv-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-block { grid-column: span 1; }
  .sv-half { display: none; }
}
@media (max-width: 600px) {
  .sv-hero .hm-visual { max-width: 200px; }
  .sv-for-list, .sv-wall { grid-template-columns: minmax(0, 1fr); }
  .sv-block { min-height: 0; }
}
