/* ============================================
   SERVICES PAGE - S N Engineering Consultant
   ============================================ */

/* --- Page Hero / Banner --- */
.services-hero {
  background: linear-gradient(135deg, #16213e 0%, #1b2a41 40%, #243b55 100%);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.services-hero::before {
  content: "";
  position: absolute;
  right: -180px; top: -130px;
  width: 410px; height: 410px;
  background: var(--snec-orange);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.1;
}
.services-hero .hero-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  position: absolute; inset: 0;
  mask-image: linear-gradient(to right, black, transparent);
}
.services-hero .breadcrumb-nav {
  font-size: 0.82rem; font-weight: 600; margin-bottom: 1.25rem;
}
.services-hero .breadcrumb-nav a {
  color: rgba(255,255,255,0.55); transition: color 0.2s;
}
.services-hero .breadcrumb-nav a:hover { color: #fff; }
.services-hero .breadcrumb-nav span { color: var(--snec-orange); }
.services-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 750px;
}
.services-hero h1 span { color: var(--snec-orange); }
.services-hero p.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.8;
  margin-top: 1.25rem;
}

/* --- Services Grid --- */
.services-grid-section { padding: 5rem 0; background: #fff; }

.srv-card {
  background: #fff;
  border: 1px solid #e5e0db;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.srv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(9,27,49,0.1);
  border-color: transparent;
}
.srv-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--snec-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.srv-card:hover::after { transform: scaleX(1); }

.srv-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f4f6f8;
}
.srv-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.srv-card:hover .srv-card-img img { transform: scale(1.05); }

.srv-card-body {
  padding: 1.5rem;
}
.srv-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--snec-navy);
  margin-bottom: 0.6rem;
}
.srv-card-body p {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.75;
  margin: 0;
}

/* --- Service Detail Sections (alternating) --- */
.srv-detail { padding: 5rem 0; }
.srv-detail:nth-child(odd) { background: #f9f9f9; }
.srv-detail:nth-child(even) { background: #fff; }

.srv-detail-img {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  /* min-height: 350px; */
}
.srv-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.srv-detail-content .eyebrow {
  color: var(--snec-orange);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.srv-detail-content h2 {
  color: var(--snec-navy);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 38px;
  margin-bottom: 1rem;
}
.srv-detail-content p {
  color: #444;
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
}
.srv-detail-content .check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.srv-detail-content .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: #333d4f;
  padding: 0.45rem 0;
}
.srv-detail-content .check-list li i {
  color: var(--snec-orange);
  font-size: 1.15rem;
  margin-top: 2px;
}
.srv-detail-content .check-list li span {
  text-align: justify;
  line-height: 1.6;
}

/* --- What We Deliver Section Styling --- */
.deliverables-list {
  border-radius: 12px;
  padding: 1.5rem;
}
.deliverable-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.deliverable-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.deliverable-item h5 {
  color: var(--snec-navy) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.deliverable-item h5 i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}
.deliverable-item p {
  color: #5a6578;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-left: 1.85rem;
  margin-bottom: 0;
  text-align: justify;
}

/* --- Process Section --- */
.srv-process {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1b2a41 0%, #16213e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.srv-process::before {
  content: "";
  position: absolute;
  left: -180px; top: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,115,42,0.2), transparent 70%);
}
.srv-process .eyebrow { color: #ffb074; }
.srv-process .section-title { color: #fff; }

.process-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: background 0.3s, transform 0.3s;
}
.process-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}
.process-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--snec-orange);
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.process-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.process-card p { color: rgba(255,255,255,0.5); font-size: 0.82rem; line-height: 1.7; margin: 0; }

/* --- CTA Section --- */
.services-cta {
  padding: 5rem 0;
  background: #f9f9f9;
  text-align: center;
}
.services-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--snec-navy);
  letter-spacing: -0.03em;
}
.services-cta h2 span { color: var(--snec-orange); }
.services-cta p {
  color: #6b7280;
  font-size: 1rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
  line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .services-hero { padding: 6rem 0 4rem; }
  .srv-detail-img { min-height: 300px; margin-bottom: 2rem; }
}
@media (max-width: 767.98px) {
  .services-hero { padding: 5rem 0 3rem; }
  .services-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .srv-detail-img { min-height: 250px; }
  .srv-card-img { height: 180px; }
}

/* --- Services Tab Panel Layout --- */
.services-tab-section {
  background: #f7f9fc;
}
.services-sidebar {
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 125px;
}
.services-sidebar .sidebar-title {
  color: var(--snec-navy);
  font-weight: 800;
  border-bottom: 2px solid var(--snec-orange);
  padding-bottom: 0.75rem;
}
.services-sidebar .nav-pills .nav-link {
  color: #4a5568;
  font-weight: 600;
  text-align: left;
  padding: 0.95rem 1.25rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  margin-bottom: 0.4rem;
  border: 1px solid transparent;
}
.services-sidebar .nav-pills .nav-link:hover {
  background-color: rgba(219, 113, 0, 0.08);
  color: var(--snec-navy);
}
.services-sidebar .nav-pills .nav-link.active {
  background-color: var(--snec-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(219, 113, 0, 0.25);
}
.services-content-pane {
  border: 1px solid #e2e8f0;
}
.services-content-pane .tab-pane {
  animation: fadeInTab 0.4s ease-in-out;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

