/**
 * Services Section Component
 * Two-column layout with content and service cards
 */

.services {
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
}

@media (min-width: 1024px) {
  .services {
    padding-top: var(--space-96);
    padding-bottom: var(--space-96);
  }
}

/* Background Color Modifiers */
.services--bg-light {
  background-color: #f5f5f5;
}

.services--bg-white {
  background-color: #fff;
}

.services--bg-gray {
  background-color: #e8e8e8;
}

/* Services Grid */
.services__grid {
  display: grid;
  gap: var(--space-48);
  align-items: start;
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    align-items: center;
  }
}

/* Services Content (Left Column) */
.services__content {
  max-width: 100%;
}

.services__label {
  font-size: var(--fs-200);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

/* Label Size Modifiers */
.services__label--small {
  font-size: 0.75em;
}

.services__label--default {
  font-size: var(--fs-200);
}

.services__label--large {
  font-size: var(--fs-300);
}

.services__title {
  font-size: var(--fs-700);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

/* Title Size Modifiers */
.services__title--small {
  font-size: 1.75em;
}

.services__title--default {
  font-size: var(--fs-700);
}

.services__title--large {
  font-size: 2.5em;
}

.services__title--xlarge {
  font-size: 3em;
}

@media (min-width: 768px) {
  .services__title {
    font-size: var(--fs-800);
  }
  
  .services__title--small {
    font-size: 2em;
  }
  
  .services__title--default {
    font-size: var(--fs-800);
  }
  
  .services__title--large {
    font-size: 3em;
  }
  
  .services__title--xlarge {
    font-size: 3.5em;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .services {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  
  .services__grid {
    gap: var(--space-32);
  }
  
  .services__title {
    font-size: 1.75em;
  }
  
  .services__title--small {
    font-size: 1.5em;
  }
  
  .services__title--large {
    font-size: 2em;
  }
  
  .services__title--xlarge {
    font-size: 2.25em;
  }
}

.services__text {
  font-size: var(--fs-300);
  line-height: var(--lh-normal);
  color: var(--color-text);
  margin-bottom: var(--space-32);
}

/* Content Size Modifiers */
.services__text--small {
  font-size: var(--fs-200);
}

.services__text--default {
  font-size: var(--fs-300);
}

.services__text--large {
  font-size: var(--fs-400);
}

.services__text--xlarge {
  font-size: var(--fs-500);
}

/* Text Content Styling */
.services__text p {
  margin-bottom: var(--space-16);
  line-height: var(--lh-normal);
}

.services__text p:last-child {
  margin-bottom: 0;
}

.services__text h1,
.services__text h2,
.services__text h3,
.services__text h4,
.services__text h5,
.services__text h6 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  margin-top: var(--space-24);
}

.services__text h1:first-child,
.services__text h2:first-child,
.services__text h3:first-child,
.services__text h4:first-child,
.services__text h5:first-child,
.services__text h6:first-child {
  margin-top: 0;
}

.services__text h1 { font-size: var(--fs-800); }
.services__text h2 { font-size: var(--fs-700); }
.services__text h3 { font-size: var(--fs-600); }
.services__text h4 { font-size: var(--fs-500); }
.services__text h5 { font-size: var(--fs-400); }
.services__text h6 { font-size: var(--fs-300); }

.services__text strong,
.services__text b {
  font-weight: 700;
}

.services__text em,
.services__text i {
  font-style: italic;
}

.services__text a {
  color: var(--color-text);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.services__text a:hover,
.services__text a:focus {
  opacity: 0.7;
}

.services__text ul,
.services__text ol {
  margin-bottom: var(--space-16);
  padding-left: var(--space-24);
}

.services__text ul {
  list-style-type: disc;
}

.services__text ol {
  list-style-type: decimal;
}

.services__text li {
  margin-bottom: var(--space-8);
  line-height: var(--lh-normal);
}

.services__text li:last-child {
  margin-bottom: 0;
}

.services__text ul ul,
.services__text ul ol,
.services__text ol ul,
.services__text ol ol {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.services__text blockquote {
  border-left: 4px solid var(--color-text);
  padding-left: var(--space-24);
  margin: var(--space-24) 0;
  font-style: italic;
  color: #666;
}

.services__text code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.services__text pre {
  background-color: #f5f5f5;
  padding: var(--space-16);
  border-radius: var(--radius-4);
  overflow-x: auto;
  margin-bottom: var(--space-16);
}

.services__text pre code {
  background-color: transparent;
  padding: 0;
}

.services__text hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-32) 0;
}

.services__text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--space-24) 0;
  border-radius: var(--radius-4);
}

.services__text table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-16);
}

.services__text table th,
.services__text table td {
  padding: var(--space-12);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.services__text table th {
  font-weight: 700;
  background-color: #f5f5f5;
}

.services__text table tr:last-child td {
  border-bottom: none;
}

/* Utility Classes */
.services__text .text-center {
  text-align: center;
}

.services__text .text-right {
  text-align: right;
}

.services__text .text-small {
  font-size: var(--fs-200);
}

.services__text .text-large {
  font-size: var(--fs-400);
}

.services__action {
  margin-top: var(--space-32);
}

.services__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-32);
  font-size: var(--fs-200);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  background-color: var(--color-text);
  color: var(--color-text-light);
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%;
}

.services__button:hover,
.services__button:focus {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.services__button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.services__button:hover svg {
  transform: translateX(4px);
}

/* Services Cards (Right Column) */
.services__cards {
  display: grid;
  gap: var(--space-24);
}

@media (min-width: 640px) {
  .services__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__cards {
    grid-template-columns: 1fr;
  }
}

/* Service Card */
.service-card {
  padding: var(--space-32);
  border-radius: var(--radius-8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Card Style Modifiers */
.service-card--light {
  background-color: #fff;
  color: var(--color-text);
}

.service-card--dark {
  background-color: #5a5a5a;
  color: var(--color-text-light);
}

.service-card--gray {
  background-color: #e0e0e0;
  color: var(--color-text);
}

/* Card Icon */
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
}

.service-card__icon img,
.service-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Title */
.service-card__title {
  font-size: var(--fs-500);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-16);
}

.service-card--light .service-card__title {
  color: var(--color-text);
}

.service-card--dark .service-card__title {
  color: var(--color-text-light);
}

.service-card--gray .service-card__title {
  color: var(--color-text);
}

/* Card Description */
.service-card__description {
  font-size: var(--fs-200);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

.service-card--light .service-card__description {
  color: #666;
}

.service-card--dark .service-card__description {
  color: rgba(255, 255, 255, 0.9);
}

.service-card--gray .service-card__description {
  color: #444;
}

@media (min-width: 768px) {
  .service-card {
    padding: var(--space-40);
  }

  .service-card__icon {
    width: 56px;
    height: 56px;
  }

  .service-card__title {
    font-size: var(--fs-600);
  }

  .service-card__description {
    font-size: var(--fs-300);
  }
}

