/* ===================================================================
   Section Components
   Reusable section layouts and typography
   =================================================================== */

/* ===== BASE SECTION STYLES ===== */
.section {
  padding: var(--section-padding) 0;
  margin: var(--section-spacing) 0;
  position: relative;
}

.section:first-child {
  margin-top: 0;
}

.section:last-child {
  margin-bottom: 0;
}

/* Section Backgrounds */
.section--light {
  background: var(--bg-white);
}

.section--gray {
  background: var(--bg-light);
}

.section--accent {
  background: var(--accent-color);
}

/* Section with borders */
.section--bordered {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ===== SECTION HEADER STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-subtitle);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Section title with highlight */
.section-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
  opacity: 0.3;
}

/* ===== RESPONSIVE SECTION STYLES ===== */
@media (max-width: 992px) {
  .section {
    padding: var(--space-4xl) 0;
    margin: var(--space-4xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
    margin: var(--space-3xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
    margin: var(--space-2xl) 0;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
}