/* =============================================
   M Tech Service Pages — Inner Page Styles
   Extends landing.css design system
   ============================================= */

.header--solid {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

/* ---- Page Hero ---- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: var(--navy-900);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(4, 13, 26, 0.92) 0%, rgba(10, 22, 40, 0.85) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  // max-width: 720px;
}

.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.page-hero__breadcrumb a:hover {
  color: var(--cyan-400);
}

.page-hero__breadcrumb span {
  color: rgba(255, 255, 255, 0.35);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero__title .highlight {
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Overview ---- */
.sp-overview {
  padding: 6rem 0;
  background: var(--white);
}

.sp-overview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sp-overview__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.sp-overview__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.sp-overview__image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(4, 13, 26, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sp-overview__image-badge i {
  font-size: 1.5rem;
  color: var(--cyan-400);
}

.sp-overview__image-badge strong {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
}

.sp-overview__image-badge span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.sp-overview__text p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.sp-stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sp-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
}

.sp-stat__label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Benefits ---- */
.sp-benefits {
  padding: 6rem 0;
  background: var(--gray-50);
}

.sp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sp-benefit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  text-align: center;
}

.sp-benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.sp-benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: 14px;
  color: var(--cyan-400);
  font-size: 1.375rem;
  transition: all var(--transition);
}

.sp-benefit:hover .sp-benefit__icon {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: var(--white);
}

.sp-benefit h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.625rem;
}

.sp-benefit p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---- Capabilities (reuse service-card style) ---- */
.sp-capabilities {
  padding: 6rem 0;
  background: var(--white);
}

/* ---- Process ---- */
.sp-process {
  padding: 6rem 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.sp-process .section-title {
  color: var(--white);
}

.sp-process .section-desc {
  color: rgba(255, 255, 255, 0.6);
  margin-inline: auto;
}

.sp-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.sp-process__steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

.sp-step {
  text-align: center;
  position: relative;
}

.sp-step__num {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.sp-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.sp-step p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ---- Why Choose ---- */
.sp-why {
  padding: 6rem 0;
  background: var(--gray-50);
}

.sp-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sp-why__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-why__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.sp-why__item:hover {
  box-shadow: var(--shadow);
  transform: translateX(6px);
}

.sp-why__item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 10px;
  color: var(--cyan-500);
  font-size: 1.125rem;
}

.sp-why__item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.sp-why__item p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.sp-why__visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---- Testimonial strip ---- */
.sp-testimonial {
  padding: 5rem 0;
  background: var(--white);
}

.sp-testimonial__card {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sp-testimonial__stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.sp-testimonial__quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--navy-800);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.sp-testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.sp-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cyan-400);
}

.sp-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-testimonial__name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.9375rem;
  text-align: left;
}

.sp-testimonial__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: left;
}

/* ---- FAQ ---- */
.sp-faq {
  padding: 6rem 0;
  background: var(--gray-50);
}

.sp-faq__list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.sp-faq__item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.sp-faq__item.open {
  box-shadow: var(--shadow);
}

.sp-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.sp-faq__question:hover {
  color: var(--blue-600);
}

.sp-faq__question i {
  flex-shrink: 0;
  color: var(--cyan-500);
  transition: transform var(--transition);
  font-size: 0.875rem;
}

.sp-faq__item.open .sp-faq__question i {
  transform: rotate(180deg);
}

.sp-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.sp-faq__item.open .sp-faq__answer {
  max-height: 300px;
}

.sp-faq__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---- CTA Banner ---- */
.sp-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
}

.sp-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sp-cta__inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.sp-cta__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sp-cta__inner p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.sp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---- Tech tags ---- */
.sp-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.sp-tech-tag {
  padding: 0.4rem 0.875rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cyan-500);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {

  .sp-overview__grid,
  .sp-why__grid {
    grid-template-columns: 1fr;
  }

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

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

  .sp-process__steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-hero__actions {
    flex-direction: column;
  }

  .page-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .sp-stats {
    grid-template-columns: 1fr;
  }

  .sp-benefits__grid,
  .sp-process__steps {
    grid-template-columns: 1fr;
  }

  .sp-overview__image img,
  .sp-why__visual img {
    height: 280px;
  }
}