/**
 * TSW Single Service Page Styles
 *
 * Ported from static site, adapted for theme CSS variables.
 * Used on: single-tsw_service.php
 *
 * @package TSW
 * @since   1.0.0
 */

/* ============ SERVICE PAGE HERO ============ */
.sp-hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
}

.sp-hero--green { background: linear-gradient(135deg, #1a3a25 0%, #224633 50%, #2d5a3f 100%); }
.sp-hero--teal { background: linear-gradient(135deg, #0d3b3b 0%, #0f4f4f 50%, #1a6b6b 100%); }
.sp-hero--orange { background: linear-gradient(135deg, #3d2008 0%, #5e3610 50%, #7a4a18 100%); }
.sp-hero--forest { background: linear-gradient(135deg, #142818 0%, #1e3d24 50%, #275230 100%); }
.sp-hero--bright { background: linear-gradient(135deg, #2a3d10 0%, #3d5a18 50%, #4f7320 100%); }
.sp-hero--purple { background: linear-gradient(135deg, #2d1540 0%, #3d1d55 50%, #4e266b 100%); }
.sp-hero--mahogany { background: linear-gradient(135deg, #2d1510 0%, #4a2418 50%, #603020 100%); }
.sp-hero--ink { background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #252525 100%); }
.sp-hero--gold { background: linear-gradient(135deg, #3a2a10 0%, #5a4020 50%, #7a5830 100%); }
.sp-hero--blue { background: linear-gradient(135deg, #0d2137 0%, #163556 50%, #1e4a75 100%); }

.sp-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sp-hero-shapes .tsw-shape { opacity: .06; }

.sp-breadcrumb {
  font-size: .8rem;
  margin-bottom: 28px;
}

.sp-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}

.sp-breadcrumb .breadcrumb-item a:hover { color: var(--tsw-white); }
.sp-breadcrumb .breadcrumb-item.active { color: var(--tsw-green-bright); font-weight: 600; }
.sp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

.sp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tsw-green-bright);
  background: rgba(149,191,71,.12);
  border: 1px solid rgba(149,191,71,.2);
  border-radius: 50px;
  margin-bottom: 18px;
}

.sp-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--tsw-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  max-width: 650px;
}

.sp-hero-title .tsw-highlight { color: var(--tsw-green-bright); }

.sp-hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 30px;
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

/* Hero buttons now use global .tsw-btn-primary / .tsw-btn-outline + .tsw-dark-cta context */

/* Hero Quick Stats */
.sp-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.sp-hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.sp-hero-stat:first-child { padding-left: 0; }
.sp-hero-stat:last-child { border-right: none; padding-right: 0; }

.sp-hero-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tsw-green-bright);
  font-family: var(--tsw-font-display, 'Qilka', serif);
  line-height: 1;
}

.sp-hero-stat span {
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* ============ HERO VISUAL (RIGHT COLUMN) ============ */
.sp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 20px;
}

/* Ambient glow behind the mockup */
.sp-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,191,71,.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: spPulseGlow 6s ease-in-out infinite;
}

/* Dot-grid pattern behind mockup */
.sp-hero-visual::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 90%;
  height: 80%;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 20px;
  pointer-events: none;
  opacity: .5;
}

@keyframes spPulseGlow {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.sp-hero-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow:
    0 25px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.1);
}

/* Subtle inner shine along the top */
.sp-hero-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  z-index: 5;
}

.sp-hero-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sp-hero-mockup-bar::before {
  content: '';
  display: block;
  width: 48px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4px),
    radial-gradient(circle at 19px 5px, #febc2e 4px, transparent 4px),
    radial-gradient(circle at 33px 5px, #28c840 4px, transparent 4px);
  background-size: 48px 10px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Fake URL bar next to dots */
.sp-hero-mockup-bar::after {
  content: '';
  display: block;
  flex: 1;
  height: 22px;
  margin-left: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.sp-hero-mockup-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.sp-hero-mockup-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  width: 80%;
}

.sp-hero-mockup-line--short { width: 55%; }
.sp-hero-mockup-line--xs { width: 35%; height: 8px; }

.sp-hero-mockup-block {
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(149,191,71,.18) 0%, rgba(94,142,62,.12) 100%);
  border: 1px solid rgba(149,191,71,.15);
  position: relative;
  overflow: hidden;
}

/* Decorative shimmer on blocks */
.sp-hero-mockup-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: spShimmer 4s ease-in-out infinite;
}

@keyframes spShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.sp-hero-mockup-row {
  display: flex;
  gap: 12px;
}

.sp-hero-mockup-col {
  flex: 1;
  height: 64px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}

.sp-hero-mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 0 6px;
}

.sp-hero-mockup-chart-bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, rgba(149,191,71,.25), rgba(149,191,71,.6));
  position: relative;
  transition: height .6s ease;
}

/* Code-line element for dev-themed mockups */
.sp-hero-mockup-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.sp-hero-mockup-code-num {
  width: 24px;
  font-size: .6rem;
  color: rgba(255,255,255,.2);
  text-align: right;
  font-family: monospace;
  flex-shrink: 0;
}

.sp-hero-mockup-code-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(149,191,71,.15);
}

/* ---- Floating badge cards ---- */
.sp-hero-float {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(20,20,20,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--tsw-white);
  white-space: nowrap;
  animation: spFloat 5s ease-in-out infinite;
  box-shadow:
    0 10px 32px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04);
}

.sp-hero-float i {
  color: var(--tsw-green-bright);
  font-size: 1.05rem;
}

.sp-hero-float--1 {
  top: 30px;
  right: 0;
  animation-delay: 0s;
}

.sp-hero-float--2 {
  bottom: 40px;
  left: 0;
  animation-delay: 2.5s;
}

.sp-hero-float--3 {
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  animation-delay: 1.2s;
}

@keyframes spFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ INTRO / OVERVIEW ============ */
.sp-intro {
  padding: 90px 0;
  background: var(--tsw-white);
}

.sp-intro-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tsw-green);
  margin-bottom: 10px;
}

.sp-intro-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--tsw-ink);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}

