/* Pacific Wave Ltd - Master Responsive Layout Fixes */
@media (min-width: 900px) {
  /* 2-Column Split Sections */
  .container.grid > .reveal-left {
    grid-column: span 7 / span 7 !important;
  }
  .container.grid > .reveal-right {
    grid-column: span 5 / span 5 !important;
  }
  .container.grid > div:first-child:not([class*="span"]) {
    grid-column: span 7 / span 7 !important;
  }
  .container.grid > div:last-child:not([class*="span"]) {
    grid-column: span 5 / span 5 !important;
  }

  /* 3-Column Card Grids (9 items) */
  #residential-checklist-grid > .card,
  #commercial-checklist-grid > .card,
  #commercial-industries-grid > .card,
  .grid-3col > .card {
    grid-column: span 4 / span 4 !important;
  }

  /* Symmetrical 2-Column Grid for Founders (2 items) */
  #about-founders-grid > .card {
    grid-column: span 6 / span 6 !important;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .container.grid > div {
    grid-column: span 12 / span 12 !important;
  }
  #residential-checklist-grid > .card,
  #commercial-checklist-grid > .card,
  #commercial-industries-grid > .card,
  #about-founders-grid > .card,
  .grid-3col > .card {
    grid-column: span 6 / span 6 !important;
  }
}

@media (max-width: 599px) {
  /* Flawless Mobile Optimization */
  .container.grid > div,
  .grid > .card,
  #residential-checklist-grid > .card,
  #commercial-checklist-grid > .card,
  #commercial-industries-grid > .card,
  #about-founders-grid > .card {
    grid-column: span 12 / span 12 !important;
  }
  
  /* Prevent horizontal overflow on mobile screens */
  html, body {
    overflow-x: hidden !important;
  }
}
