/* Page-only services styles. Shared tokens, reset, layout utilities, header,
   footer, and RFQ controls are owned by global.css. */

/* ==========================================================================
   Split Layout Grid for Rebuilt Services Hero
   ========================================================================== */
.services-hero-rebuild {
  background-color: var(--color-navy);
  background-image: radial-gradient(rgba(44, 76, 124, 0.15) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  min-height: 80vh;
  padding: 9rem 0 6rem 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.services-hero-rebuild::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.9) 100%);
  pointer-events: none;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Left Content Column */
.services-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 122, 134, 0.1);
  border: 1px solid rgba(0, 122, 134, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.services-hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-teal);
}

.services-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.services-hero-title span {
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--color-slate-300);
  margin-top: 0;
  margin-bottom: 2rem;
}

.services-hero-desc-ar {
  font-family: var(--font-arabic);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--color-slate-300); /* Match light color of English description */
  margin-top: 0;
  margin-bottom: 2rem;
  border-right: 2px solid var(--color-teal);
  padding-right: 1rem;
}

html[lang="ar"] .services-hero-desc-ar {
  border-right: none;
  border-left: 2px solid var(--color-teal);
  padding-right: 0;
  padding-left: 1rem;
}

.services-hero-actions {
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   Right Column: 3D Horizontal HUD Carousel Container & Track
   ========================================================================== */
.services-hero-carousel-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  margin-top: 0;
}

.services-hud-carousel-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.services-hud-carousel-track {
  position: relative;
  width: 270px;
  height: 330px;
  transform-style: preserve-3d;
}

/* ==========================================================================
   Services HUD Card Design (Mirrors Homepage)
   ========================================================================== */
.services-hud-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 270px;
  height: 330px;
  border-radius: 0.85rem;
  background: rgba(9, 19, 38, 0.95);
  border: 1px solid rgba(0, 122, 134, 0.15);
  color: var(--color-white);
  padding: 2.25rem 1.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  transform-origin: center center;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.services-hud-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, rgba(0, 168, 204, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Card position classes controlled by JS */
.services-hud-card.active {
  transform: rotateY(0deg) translateZ(120px) scale(1.1);
  opacity: 1;
  z-index: 10;
  border-color: var(--color-accent-base);
  box-shadow: 0 0 25px rgba(0, 168, 204, 0.35);
  pointer-events: auto;
}

.services-hud-card.active .services-hud-card-glow {
  background: radial-gradient(circle at 50% -20%, rgba(243, 111, 33, 0.25) 0%, transparent 60%);
}

.services-hud-card.next {
  transform: rotateY(-35deg) translateX(140px) translateZ(0) scale(0.9);
  opacity: 0.55;
  z-index: 5;
  pointer-events: auto;
}

.services-hud-card.prev {
  transform: rotateY(35deg) translateX(-140px) translateZ(0) scale(0.9);
  opacity: 0.55;
  z-index: 5;
  pointer-events: auto;
}

.services-hud-card.far-right {
  transform: rotateY(0deg) translateZ(-150px) scale(0.75);
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  z-index: 2;
}

.services-hud-card.hidden {
  transform: rotateY(0deg) translateZ(-250px) scale(0.6);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* Inner elements */
.services-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.services-hud-status-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.services-hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-slate-500);
}

.services-hud-card.active .services-hud-status-dot {
  background-color: var(--color-orange);
  box-shadow: 0 0 8px var(--color-orange);
  animation: pulse-custom 1.5s infinite;
}

.services-hud-status-text {
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-slate-400);
  font-weight: 700;
  text-transform: uppercase;
}

.services-hud-card.active .services-hud-status-text {
  color: var(--color-orange);
}

.services-hud-number {
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.services-hud-body {
  margin-top: 1.5rem;
  margin-bottom: auto;
  z-index: 2;
}

.services-brand-dominant-label {
  color: var(--color-white);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-hud-card.active .services-brand-dominant-label {
  background: linear-gradient(135deg, #FFFFFF 0%, #D3DFEE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-role-secondary-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-base);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.services-hud-card.active .services-role-secondary-label {
  color: var(--color-orange);
}

.services-hud-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
  z-index: 2;
}

.services-hud-card.active .services-hud-footer {
  border-top-color: rgba(243, 111, 33, 0.15);
}

.services-hud-footer-meta {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--color-slate-400);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Navigation Buttons & Indicators
   ========================================================================== */
.services-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(14, 30, 54, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
}

.services-carousel-nav-btn.prev { left: -3.5rem; }
.services-carousel-nav-btn.next { right: -3.5rem; }

.services-carousel-nav-btn:hover {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-navy);
}

.services-carousel-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  z-index: 2;
}

