/* =========================================================
   1. PAGE WRAPPER
   ========================================================= */

main {
  width: 100%;
}

/* =========================================================
   2. SECTION SYSTEM
   ========================================================= */

/* Standard Section (Centered Content) */
.section {
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

/* Full Width Section (Hero, Galleries, etc.) */
.section-wide {
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-md);
}


/* =========================================================
   3. CONTAINER SYSTEM
   Optional inner wrappers for layout control
   ========================================================= */

.container {
  max-width: 900px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   4. FLEX UTILITIES
   ========================================================= */

.flex {
  display: flex;
}

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

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

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

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

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* =========================================================
   5. GRID UTILITIES
   ========================================================= */

.grid {
  display: grid;
}

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

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

/* =========================================================
   6. NAVIGATION LAYOUT
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: center;
  padding: 20px 0;

  /* 🔥 gradient background */
  background: linear-gradient(
    to bottom,
    rgba(122, 74, 90, 1) 0%,
    rgba(122, 74, 90, 0.7) 40%,
    rgba(58, 31, 53, 0) 95%
  );

  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0)
  );

  pointer-events: none;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-item {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-accent);
  font-size: 2rem;

  position: relative;
  padding-bottom: 6px;
}

/* active underline */
.nav-item.active {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav-item {
    font-size: 1.2rem;
  }
}

/* =========================================================
   7. FOOTER LAYOUT
   ========================================================= */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 32px 20px 16px;
  margin-top: 40px;

  background: linear-gradient(
    to top,
    rgba(122, 74, 90, 1) 0%,
    rgba(58, 31, 53, 0) 100%
  );

  overflow: hidden;
}

.footer-text {
  font-family: var(--font-header);
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.8;
  margin: 0;
}

@media (max-width: 600px) {
  .site-footer {
  margin-top: 10px;
}
}

/* =========================================================
   8. RESPONSIVE DESIGN
   Mobile-first approach
   ========================================================= */

/* Tablets */
@media (max-width: 900px) {

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

}

/* Small Mobile */
@media (max-width: 600px) {

  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}