/* ============================================================
   SERVICES SECTION — WHITE THEME, NO CSS VARIABLES
   ============================================================ */

/* ── Section Background & Base ──────────────────────────── */
.services-section {
  position: relative;
  padding: 20px;
  background: #ffffff;
  overflow: hidden;
}

/* Subtle decorative grid */
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Soft ambient orb */
.services-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-30px, 20px) scale(1.05);
  }
  50% {
    transform: translate(15px, -25px) scale(0.95);
  }
  75% {
    transform: translate(25px, 15px) scale(1.03);
  }
}

.services-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-overline {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #b89b3a; /* slightly darker gold for white bg */
  position: relative;
  padding: 0 28px;
  margin-bottom: 16px;
}
.section-overline::before,
.section-overline::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: #b89b3a;
  border-radius: 2px;
  transform: translateY(-50%);
}
.section-overline::before {
  left: 0;
}
.section-overline::after {
  right: 0;
}

.section-title {
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-title .highlight {
  color: #b89b3a;
  position: relative;
  font-weight: 600;
  font-size: 1.2rem;
}
.section-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #b89b3a;
  border-radius: 3px;
  opacity: 0.35;
}

.section-subtitle {
  max-width: 550px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .services-section {
    padding: 70px 16px 80px;
  }
  .section-header {
    margin-bottom: 40px;
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
  }
  .services-section {
    padding: 50px 12px 60px;
  }
}

/* ── Service Card ───────────────────────────────────────── */
.service-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 32px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 28px 20px 24px;
  min-height: auto;
  transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(201, 168, 76, 0.25);
  border-color: rgba(201, 168, 76, 0.4);
  background: #ffffff;
}
.service-card:hover::before {
  opacity: 1;
}

.service-card:active {
  transform: translateY(-4px) scale(0.985);
  transition: 0.15s ease;
}

/* Icon wrapper */
.service-card .icon-wrapper {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  flex-shrink: 0;
}
.service-card:hover .icon-wrapper {
  background: rgba(201, 168, 76, 0.15);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
  transform: scale(1.08);
}
.service-card .icon-wrapper i {
  font-size: 2.6rem;
  color: #b89b3a;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.service-card:hover .icon-wrapper i {
  color: #a07e2c;
  filter: drop-shadow(0 0 6px rgba(184, 155, 58, 0.35));
}

/* Card text */
.service-card .card-content {
  position: relative;
  z-index: 1;
  display: flex;
  text-align: center;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.service-card .card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.35;
  transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.service-card:hover .card-title {
  color: #000000;
}
.service-card .card-desc {
  font-size: 0.9rem;
  color: #777777;
  line-height: 1.55;
  margin: 0;
  transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.service-card:hover .card-desc {
  color: #444444;
}

/* Hover bottom line */
.service-card .hover-line {
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b89b3a, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 2;
  border-radius: 2px;
}
.service-card:hover .hover-line {
  transform: scaleX(1);
}

/* Corner accent */
.service-card .corner-accent {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-top: 2px solid rgba(201, 168, 76, 0.2);
  border-right: 2px solid rgba(201, 168, 76, 0.2);
  border-radius: 0 8px 0 0;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}
.service-card:hover .corner-accent {
  opacity: 1;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-color: rgba(184, 155, 58, 0.45);
}

/* Ripple effect on click */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.7s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes rippleAnim {
  to {
    transform: scale(5);
    opacity: 0;
  }
}

/* Focus visible for accessibility */
.service-card:focus-visible {
  outline: 2px solid #b89b3a;
  outline-offset: 4px;
  border-radius: 20px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::before,
  .service-card .icon-wrapper,
  .service-card .hover-line,
  .service-card .corner-accent,
  .services-section::after {
    transition: none !important;
    animation: none !important;
  }
  .service-card:hover {
    transform: none;
  }
}

/* ====================
   Single Service Page
   ==================== */

/* Custom CSS - No Variables Used */

.process-section {
  padding-top: 40px;
}

.section-title {
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

/* Timeline Container */
.timeline-wrapper {
  display: flex;
  flex-wrap: nowrap;
  padding: 20px 0px;
  justify-content: center;
  position: relative;
  scrollbar-width: none; /* Firefox */
}

.timeline-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.step-item {
  max-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0;
  /* transition: transform 0.3s ease;/ */
}

/* The Circle Design */
.circle-outer {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #343a40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.circle-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 6px solid #ffc107;
}

/* Connecting Lines */
.step-item::after {
  content: "";
  position: absolute;
  top: 145px;
  left: 60%;
  width: 100%;
  height: 3px;
  background: #ffc107;
  /* z-index: 1; */
}
.step-item:nth-child(odd) {
  flex-direction: column-reverse;
}
.step-item:nth-child(even) {
  justify-content: flex-start;
  /* padding-top: 75px; */
}
.step-item:nth-child(even) .after-box {
  height: 60px;
}

.step-item:last-child::after {
  display: none;
}

/* Text Content */
.step-content {
  /* min-height: 80px; */
  text-align: center;
  margin-top: 20px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #212529;
  min-height: 30px;
}

.step-desc {
  font-size: 0.8rem;
  color: #6c757d;
}
.step-item .after-box {
  width: 100%;
  height: 100px;
}
@media (min-width: 1024px) {
  .step-item:nth-child(even)::after {
    top: 150px;
    transform: rotate(30deg);
  }

  .step-item:nth-child(odd)::after {
    transform: rotate(-40deg);
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .step-item:nth-child(even)::after {
    top: 150px;
    transform: rotate(20deg);
  }

  .step-item:nth-child(odd)::after {
    transform: rotate(-30deg);
  }
}
@media (max-width: 768px) {
  .timeline-wrapper {
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center !important;
    position: relative;
  }

  .step-item {
    position: relative;
    z-index: 0; /* creates local stacking context */
    display: flex;
    padding: 0;
    flex-direction: column !important;
    align-items: center;
    padding-bottom: 30px;
    background: #ffffff; /* ⬅️ hide the line behind this item */
  }

  /* Remove helper if present */
  .after-box {
    display: none;
  }

  /* Vertical connector (only between items) */
  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    /* width: 80% !important; */

    top: 100px; /* where the circle ends (circle-outer height) */
    width: 3px;
    height: calc(100% - 100px); /* down to bottom of this step-item */
    background: #ffc107;
    transform: translateX(-50%);
    z-index: -1; /* behind everything */
  }

  .circle-outer {
    position: relative;
    z-index: 2; /* above the line */
  }

  .step-content {
    margin-top: 0 !important;
    padding-top: 12px !important;
    position: relative;
    z-index: 2; /* same layer as circle */
    background: #ffffff; /* fully hides any line behind it */
    padding: 0px 12px; /* optional, for a clean look */
    border-radius: 4px;
  }
  .step-desc {
    padding: 0;
  }
}