.services-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.services-indicator.active {
  background-color: var(--color-teal);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--color-teal);
}

/* ==========================================================================
   Bilingual Detailed Services Accordion Section Styles
   ========================================================================== */
.services-details-section {
  padding: 8rem 0;
  background-color: var(--color-primary-tint); /* Soft light gray-blue background */
  position: relative;
}

/* Premium Ambient Background (matches home theme but styled for details) */
.services-details-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 168, 204, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(243, 111, 33, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.services-details-section .container {
  position: relative;
  z-index: 2;
}

.details-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.details-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary-deep);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.details-section-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* --- Expanding Technical Accordion Deck --- */
.details-v3-accordion-deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.details-accordion-item {
  background: #FFFFFF;
  border: 1px solid rgba(25, 55, 99, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(25, 55, 99, 0.02);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.details-accordion-item.active {
  border-color: var(--color-teal);
  box-shadow: 0 10px 30px rgba(25, 55, 99, 0.08);
}

.details-accordion-item:hover:not(.active) {
  border-color: rgba(25, 55, 99, 0.15);
  box-shadow: 0 6px 20px rgba(25, 55, 99, 0.04);
}

/* Accordion Header Row */
.details-accordion-header {
  width: 100%;
  padding: 1.75rem 2.25rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

html[lang="ar"] .details-accordion-header {
  text-align: right;
}

.details-accordion-header:hover {
  background: rgba(25, 55, 99, 0.01);
}

.acc-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.acc-header-main-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.acc-index {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-400);
}

.details-accordion-item.active .acc-index {
  color: var(--color-orange);
}

.acc-icon-indicator {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.details-accordion-item:hover .acc-icon-indicator {
  transform: scale(1.1) rotate(5deg);
}

.acc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-deep);
  margin: 0;
  line-height: 1.3;
}

/* Short description in header */
.acc-header-desc-row {
  padding-left: 3.8rem; /* aligned with title after index and icon spacing */
}

html[lang="ar"] .acc-header-desc-row {
  padding-left: 0;
  padding-right: 3.8rem;
}

.acc-header-short-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-slate-500);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

.details-accordion-item.active .acc-header-short-desc {
  color: var(--color-slate-600);
}

.acc-header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

html[lang="ar"] .acc-header-meta {
  margin-left: 0;
  margin-right: 1.5rem;
}

.acc-tag {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent-text);
  background: var(--color-accent-light);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Click prompt cue */
.acc-click-prompt {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 168, 204, 0.05);
  border: 1px solid rgba(0, 168, 204, 0.15);
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent-text);
  opacity: 0.7;
  transition: all 0.25s ease;
}

.details-accordion-header:hover .acc-click-prompt {
  opacity: 1;
  background: rgba(0, 168, 204, 0.1);
  transform: scale(1.03);
}

.details-accordion-item.active .acc-click-prompt {
  display: none; /* Hide prompt when already open */
}

.acc-plus-icon {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-slate-400);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  width: 20px;
  text-align: center;
}

.details-accordion-item.active .acc-plus-icon {
  transform: rotate(45deg);
  color: var(--color-orange);
}

/* --- Collapsible Accordion Grid Content --- */
.details-accordion-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-accordion-item.active .details-accordion-content-wrapper {
  grid-template-rows: 1fr;
}

.details-accordion-content {
  overflow: hidden;
}

.details-accordion-grid {
  padding: 0 2.25rem 2.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  border-top: 1px solid rgba(25, 55, 99, 0.05);
  padding-top: 2.25rem;
}

.acc-details-text {
  display: flex;
  flex-direction: column;
}

.acc-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.acc-bullets-row {
  margin-bottom: 1.75rem;
}

.acc-bullet-col {
  min-width: 0;
}

.acc-bullet-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-slate-500);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.acc-check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.acc-check-list li {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-slate-600);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.acc-check-list li .check-bullet {
  color: var(--color-teal);
  font-weight: 800;
  flex-shrink: 0;
}

.acc-action-row {
  margin-top: 1.5rem;
}

/* --- Premium Image Box for Sourced Gemini Images --- */
.acc-details-visual {
  width: 100%;
}

.accordion-image-box {
  position: relative;
  width: 100%;
  height: 360px;
  border: 1px solid rgba(25, 55, 99, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-primary-deep);
}

.accordion-service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.95);
}

