/* Phone-only navigation and calm, compact reading surfaces. */
.mobile-tabbar { display: none; }

@media (max-width: 680px) {
  :root {
    --header: 58px;
    --mobile-bar-space: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  html {
    scroll-padding-top: 70px;
    scroll-padding-bottom: calc(var(--mobile-bar-space) + 16px);
  }
  body { background: #f0f2eb; padding-bottom: var(--mobile-bar-space); }
  body::before { display: none; }
  main { padding-bottom: 0; }
  main > section[id] { scroll-margin-top: 8px; }
  .section-shell { width: calc(100% - 28px); }

  .site-header {
    height: var(--header);
    padding-inline: 16px;
    background: rgba(250, 250, 246, .97);
    border-bottom-color: #dce2d6;
    column-gap: 12px;
  }
  .site-header .wordmark { min-height: 44px; font-size: 25px; }
  .menu-toggle {
    min-width: 72px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d8dfd1;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: .7px;
    background: #f8f9f4;
  }
  .menu-toggle span { margin-left: 6px; }
  .site-header nav {
    top: var(--header);
    max-height: calc(100dvh - var(--header) - var(--mobile-bar-space));
    padding: 12px 16px 16px;
    border-bottom: 1px solid #d7dfd0;
    border-radius: 0 0 20px 20px;
    background: #fafaf6;
    overflow-y: auto;
  }
  .site-header nav > a { min-height: 44px; padding: 12px; border-radius: 9px; }
  .site-header nav > a.active { border-bottom: 0; background: #eaf0e3; }
  .site-header .nav-journey { margin-top: 4px; padding: 12px; }

  .hero {
    height: auto;
    min-height: clamp(340px, 48svh, 400px);
    margin: 0;
    border-bottom: 1px solid #dce2d6;
    background: #f8f8f3;
  }
  .hero-content { margin: 0; padding: 24px 16px; }
  .hero h1 { font-size: clamp(80px, 23vw, 104px); margin-bottom: 16px; }
  .hero-tagline { font-size: clamp(21px, 5.65vw, 25px); line-height: 1.28; }
  .quiet-link { margin-top: 16px; min-height: 44px; font-size: 11px; }

  .statement, .coordination, .services, .costs,
  .needs-section, .city-section, .privacy-section {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 24px 16px;
    border: 1px solid #dde3d6;
    border-radius: 22px;
    background: #fcfcf8;
    box-shadow: none;
  }
  .needs-section, .privacy-section { background: #fffef9; }
  .city-section { background: #e9eee2; }
  .needs-section > .section-shell,
  .city-section > .section-shell,
  .privacy-section > .section-shell { width: 100%; }
  .statement h2, .needs-heading h2, .coordination h2, .city-section h2,
  .services-heading h2, .privacy-intro h2, .costs > h2, .gallery h2 {
    font-size: clamp(26px, 6.9vw, 30px);
    line-height: 1.18;
    letter-spacing: -.75px;
  }
  .body-copy, .statement-copy > .body-copy:not(.zh) { font-size: 14px; line-height: 1.65; }
  .statement { row-gap: 20px; }
  .journey-cards { gap: 10px; padding-bottom: 8px; }
  .journey-card, .journey-card.featured {
    flex-basis: 88%;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
  }
  .journey-card h3 { margin: 12px 0 10px; font-size: 20px; }
  .journey-card p { font-size: 14px; line-height: 1.55; }

  .needs-grid { gap: 20px; }
  .prompt-row:first-of-type { border-radius: 14px 14px 0 0; overflow: hidden; }
  .prompt-row:last-of-type { border-radius: 0 0 14px 14px; overflow: hidden; }
  .prompt-row > span { min-height: 46px; padding: 12px; }
  .prompt-row textarea { padding: 12px; min-height: 86px; }
  .form-actions { margin-top: 12px; }
  .form-actions p { font-size: 11px; }
  .coordination-top .body-copy { margin-top: 16px; }
  .role-table { margin-top: 18px; }
  .role-table strong { font-size: 14px; }
  .mobile-disclosure-toggle { min-height: 50px; gap: 10px; padding-block: 13px; }
  .role-table p, .privacy-points p { font-size: 13px; line-height: 1.6; }

  .city-collage { margin-top: 18px; gap: 10px; padding-bottom: 8px; }
  .city-collage figure, .city-collage figure:nth-child(n) {
    flex-basis: 88%;
    height: clamp(170px, 48vw, 230px);
    border-radius: 16px;
  }

  /* Leave room for the next bubble to be visible without narrowing its text. */
  .services { padding-inline: 12px; }
  .services-heading { padding-inline: 4px; }
  .services .service-grid { grid-auto-columns: 89%; margin-top: 18px; }
  .services .service-grid > li:nth-child(n) { min-height: 122px; padding: 16px 14px; }
  .services .service-grid p { font-size: 14px; line-height: 1.55; }
  .services .availability { margin-top: 12px; padding-inline: 4px; font-size: 11px; line-height: 1.6; }
  .service-bubble-controls { padding-inline: 4px; }
  .privacy-grid { gap: 18px; }
  .privacy-intro .body-copy { margin-top: 14px; }
  .privacy-points article { column-gap: 8px; }
  .cost-grid { margin-top: 18px; }
  .cost-grid article { padding-block: 16px; }
  .cost-grid img { border-radius: 10px; }

  .gallery { margin-top: 18px; padding-top: 30px; padding-bottom: 28px; border-radius: 24px 24px 0 0; }
  .gallery-heading { gap: 14px; }
  .gallery-track { padding: 18px 14px 16px; gap: 10px; }
  .gallery-track figure { flex-basis: 88vw; height: clamp(210px, 60vw, 280px); border-radius: 18px; }
  .gallery-controls { gap: 14px; }
  .gallery-controls > p { font-size: 11px; line-height: 1.6; }
  .gallery-controls > div { align-self: flex-end; }

  .site-footer {
    gap: 16px;
    width: calc(100% - 40px);
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .site-footer > a { min-height: 44px; }
  .footer-contact { padding-block: 8px; }
  .lead-fab { display: none; }
  .mobile-tabbar {
    position: fixed;
    z-index: 45;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    min-height: var(--mobile-bar-space);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #d5decf;
    background: rgba(251, 252, 247, .98);
    backdrop-filter: blur(12px);
  }
  .mobile-tabbar > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #667664;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .12px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar > a > svg { width: 20px; height: 20px; flex: 0 0 20px; }
  .mobile-tabbar > a > span { display: block; max-width: 100%; white-space: normal; }
  .mobile-tabbar > a.active,
  .mobile-tabbar > a[aria-current='page'],
  .mobile-tabbar > a[aria-current='location'] { color: #254a36; background: #e8eee1; }
  .mobile-tabbar > a[data-open-lead],
  .mobile-tabbar > a.mobile-private { color: #294c38; background: #edf1e7; border-color: #dbe3d2; }
  .mobile-tabbar > a:focus-visible { outline: 2px solid #55775d; outline-offset: 1px; }
  .mobile-tabbar > a:active { background: #e2eadb; }

  /* Modal dialogs stay in the browser top layer and scroll within the viewport. */
  .lead-dialog, #journey-result {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 62px 24px;
  }
  .lead-heading { padding: 48px 20px 20px; }
  .lead-heading h2 { font-size: 27px; margin-block: 10px; }
  .lead-form { padding: 20px 18px 24px; }
  .lead-form label, .lead-form legend { font-size: 13px; }
  .lead-form input:not([type=checkbox]):not([type=hidden]),
  .lead-form select, .lead-form textarea { border-radius: 10px; font-size: 16px; min-height: 44px; }
  .lead-form .city-options button { min-height: 44px; border-radius: 10px; font-size: 12px; }
  .lead-consent { font-size: 11px !important; }
  .lead-submit-row button { min-height: 48px; border-radius: 12px; font-size: 13px; }
  .lead-submit-row p, .lead-status { font-size: 11px; line-height: 1.6; }
  .lead-close { width: 44px; height: 44px; border-radius: 50%; background: #f4f6ef; }
  #journey-result { padding: 40px 22px 24px; }
  #journey-result .dialog-done { min-height: 44px; border-radius: 11px; }
}
