/* ===== Inner Pages — Premium Layered Styles ===== */

/* --- Page Hero (Shared across all inner pages) --- */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(var(--primary-rgb), 0.6) 0%,
    rgba(var(--dark-rgb), 0.85) 100%
  );
}

/* Yellow accent bar at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  z-index: 3;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-20) var(--container-padding) var(--space-12);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.page-hero__content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.page-hero__breadcrumb a {
  color: var(--secondary);
}


/* =============================================
   ABOUT PAGE — Premium Layered
   ============================================= */

/* About Intro: image with yellow accent + overlapping text panel */
.brochure-about {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  display: flex;
  min-height: 500px;
}

.brochure-about__text {
  flex: 1;
  padding: var(--space-16) 10%;
  color: var(--white);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brochure-about__text .label {
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.brochure-about__text h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--secondary);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-4);
}

.brochure-about__text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
}

[dir="rtl"] .brochure-about__text h2::after {
  left: auto;
  right: 0;
}

.brochure-about__text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
}

.brochure-about__image-container {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.brochure-about__image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  opacity: 1;
}

.brochure-about__image {
  position: absolute;
  top: var(--space-12);
  left: 0;
  width: 100%;
  height: calc(100% + 50px);
  object-fit: cover;
  z-index: 2;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.2);
}

[dir="rtl"] .brochure-about__image {
  box-shadow: 10px 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
  .brochure-about {
    flex-direction: column;
  }
  .brochure-about__image-container {
    min-height: 400px;
  }
  .brochure-about__image {
    top: 0;
    height: 100%;
  }
}

/* --- Vision & Mission: Cards with full background images --- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.vm-card {
  position: relative;
  padding: var(--space-12) var(--space-10);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vm-card--vision {
  background: var(--primary);
  color: var(--white);
}

.vm-card--mission {
  background: var(--secondary);
  color: var(--dark);
}

.vm-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.vm-card > *:not(.vm-card__bg) {
  position: relative;
  z-index: 2;
}

/* Yellow accent bar at top of vision card */
.vm-card--vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  z-index: 3;
}

/* Blue accent bar at top of mission card */
.vm-card--mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  z-index: 3;
}

.vm-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.vm-card--vision .vm-card__icon {
  background: rgba(255,255,255,0.15);
}

.vm-card--mission .vm-card__icon {
  background: rgba(0,0,0,0.08);
}

.vm-card__icon svg {
  width: 28px;
  height: 28px;
}

.vm-card--vision .vm-card__icon svg { color: var(--secondary); }
.vm-card--mission .vm-card__icon svg { color: var(--primary); }

.vm-card h3 {
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.vm-card--vision h3 { color: var(--white); }
.vm-card--mission h3 { color: var(--dark); }

.vm-card p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.vm-card--vision p { color: rgba(255,255,255,0.85); }
.vm-card--mission p { color: var(--gray-800); }


/* --- Values Grid: Dark background with accent overlays --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.value-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
}

/* Yellow top accent on hover */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.value-card__icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  transition: all var(--transition-base);
}

.value-card:hover .value-card__icon {
  background: var(--primary);
}

.value-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--dark);
  transition: color var(--transition-base);
}

.value-card:hover .value-card__icon svg {
  color: var(--white);
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.value-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}


/* --- Team & Fleet: Split layout with background overlays --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

[dir="rtl"] .feature-split {
  direction: rtl;
}

[dir="rtl"] .feature-split__text {
  text-align: right;
}

[dir="rtl"] .feature-split__text {
  order: 1;
}

[dir="rtl"] .feature-split__image {
  order: 2;
}

.feature-split__image {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.feature-split__image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

/* Gradient overlay on feature images */
.feature-split__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.3), transparent);
}

.feature-split__text {
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: var(--white);
}

[dir="rtl"] .feature-split--fleet-ar {
  grid-template-columns: 1.15fr 0.85fr;
}

