/* Responsive layer for rockstarconcrete.ca.
   The design-canvas export ships inline styles and no media queries, so
   everything here needs !important to win over the element's style attribute. */

/* ---------- Tablet and below ---------- */
@media (max-width: 1020px) {
  header nav { display: none !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  /* Header: logo + tap-to-call only. The quote CTA moves to the pinned bar. */
  header > div {
    gap: 12px !important;
    min-height: 64px !important;
    padding: 0 16px !important;
  }
  header > div > a:last-of-type { display: none !important; }
  header img { height: 38px !important; }
  header > div > a[href^="tel:"] {
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  /* Anything laid out in columns collapses to one. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Wide tables scroll inside their own box rather than the page. */
  table { display: block !important; width: 100% !important; overflow-x: auto !important; }

  /* Leave room for the pinned call bar. */
  body { padding-bottom: 68px !important; }
}

/* ---------- Pinned call bar (phones only) ---------- */
#rc-callbar { display: none; }

@media (max-width: 820px) {
  #rc-callbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    border-top: 2px solid #e8672a;
    box-shadow: 0 -6px 24px rgba(0,0,0,.28);
  }
  #rc-callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    font-family: var(--font-heading, inherit);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    /* A 48px-tall target, per WCAG tap-size guidance. */
    min-height: 48px;
    box-sizing: border-box;
  }
  #rc-callbar .rc-call  { background: #e8672a; color: #fff !important; }
  #rc-callbar .rc-quote { background: #171615; color: #f3f2f2 !important; }
}
