/* ─────────────────────────────────────────────────────────────
   Phone layer (≤620px). Loaded after the per-page stylesheet in
   base.html, so these rules win by order. Shell selectors apply on
   every page; home-only selectors (.hero, .steps, #contact) just
   don't match elsewhere. Nothing here affects ≥621px.
   ───────────────────────────────────────────────────────────── */

/* Floating CTA is hidden everywhere by default; only shown on phones
   (and only on the home page, gated in JS by the presence of .hero-actions). */
.floating-cta { display: none; }

@media (max-width: 620px) {
  /* ── Global gutters ── */
  .wrap { padding: 0 20px; }

  /* ── Top bar ── */
  .topstrip .l { display: none; }
  .topstrip .wrap { justify-content: center; }

  /* ── Header ── */
  .header-cta .btn-camel { display: none; }   /* nav CTA → floating CTA instead */
  .brand .name b { font-size: 17px; }

  /* ── Hero ── */
  .hero { padding-top: 150px; padding-bottom: 64px; }
  /* Photo is hidden below, so drop the 2-col grid → block, letting the
     heading wrap to the container instead of overflowing (grid items default
     to min-width:auto and won't shrink below their content). */
  .hero .wrap { display: block; }
  .hero h1 { font-size: clamp(28px, 7vw, 38px); overflow-wrap: break-word; margin-top: 18px; }
  .hero .sub { font-size: 17px; max-width: 100%; margin-top: 22px; }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 30px; }
  .hero-actions .btn-camel { width: 100%; }
  /* "See our work" reads as a link, not a button (scoped so the shared
     .btn-line.on-dark used elsewhere is untouched). */
  .hero-actions .btn-line.on-dark {
    background: none;
    border: 0;
    padding: 6px 0;
    color: var(--camel-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: center;
  }
  .hero-actions .btn-line.on-dark:hover { background: none; color: #fff; }

  /* Family photo hidden on phones. */
  .hero-visual { display: none; }

  /* Stats stacked as a clean hairline list. */
  .hero-stats { flex-direction: column; align-items: stretch; gap: 0; margin-top: 36px; }
  .hero-stats .vr { display: none; }
  .hero-stats .st {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid var(--line-d);
  }
  .hero-stats .st small { margin-top: 0; text-align: right; }

  /* ── Process steps: single column, numeral node to the left of the title/price ── */
  .steps { grid-template-columns: 1fr; gap: 28px 0; }
  .steps .stp {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "node title"
      "node price"
      "desc desc";
    column-gap: 16px;
    padding: 0;
  }
  .steps .stp .node { grid-area: node; align-self: center; }
  .steps .stp h4 { grid-area: title; margin-top: 0; }
  .steps .stp .price { grid-area: price; margin-top: 4px; }
  .steps .stp p { grid-area: desc; margin-top: 12px; }

  /* ── "Which one's me": stack the plan chip under the goal ── */
  .need { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 4px; }

  /* ── Site footer: single column ── */
  footer.site .cols { grid-template-columns: 1fr; }

  /* ── Floating "Free consultation" CTA ── */
  .floating-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    /* In-flow (fixed) so the slide/fade can animate; kept invisible &
       non-interactive until JS adds .is-visible. */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    border-radius: 6px;
    background: var(--camel);
    color: #1c1206;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5);
    /* hidden state for the transition */
    opacity: 0;
    transform: translateY(120%);
    transition: opacity .3s var(--ease), transform .35s var(--ease);
    pointer-events: none;
  }
  .floating-cta svg { width: 17px; height: 17px; flex: none; }
  .floating-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  .floating-cta { transition: none; }
}
