/* Services Detail Page Styles */

/* Hero Section */
.service-hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.service-hero-content {
  max-width: 900px;
}

.service-eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.service-hero-title .highlight {
  color: var(--primary-color);
}

.service-hero-description {
  font-size: 18px;
  font-weight: 300;
  line-height: 25.59px;
  letter-spacing: 0;
  color: #4b5563;
  margin-bottom: 9px;
  max-width: 800px;
}

.service-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* What This Service Enables Section */
.service-enables-section {
  padding: 5rem 0;
  border-top: 1px dashed #cbd5e1;
  border-bottom: 1px dashed #cbd5e1;
}

.service-enables-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.service-enables-subtitle {
  max-width: 70%;
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 1rem;
}

.service-enables-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.service-enables-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.59px;
  letter-spacing: 0;
  color: #4b5563;
}

.service-enables-text a {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .service-hero-title {
    font-size: 2.5rem;
  }

  .service-enables-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .service-hero-title {
    font-size: 2rem;
  }

  .service-hero-description {
    font-size: 1rem;
  }

  .service-enables-section {
    padding: 3rem 0;
  }
}

/* Core Capabilities Section */
.core-capabilities-section {
  padding: 5rem 0;
  background-color: #f8fafc;
  border-width: 1px 0px 1px 0px;
  border-style: solid;
  border-color: #e5e7eb;
}

.section-title-center {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: left;
  margin-bottom: 3rem;
}

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

.capability-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 7px;
  border: 1px solid #f3f4f6;
  box-shadow: 0px 1px 2px 0px #0000000d;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.capability-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  border: 1px solid #e2e8f0;
}

.capability-icon-wrapper img {
  filter: invert(50%) sepia(13%) saturate(830%) hue-rotate(178deg) brightness(91%) contrast(88%);
  width: 24px;
  /* Adding a reasonable width for icons inside the wrapper */
  height: 24px;
}

.capability-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.solution-detail-capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-detail-capability-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.solution-detail-capability-list li a {
  color: var(--primary-color);
}

.solution-detail-capability-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1rem;
}

.solution-detail-capability-list.no-bullet li {
  padding-left: 0;
}

.solution-detail-capability-list.no-bullet li::before {
  display: none;
}

/* Execution-Focused Delivery Section */
.delivery-section {
  padding: 6rem 0;
  background-color: white;
}

.delivery-title-wrapper {
  text-align: center;
  margin-bottom: 5rem;
}

.delivery-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
}

.delivery-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  /* Adjust based on circle size */
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e2e8f0;
  z-index: 1;
}

.delivery-step {
  position: relative;
  z-index: 2;
  flex: 1;
  background: transparent;
  /* Changed from white to transparent to show line if needed, but we need white behind number */
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0px 1px 2px 0px #0000000d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.delivery-step-content {
  padding-right: 1rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.step-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 19.91px;
  letter-spacing: 0;
  vertical-align: middle;
  color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .delivery-steps {
    flex-direction: column;
    gap: 3rem;
  }

  .delivery-steps::before {
    display: none;
    /* Remove horizontal line on mobile */
  }

  .delivery-steps::after {
    /* Vertical line for mobile? */
    /* content: ""; Commented due to side line */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    width: 1px;
    background-color: #e2e8f0;
    z-index: 1;
  }

  .delivery-step {
    padding-left: 4rem;
    /* Space for line/number */
  }

  .step-number {
    position: absolute;
    left: 0;
    top: 0;
  }
}

@media (max-width: 600px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .delivery-section .delivery-step {
    padding: 10px;
    width: auto;
  }
}

/* Where This Service Is Applied Section */
.applied-section {
  padding: 70px 0;
  background-color: #f9fafb;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.applied-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.applied-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 21px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0px 1px 2px 0px #0000000d;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.applied-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.applied-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background-color: #eff6ff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.applied-text {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}

/* Proof of Execution Section */
.proof-section {
  padding: 6rem 0;
  background-color: white;
}

.proof-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.proof-left .section-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.proof-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 25.59px;
  letter-spacing: 0;
  vertical-align: middle;
  color: #4b5563;
  max-width: 500px;
}

.proof-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 7px;
  padding: 21px;
  height: 101px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.stat-value-orange {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 7px;
}

.stat-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 17.5px;
  letter-spacing: 0.31px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color: #6b7280;
}

@media (max-width: 991px) {
  .proof-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .applied-grid {
    grid-template-columns: 1fr;
  }
}

/* Regulated Environments Section */
.regulated-section {
  padding: 5rem 0;
  background-color: var(--secondary-color);
  /* Dark Blue */
  border-width: 1px, 0px, 1px, 0px;

  border-style: solid;
  border-color: #ffffff1a;
  color: #ffffff;
}

.regulated-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.regulated-left {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.regulated-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #f05a284d;
  border-radius: 7px;
  background: #f05a2833;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.regulated-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.regulated-text p {
  font-weight: 400;
  font-size: 16px;
  line-height: 19.91px;
  letter-spacing: 0;
  vertical-align: middle;
  color: #9ca3af;
  max-width: 600px;
}

/* Why Citrusbug Section */
.why-citrusbug-section {
  padding: 6rem 0;
  background-color: #f8fafc;
  text-align: center;
}

.why-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.reason-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  /* Add padding to account for visual centering if needed, but flex center handles it. */
}

/* Vertical Divider for Desktop */
@media (min-width: 992px) {
  .reason-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1rem;
    /* Position in the middle of the 2rem gap */
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e5e7eb;
  }
}

.check-circle {
  width: 48px;
  height: 48px;
  background-color: #d1fae5;
  /* Light green */
  color: #059669;
  /* Dark green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.reason-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.4;
  max-width: 150px;
}

/* Ready to Move Forward CTA */
.cta-section {
  padding: 6rem 0;
  background-color: #0b1221;
  color: white;
  text-align: center;
  border-top: 1px solid #ffffff1a;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  color: #94a3b8;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  width: 294.5px;
  height: 51px;
  background: #f05a28;
  border-radius: 3.5px;
  padding: 15px 28px;
  box-shadow:
    0px 8px 10px -6px #f05a2833,
    0px 20px 25px -5px #f05a2833;
  color: white;

  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-cta-primary:hover {
  background-color: var(--primary-dark);
}

.btn-cta-outline {
  /* background: #FFFFFF; */
  color: #ffffff;
  border: 1px solid #ffffff;
  height: 51px;
  padding: 14px 28px;
  border-radius: 3.5px;

  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
  /* Dark color for readability */
  transition: border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta-outline:hover {
  border-color: white;
  transition: 0.2s ease-in-out;
}

@media (max-width: 991px) {
  .regulated-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .regulated-left {
    flex-direction: column;
    align-items: center;
  }

  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
  }

  /* Hero Actions Stack */
  .service-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .service-hero-actions .btn-primary,
  .service-hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Adjust Section Titles */
  .section-title-center,
  .service-enables-subtitle,
  .why-title,
  .proof-left .section-title {
    font-size: 1.95rem;
  }

  /* Proof Stats Mobile */
  .proof-stats-grid {
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}