/* Blue accent bar on the side of text */
.feature-split__text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

[dir="rtl"] .feature-split__text::before {
  left: auto;
  right: 0;
}

.feature-split__text h3 {
  margin-bottom: var(--space-4);
}

.feature-split__text h3 span {
  color: var(--secondary);
}

.feature-split__text p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Keep Team/Fleet blocks stable even if reveal observer fails on some WP setups */
.feature-split__image.reveal,
.feature-split__image.reveal-left,
.feature-split__image.reveal-right,
.feature-split__text.reveal,
.feature-split__text.reveal-left,
.feature-split__text.reveal-right {
  opacity: 1;
  transform: none;
}


/* =============================================
   SERVICES PAGE — Premium Layered
   ============================================= */

/* Service Detail: image + content with layered accents */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.service-detail--reverse .service-detail__image {
  order: 2;
}

.service-detail__image {
  position: relative;
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Yellow accent stripe at bottom of image */
.service-detail__image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  z-index: 2;
}

/* Gradient overlay on image */
.service-detail__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.35), transparent);
  z-index: 1;
}

.service-detail__content {
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  position: relative;
}

/* Blue accent bar on left of content */
.service-detail__content::before {
  content: '';
  position: absolute;
  top: var(--space-12);
  left: 0;
  width: 5px;
  height: 60px;
  background: var(--primary);
}

[dir="rtl"] .service-detail__content::before {
  left: auto;
  right: 0;
}

.service-detail__content h3 {
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.service-detail__content h3 span {
  color: var(--secondary);
}

.service-detail__content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.service-list li svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* Contrast overrides for dark sections */
.section--dark .service-detail__content h3,
.section--dark .service-detail__content p,
.section--dark .service-list li {
  color: var(--white);
}

.section--dark .service-detail__content p {
  color: rgba(255,255,255,0.85);
}


/* --- Services Banner: Full-width with strong yellow background + image --- */
.services-banner {
  position: relative;
  padding: var(--space-16) 0;
  overflow: hidden;
}

.services-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.services-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
}

/* Blue accent at top */
.services-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  z-index: 3;
}

.services-banner__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.services-banner__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services-banner__item-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.services-banner__item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.services-banner__item h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.services-banner__item p {
  font-size: 0.82rem;
  color: var(--gray-800);
  text-align: center;
}


/* =============================================
   PROJECTS PAGE — Premium Dark Grid
   ============================================= */
.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}


/* =============================================
   CONTACT PAGE — Layered Design
   ============================================= */

/* Contact Cards: Glassmorphic style with accent bars */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.contact-card {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--gray-200);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-card > div:last-child {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

/* Yellow accent bar on top */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--dark);
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
}

.contact-card p,
.contact-card a {
  color: var(--gray-600);
  font-size: 0.9rem;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
}

.contact-card a {
  display: inline-block;
}

.contact-card a[href^="mailto:"] {
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}

.contact-card a[href^="tel:"] {
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}

.contact-card a:hover {
  color: var(--primary);
}


/* --- Contact Layout: Form + Map side by side --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  align-items: stretch;
}

.contact-form-wrap {
  background: var(--white);
  padding: var(--space-10);
  border: 1px solid var(--gray-200);
  position: relative;
}

/* Blue accent bar on left */
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

[dir="rtl"] .contact-form-wrap::before {
  left: auto;
  right: 0;
}

.contact-form-wrap h3 {
  margin-bottom: var(--space-2);
}

.contact-form-wrap h3 span {
  color: var(--secondary);
}

.contact-form-wrap > p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: var(--space-8);
}

