/* ==========================================================================
   GEDHome 2.0 — Dedicated Mobile Experience (<= 768px)
   App-like thumb navigation, swipeable controls, compact above-the-fold UX
   ========================================================================== */

.mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  /* 1. Dedicated Thumb-Friendly Bottom Action Dock */
  .wa-fab {
    display: none !important;
  }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-header);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(12, 11, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-dark-strong);
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-dock__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 46px;
    padding: 0.3rem 0.25rem;
    background: transparent;
    border: none;
    color: var(--ink-light-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-dock__btn svg {
    width: 19px;
    height: 19px;
  }

  .mobile-dock__btn--wa {
    color: #34d375;
    font-weight: 600;
  }

  .mobile-dock__btn--gold {
    color: var(--gold-hi);
    font-weight: 600;
  }

  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* 2. Mobile Hero Crafted for 360px-430px Screens */
  .hero {
    min-height: 92svh;
    padding-top: 4.5rem;
  }

  .hero__water-shimmer {
    display: none; /* Save GPU/battery on mobile */
  }

  .hero__content {
    padding-top: 2.5rem;
    padding-bottom: 1.25rem;
  }

  .hero__title {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    margin-bottom: 0.85rem;
  }

  .hero__lead {
    font-size: 0.96rem;
    margin-bottom: 1.35rem;
  }

  .hero__grid,
  .hero__grid > *,
  .explorer-grid,
  .explorer-grid > *,
  .explorer-stage,
  .explorer-controls,
  .explorer-controls > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero__ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .hero__ctas .btn {
    padding: 0.82rem 0.65rem;
    font-size: 0.8rem;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero__ctas .btn--ghost-light {
    grid-column: span 2;
  }

  .hero__bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0;
  }

  .hero__tabs {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .hero__tab {
    scroll-snap-align: start;
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }

  .hero__controls {
    justify-content: space-between;
  }

  .hero__ctrl-btn {
    flex: 1;
    height: 38px;
  }

  /* 3. Compact 2x2 Metrics Band on Mobile */
  .studio-strip__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .studio-metric {
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
  }

  .studio-metric:nth-child(2n) {
    border-right: none;
  }

  .studio-metric__val {
    font-size: 1.65rem;
  }

  .studio-metric__desc {
    font-size: 0.78rem;
  }

  /* 4. Mobile Concrete Explorer — See Photo + Pick Molds/Colors Without Scrolling */
  .explorer-stage {
    padding: 0.75rem;
  }

  .explorer-canvas-wrap {
    aspect-ratio: 4 / 3;
  }

  .explorer-stage-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .explorer-tool-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .explorer-chip {
    padding: 0.5rem 0.35rem;
    font-size: 0.66rem;
    text-align: center;
  }

  .explorer-light-ctrl {
    justify-content: space-between;
  }

  .explorer-light-ctrl input[type="range"] {
    flex: 1;
    max-width: 190px;
  }

  .explorer-controls {
    padding: 1.15rem;
    gap: 1.15rem;
  }

  .exp-molds {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
  }

  .exp-mold-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 0.6rem 0.9rem;
  }

  .exp-colors {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .exp-swatch {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .exp-finishes {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem;
  }

  .exp-finishes .exp-mold-btn {
    padding: 0.58rem 0.35rem;
    font-size: 0.74rem;
    text-align: center;
  }

  /* 5. Mobile 7-Step Process — Compact Blueprint + Interactive Steps */
  .blueprint-stage {
    padding: 1rem;
  }

  .process-step {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.85rem;
    padding: 1.2rem 0;
  }

  .process-step__title {
    font-size: 1.12rem;
  }

  /* 6. Native Full-Screen Gallery Sheet on Mobile */
  .cat-modal {
    padding: 0 !important;
  }

  .cat-modal__shell {
    height: 100dvh !important;
    border: none;
  }

  .cat-modal__head {
    padding: 1rem 1.1rem;
  }

  .cat-modal__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.65rem 1.1rem;
    -webkit-overflow-scrolling: touch;
  }

  .modal-tab {
    flex: 0 0 auto;
  }

  .cat-modal__body {
    padding: 1rem 1.1rem 2.5rem;
  }

  .masonry-grid {
    columns: 1;
  }

  /* 7. Mobile Configurator Touch Targets */
  .wizard-card {
    padding: 1.25rem;
  }

  .wizard-options {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wizard-opt {
    min-height: 46px;
    padding: 0.65rem;
    font-size: 0.8rem;
  }
}
