/* ==========================================================================
   SB HOME — ARCHITECTURE & LUXURY INTERIOR
   FILE: assets/css/layout.css (Grid, Breakpoints & Layout Architecture)
   Version: 2.0.0
   Responsive: Mobile (<768px), iPad (768px-1023px), PC (>=1024px)
   ========================================================================== */

/* 1. Main Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-64);
  padding-right: var(--space-64);
}

/* 2. Architectural Section Spacing (Negative Space) */
.section {
  padding-top: var(--space-120);
  padding-bottom: var(--space-120);
  position: relative;
}

.section-dark {
  background-color: var(--primitive-dark-950);
}

.section-surface {
  background-color: var(--primitive-dark-900);
}

.section-light {
  background-color: var(--primitive-light-100);
  color: var(--primitive-dark-950);
}

.section-header {
  margin-bottom: var(--space-64);
  text-align: center;
}

.section-header.text-left {
  text-align: left;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-caption-mono);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-4);
}

/* 3. 12-Column Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-32);
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* 4. Typography Classes */
.type-display-2xl {
  font-family: var(--font-display);
  font-size: var(--type-display-2xl);
  font-weight: var(--weight-regular);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.type-heading-xl {
  font-family: var(--font-display);
  font-size: var(--type-heading-xl);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.type-heading-md {
  font-family: var(--font-display);
  font-size: var(--type-heading-md);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.type-body-lg {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--weight-regular);
  line-height: 1.7;
}

.type-body-sm {
  font-family: var(--font-body);
  font-size: var(--type-body-sm);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.type-caption-mono {
  font-family: var(--font-body);
  font-size: var(--type-caption-mono);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 5. Color & Alignment Utilities */
.text-gold   { color: var(--primitive-gold-400); }
.text-white  { color: var(--primitive-light-50); }
.text-muted  { color: var(--primitive-light-400); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

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

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

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Mobile, iPad, Desktop)
   ========================================================================== */

/* iPad / Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .container {
    padding-left: var(--space-32);
    padding-right: var(--space-32);
  }

  .section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .grid-12 {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-20, 20px);
  }

  .col-12 { grid-column: span 6; }
  .col-8, .col-7  { grid-column: span 6; }
  .col-6, .col-5  { grid-column: span 6; }
  .col-4  { grid-column: span 3; }
  .col-3  { grid-column: span 3; }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: var(--space-80);
    padding-bottom: var(--space-80);
  }

  .section-header {
    margin-bottom: var(--space-48);
  }

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

  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 {
    grid-column: span 4;
  }
}