.sp-intro-text {
  font-size: 1rem;
  color: var(--tsw-graphite);
  line-height: 1.8;
  margin-bottom: 16px;
}

.sp-intro-text:last-of-type { margin-bottom: 0; }

/* Intro visual side — CSS-only decorative panel */
.sp-intro-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(135deg, var(--tsw-cloud) 0%, #e8ecf0 100%);
}

.sp-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.sp-intro-visual-inner {
  position: relative;
  padding: 30px;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.sp-intro-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--tsw-white);
  border-radius: 14px;
  border: 1px solid var(--tsw-stone);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s;
}

.sp-intro-stat-card:hover { transform: translateX(6px); }

.sp-intro-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--tsw-white);
  flex-shrink: 0;
}

.sp-intro-stat-icon--green { background: linear-gradient(135deg, #5e8e3e, #95bf47); }
.sp-intro-stat-icon--teal { background: linear-gradient(135deg, #0f4f4f, #1a8a8a); }
.sp-intro-stat-icon--orange { background: linear-gradient(135deg, #c67d30, #e8a040); }
.sp-intro-stat-icon--purple { background: linear-gradient(135deg, #6b3fa0, #9b59b6); }

.sp-intro-stat-content h5 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin: 0 0 2px;
}

.sp-intro-stat-content p {
  font-size: .75rem;
  color: var(--tsw-graphite);
  margin: 0;
  line-height: 1.4;
}

/* Intro visual decorative shapes */
.sp-intro-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(149,191,71,.12);
  z-index: 0;
}

.sp-intro-visual::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(94,142,62,.08);
  z-index: 0;
}

.sp-intro-stat-card { position: relative; z-index: 1; }

/* ============ FEATURES / WHAT'S INCLUDED ============ */
.sp-features {
  padding: 90px 0;
  background: var(--tsw-cloud);
}

.sp-feature-card {
  background: var(--tsw-white);
  border-radius: 12px;
  padding: 32px 26px;
  height: 100%;
  border: 1.5px solid transparent;
  transition: all .3s ease;
}

.sp-feature-card:hover {
  border-color: var(--tsw-green);
  box-shadow: 0 12px 32px rgba(94,142,62,.1);
  transform: translateY(-4px);
}

.sp-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: rgba(94,142,62,.1);
  color: var(--tsw-green);
}

.sp-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 10px;
}

.sp-feature-card p {
  font-size: .88rem;
  color: var(--tsw-graphite);
  line-height: 1.6;
  margin: 0;
}

/* ============ PROCESS / HOW WE WORK — REDESIGNED ============ */
.sp-process {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, #111820 0%, #162230 40%, #1a3a25 100%);
  overflow: hidden;
}

.sp-process .tsw-section-title { color: var(--tsw-white); }
.sp-process .tsw-section-subtitle { color: rgba(255,255,255,.55); }

.sp-process-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sp-process-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}

.sp-process-shape--1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--tsw-green-bright) 0%, transparent 70%);
}

