/* ========================================================================
   Service Page – Shared Styles (Systems & Integrations, E-Commerce)
   ======================================================================== */

/* --- Hero --- */
.sp-hero {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 180px 0 20px;
  position: relative;
  overflow: visible;
  text-align: center;
}

.sp-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100px;
  background-color: var(--primary-color);
  border-radius: 0 0 100% 100%;
  z-index: 1;
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.sp-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.sp-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  font-weight: 400;
}

/* --- Intro Section --- */
.sp-intro {
  padding: 100px 0 80px;
  position: relative;
  z-index: 2;
}

.sp-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 50px;
  align-items: center;
}

.sp-intro-content h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.sp-intro-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.sp-intro-image img {
  width: 100%;
}

.sp-intro-image.has-shadow img {
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* --- Feature Cards Grid --- */
.sp-features {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.sp-features .section-header {
  margin-bottom: 50px;
}

.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sp-feature-card {
  background-color: var(--light-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  height: 100%;
}

.sp-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  transition: height 0.4s ease;
}

.sp-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sp-feature-card:hover::before {
  height: 100%;
}

.sp-feature-card:hover .sp-feature-icon,
.sp-feature-card:hover h3,
.sp-feature-card:hover p {
  color: var(--light-color);
}

.sp-feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.sp-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.sp-feature-card p {
  margin-bottom: 0;
  transition: color 0.3s ease;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Highlight Section (dark bg) --- */
.sp-highlight {
  padding: 100px 0;
  background-color: var(--primary-color);
  color: var(--light-color);
  position: relative;
}

.sp-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sp-highlight-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

.sp-highlight-content p {
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.sp-highlight-points {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}

.sp-highlight-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.sp-highlight-points li i {
  color: var(--accent-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sp-highlight-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sp-highlight-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 380px;
  width: 100%;
}

.sp-highlight-icon-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-highlight-icon-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.sp-highlight-icon-item i {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: block;
}

.sp-highlight-icon-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}

/* --- Dual Column Section (light) --- */
.sp-dual {
  padding: 100px 0;
  background-color: var(--light-color);
}

.sp-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sp-dual-card {
  background: var(--light-color);
  border-radius: 18px;
  padding: 48px 42px;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.sp-dual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sp-dual-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  border-color: rgba(56, 118, 179, 0.12);
}

.sp-dual-card:hover::before {
  opacity: 1;
}

.sp-dual-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 118, 179, 0.08), rgba(56, 118, 179, 0.15));
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.sp-dual-card:hover .sp-dual-card-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--light-color);
}

.sp-dual-card h3 {
  font-size: 1.45rem;
  color: var(--primary-color);
  margin-bottom: 14px;
  font-weight: 700;
}

.sp-dual-card p {
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.sp-dual-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 18px;
}

.sp-dual-card ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-color);
}

.sp-dual-card ul li:last-child {
  margin-bottom: 0;
}

.sp-dual-card ul li i {
  color: var(--accent-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- Cases Preview Section --- */
.sp-cases {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.sp-cases .section-header {
  margin-bottom: 50px;
}

.sp-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.sp-case-card {
  background: var(--light-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.sp-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.sp-case-card-image {
  padding: 30px 30px 0;
  background: var(--gray-color);
}

.sp-case-card-image img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.sp-case-card:hover .sp-case-card-image img {
  transform: translateY(-5px);
}

.sp-case-card-body {
  padding: 25px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sp-case-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sp-case-card-tags span {
  display: inline-block;
  background-color: rgba(56, 118, 179, 0.08);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(56, 118, 179, 0.15);
  text-transform: uppercase;
}

.sp-case-card-body h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.sp-case-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
  flex: 1;
}

.sp-case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-top: auto;
  transition: gap 0.3s ease;
}

.sp-case-card:hover .sp-case-card-link {
  gap: 12px;
}

/* --- Process Section --- */
.sp-process {
  padding: 80px 0;
  background-color: var(--light-color);
}

.sp-process .section-header {
  margin-bottom: 50px;
}

/* --- Pre-CTA (extra bottom padding for CTA overlap) --- */
.sp-pre-cta {
  padding-bottom: 350px !important;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  z-index: 1;
}

/* --- Chat Mockup (AI Section) --- */
.chat-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1d23;
}

.chat-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1e2128, #262a33);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-mockup-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color), #5ba3e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.chat-mockup-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-mockup-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  letter-spacing: 0.2px;
}

.chat-mockup-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-mockup-header-actions {
  display: flex;
  gap: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.chat-mockup-body {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #1a1d23;
  min-height: 300px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  align-items: flex-end;
}

.chat-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #5ba3e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  line-height: 1.55;
}

.chat-msg.bot .chat-msg-bubble {
  background: #262a33;
  border-bottom-left-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--accent-color), #5ba3e0);
  border-bottom-right-radius: 6px;
  color: #fff;
}

.chat-msg-bubble p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.chat-msg-time {
  display: block;
  font-size: 0.62rem;
  margin-top: 6px;
  opacity: 0.45;
}

.chat-mockup-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #1e2128;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-mockup-input {
  flex: 1;
  background: #262a33;
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.chat-mockup-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #5ba3e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-mockup-send:hover {
  transform: scale(1.08);
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 992px) {
  .sp-intro-grid,
  .sp-highlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-intro-content,
  .sp-highlight-content {
    order: 1;
  }

  .sp-intro-image,
  .sp-highlight-visual {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .sp-dual-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .sp-cases-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .sp-highlight-icon-grid {
    max-width: 320px;
    margin: 0 auto;
  }

  .chat-mockup {
    max-width: 380px;
    margin: 0 auto;
  }

  .sp-pre-cta {
    padding-bottom: 80px !important;
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: 160px 0 80px;
  }

  .sp-hero::after {
    display: none;
  }

  .sp-hero h1 {
    font-size: 1.8rem;
  }

  .sp-hero p {
    font-size: 1.1rem;
  }

  .sp-intro {
    padding: 80px 0 60px;
  }

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

  .sp-features {
    padding: 60px 0;
  }

  .sp-highlight {
    padding: 70px 0;
  }

  .sp-highlight-content h2 {
    font-size: 1.8rem;
  }

  .sp-dual {
    padding: 70px 0;
  }

  .sp-dual-card {
    padding: 38px 30px;
  }

  .sp-cases {
    padding: 60px 0;
  }

  .sp-process {
    padding: 60px 0;
  }

  .sp-pre-cta {
    padding-bottom: 60px !important;
  }
}

@media (max-width: 576px) {
  .sp-hero {
    padding: 150px 0 80px;
  }

  .sp-hero h1 {
    font-size: 1.8rem;
  }

  .sp-intro {
    padding: 60px 0 50px;
  }

  .sp-intro-content h2,
  .sp-highlight-content h2 {
    font-size: 1.7rem;
  }

  .sp-features,
  .sp-highlight,
  .sp-dual,
  .sp-cases,
  .sp-process {
    padding: 50px 0;
  }

  .sp-dual-card {
    padding: 32px 24px;
  }

  .sp-highlight-icon-grid {
    gap: 15px;
  }

  .sp-highlight-icon-item {
    padding: 22px 15px;
  }

  .sp-highlight-icon-item i {
    font-size: 1.8rem;
  }

  .chat-mockup {
    max-width: 100%;
  }

  .chat-mockup-body {
    padding: 18px 14px;
    min-height: 260px;
    gap: 14px;
  }

  .chat-msg {
    max-width: 92%;
  }

  .sp-pre-cta {
    padding-bottom: 50px !important;
  }
}