.contact-form {
  /* Inherits from contact-form-wrap container */
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.contact-form .btn,
.contact-form-wrap .btn {
  width: 100%;
}

/* Map */
.contact-map {
  overflow: hidden;
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
}


/* =============================================
   PARTNERS PAGE — Layered Cards
   ============================================= */
.partner-detail-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  background: var(--white);
  border: none;
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.partner-detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

[dir="rtl"] .partner-detail-card::after {
  transform-origin: right;
}

.partner-detail-card:hover::after {
  transform: scaleX(1);
}

.partner-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.partner-detail-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

[dir="rtl"] .partner-detail-card__logo {
  border-right: none;
  border-left: 1px solid var(--gray-200);
}

.partner-detail-card__logo img {
  max-height: 120px;
  max-width: 100%;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.partner-detail-card:hover .partner-detail-card__logo img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.partner-detail-card__info {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-detail-card__info h3 {
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
  color: var(--primary);
}

.partner-detail-card__info p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--gray-600);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-banner__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 280px;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro__image img {
    min-height: 300px;
  }

  .about-intro__image::after {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split__image img {
    min-height: 280px;
  }

  .feature-split__text::before {
    width: 100%;
    height: 4px;
    top: 0;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail--reverse .service-detail__image {
    order: 0;
  }

  .service-detail__image img {
    min-height: 280px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .services-banner__content {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    min-height: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .projects-full-grid {
    grid-template-columns: 1fr;
  }

  .partner-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .partner-detail-card__logo {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  [dir="rtl"] .partner-detail-card__logo {
    border-left: none;
    border-bottom: 1px solid var(--gray-200);
  }
}

/* ===== Form Message ===== */
.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== Project Detail Page ===== */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-detail__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-detail__location {
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-detail__location::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-400);
}

.project-detail h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.project-detail__img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.project-detail__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-detail__desc p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-700);
}

.project-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.project-detail__back:hover {
  color: var(--secondary);
}

.project-detail__back svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .project-detail__img {
    border-radius: 12px;
  }
}

/* =============================================
   SERVICE DETAIL PAGES
   ============================================= */

/* Service page overview: text + hero image */
.service-page-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.service-page-overview__text {
  padding: var(--space-16) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.service-page-overview__text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

[dir="rtl"] .service-page-overview__text::before {
  left: auto;
  right: 0;
}

.service-page-overview__text .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
  width: fit-content;
}

.service-page-overview__text h2 {
  margin-bottom: var(--space-4);
}

.service-page-overview__text h2 span {
  color: var(--secondary);
}

.service-page-overview__text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-700);
}

.service-page-overview__image {
  position: relative;
  overflow: hidden;
}

.service-page-overview__image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.service-page-overview__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.3), transparent);
}

.service-page-overview__image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  z-index: 2;
}

/* Sub-services grid */
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.sub-service-card {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.sub-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.sub-service-card:hover::before {
  transform: scaleX(1);
}

.sub-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.sub-service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: background var(--transition-base);
}

.sub-service-card:hover .sub-service-card__icon {
  background: var(--primary);
}

.sub-service-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--dark);
  transition: color var(--transition-base);
}

.sub-service-card:hover .sub-service-card__icon svg {
  color: var(--white);
}

.sub-service-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.sub-service-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Service gallery */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.service-gallery__item {
  overflow: hidden;
  position: relative;
}

.service-gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-gallery__item:hover img {
  transform: scale(1.05);
}

.service-gallery__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
}

/* Explore service button on main services page */
.service-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-6);
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.service-explore-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.service-explore-btn .arrow {
  transition: transform var(--transition-fast);
}

.service-explore-btn:hover .arrow {
  transform: translateX(4px);
}

[dir="rtl"] .service-explore-btn:hover .arrow {
  transform: translateX(-4px);
}

.section--dark .service-explore-btn {
  background: var(--secondary);
  color: var(--dark);
}

/* Back to services link */
.service-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.service-page__back:hover {
  color: var(--secondary);
}

.service-page__back svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .sub-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-page-overview {
    grid-template-columns: 1fr;
  }

  .service-page-overview__image img {
    min-height: 280px;
  }

  .sub-services-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-gallery__item img {
    height: 220px;
  }
}