.sp-process-shape--2 {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: -80px;
  background: radial-gradient(circle, var(--tsw-green) 0%, transparent 70%);
}

/* Grid mesh decoration */
.sp-process-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Process cards */
.sp-process-card {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 30px 24px;
  height: 100%;
  backdrop-filter: blur(6px);
  transition: all .4s ease;
  overflow: hidden;
}

.sp-process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsw-green-bright), var(--tsw-green));
  opacity: 0;
  transition: opacity .3s;
}

.sp-process-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(149,191,71,.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

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

.sp-process-num {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--tsw-font-display, 'Qilka', serif);
  line-height: 1;
  color: rgba(149,191,71,.15);
  margin-bottom: 14px;
  transition: color .3s;
}

.sp-process-card:hover .sp-process-num {
  color: rgba(149,191,71,.35);
}

.sp-process-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tsw-white);
  margin-bottom: 10px;
}

.sp-process-card p {
  font-size: .86rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0;
}

.sp-process-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(149,191,71,.15);
  color: var(--tsw-green-bright);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ============ RESULTS / CASE STUDIES ============ */
.sp-results {
  padding: 90px 0;
  background: var(--tsw-cloud);
}

.sp-result-card {
  background: var(--tsw-white);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--tsw-stone);
  transition: all .3s ease;
}

.sp-result-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.sp-result-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--tsw-stone);
}

.sp-result-industry {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--tsw-green);
  margin-bottom: 6px;
}

.sp-result-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin: 0;
  line-height: 1.3;
}

.sp-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

.sp-result-metric {
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--tsw-stone);
}

.sp-result-metric:last-child { border-right: none; }

.sp-result-metric strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tsw-forest);
  font-family: var(--tsw-font-display, 'Qilka', serif);
  line-height: 1;
}

.sp-result-metric span {
  display: block;
  font-size: .68rem;
  color: var(--tsw-graphite);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ============ TECH STACK ============ */
.sp-tech {
  padding: 70px 0;
  background: var(--tsw-white);
  border-top: 1px solid var(--tsw-stone);
  border-bottom: 1px solid var(--tsw-stone);
}

.sp-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sp-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--tsw-cloud);
  border: 1px solid var(--tsw-stone);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--tsw-ink);
  transition: all .2s;
}

.sp-tech-tag:hover {
  border-color: var(--tsw-green);
  background: rgba(94,142,62,.06);
  color: var(--tsw-green);
}

.sp-tech-tag i { color: var(--tsw-green); font-size: .95rem; }

/* ============ SEO KEYWORD BLOCKS ============ */
.sp-keywords {
  padding: 80px 0;
  background: var(--tsw-white);
}

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

.sp-keyword-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1.5px solid var(--tsw-stone);
  background: var(--tsw-white);
  transition: all .3s ease;
  overflow: hidden;
}

.sp-keyword-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsw-green), var(--tsw-green-bright));
  opacity: 0;
  transition: opacity .3s;
}

.sp-keyword-card:hover {
  border-color: rgba(94,142,62,.25);
  box-shadow: 0 8px 28px rgba(94,142,62,.08);
  transform: translateY(-3px);
}

.sp-keyword-card:hover::after { opacity: 1; }

.sp-keyword-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
  background: rgba(94,142,62,.1);
  color: var(--tsw-green);
}

.sp-keyword-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.sp-keyword-card p {
  font-size: .82rem;
  color: var(--tsw-graphite);
  line-height: 1.6;
  margin: 0;
}

/* ============ MARKETPLACE PLATFORMS (Store Migration) ============ */
.sp-platforms {
  padding: 90px 0;
  background: var(--tsw-cloud);
}

.sp-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sp-platform-card {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  background: var(--tsw-white);
  border: 1.5px solid var(--tsw-stone);
  transition: all .3s ease;
}

.sp-platform-card:hover {
  border-color: var(--tsw-green);
  box-shadow: 0 12px 32px rgba(94,142,62,.1);
  transform: translateY(-5px);
}

.sp-platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  color: var(--tsw-white);
}

