/* ==========================================================
   Service landing pages (/custom-software-development, /website-design, /ai-receptionist, /ai-automation).
   Template: app/Views/pages/includes/service/page.php. Loaded after work.css and cost.css, whose hero,
   steps, CTA, price cards and FAQ the page reuses. Classes here are prefixed sv-.
   ========================================================== */

/* ---------- Hero ---------- */
.sv-hero h1 {
  max-width: 980px;
  margin: 20px auto 24px;
  font-size: 68px;
}

.sv-hero .sub-head {
  margin: 0 auto;
}

.sv-hero .sv-intro {
  max-width: 760px;
}

.sv-crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #6f6f6f;
}

.sv-crumbs a {
  color: #464646;
}

.sv-crumbs a:hover {
  color: #d7141a;
}

.sv-hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.butn.sv-solid {
  background: #161616;
  border: 1px solid #161616;
  color: #fff;
}

.butn.sv-solid:hover {
  background: #d7141a;
  border-color: #d7141a;
  color: #fff;
}

.butn.sv-bord {
  border: 1px solid #161616;
  color: #161616;
}

.butn.sv-bord:hover {
  background: #161616;
  color: #fff;
}

/* ---------- Section heads (h2 styled like the h3 heads on /work) ---------- */
.sv-sec-head .sub-head {
  margin: 0;
}

.sv-sec-head h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.sv-note {
  margin-top: 26px;
  font-size: 15px;
}

.sv-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sv-note a:hover {
  color: #ff3b3b;
}

/* ---------- What's included ---------- */
.sv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sv-card {
  padding: 28px;
  border-radius: 20px;
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color .3s;
}

.sv-card:hover {
  border-color: rgba(255, 0, 0, 0.5);
}

.sv-card .material-symbols-outlined {
  display: block;
  margin-bottom: 18px;
  font-size: 30px;
  color: #ff3b3b;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.sv-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.3px;
}

.sv-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Pricing (cards from cost.css) ---------- */
.pr-svc .sv-price-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: normal;
}

/* ---------- How it works ---------- */
.sv-how {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sv-how-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  transition: border-color .3s, background .3s;
}

.sv-how-item:hover {
  border-color: rgba(255, 0, 0, 0.5);
  background: #212121;
  color: inherit;
}

.sv-how-item .material-symbols-outlined {
  grid-row: span 2;
  font-size: 28px;
  color: #ff3b3b;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.sv-how-title {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.sv-how-text {
  display: block;
  font-size: 14px;
  line-height: 1.6;
}

.sv-how-more {
  grid-column: 2;
  margin-top: 8px;
  font-size: 13px;
  color: #a4a4a4;
}

.sv-how-item:hover .sv-how-more {
  color: #ff3b3b;
}

/* ---------- Related work ---------- */
.sv-work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sv-work-item {
  margin: 0;
}

.sv-work-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: transform .4s;
}

.sv-work-item a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.sv-work-item a:hover img {
  transform: scale(1.04);
}

.sv-work-item figcaption {
  margin-top: 10px;
  font-size: 14px;
}

/* ---------- Process (steps from work.css; h3 sized like its h5) ---------- */
.sv-steps h3 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* ---------- FAQ (from cost.css; the question is an h3 for search engines, sized like the summary text) ---------- */
.pr-faq .sv-faq-q {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  color: inherit;
}

/* ---------- Other services ---------- */
.sv-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sv-related a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  transition: border-color .3s, background .3s;
}

.sv-related a:hover {
  border-color: #d7141a;
  background: #d7141a;
  color: #fff;
}

.wk-cta p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .sv-hero h1 {
    font-size: clamp(34px, 8vw, 52px);
    letter-spacing: -1.5px;
  }

  .sv-sec-head h2 {
    font-size: 32px;
  }

  .sv-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-how {
    grid-template-columns: 1fr;
  }

  .sv-work {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 575px) {
  .sv-cards {
    grid-template-columns: 1fr;
  }

  .sv-sec-head h2 {
    font-size: 28px;
  }

  .sv-steps h3 {
    font-size: 24px;
  }
}
