/* ============================================================
   ADFINZ — service-page.css
   Shared styles for individual service pages
   (Meta Ads, Website & Landing Page, Social Media Management)
============================================================ */

/* ─── SERVICE PAGE HERO ─────────────────────────────────────── */
.sp-hero-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  padding-bottom: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow — matches index hero */
.sp-hero-section::before {
  content: '';
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: min(800px, 120vw);
  height: min(800px, 120vw);
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.sp-hero-content {
  width: 100%;
  max-width: 700px;
  position: relative;
  animation: fadeUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Badge pill above the heading */
.sp-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.05s cubic-bezier(0.4,0,0.2,1) both;
}

.sp-hero-heading {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.4,0,0.2,1) both;
}

.sp-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--nav-height); /* 60px gap before CTA */
  animation: fadeUp 0.8s 0.18s cubic-bezier(0.4,0,0.2,1) both;
}

/* Hero CTA re-uses .hero-cta from style.css — delay for stagger */
.sp-hero-section .hero-cta {
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.4,0,0.2,1) both;
}

/* ─── PROCESS SECTION ────────────────────────────────────────── */
.sp-process-section {
  padding: var(--section-v) var(--container-pad);
}

.sp-process-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.sp-process-heading {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 32px; /* reduced gap */
  text-align: center;
}

/* Steps list */
.sp-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
  max-width: 680px;
  margin: 0 auto;
}

.sp-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0; /* top & bottom reduced */
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
              transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.sp-step:first-child {
  padding-top: 0; /* No top gap before the first step */
}

.sp-step:last-child {
  border-bottom: none;
}

.sp-step.sp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step number */
.sp-step-number {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
  transition: color 0.25s ease;
  user-select: none;
}

.sp-step:hover .sp-step-number {
  color: var(--blue);
}

/* Step body */
.sp-step-body {
  padding-top: 6px;
}

.sp-step-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.2;
}

.sp-step-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.7;
}

/* ─── BOOK A CALL CTA SECTION ────────────────────────────────── */
.sp-cta-section {
  padding: var(--nav-height) var(--container-pad) calc(var(--nav-height) * 2);
  text-align: center;
}

.sp-cta-inner {
  display: flex;
  justify-content: center;
}

/* Active dropdown item indicator */
.active-item .dropdown-item-title {
  color: var(--blue);
}

/* ─── SAMPLE IMAGES SCROLLER ────────────────────────────────── */
.sample-images-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 24px 12px 32px 12px;
  margin-top: 24px;
  scroll-snap-type: x mandatory;
  width: 100%;
}
.sample-images-grid::-webkit-scrollbar {
  height: 12px;
}
.sample-images-grid::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}
.sample-images-grid::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 10px;
  border: 3px solid var(--light-gray);
}
.sample-images-grid::-webkit-scrollbar-thumb:hover {
  background: var(--dark-gray);
}

.sample-img {
  flex: 0 0 calc(33.333% - 22px);
  min-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-snap-align: center;
  transition: all 0.3s ease;
}

/* Hover pop and grey-out effect */
.sample-images-grid:hover > .sample-img {
  filter: grayscale(80%) opacity(0.5);
}
.sample-images-grid > .sample-img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  z-index: 10;
}

.extra-bottom-space {
  padding-bottom: 160px !important;
}

/* ─── RESPONSIVE — MOBILE (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {
  .sp-hero-heading {
    white-space: normal;
    font-size: clamp(24px, 7vw, 34px);
  }

  .sp-step {
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .sp-step:first-child { padding-top: 0; }

  .sp-step-number {
    font-size: clamp(28px, 7vw, 40px);
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .sp-hero-heading { font-size: clamp(22px, 8vw, 30px); }
  .sp-step-title   { font-size: 18px; }
  .sp-step-desc    { font-size: 14px; }
}