.sp-platform-icon--etsy { background: linear-gradient(135deg, #D35400, #F06E1D); }
.sp-platform-icon--amazon { background: linear-gradient(135deg, #232F3E, #37475A); }
.sp-platform-icon--ebay { background: linear-gradient(135deg, #C7243A, #E53935); }
.sp-platform-icon--woo { background: linear-gradient(135deg, #7B1FA2, #9C27B0); }
.sp-platform-icon--magento { background: linear-gradient(135deg, #EE672F, #F4722B); }
.sp-platform-icon--bigcommerce { background: linear-gradient(135deg, #34313F, #4B4459); }
.sp-platform-icon--squarespace { background: linear-gradient(135deg, #111, #333); }
.sp-platform-icon--wix { background: linear-gradient(135deg, #0C6EFD, #3D8BFD); }
.sp-platform-icon--prestashop { background: linear-gradient(135deg, #DF0067, #FF2D8A); }
.sp-platform-icon--custom { background: linear-gradient(135deg, var(--tsw-forest), var(--tsw-green)); }

.sp-platform-card h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 4px;
}

.sp-platform-card p {
  font-size: .76rem;
  color: var(--tsw-graphite);
  margin: 0;
  line-height: 1.5;
}

.sp-platform-arrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tsw-green);
  margin-top: 10px;
}

/* ============ FAQ ============ */
.sp-faq {
  padding: 90px 0;
  background: var(--tsw-cloud);
}

.sp-faq .accordion-item {
  background: var(--tsw-white);
  border: 1.5px solid var(--tsw-stone);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.sp-faq .accordion-button {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tsw-ink);
  padding: 18px 22px;
  background: var(--tsw-white);
  box-shadow: none;
}

.sp-faq .accordion-button:not(.collapsed) {
  color: var(--tsw-green);
  background: rgba(94,142,62,.04);
}

.sp-faq .accordion-button::after {
  background-image: none;
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--tsw-green);
  width: auto;
  height: auto;
  transition: transform .3s;
}

.sp-faq .accordion-button:not(.collapsed)::after {
  content: '\2212';
  transform: none;
}

.sp-faq .accordion-body {
  padding: 0 22px 18px;
  font-size: .92rem;
  color: var(--tsw-graphite);
  line-height: 1.7;
}

/* ============ RELATED SERVICES ============ */
.sp-related {
  padding: 90px 0;
  background: var(--tsw-white);
}

.sp-related-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--tsw-stone);
  background: var(--tsw-white);
  text-decoration: none;
  transition: all .3s ease;
  height: 100%;
}

.sp-related-card:hover {
  border-color: var(--tsw-green);
  box-shadow: 0 8px 24px rgba(94,142,62,.1);
  transform: translateY(-4px);
}

.sp-related-card .svc-grid-icon { margin-bottom: 16px; }

.sp-related-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 8px;
}

.sp-related-card p {
  font-size: .85rem;
  color: var(--tsw-graphite);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.sp-related-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--tsw-green);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-related-card:hover .sp-related-link { color: var(--tsw-forest); }

/* ============ BOTTOM CTA ============ */
.sp-cta {
  padding: 90px 0;
  background: var(--tsw-forest);
  text-align: center;
}

.sp-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--tsw-white);
  margin-bottom: 14px;
}

.sp-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 550px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* CTA buttons now use global .tsw-btn-primary / .tsw-btn-outline + .tsw-dark-cta context */

/* ============ SERVICE INQUIRY FORM ============ */
.svc-inquiry {
  padding: 90px 0;
  background: linear-gradient(160deg, #111820 0%, #162230 40%, #1a3a25 100%);
  position: relative;
  overflow: hidden;
}

.svc-inquiry::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,191,71,.08) 0%, transparent 70%);
  pointer-events: none;
}

.svc-inquiry::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,142,62,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Form Card */
.svc-form-card {
  background: var(--tsw-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0,0,0,.2),
    0 0 0 1px rgba(255,255,255,.05);
  position: relative;
}

/* Card Header */
.svc-form-header {
  background: linear-gradient(135deg, var(--tsw-forest) 0%, #1a3a25 100%);
  padding: 32px 38px 28px;
  text-align: center;
  position: relative;
}

.svc-form-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsw-green), var(--tsw-green-bright), var(--tsw-green));
}

.svc-form-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(149,191,71,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.svc-form-header-icon i {
  font-size: 1.4rem;
  color: var(--tsw-green-bright);
}

.svc-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tsw-white);
  margin: 0 0 6px;
}

.svc-form-subtitle {
  font-size: .86rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.5;
}

/* Form Body */
.sp-inquiry-form .tsw-form-body {
  padding: 32px 38px 36px;
}

.sp-inquiry-form .row.g-3 {
  --bs-gutter-y: 0.75rem;
}

/* Service Badge */
.svc-service-badge-wrap {
  margin-bottom: 20px;
}

.svc-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(94,142,62,.08);
  border: 1.5px solid rgba(94,142,62,.2);
  font-size: .88rem;
  font-weight: 600;
  color: var(--tsw-green);
}

.svc-service-badge i {
  font-size: 1rem;
  color: var(--tsw-green);
}

/* Form Labels */
.sp-inquiry-form .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--tsw-ink);
  margin-bottom: 5px;
}

.svc-label-hint {
  font-weight: 400;
  color: var(--tsw-graphite);
  opacity: .7;
}

/* Input Wrapper with Icon */
.svc-input-wrap {
  position: relative;
}

.svc-input-wrap > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .88rem;
  color: var(--tsw-graphite);
  opacity: .45;
  z-index: 2;
  pointer-events: none;
  transition: color .3s;
}

