/* ============================================
   LAYOUT — Containers, Grid & Responsive
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1400px; }

/* --- Section --- */
.section {
  position: relative;
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
  overflow: hidden;
}

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

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1px;
  background: var(--text-muted);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  color: var(--accent-green) !important;
  letter-spacing: var(--tracking-tight);
}

.section__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* --- Grid --- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* --- Flex --- */
.flex { display: flex; }
.flex--col { flex-direction: column; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }
.flex--gap-2 { gap: var(--space-2); }
.flex--gap-3 { gap: var(--space-3); }
.flex--gap-4 { gap: var(--space-4); }
.flex--gap-6 { gap: var(--space-6); }
.flex--gap-8 { gap: var(--space-8); }

/* --- Responsive --- */
@media (min-width: 640px) {
  .container { padding-left: var(--space-8); padding-right: var(--space-8); }
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: var(--space-40); padding-bottom: var(--space-40); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .container { padding-left: var(--space-12); padding-right: var(--space-12); }
}

/* --- Visibility --- */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

/* --- Scroll Reveal Target --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

.reveal--active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
