/* ==============================================
   AL-NEXA GULF — Services Page Redesign
   Aesthetic: Editorial Luxury with Industrial Edge
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
  --red: #892C37;
  --red-bright: #a33542;
  --red-light: rgba(137,44,55,0.08);
  --red-glow: rgba(137,44,55,0.15);
  --dark: #0d0d0d;
  --cream: #f5f0e8;
  --cream-dark: #e8e2d8;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: rgba(0,0,0,0.65);
  --text-light: rgba(0,0,0,0.45);
  --border-cream: #e0d8cc;
  --border-light: rgba(0,0,0,0.08);
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---- OVERRIDE BODY FONT FOR SERVICES ---- */
.services-page body,
.services-page {
  font-family: var(--font-body);
}

/* ==============================================
   HERO — Light with Background Image + Overlay
   ============================================== */
.services-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height, 5rem) + 6rem) 0 6rem;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(245,240,232,0.88) 100%);
  pointer-events: none;
}
.services-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 15% 50%, rgba(137,44,55,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(137,44,55,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.services-hero .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(137,44,55,0.1);
  border: 1px solid rgba(137,44,55,0.25);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
.services-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.services-hero .hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(0,0,0,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Decorative line under hero */
.hero-ornament {
  width: 80px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  margin: 2rem auto 0;
  transform-origin: center;
}

/* ==============================================
   TAB BAR — Horizontal Scrollable
   ============================================== */
.services-tab-wrapper {
  position: sticky;
  top: calc(var(--nav-height, 5rem) + 0px);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.services-tab-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.services-tab-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
}
.services-tab-bar::-webkit-scrollbar {
  display: none;
}
.srv-tab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  letter-spacing: 0.02em;
}
.srv-tab-link:hover {
  color: var(--red);
  background: var(--red-light);
}
.srv-tab-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: var(--red-light);
}
.srv-tab-link i {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.srv-tab-link.active i,
.srv-tab-link:hover i {
  opacity: 1;
}

/* ==============================================
   SERVICE BLOCK — Two Column Alternating
   ============================================== */
.service-block {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.service-block:nth-child(odd) {
  background: var(--cream);
}
.service-block:nth-child(even) {
  background: var(--white);
}
.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Alternate layout */
.service-block:nth-child(even) .service-block-inner {
  direction: rtl;
}
.service-block:nth-child(even) .service-block-inner > * {
  direction: ltr;
}

/* ---- Left Content ---- */
.service-content .block-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--red-light);
  border: 1px solid rgba(137,44,55,0.2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.block-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.service-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.service-content .block-tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service-content .block-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Subheading inside content */
.service-content .block-subheading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ---- Right Image ---- */
.service-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-left: 4px solid var(--red);
}
.service-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease-smooth);
}
.service-image-wrapper:hover img {
  transform: scale(1.04);
}
.service-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* ==============================================
   MINI FEATURE CARDS — 3x2 Grid
   ============================================== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mini-feature-card {
  background: var(--white);
  border: 1.5px solid var(--border-cream);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.mini-feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--red);
  transition: width 0.35s var(--ease-smooth);
  border-radius: 0 3px 3px 0;
}
.mini-feature-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,58,58,0.08);
  background: #fdfaf5;
}
.mini-feature-card:hover::before {
  width: 3px;
}
.mini-feature-card .mf-icon {
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 0.7rem;
  transition: transform 0.35s var(--ease-smooth);
  display: block;
}
.mini-feature-card:hover .mf-icon {
  transform: scale(1.15);
}
.mini-feature-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.mini-feature-card p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}
.mini-feature-card .mf-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: var(--red);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.35s var(--ease-smooth);
}
.mini-feature-card:hover .mf-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================================
   SECTION SUB-TYPES (inside service blocks)
   ============================================== */

