/* ============================================ */
/* Service pages - shared styles                */
/* Used by all 5 templates in templates/services */
/* Page overrides: assets/css/services/{slug}.css */
/* ============================================ */

/* ============================================
   Software Dev  -  About Section
   ============================================ */
.pk-sd-about {
  padding: 5rem 0;
  background: #fff;
  position: relative;
}

.pk-sd-about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Left column ── */
.pk-sd-about-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pk-sd-about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #600000;
  font-weight: 600;
  width: fit-content;
}

.pk-sd-about-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #600000;
}

.pk-sd-about-title {
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  font-weight: 500;
}

.pk-sd-about-title .text-dred {
  color: #600000;
  font-style: normal;
  font-weight: 400;
}

.pk-sd-about-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
  max-width: 44ch;
}

.pk-sd-about-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #600000;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.pk-sd-about-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pk-sd-about-cta:hover {
  background: #4A0000;
  transform: translateY(-2px);
}

.pk-sd-about-cta:hover svg {
  transform: translateX(4px);
}

/* ── Right column ── */
.pk-sd-about-right {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.pk-sd-about-rule {
  display: block;
  width: 56px;
  height: 3px;
  background: #600000;
  border-radius: 2px;
}

.pk-sd-about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pk-sd-about-body p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0;
  max-width: 62ch;
}

/* ── Desktop ── */
@media (min-width: 900px) {
  .pk-sd-about {
    padding: 7rem 0;
  }

  .pk-sd-about-inner {
    grid-template-columns: 5fr 7fr;
    gap: 0;
    align-items: start;
    position: relative;
  }

  .pk-sd-about-left {
    padding-right: 5.5rem;
  }

  .pk-sd-about-right {
    padding-left: 5.5rem;
    padding-top: 0.75rem;
    border-left: 1px solid #e7e2e0;
  }

  .pk-sd-about-title {
    font-size: 2.75rem;
  }

  .pk-sd-about-sub {
    font-size: 1.0625rem;
  }

  .pk-sd-about-body p {
    font-size: 1rem;
  }
}

/* ── Mobile ── */
@media (max-width: 639px) {
  .pk-sd-about {
    padding: 3.5rem 0;
  }

  .pk-sd-about-inner {
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .pk-sd-about-title {
    font-size: 1.75rem;
  }

  .pk-sd-about-sub {
    font-size: 0.9375rem;
  }
}

/* ============================================
   Software Dev  -  Services Section
   ============================================ */
.pk-sd-services {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(138, 26, 26, 0.35) 0%, transparent 55%),
    linear-gradient(135deg, #0A0A0A 0%, #2A0202 55%, #4A0000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pk-sd-services-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Head */
.pk-sd-services-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: 3.5rem;
}

.pk-sd-services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  width: fit-content;
}

.pk-sd-services-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.pk-sd-services-title {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.pk-sd-services-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 62ch;
}

/* Grid */
.pk-sd-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Card */
.pk-sd-service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.4s ease,
    background 0.35s ease;
}

.pk-sd-service:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 139, 139, 0.4);
  background: linear-gradient(150deg, rgba(138, 26, 26, 0.28) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 20px 44px rgba(138, 26, 26, 0.28);
}

.pk-sd-service-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.pk-sd-service-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.pk-sd-service:hover .pk-sd-service-icon {
  background: #600000;
  border-color: #600000;
  transform: scale(1.06);
}

.pk-sd-service:hover .pk-sd-service-icon img {
  opacity: 1;
}

.pk-sd-service-title {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 600;
}

.pk-sd-service-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* Tablet */
@media (min-width: 640px) {
  .pk-sd-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pk-sd-services-title {
    font-size: 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .pk-sd-services {
    padding: 6rem 0;
  }

  .pk-sd-services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .pk-sd-services-title {
    font-size: 2.5rem;
  }

  .pk-sd-service {
    padding: 2rem 1.75rem;
  }
}

.pk-faq--sd .pk-faq-inner {
  padding-left: 120px;
  padding-right: 120px;
}

/* Mobile  -  full width, small edge padding */
@media (max-width: 767px) {
  .pk-faq--sd .pk-faq-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Tablet  -  moderate padding */
@media (min-width: 768px) and (max-width: 1023px) {
  .pk-faq--sd .pk-faq-inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ============================================ */
/* 62. Services section heading  -  force accent    */
/* Same visual as the hero: first part white,     */
/* em part coral, everything on one line.         */
/* ============================================ */

.pk-sd-services .pk-sd-services-title,
.pk-sd-services-title {
  color: #ffffff !important;
}

.pk-sd-services .pk-sd-services-title em,
.pk-sd-services-title em {
  display: inline !important;
  color: #FF8B8B !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* ============================================ */
/* 63. Services section  -  tighter vertical rhythm */
/* Reduces the top padding and the head-to-grid  */
/* margin. Keeps the heading↔paragraph gap.       */
/* ============================================ */

/* These declarations are intentionally not !important. homepage.css
   still carries the later mobile section-spacing overrides, which must
   continue to win below 768px exactly as they did before extraction. */

.pk-sd-services {
  padding: 3rem 0 3.5rem;
}

.pk-sd-services-head {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .pk-sd-services {
    padding: 4rem 0 5rem;
  }

  .pk-sd-services-head {
    margin-bottom: 2.5rem;
  }
}

/* Mobile  -  even tighter */
@media (max-width: 639px) {
  .pk-sd-services {
    padding: 2.5rem 0 3rem;
  }

  .pk-sd-services-head {
    margin-bottom: 1.5rem;
  }
}

/* ============================================ */
/* SERVICES TITLE - SINGLE LINE ON DESKTOP      */
/* Removes width cap + forces one line.         */
/* Wraps normally on tablet/mobile.             */
/* ============================================ */
.pk-sd-services-head {
  max-width: none !important;
}

.pk-sd-services-title {
  text-wrap: nowrap !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

@media (max-width: 1023px) {
  .pk-sd-services-title {
    text-wrap: balance !important;
    white-space: normal !important;
  }
}

/* ============================================ */
/* SERVICE PAGES - hide arrow inside about CTA   */
/* Keeps the button text only.                   */
/* ============================================ */
.pk-sd-about-cta svg {
  display: none !important;
}

/* ============================================ */
/* SERVICE PAGES - compact section headings     */
/* Applied on phones only.                       */
/* ============================================ */
@media (max-width: 639px) {
  .pk-sd-about-title,
  .pk-sd-services-title {
    font-size: 1.375rem;
    line-height: 1.25;
  }
}

/* ============================================ */
/* CHALLENGE CARDS: LEFT-ALIGN CONTENT           */
/* Overrides the align-items:center rule that    */
/* was centering card text. Section title stays. */
/* ============================================ */
html body .pk-challenge-card {
  align-items: flex-start !important;
  text-align: left !important;
}
html body .pk-challenge-card .pk-challenge-card-title,
html body .pk-challenge-card .pk-challenge-tag,
html body .pk-challenge-card p,
html body .pk-challenge-card span {
  text-align: left !important;
}