/* layout.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout utilities */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

.section {
  padding: 112px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

/* Backgrounds */
.bg-surface {
  background-color: var(--surface);
}

.bg-alt {
  background-color: var(--bg);
}

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }
}

/* 12-Column Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

/* Common Layout Grids */
.grid-2,
.grid-3,
.grid-4,
.feature-grid,
.testimonial-grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4,
.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Basic column spans for standard layouts */
.col-12 {
  grid-column: span 12;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-2 {
  grid-column: span 2;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {

  .grid-4,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .col-lg-12 {
    grid-column: span 12;
  }

  .col-lg-6 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .col-md-12 {
    grid-column: span 12;
  }

  .grid {
    gap: 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .col-md-12 {
    grid-column: span 12;
  }

  .grid {
    gap: 16px;
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.gap-8 {
  gap: 32px;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

/* Spacing Utilities */
.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-12 {
  margin-top: 48px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mb-12 {
  margin-bottom: 48px;
}