/* ==========================================================================
   LamLab marketing site — responsive layer.
   The pages below are built with inline styles (desktop-first). This
   stylesheet adds the mobile/tablet behavior on top via classNames added
   next to those inline styles. Loaded after styles.css on every page.
   ========================================================================== */

/* ---- Nav: wrap gracefully on the simpler navs (2-3 items) ---- */
.nav-row {
  flex-wrap: wrap;
}

/* ---- Nav: full hamburger menu (home page) ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong, #0C0D11);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
[data-theme="dark"] .nav-burger span { background: #F2F3F7; }

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-collapsible {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    background: var(--site-surface, #fff);
    padding: 18px 24px 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-collapsible.nav-open { display: flex !important; }
  .nav-collapsible a { width: 100%; padding: 10px 0; }
  .nav-collapsible button { width: 100%; justify-content: center; }
}

/* ---- Generic responsive grids ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-split, .grid-split-cta, .grid-split-flip {
    grid-template-columns: 1fr !important;
  }
  .grid-split-cta .cta-image, .grid-split-flip .program-image {
    min-height: 260px;
    order: 3 !important;
  }
  .grid-split-flip .program-text { order: 2 !important; }
  .program-row {
    grid-template-columns: 1fr !important;
    row-gap: 4px !important;
  }
}
@media (max-width: 700px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr !important; }
}

/* ---- Steps row (Programs / how it works) ---- */
@media (max-width: 860px) {
  .steps-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  .steps-row .step-arrow { transform: rotate(90deg); padding: 10px 0 !important; }
  .steps-row > div { max-width: 400px !important; width: 100%; }
}

/* ---- Section padding: breathe less on phones ---- */
@media (max-width: 640px) {
  .sect-pad { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---- Results / gallery filter bar wraps already via flexWrap ---- */