.accordion-image-box:hover .accordion-service-image {
  transform: scale(1.04);
  filter: brightness(1.02);
}

/* Blueprint text overlay style inside image */
.accordion-image-box .blueprint-visual-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(0deg, rgba(14, 30, 54, 0.85) 0%, rgba(14, 30, 54, 0.4) 60%, transparent 100%);
  text-align: center;
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  transition: all 0.3s ease;
}

.accordion-image-box:hover .blueprint-visual-label {
  color: var(--color-accent-light);
  background: linear-gradient(0deg, rgba(14, 30, 54, 0.95) 0%, rgba(14, 30, 54, 0.5) 60%, transparent 100%);
}

/* ==========================================================================
   Responsive Styling for Rebuilt Services Page
   ========================================================================== */
@media (max-width: 992px) {
  .services-details-section {
    padding: 5rem 0;
  }
  
  .details-section-header {
    margin-bottom: 2.5rem;
  }

  .details-accordion-header {
    padding: 1.5rem 1.75rem;
  }

  .acc-header-desc-row {
    padding-left: 3.5rem;
  }

  html[lang="ar"] .acc-header-desc-row {
    padding-right: 3.5rem;
  }

  .details-accordion-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.75rem 2.25rem 1.75rem;
    padding-top: 1.75rem;
  }

  .acc-check-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .acc-header-meta .acc-tag {
    display: none; /* Hide division tags in accordion headers on small screens to save space */
  }

  .accordion-image-box {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .acc-header-desc-row {
    display: none; /* Hide short description on mobile headers to avoid crowding */
  }

  .acc-click-prompt {
    display: none; /* Hide click prompt on tablets/mobiles */
  }

  .details-accordion-header {
    padding: 1.25rem 1.5rem;
  }

  .acc-header-meta {
    margin-left: 0.75rem;
  }

  html[lang="ar"] .acc-header-meta {
    margin-right: 0.75rem;
  }
}

@media (max-width: 576px) {
  .accordion-image-box {
    height: 220px;
  }
  
  .acc-header-main-row {
    gap: 0.75rem;
  }
  
  .acc-title {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Responsive Styling for Rebuilt Services Hero
   ========================================================================== */
@media (max-width: 1400px) and (min-width: 1201px) {
  .services-hud-carousel-container {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

@media (max-width: 1200px) and (min-width: 1101px) {
  .services-hud-carousel-container {
    transform: scale(0.78);
    transform-origin: center center;
  }
}

@media (max-width: 1100px) and (min-width: 993px) {
  .services-hud-carousel-container {
    transform: scale(0.7);
    transform-origin: center center;
  }
}

@media (max-width: 992px) {
  .services-hero-rebuild {
    padding: 8rem 0 5rem 0;
    min-height: auto;
  }
  .services-hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
    justify-items: center;
  }
  .services-hero-content {
    align-items: center;
  }
  .services-hero-desc-ar,
  html[lang="ar"] .services-hero-desc-ar {
    border-right: none;
    border-left: none;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }
  .services-hero-actions {
    justify-content: center;
  }
  .services-hero-carousel-column {
    margin-top: 3rem;
  }
}

@media (max-width: 576px) {
  .services-hud-carousel-container {
    transform: scale(0.8);
    transform-origin: center center;
    height: 310px;
    margin-top: -1.5rem;
    margin-bottom: -1.5rem;
  }
  .services-carousel-indicators {
    margin-top: 0.5rem;
  }
  .services-carousel-nav-btn.prev {
    left: -1.5rem;
  }
  .services-carousel-nav-btn.next {
    right: -1.5rem;
  }
}

@media (max-width: 380px) {
  .services-hud-carousel-container {
    transform: scale(0.65);
    height: 250px;
    margin-top: -3rem;
    margin-bottom: -3rem;
  }
  .services-carousel-nav-btn.prev {
    left: -0.75rem;
  }
  .services-carousel-nav-btn.next {
    right: -0.75rem;
  }
}

/* ==========================================================================
   Services Typography Normalization
   ========================================================================== */
.services-hero-title {
  font-size: var(--fs-h1);
}

.details-section-title {
  font-size: var(--fs-h2);
}

.services-brand-dominant-label,
.acc-title {
  font-size: var(--fs-h3);
}

.acc-bullet-title {
  font-size: var(--fs-h4);
}

.services-hero-desc,
.services-hero-desc-ar,
.details-section-desc,
.acc-desc {
  font-size: var(--fs-body);
}

.acc-header-short-desc,
.acc-check-list li {
  font-size: var(--fs-body-secondary);
}