.svc-input-wrap .form-control {
  padding-left: 44px;
}

.svc-input-wrap:focus-within > i {
  color: var(--tsw-green);
  opacity: 1;
}

/* Phone input with intl-tel-input: hide icon when iti is active */
.svc-input-wrap--phone > i {
  display: none;
}

.svc-input-wrap--phone .form-control {
  padding-left: 14px;
}

/* When intl-tel-input is loaded, it wraps the input — reset padding */
.svc-input-wrap .iti {
  width: 100%;
}

.svc-input-wrap .iti .form-control {
  padding-left: 14px;
}

/* Form Controls */
.sp-inquiry-form .form-control {
  padding: 11px 14px;
  font-size: .88rem;
  border: 1.5px solid var(--tsw-stone);
  border-radius: 10px;
  background: var(--tsw-cloud);
  transition: all .3s ease;
  color: var(--tsw-ink);
}

.sp-inquiry-form .form-control:focus {
  border-color: var(--tsw-green);
  box-shadow: 0 0 0 3px rgba(94,142,62,.12);
  background: var(--tsw-white);
}

.sp-inquiry-form .form-control::placeholder {
  color: var(--tsw-graphite);
  opacity: .45;
}

.sp-inquiry-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* intl-tel-input match */
.sp-inquiry-form .iti { width: 100%; }
.sp-inquiry-form .iti__selected-dial-code { font-size: .85rem; font-weight: 600; color: var(--tsw-ink); }
.sp-inquiry-form .iti__country-container { border-right: 1.5px solid var(--tsw-stone); }
.sp-inquiry-form .iti__selected-country-primary { padding: 0 10px; background: rgba(244,242,236,.5); border-radius: 10px 0 0 10px; }
.sp-inquiry-form .iti__dropdown-content { border-radius: 12px; box-shadow: 0 12px 40px rgba(0,50,20,.12); border: 1px solid var(--tsw-stone); }
.sp-inquiry-form .iti__search-input { padding: 10px 14px; font-size: .88rem; border-bottom: 1px solid var(--tsw-stone); }
.sp-inquiry-form .iti__country { padding: 8px 14px; font-size: .88rem; }
.sp-inquiry-form .iti__country--highlight { background: rgba(94,142,62,.1); }

/* Math CAPTCHA — always single row */
.svc-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.svc-captcha-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: linear-gradient(135deg, rgba(94,142,62,.08), rgba(0,128,90,.06));
  border: 1.5px solid rgba(94,142,62,.18);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--tsw-forest);
  white-space: nowrap;
}

.svc-captcha-question > i {
  color: var(--tsw-green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.svc-captcha-question > span {
  font-size: 1.05rem;
  font-family: var(--tsw-font-display, 'Qilka', serif);
}

.svc-captcha-input {
  flex: 1;
  min-width: 0;
  max-width: 140px;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: .05em;
  text-align: center;
}

/* Consent Checkbox */
.svc-consent .form-check-input {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--tsw-stone);
  border-radius: 5px;
  margin-top: 2px;
  flex-shrink: 0;
}

.svc-consent .form-check-input:checked {
  background-color: var(--tsw-green);
  border-color: var(--tsw-green);
}

.svc-consent .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(94,142,62,.15);
}