/* Icon Grid (Security, Cleaning, IT) */
.icon-grid-srv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.icon-card-srv {
  background: var(--white);
  border: 1.5px solid var(--border-cream);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  cursor: default;
}
.icon-card-srv:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,58,58,0.06);
}
.icon-card-srv .ic-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.2rem;
  transition: all 0.3s var(--ease-smooth);
}
.icon-card-srv:hover .ic-icon-wrap {
  background: var(--red);
  color: #fff;
  transform: scale(1.08);
}
.icon-card-srv .ic-name-srv {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* Tabs Section (Manpower) */
.tabs-section-srv {
  margin-top: 1.5rem;
}
.tab-btns-srv {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn-srv {
  padding: 0.55rem 1.3rem;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}
.tab-btn-srv:hover {
  border-color: var(--red);
  color: var(--red);
}
.tab-btn-srv.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tab-content-srv {
  display: none;
}
.tab-content-srv.active {
  display: block;
}
.tab-grid-srv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tab-grid-srv img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
}
.tab-items-srv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  list-style: none;
  align-content: start;
}
.tab-items-srv li {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-mid);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tab-items-srv li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bullet List */
.bullet-list-srv {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.bullet-list-srv li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-mid);
}
.bullet-list-srv li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--red-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: var(--red);
}

/* Timeline */
.timeline-srv {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}
.timeline-srv::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(137,44,55,0.1) 100%);
}
.timeline-step-srv {
  position: relative;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}
.timeline-step-srv .step-node-srv {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 4px var(--red-light);
}
.timeline-step-srv .step-content-srv h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.timeline-step-srv .step-content-srv p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Accordion */
.accordion-srv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.accordion-item-srv {
  border: 1.5px solid var(--border-cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.accordion-item-srv:hover {
  border-color: rgba(137,44,55,0.2);
}
.accordion-header-srv {
  padding: 0.9rem 1.2rem;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  letter-spacing: -0.005em;
}
.accordion-header-srv:hover {
  background: #fdfaf5;
  color: var(--red);
}
.accordion-header-srv i {
  transition: transform 0.35s var(--ease-smooth);
  font-size: 0.7rem;
  color: var(--red);
}
.accordion-header-srv.open i {
  transform: rotate(180deg);
}
.accordion-body-srv {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-smooth);
  background: #fdfaf5;
}
.accordion-body-srv.open {
  max-height: 500px;
}
.accordion-body-inner-srv {
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.accordion-tag-srv {
  padding: 0.3rem 0.7rem;
  background: var(--red-light);
  border: 1px solid rgba(137,44,55,0.15);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}
.accordion-tag-srv:hover {
  background: var(--red);
  color: #fff;
}

/* Project List */
.project-list-srv {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.proj-item-srv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--red);
  font-family: var(--font-body);
  font-size: 0.84rem;
  transition: all 0.3s var(--ease-smooth);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.proj-item-srv:hover {
  background: #fdfaf5;
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.proj-item-srv .proj-name-srv {
  color: var(--text-dark);
  font-weight: 500;
}
.proj-item-srv .proj-loc-srv {
  color: var(--text-light);
  font-size: 0.78rem;
}

/* ==============================================
   DARK SECTION BREAK
   ============================================== */
.service-dark-break {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-dark-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(137,44,55,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.service-dark-break h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

/* ==============================================
   GSAP ANIMATION INITIAL STATES
   ============================================== */
.anim-hero-badge,
.anim-hero-title,
.anim-hero-sub {
  opacity: 0;
}
.anim-tab-bar {
  opacity: 0;
  transform: translateY(30px);
}
.anim-block-content {
  opacity: 0;
}
.anim-block-image {
  opacity: 0;
}
.anim-feature-card {
  opacity: 0;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .service-block-inner {
    gap: 3rem;
  }
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-grid-srv {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: 60vh;
    padding: calc(var(--nav-height, 4rem) + 4rem) 0 4rem;
  }
  .services-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    color: #1a1a1a;
  }
  .services-tab-bar {
    padding: 0 1rem;
  }
  .srv-tab-link {
    padding: 0.8rem 1rem;
    font-size: 0.72rem;
  }

  .service-block {
    padding: 60px 0;
  }
  .service-block-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  .service-block:nth-child(even) .service-block-inner {
    direction: ltr;
  }

  /* Move image first on mobile */
  .service-image-wrapper {
    order: -1;
  }
  .service-image-wrapper img {
    height: 280px;
  }

  .service-content h2 {
    font-size: 1.6rem;
  }

  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-grid-srv {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-grid-srv {
    grid-template-columns: 1fr;
  }
  .tab-items-srv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
  .icon-grid-srv {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-hero h1 {
    font-size: 2rem;
    color: #1a1a1a;
  }
  .service-content h2 {
    font-size: 1.4rem;
  }
}
