/* ===================================================================
   SALESFORCE SERVICES PAGE
   Builds on erp-services.css + service-common.css (same template as
   /erp-implementation). Only Salesforce-specific additions live here.
   Prefix: sf-
   =================================================================== */

/* ===== Hero: two buttons in the "What is" column ===== */
.sf-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tp-btn-yellow-green.green-solid.sf-btn-outline {
  background-color: transparent;
  color: #ce403d;
  box-shadow: inset 0 0 0 1.5px #ce403d;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tp-btn-yellow-green.green-solid.sf-btn-outline:hover {
  background-color: #ce403d;
  color: #fff;
}

@media (max-width: 991px) {
  .sf-hero-btns {
    justify-content: center;
  }
}

/* ===== Services grid: 4 x 2 instead of the ERP 3-column grid ===== */
.erp-modules-grid.sf-services-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1199px) {
  .erp-modules-grid.sf-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .erp-modules-grid.sf-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Section 5: Process timeline =====
   erp-services.css enlarges the step circle to 50px (40px on mobile) but the
   shared connector line is still positioned for a 36px circle, so it sat
   off-centre and started inside the circle. Recentre it from one variable. */
.sf-process-section {
  --sf-step-size: 50px;
  --sf-step-gap: 30px; /* padding-bottom + margin-bottom of each step */
}

.sf-process-section .erp-process-item::before {
  left: calc(var(--sf-step-size) / 2 - 1px);
  top: var(--sf-step-size);
  /* +4px tucks the end under the next circle (z-index 2), covering the 1px row border */
  height: calc(100% - var(--sf-step-size) + var(--sf-step-gap) + 4px);
  width: 2px;
}

.sf-process-section .erp-process-number {
  box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(206, 64, 61, 0.25);
  transition: transform 0.3s ease;
}

.sf-process-section .erp-process-item:hover .erp-process-number {
  transform: scale(1.08);
}

.sf-process-section .erp-process-svg {
  max-width: 520px;
}

@media (max-width: 767px) {
  .sf-process-section {
    --sf-step-size: 40px;
  }

  /* erp-services.css stacks the number above the text on mobile, which made the
     connector line run through the text. Keep the number beside the text instead. */
  .sf-process-section .erp-process-item {
    flex-direction: row;
    gap: 16px;
  }

  .sf-process-section .erp-process-info {
    padding-top: 6px;
  }

  .sf-process-section .erp-process-number {
    box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(206, 64, 61, 0.25);
  }
}

/* ===== Section 3: Clouds & Modules tabs ===== */
.sf-modules-section {
  background: #ffffff;
  position: relative;
}

.sf-mod-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.sf-mod-tab {
  border: 1px solid #e3e6ec;
  background: #fff;
  color: #141414;
  font-family: p_m;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sf-mod-tab:hover {
  border-color: #ce403d;
  color: #ce403d;
}

.sf-mod-tab.active {
  background: #ce403d;
  border-color: #ce403d;
  color: #fff;
}

.sf-mod-pane {
  display: none;
}

.sf-mod-pane.active {
  display: block;
}

/* Cards rise in one after another whenever a tab is opened */
.sf-mod-pane.active .sf-mod-card {
  animation: sfFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.sf-mod-pane.active .sf-mod-card:nth-child(2)  { animation-delay: 0.06s; }
.sf-mod-pane.active .sf-mod-card:nth-child(3)  { animation-delay: 0.12s; }
.sf-mod-pane.active .sf-mod-card:nth-child(4)  { animation-delay: 0.18s; }
.sf-mod-pane.active .sf-mod-card:nth-child(5)  { animation-delay: 0.24s; }
.sf-mod-pane.active .sf-mod-card:nth-child(6)  { animation-delay: 0.30s; }
.sf-mod-pane.active .sf-mod-card:nth-child(7)  { animation-delay: 0.36s; }
.sf-mod-pane.active .sf-mod-card:nth-child(8)  { animation-delay: 0.42s; }
.sf-mod-pane.active .sf-mod-card:nth-child(9)  { animation-delay: 0.48s; }
.sf-mod-pane.active .sf-mod-card:nth-child(10) { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .sf-mod-pane.active .sf-mod-card {
    animation: none;
  }
}

.sf-mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Clean white card: soft border, one red accent line, small icon tile */
.sf-mod-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 16px;
  padding: 26px 24px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sf-mod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #ce403d;
  opacity: 0.85;
  transition: width 0.35s ease;
}

.sf-mod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(206, 64, 61, 0.3);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.sf-mod-card:hover::before {
  width: 4px;
}

.sf-mod-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: rgba(206, 64, 61, 0.08);
  color: #ce403d;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.sf-mod-card:hover .sf-mod-card-icon {
  background: #ce403d;
  color: #fff;
}

.sf-mod-card-body {
  flex: 1;
  min-width: 0;
}

.sf-mod-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #141414;
  font-family: p_m;
  margin-bottom: 8px;
}