.svc-consent .form-check-label {
  font-size: .82rem;
  color: var(--tsw-graphite);
  padding-left: 4px;
  line-height: 1.5;
}

.svc-consent .form-check-label a {
  color: var(--tsw-green);
  text-decoration: underline;
  font-weight: 500;
}

.svc-consent .form-check-label a:hover {
  color: var(--tsw-forest);
}

/* Submit Button */
.svc-btn-submit {
  background: linear-gradient(135deg, var(--tsw-green) 0%, var(--tsw-forest) 100%);
  border: none;
  color: var(--tsw-white);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.svc-btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .5s ease;
}

.svc-btn-submit:hover {
  background: linear-gradient(135deg, var(--tsw-forest) 0%, #142818 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(94,142,62,.35);
  color: var(--tsw-white);
}

.svc-btn-submit:hover::before {
  left: 100%;
}

.svc-btn-submit:active {
  transform: translateY(0);
}

/* Trust Indicators */
.svc-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.svc-form-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--tsw-graphite);
  opacity: .7;
}

.svc-form-trust i {
  font-size: .82rem;
  color: var(--tsw-green);
}

/* Field Errors */
.sp-inquiry-form .tsw-field-error {
  font-size: .78rem;
  color: #dc3545;
  margin-top: 4px;
  display: none;
}

.sp-inquiry-form .tsw-field-error.active {
  display: block;
}

.sp-inquiry-form .tsw-general-error.active {
  background: rgba(220,53,69,.08);
  border: 1px solid rgba(220,53,69,.2);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

/* Success State */
.svc-form-success {
  position: absolute;
  inset: 0;
  background: var(--tsw-white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.svc-form-success-inner {
  text-align: center;
  padding: 50px 40px;
}

.svc-form-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(94,142,62,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.svc-form-success-icon i {
  font-size: 2.4rem;
  color: var(--tsw-green);
}

.svc-form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 10px;
}

.svc-form-success p {
  font-size: .95rem;
  color: var(--tsw-graphite);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* Spinner */
.sp-inquiry-form .tsw-spin {
  animation: tswSpin 1s linear infinite;
}

@keyframes tswSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .sp-hero { padding: 90px 0 60px; }
  .sp-hero-visual { display: none; }
  .sp-intro, .sp-features, .sp-results, .sp-faq, .sp-related { padding: 70px 0; }
  .sp-process { padding: 80px 0; }
  .sp-tech { padding: 50px 0; }
  .sp-cta { padding: 60px 0; }
  .sp-hero-stat { padding: 0 18px; }
  .sp-keywords { padding: 60px 0; }
  .sp-keywords-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-platform-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-inquiry { padding: 70px 0; }
}

@media (max-width: 575.98px) {
  .sp-hero { padding: 85px 0 50px; }
  .sp-hero-title { font-size: 1.8rem; }
  .sp-hero-actions { flex-direction: column; }
  .sp-hero-actions .btn, .sp-hero-actions a { width: 100%; justify-content: center; }
  .sp-hero-stat { padding: 0 14px; }
  .sp-hero-stat strong { font-size: 1.4rem; }
  .sp-intro, .sp-features, .sp-results, .sp-faq, .sp-related { padding: 50px 0; }
  .sp-process { padding: 60px 0; }
  .sp-process-card { padding: 24px 20px; }
  .sp-process-num { font-size: 2.2rem; }
  .sp-result-metrics { grid-template-columns: 1fr; }
  .sp-result-metric { border-right: none; border-bottom: 1px solid var(--tsw-stone); }
  .sp-result-metric:last-child { border-bottom: none; }
  .sp-keywords { padding: 50px 0; }
  .sp-keywords-grid { grid-template-columns: 1fr; }
  .sp-platform-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Service Form responsive */
  .svc-inquiry { padding: 50px 0; }
  .svc-form-header { padding: 24px 20px 22px; }
  .svc-form-title { font-size: 1.15rem; }
  .sp-inquiry-form .tsw-form-body { padding: 24px 20px 28px; }
  .svc-captcha-question { padding: 9px 12px; font-size: .85rem; }
  .svc-captcha-input { max-width: 120px !important; }
  .svc-form-trust { gap: 14px; }
  .svc-form-trust span { font-size: .7rem; }
}
