/* ============================================
   Layout -- Sections, Containers, Responsive Grid
   ============================================ */

/* Section containers */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-section) 0;
  overflow: hidden;
}

.section--short {
  min-height: auto;
}

/* Content container */
.container {
  width: var(--content-width);
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Responsive grid for cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
  gap: var(--space-lg);
}

/* Two-column layout */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

  .split--reverse > :first-child {
    order: 2;
  }
  .split--reverse > :last-child {
    order: 1;
  }
}

/* Section alternating background */
.section--alt {
  background-color: var(--bg-section-alt);
}

/* Soft gradient fade between sections instead of hard border */
.section:not(.section--hero)::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2) 30%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(212, 175, 55, 0.2) 70%,
    transparent
  );
  margin-bottom: var(--space-section);
}

/* Flex center utility for hero */
.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.section__header h2 {
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-family: var(--font-sub);
  color: var(--text-accent);
  font-size: var(--text-base);
  opacity: 0.5;
  letter-spacing: 0.08em;
}

/* Responsive breakpoints */
@media (max-width: 767px) {
  .section {
    padding: var(--space-xl) 0;
  }
}
