/* ==========================================================================
   Royal Auto Paints Qatar - Luxury Service Detail Page Styling
   Design Language: Light Gray Primary Canvas (#F7F0F2), Graphite Gray (#58585A),
   and Automotive Racing Yellow/Gold (#FFB800 / #F5C518)
   ========================================================================== */

:root {
  --royal-yellow-accent: #FFB800;
  --royal-yellow-gold: #F5C518;
  --royal-yellow-hover: #E0A200;
  --royal-gray-darkest: #14171C;
  --royal-gray-charcoal: #22272F;
  --royal-gray-slate: #333A45;
  --royal-gray-graphite: #58585A; /* Primary brand graphite gray */
  --royal-gray-body: #58585A;
  --royal-gray-muted: #58585A;
  --royal-gray-light: #F7F0F2;     /* Primary light gray canvas */
  --royal-gray-border: #E2E8F0;
  --royal-text-primary: #58585A;
  --royal-text-white: #FFFFFF;
}

/* Base Body on Service Detail */
body, #services-detail-page {
  background-color: var(--royal-gray-light, #F7F0F2) !important;
  color: var(--royal-text-primary, #58585A);
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 1. HERO BANNER SECTION (Identical to services.html) */
.services-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(20,23,28,0.88) 0%, rgba(34,39,47,0.84) 55%, rgba(51,58,69,0.78) 100%), 
              url('../images/Technician_scanning_car_paint_color.jpg') center/cover no-repeat;
  padding-top: 150px;
  padding-bottom: 75px;
  color: #FFFFFF;
  overflow: hidden;
}

.services-hero-section::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.services-hero-inner {
  position: relative;
  z-index: 2;
}

/* Breadcrumb in Hero */
.services-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 18px;
  font-family: 'DM Sans', sans-serif;
}

.services-breadcrumb a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.2s ease;
}

.services-breadcrumb a:hover {
  color: var(--royal-yellow-gold, #F5C518);
}

.services-breadcrumb .sep,
.services-breadcrumb .separator {
  color: var(--royal-yellow-accent, #FFB800);
  font-size: 12px;
  font-weight: 700;
}

.services-breadcrumb span.current,
.services-breadcrumb span.current-page {
  color: #FFFFFF;
  font-weight: 500;
}

/* Spec Pill Badge */
.services-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F3F4F6;
  margin-bottom: 18px;
}

.services-spec-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--royal-yellow-accent, #FFB800);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.8);
}

/* Hero Title & Lead */
.services-hero-title {
  font-family: 'Marcellus', serif !important;
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  line-height: 1.18 !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
  max-width: 900px;
}

.services-hero-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #D1D5DB;
  max-width: 800px;
  margin: 0;
}

/* 2. MAIN SERVICE CONTENT SECTION (Light Gray Canvas) */
.sd-main-section {
  background: var(--royal-gray-light, #F7F0F2);
  padding: 60px 0 90px;
}

/* Main Content Card (Crisp White with Subtle Border) */
.sd-content-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--royal-gray-border, #E2E8F0);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 35px;
}

.sd-featured-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 420px;
  margin-bottom: 35px;
  background: #1A202C;
}

.sd-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-service-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--royal-gray-charcoal, #22272F);
  color: var(--royal-yellow-gold, #F5C518);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 197, 24, 0.3);
}

.sd-service-title {
  font-family: 'Marcellus', serif !important;
  font-size: 32px !important;
  color: var(--royal-gray-graphite, #58585A) !important;
  line-height: 1.25;
  margin-bottom: 18px;
}

.sd-lead-p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--royal-gray-body, #58585A);
  margin-bottom: 35px;
}

