/* ========================================
   LAYOUT — Containers, Grids, Sections
   ======================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

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

/* Sections */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
  background: url('../../assets/images/grass.png') center / cover no-repeat;
}

/* Matte overlay — light sections */
.section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 2, 0.82);
  z-index: 0;
  pointer-events: none;
}


/* All section content above the overlay */
.section > .container,
.section > * {
  position: relative;
  z-index: 1;
}

/* Dark sections — deeper overlay */
.section--dark {
  background: url('../../assets/images/grass.png') center / cover no-repeat;
}

.section--dark::after {
  background: rgba(0, 15, 0, 0.88);
}

.section--mid {
  background: url('../../assets/images/grass.png') center / cover no-repeat;
}

.section--mid::after {
  background: rgba(0, 40, 2, 0.82);
}

/* Field line decorative border between sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, var(--max-width));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-subtle) 20%,
    var(--color-gold) 50%,
    var(--border-subtle) 80%,
    transparent 100%
  );
  opacity: 0.4;
  z-index: 2;
}

.section:first-of-type::before {
  display: none;
}

/* Section header */
.section__header {
  margin-bottom: var(--space-3xl);
}

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

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  max-width: 50ch;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* Split layout — text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

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

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

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

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

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