/* ============================================
   MAC 2026 - Layout System
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Sections */
.section {
  position: relative;
  padding: var(--space-section) 0;
  overflow: hidden;
}

.section--dark {
  background-color: var(--color-deep-blue);
}

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

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

.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--color-deep-blue);
}

.section--light p,
.section--light li {
  color: var(--color-charcoal-light);
}

.section--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Section Header */
.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__description {
  max-width: 650px;
  margin: 0 auto;
  font-size: var(--fs-md);
  color: var(--color-steel-light);
}

.section--light .section__description {
  color: var(--color-steel-dark);
}

/* Section Divider */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.section-divider--top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* Gold accent line under section titles */
.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-ember));
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section__title--left::after {
  margin-left: 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Parallax Background Container */
.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  overflow: hidden;
  z-index: 0;
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.overlay--dark {
  background: linear-gradient(
    180deg,
    rgba(27, 58, 75, 0.5) 0%,
    rgba(13, 13, 13, 0.85) 100%
  );
}

.overlay--gradient {
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.2) 0%,
    rgba(27, 58, 75, 0.65) 40%,
    rgba(26, 26, 26, 0.95) 100%
  );
}

/* Content above overlays */
.section__content {
  position: relative;
  z-index: 2;
}