.sd-section-heading {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--royal-gray-graphite, #58585A);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-section-heading i {
  color: var(--royal-yellow-accent, #FFB800);
}

/* 4-Step Technical Execution Protocol */
.sd-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.sd-step-box {
  background: #FFFFFF;
  border: 1px solid var(--royal-gray-border, #E2E8F0);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sd-step-box:hover {
  border-color: var(--royal-yellow-gold, #F5C518);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.12);
}

.sd-step-num {
  font-family: 'Marcellus', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--royal-yellow-accent, #FFB800);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sd-step-heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--royal-gray-graphite, #58585A);
  margin-bottom: 8px;
}

.sd-step-desc {
  font-size: 13.5px;
  color: var(--royal-gray-body, #58585A);
  line-height: 1.6;
  margin: 0;
}

/* Equipment / Capabilities Card */
.sd-equipment-card {
  background: #FFFFFF;
  border: 1px solid var(--royal-gray-border, #E2E8F0);
  border-radius: 18px;
  padding: 35px;
  margin-bottom: 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.sd-equipment-title {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--royal-gray-graphite, #58585A);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--royal-gray-light, #F7F0F2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-equipment-title i {
  color: var(--royal-yellow-accent, #FFB800);
}

.sd-capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sd-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--royal-gray-body, #58585A);
  line-height: 1.5;
}

.sd-cap-item i {
  color: var(--royal-yellow-gold, #F5C518);
  margin-top: 3px;
  font-size: 14px;
}

/* 3. SIDEBAR STYLING */
.sd-sidebar {
  position: sticky;
  top: 100px;
}

.sd-nav-widget {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--royal-gray-border, #E2E8F0);
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  margin-bottom: 25px;
}

.sd-widget-title {
  font-family: 'Marcellus', serif;
  font-size: 18px;
  color: var(--royal-gray-graphite, #58585A);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--royal-gray-light, #F7F0F2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-widget-title i {
  color: var(--royal-yellow-accent, #FFB800);
}

.sd-services-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sd-services-menu li {
  margin-bottom: 8px;
}

/* Inactive Division Links: Clean White with Graphite Text */
.sd-services-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--royal-gray-graphite, #58585A);
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid var(--royal-gray-border, #E2E8F0);
  transition: all 0.25s ease;
}

.sd-services-menu a i {
  font-size: 12px;
  color: #9CA3AF;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sd-services-menu a:hover {
  background: #FFFFFF;
  color: var(--royal-gray-darkest, #14171C);
  border-color: var(--royal-yellow-gold, #F5C518);
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.12);
  transform: translateX(3px);
}

.sd-services-menu a:hover i {
  color: var(--royal-yellow-gold, #F5C518);
  transform: translateX(3px);
}

/* Active Division Link: High-Visibility Gold Highlight on Light Gray */
.sd-services-menu a.active {
  background: var(--royal-gray-light, #F7F0F2) !important;
  color: var(--royal-gray-darkest, #14171C) !important;
  font-weight: 700 !important;
  border: 1px solid var(--royal-yellow-gold, #F5C518) !important;
  border-left: 4px solid var(--royal-yellow-gold, #F5C518) !important;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.15) !important;
}

.sd-services-menu a.active i {
  color: var(--royal-yellow-accent, #FFB800) !important;
  transform: translateX(3px);
}

/* Corporate Helpline Card (Master Charcoal Gradient with Glowing Yellow) */
.sd-hotline-card {
  background: linear-gradient(135deg, var(--royal-gray-graphite, #58585A) 0%, var(--royal-gray-charcoal, #22272F) 100%);
  border-radius: 16px;
  padding: 30px;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-hotline-icon {
  width: 60px;
  height: 60px;
  background: rgba(245, 197, 24, 0.15);
  color: var(--royal-yellow-gold, #F5C518);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  border: 1px solid rgba(245, 197, 24, 0.35);
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
}

.sd-hotline-title {
  font-family: 'Marcellus', serif;
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.sd-hotline-desc {
  font-size: 13.5px;
  color: #E2E8F0;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sd-hotline-num {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  color: var(--royal-yellow-gold, #F5C518);
  display: block;
  margin: 8px 0 18px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.sd-hotline-num:hover {
  color: var(--royal-yellow-accent, #FFB800);
}

.btn-sd-hotline {
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-sd-hotline:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .services-hero-section {
    padding-top: 130px;
    padding-bottom: 55px;
  }
  .sd-featured-img-wrap {
    height: 280px;
  }
  .sd-process-grid {
    grid-template-columns: 1fr;
  }
  .sd-capabilities-list {
    grid-template-columns: 1fr;
  }
  .sd-sidebar {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .services-hero-section {
    padding-top: 115px;
    padding-bottom: 45px;
  }
  .sd-content-card {
    padding: 24px;
  }
}
