/* ============================================
   WIN LIFE PHARMA — Services Page Styles
   ============================================ */

/* ═══════════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════════ */
.services-hero {
  min-height: 70vh;
}
.services-hero__breadcrumb {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.services-hero__breadcrumb a {
  color: var(--color-text-white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.services-hero__breadcrumb a:hover {
  color: var(--color-cta);
}

/* ═══════════════════════════════════════════
   SECTION 2: SERVICE OVERVIEW
   ═══════════════════════════════════════════ */
.services-overview {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}
.services-overview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.services-overview__content p {
  font-size: var(--fs-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
}
.services-overview__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.services-overview__images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.services-overview__images img:nth-child(even) {
  margin-top: var(--space-8);
}
.services-overview__images img:hover {
  transform: translateY(-5px);
}

/* ═══════════════════════════════════════════
   SECTION 3: EXPERTISE AREAS
   ═══════════════════════════════════════════ */
.expertise-areas {
  padding: var(--space-24) 0;
  background-color: var(--color-surface-alt);
}
.expertise-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-24);
}
.expertise-block:last-child {
  margin-bottom: 0;
}
.expertise-block--reverse .expertise-block__content {
  order: 1;
}
.expertise-block--reverse .expertise-block__image {
  order: 2;
}
.expertise-block__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.expertise-block__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}
.expertise-block__desc {
  font-size: var(--fs-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
}
.expertise-block__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.expertise-block__service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  font-weight: var(--fw-medium);
}
.expertise-block__service-icon {
  color: var(--color-cta);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   SECTION 4: REGULATORY MATRIX
   ═══════════════════════════════════════════ */
.services-matrix {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}
.matrix-wrapper {
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.matrix-table th,
.matrix-table td {
  padding: var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.matrix-table th:first-child,
.matrix-table td:first-child {
  text-align: left;
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  background-color: var(--color-surface-grey);
}
.matrix-table th {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
}
.matrix-table tr:last-child td {
  border-bottom: none;
}
.matrix-table th:last-child,
.matrix-table td:last-child {
  border-right: none;
}
.matrix-icon--check {
  color: var(--color-cta);
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   SECTION 5: WHY CHOOSE US V2
   ═══════════════════════════════════════════ */
.services-why {
  padding: var(--space-24) 0;
  background: linear-gradient(to bottom, var(--color-surface-alt), var(--color-surface));
}
.why-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-top: var(--space-12);
}
.why-v2__image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
}
.why-v2__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.why-v2__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform 0.3s ease;
}
.why-v2__item:hover {
  transform: translateX(10px);
}
.why-v2__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(41, 150, 219, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-v2__item h4 {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-2);
  color: var(--color-primary-dark);
}
.why-v2__item p {
  color: var(--color-text-secondary);
  font-size: var(--fs-body);
}

/* ═══════════════════════════════════════════
   SECTION 6: REGULATORY PROCESS TIMELINE V2
   ═══════════════════════════════════════════ */
.services-process {
  padding: var(--space-24) 0;
  background-color: var(--color-surface-alt);
  overflow: hidden;
}
.timeline-modern {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-12);
  min-height: 450px;
}
.timeline-modern--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.timeline-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(120, 190, 32, 0.3); /* CTA color transparent */
  z-index: 1;
  transform: translateY(-50%);
}
.timeline-modern__item {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 var(--space-2);
}
.timeline-modern__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-cta);
  color: var(--color-text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h5);
  box-shadow: 0 0 0 4px rgba(120, 190, 32, 0.2);
  z-index: 2;
}
.timeline-modern__content {
  background: transparent;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}
/* Odd items (1, 3, 5): Content goes ABOVE the marker */
.timeline-modern__item:nth-child(odd) .timeline-modern__content {
  bottom: 50%;
  margin-bottom: 35px;
}
/* Even items (2, 4, 6): Content goes BELOW the marker */
.timeline-modern__item:nth-child(even) .timeline-modern__content {
  top: 50%;
  margin-top: 35px;
}
.timeline-modern__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}
.timeline-modern__desc {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* ═══════════════════════════════════════════
   SECTION 7: INDUSTRIES WE SUPPORT
   ═══════════════════════════════════════════ */
.services-industries {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}
.industries-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.industry-v2-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-end;
}
.industry-v2-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}
.industry-v2-card:hover .industry-v2-card__img {
  transform: scale(1.05);
}
.industry-v2-card__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-6);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
}
.industry-v2-card__title {
  font-size: var(--fs-h5);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
}

/* ═══════════════════════════════════════════
   SECTION 8: SUCCESS METRICS
   ═══════════════════════════════════════════ */
.services-metrics {
  padding: var(--space-16) 0;
  background: var(--color-cta);
  color: var(--color-text-white);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.metric-item__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  line-height: 1;
}
.metric-item__label {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-overview__grid,
  .expertise-block {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .expertise-block--reverse .expertise-block__content {
    order: 1;
  }
  .expertise-block--reverse .expertise-block__image {
    order: 2;
  }
  .why-v2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .industries-v2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .expertise-block__services {
    grid-template-columns: 1fr;
  }
  .timeline-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    min-height: 700px; /* Needs to be taller for 2 rows */
  }
  .timeline-modern--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-modern::before {
    display: none; /* Hide line when wrapping because it won't align across multiple rows */
  }
}

@media (max-width: 768px) {
  .expertise-block__services {
    grid-template-columns: 1fr;
  }
  .timeline-modern,
  .timeline-modern--4 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-top: 0;
    min-height: auto;
  }
  .timeline-modern::before { 
    display: block;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    height: auto;
    right: auto;
  }
  .timeline-modern__item { 
    width: 100%; 
    left: 0 !important; 
    padding-left: 60px; 
    padding-right: 0;
    text-align: left !important; 
    display: flex;
    flex-direction: column;
  }
  .timeline-modern__marker { 
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .timeline-modern__content {
    padding-top: 0;
  }
  .industries-v2-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Services Hero Banner
   ========================================================================== */
.services-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: calc(var(--space-16) + 80px) 0 var(--space-16) 0;
  overflow: hidden;
}

.services-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.services-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 16, 41, 0.9) 0%, rgba(0, 16, 41, 0.8) 60%, rgba(0, 16, 41, 0.4) 100%);
  z-index: -1;
}

.services-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.services-hero__content {
  max-width: 800px;
  color: white;
}

.services-hero__title {
  font-size: var(--fs-h1);
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  font-weight: 700;
}

.services-hero__subtitle {
  font-size: var(--fs-h5);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.5;
  max-width: 700px;
}

.services-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.services-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.7);
}

.services-hero__breadcrumb a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.services-hero__breadcrumb a:hover {
  color: var(--color-cta);
}

/* Responsive Services Hero */
@media screen and (max-width: 992px) {
  .services-hero__overlay {
    background: linear-gradient(to bottom, rgba(0, 16, 41, 0.8) 0%, rgba(0, 16, 41, 0.9) 100%);
  }
}

@media screen and (max-width: 768px) {
  .services-hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }
  .services-hero__title {
    font-size: var(--fs-h2);
  }
}

/* ==========================================================================
   Classification Cards
   ========================================================================== */
.classification-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  transition: all 0.3s ease;
}

.classification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Responsive inline grid replacements */
.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.responsive-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

@media (max-width: 992px) {
  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .responsive-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .expertise-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .responsive-grid-3 {
    grid-template-columns: 1fr;
  }
  .responsive-grid-4 {
    grid-template-columns: 1fr;
  }
}
