/* =========================================================
   BrightFirst — Services Page Styles
   ========================================================= */

/* =========================================================
   PAGE HERO (Reuse from about.css — same style)
   ========================================================= */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(244, 186, 3, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(41, 51, 78, 0.10), transparent 50%),
    linear-gradient(180deg, #F7F8FC 0%, #FFFFFF 100%);
  text-align: center;
}
.page-hero .dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(41, 51, 78, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}
.page-hero-inner { position: relative; z-index: 2; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 186, 3, 0.35);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 30px;
  box-shadow:
    0 8px 20px rgba(41, 51, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.breadcrumb a { color: var(--gray); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gray); }
.breadcrumb .current { color: var(--navy); font-weight: 700; }

.page-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--navy);
}

.page-sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================
   SERVICES LIST (Alternating)
   ========================================================= */
.services-list {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 120px;
  perspective: 2000px;
}
.service-detail:last-child { margin-bottom: 0; }

/* Reversed layout */
.service-detail-reverse {
  grid-template-columns: 1.15fr 1fr;
  direction: rtl;
}
.service-detail-reverse > * {
  direction: ltr;
}

/* Visual side */
.service-detail-visual {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(-3deg);
  transition: transform 0.6s ease;
}
.service-detail-reverse .service-detail-visual {
  transform: perspective(1200px) rotateY(3deg);
}
.service-detail-visual:hover {
  transform: perspective(1200px) rotateY(0deg) translateZ(30px);
}

.service-detail-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 4px 8px rgba(41, 51, 78, 0.06),
    0 20px 40px rgba(41, 51, 78, 0.15),
    0 40px 80px rgba(41, 51, 78, 0.20),
    -20px 30px 60px rgba(244, 186, 3, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Different images for each service */
.service-detail-image-1 {
  background-image:
    linear-gradient(135deg, rgba(41, 51, 78, 0.65), rgba(41, 51, 78, 0.3)),
    url('https://images.unsplash.com/photo-1547658719-da2b51169166?w=800');
}
.service-detail-image-2 {
  background-image:
    linear-gradient(135deg, rgba(41, 51, 78, 0.65), rgba(41, 51, 78, 0.3)),
    url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=800');
}
.service-detail-image-3 {
  background-image:
    linear-gradient(135deg, rgba(41, 51, 78, 0.65), rgba(41, 51, 78, 0.3)),
    url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800');
}
.service-detail-image-4 {
  background-image:
    linear-gradient(135deg, rgba(41, 51, 78, 0.65), rgba(41, 51, 78, 0.3)),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=800');
}
.service-detail-image-5 {
  background-image:
    linear-gradient(135deg, rgba(41, 51, 78, 0.65), rgba(41, 51, 78, 0.3)),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800');
}

/* Big number overlay */
.service-detail-num {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -3px;
  pointer-events: none;
  z-index: 2;
}
.service-detail-reverse .service-detail-num {
  right: auto;
  left: 20px;
}

/* Content side */
.service-detail-content {
  position: relative;
}
.service-detail-content .icon-box {
  margin-bottom: 22px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
}
.service-detail-content .icon-box svg {
  width: 34px;
  height: 34px;
}

.service-detail-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 18px;
  color: var(--navy);
}

.service-detail-content > p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 560px;
}

/* Includes list */
.service-includes {
  margin-bottom: 32px;
  padding: 22px 24px;
  background: linear-gradient(145deg, #F7F8FC 0%, #FFFFFF 100%);
  border: 1px solid rgba(41, 51, 78, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(41, 51, 78, 0.04);
}
.service-includes h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 14px;
}
.service-includes ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.service-includes li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}
.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  box-shadow:
    0 2px 6px rgba(244, 186, 3, 0.5),
    0 0 0 3px rgba(244, 186, 3, 0.15);
}

/* =========================================================
   HOW WE WORK
   ========================================================= */
.how-we-work {
  padding: 110px 0;
  background:
    radial-gradient(ellipse at top, rgba(244, 186, 3, 0.08), transparent 50%),
    linear-gradient(180deg, #F7F8FC 0%, #F0F2F8 100%);
  position: relative;
  overflow: hidden;
  perspective: 2000px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 60px; left: 12%; right: 12%;
  height: 2px;
  background-image:
    linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 50%,
      transparent 50%,
      transparent 100%);
  background-size: 16px 100%;
  background-repeat: repeat-x;
  animation: flowDots 1s linear infinite;
  opacity: 0.7;
  z-index: 0;
}
@keyframes flowDots {
  0%   { background-position-x: 0; }
  100% { background-position-x: 16px; }
}

.how-step {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FD 100%);
  padding: 40px 26px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-3d);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--card-shadow-3d);
  transform-style: preserve-3d;
  overflow: hidden;
}
.how-step::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 0 4px 4px;
  transition: width 0.4s ease;
  box-shadow: 0 4px 12px rgba(244, 186, 3, 0.4);
}
.how-step:hover::before { width: 80%; }
.how-step:hover {
  transform: translateY(-16px) translateZ(50px) rotateX(4deg) scale(1.04);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(244, 186, 3, 0.5);
}

.how-num {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(244, 186, 3, 0.4));
}

.how-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--navy);
}
.how-step p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .service-detail,
  .service-detail-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
    margin-bottom: 80px;
  }
  .service-detail-visual,
  .service-detail-reverse .service-detail-visual {
    transform: none;
  }
  .service-detail-image { aspect-ratio: 16/10; }

  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid::before { display: none; }
}

@media (max-width: 700px) {
  .page-hero { padding: 140px 0 70px; }
  .page-title { font-size: 32px; }
  .page-sub { font-size: 16px; }

  .services-list { padding: 70px 0; }
  .service-detail { margin-bottom: 60px; }
  .service-includes ul { grid-template-columns: 1fr; }

  .how-we-work { padding: 70px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-visual,
  .how-step:hover {
    transform: none !important;
  }
}