/* Shared phone layout; desktop presentation stays in each page's base styles. */
.home-mobile { display: none; }
#service-faq { scroll-margin-top: 100px; }
@media (max-width: 700px) {
  /* Keep the phone homepage focused; full information lives on the linked pages. */
  [data-page="home"] [data-home-detail],
  [data-page="home"] .home-desktop,
  [data-page="home"] .book,
  [data-page="home"] .hero-tag,
  [data-page="home"] .dots,
  [data-page="home"] .hero-copy > .row .btn.line { display: none; }
  .home-mobile { display: block; }
  [data-page="home"] .hero .wrap { padding-block: 32px; }
  [data-page="home"] .hero-copy { gap: 18px; }
  [data-page="home"] .trust { font-size: .75rem; gap: 6px 12px; }
  [data-page="home"] > section:not(.hero) { padding-block: 32px; }
  .home-services .head { gap: 10px; margin-bottom: 20px; }
  .home-service-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-service-links a { display: grid; gap: 6px; padding: 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
  .home-service-links b { font: 700 1rem var(--display); }
  .home-service-links span { font-size: .78rem; color: var(--muted); }
  .home-all-services { display: flex; align-items: center; min-height: 48px; margin-top: 8px; color: var(--blue); font-weight: 700; }
  .home-explore { border-top: 1px solid var(--line); margin-top: 8px; }
  .home-explore summary { cursor: pointer; padding-block: 14px; font-weight: 700; }
  .home-explore nav { display: grid; }
  .home-explore a { display: flex; align-items: center; min-height: 48px; font-size: .9rem; }
  .home-projects .head-row { margin-bottom: 20px; gap: 12px; }
  .home-projects .head { gap: 10px; }
  .home-projects .proj { height: 230px; aspect-ratio: auto; margin: 0; }
  .home-projects .proj img { height: 100%; }
  .home-projects .proj figcaption { left: 16px; right: 16px; bottom: 16px; }
  [data-page="home"] .cta h2 { font-size: 1.8rem; }
  [data-page="home"] .cta .wrap { gap: 20px; }
  [data-static="home"] footer { padding-top: 28px; }
  [data-static="home"] footer .wrap { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  [data-static="home"] footer .wrap > div:first-child,
  [data-static="home"] footer .wrap > div:has(#footSvc) { display: none; }
  [data-static="home"] footer a { display: inline-flex; align-items: center; min-height: 44px; }
  [data-static="home"] footer ul { gap: 0; }
  [data-static="home"] footer .wrap > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 90px; scroll-padding-bottom: 100px; }
  header.site { top: 0; }
  header.site .wrap { gap: 10px; padding-block: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand b { font-size: 1rem; }
  .brand small { font-size: .55rem; letter-spacing: .24em; }
  .brand img { height: 32px; }
  .menu-btn { min-height: 44px; flex: none; }
  nav.main { align-items: stretch; max-height: calc(100dvh - 180px); overflow-y: auto; }
  nav.main a { min-height: 44px; display: flex; align-items: center; }
  .hero .wrap { padding-block: 36px 84px; gap: 32px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(1.9rem, 8.8vw, 3.1rem); line-height: 1.08; text-wrap: initial; }
  .hero .lede { font-size: 1rem; line-height: 1.65; }
  .hero-tag { font-size: .88rem; min-height: 2.8em; }
  .hero-copy > .row { display: grid; grid-template-columns: 1fr; }
  .trust { gap: 8px 18px; font-size: .82rem; }
  .book { padding: 22px; }
  .seg label { position: relative; }
  .book input, .book select,
  form.req input, form.req select, form.req textarea { font-size: 16px; min-height: 48px; }
  input, select, textarea { scroll-margin-block: 100px; }
  .btn, .tabs button, .pills span, .seg span { min-height: 44px; }
  .tabs { gap: 8px; }
  .tabs button { padding-inline: 14px; }
  .dots { bottom: 16px; gap: 2px; }
  .dots button { width: 44px; height: 44px; background: transparent; overflow: visible; }
  .dots button::before { content: ""; position: absolute; inset: 20px 5px; border-radius: 4px; background: rgb(255 255 255 / .3); }
  .dots button.on::after { inset: 20px 5px; border-radius: 4px; }
  .mbar { border-top: 1px solid rgb(255 255 255 / .12); }
  .mbar .btn { min-height: 48px; font-size: .9rem; padding-inline: 10px; }
  /* Keep the on-screen keyboard and focused fields clear of the fixed controls. */
  body:has(input:focus, select:focus, textarea:focus) .mbar { display: none; }
  footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .brand b { font-size: .9rem; }
  .brand small { letter-spacing: .16em; }
  .brand img { height: 28px; }
  .menu-btn { padding-inline: 12px; }
  .util { font-size: .75rem; }
  .util .live { white-space: normal; }
  .hero h1 { font-size: 1.7rem; }
  .stats b { font-size: 1.2rem; }
  .stats span { overflow-wrap: anywhere; }
  .book, form.req { padding: 18px; }
}