.sf-mod-card-text {
  font-size: 15px;
  line-height: 1.65;
  color: #5b5b63;
  font-family: p_r;
  margin: 0;
}

@media (max-width: 575px) {
  .sf-mod-card {
    padding: 22px 20px;
  }
}

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

@media (max-width: 575px) {
  .sf-mod-grid {
    grid-template-columns: 1fr;
  }
  .sf-mod-tab {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Section 6: Industries (reuses home industry tab markup) ===== */
/* Same 2-column check list as includes/sections/industries-we-serve.php */
.sf-industry-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sf-industry-list li {
  color: #000;
}

.sf-industry-list li i {
  color: #ce403d;
}

.sf-industry-btn {
  margin-top: 30px;
}

@media (max-width: 575px) {
  .sf-industry-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Section 9: FAQ (intro column + accordion cards) ===== */
.sf-faq-section {
  background: #ffffff;
}

.sf-faq-intro {
  position: sticky;
  top: 110px;
}

.sf-faq-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 18px;
  border-radius: 50px;
  background: rgba(206, 64, 61, 0.1);
  color: #ce403d;
  font-family: p_m;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.sf-faq-intro .tp-section-title {
  margin-bottom: 18px;
}

.sf-faq-lead {
  font-family: p_r;
  font-size: 17px;
  line-height: 1.7;
  color: #4b4b52;
  margin-bottom: 32px;
}

.sf-faq-help {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-left: 3px solid #ce403d;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.sf-faq-help-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(206, 64, 61, 0.08);
  color: #ce403d;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-faq-help-title {
  font-family: p_m;
  font-size: 18px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 4px;
}

.sf-faq-help-text {
  font-family: p_r;
  font-size: 15px;
  color: #5b5b63;
  margin-bottom: 12px;
}

.sf-faq-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: p_m;
  font-size: 15px;
  font-weight: 600;
  color: #ce403d;
  text-decoration: none;
}

.sf-faq-help-link i {
  transition: transform 0.3s ease;
}

.sf-faq-help-link:hover {
  color: #a03330;
}

.sf-faq-help-link:hover i {
  transform: translateX(4px);
}

.sf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sf-faq-item {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sf-faq-item:hover {
  border-color: rgba(206, 64, 61, 0.3);
}

.sf-faq-item.is-open {
  border-color: rgba(206, 64, 61, 0.45);
  box-shadow: 0 18px 40px rgba(206, 64, 61, 0.14);
}

.sf-faq-q-wrap {
  margin: 0;
}

.sf-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: padding 0.3s ease;
}

/* Open card: pull the answer up close to its question */
.sf-faq-item.is-open .sf-faq-q {
  padding-bottom: 4px;
}

.sf-faq-num {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: rgba(206, 64, 61, 0.1);
  color: #ce403d;
  font-family: p_m;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.sf-faq-item.is-open .sf-faq-num {
  background: linear-gradient(135deg, #ce403d 0%, #a03330 100%);
  color: #fff;
}

.sf-faq-q-text {
  flex: 1;
  font-family: p_m;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #141414;
  transition: color 0.3s ease;
}

.sf-faq-item.is-open .sf-faq-q-text,
.sf-faq-q:hover .sf-faq-q-text {
  color: #ce403d;
}

/* Plus that turns into a minus */
.sf-faq-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(206, 64, 61, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sf-faq-toggle::before,
.sf-faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #ce403d;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.sf-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sf-faq-item.is-open .sf-faq-toggle {
  background: #ce403d;
  border-color: #ce403d;
  transform: rotate(180deg);
}

.sf-faq-item.is-open .sf-faq-toggle::before,
.sf-faq-item.is-open .sf-faq-toggle::after {
  background: #fff;
}

.sf-faq-item.is-open .sf-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.sf-faq-a {
  margin: 0;
  padding: 0 78px 24px 88px; /* left lines up with the question text, right stops before the toggle */
  font-family: p_r;
  font-size: 16px;
  line-height: 1.75;
  color: #4b4b52;
}

@media (max-width: 991px) {
  .sf-faq-intro {
    position: static;
  }
}

@media (max-width: 575px) {
  .sf-faq-help {
    padding: 20px;
  }
  .sf-faq-q {
    gap: 12px;
    padding: 18px;
  }
  .sf-faq-num {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 14px;
  }
  .sf-faq-q-text {
    font-size: 16px;
  }
  .sf-faq-item.is-open .sf-faq-q {
    padding-bottom: 8px;
  }
  .sf-faq-a {
    padding: 0 18px 20px 18px;
    font-size: 15px;
  }
}
