/* ============================================
   PIONEER PEPTIDE - Services Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
  padding: calc(var(--header-height) + var(--topbar-height) + var(--space-16)) 0 var(--space-20);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(28, 158, 145, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 158, 145, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 70%);
}

.page-hero-gradient {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 158, 145, 0.08) 0%, transparent 60%);
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.page-hero-title span {
  display: block;
}

.page-hero-title .accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header.center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Section */
.services-stats {
  padding: var(--space-12) 0;
  background: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-sm);
  opacity: 0.7;
}

/* Service Showcase Sections */
.service-showcase {
  padding: var(--space-24) 0;
}

.service-showcase.service-alt {
  background: var(--gray-50);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-content .section-label {
  margin-bottom: var(--space-4);
}

.showcase-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.showcase-lead {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.showcase-features {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.feature-text h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.feature-text p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* Visual Cards */
.visual-card-large {
  background: linear-gradient(135deg, var(--primary) 0%, #15b8a6 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.visual-circles .circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.05);
}

.visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.visual-icon-large {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-icon-large svg {
  width: 48px;
  height: 48px;
}

.visual-content h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.visual-content p {
  font-size: var(--fs-base);
  opacity: 0.9;
  max-width: 280px;
  margin: 0 auto;
}

/* GMP Card */
.gmp-card {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gray-800) 100%);
}

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

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: center;
}

.cert-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
}

.cert-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.cert-item span {
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Services Grid Section */
.services-grid-section {
  padding: var(--space-24) 0;
  background: var(--gray-50);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.service-card-large {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.service-card-visual {
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(28, 158, 145, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.card-icon-wrapper svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.service-card-body {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.service-card-body > p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-list {
  list-style: none;
  margin-bottom: var(--space-6);
  flex: 1;
}

.service-list li {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c9e91' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.service-card-link:hover {
  gap: var(--space-3);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
}

/* Process Section */
.process-section {
  padding: var(--space-24) 0;
}

.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: var(--space-12);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
}

.process-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-xl);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 20px rgba(28, 158, 145, 0.3);
}

.process-content h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.process-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.process-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--gray-200) 100%);
  margin-top: 32px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .showcase-grid.reverse {
    direction: ltr;
  }
  
  .services-cards {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    flex-wrap: wrap;
    gap: var(--space-8);
  }
  
  .process-line {
    display: none;
  }
  
  .process-step {
    max-width: calc(33.333% - var(--space-6));
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--header-height) + var(--topbar-height) + var(--space-10)) 0 var(--space-10);
  }
  
  .page-hero-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .service-showcase {
    padding: var(--space-16) 0;
  }
  
  .visual-card-large {
    min-height: 350px;
    padding: var(--space-8);
  }
  
  .certification-grid {
    gap: var(--space-4);
  }
  
  .cert-item {
    padding: var(--space-4);
  }
  
  .service-card-body {
    padding: var(--space-6);
  }
  
  .process-step {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================
   Custom Image Support
   ============================================ */

/* Visual Card Custom Image */
.visual-custom-image {
  background: transparent;
}

.visual-custom-image img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

/* Visual Card with Background Image */
.visual-card-large[style*="background-image"] {
  position: relative;
}

.visual-card-large[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 158, 145, 0.85) 0%, rgba(20, 120, 110, 0.9) 100%);
  border-radius: inherit;
}

.visual-card-large[style*="background-image"] .visual-content {
  position: relative;
  z-index: 1;
}

/* Certification Icon Custom Image */
.cert-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Service Card Custom Image */
.card-icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
