/* Mobile behaviour shared by the 19 static landing pages.
   Mirrors what src/pages/Home.css does for the React homepage: a sticky call
   bar, a one-row header with a hamburger, and FAQs that open on a tap.
   Everything here is phone-only - desktop is untouched. */

/* ---- sticky call bar ------------------------------------------------
   Phone-in leads close at 50% against 21% for web leads, so the number
   should never be more than one tap away however far down someone scrolls.
   --cmhdr is measured at runtime by lp-mobile.js: these headers are sticky
   at three different markup shapes and heights. */
.callbar {
  display: none;
  position: sticky;
  top: var(--cmhdr, 56px);
  z-index: 99;
  border-bottom: 1px solid rgba(26, 20, 17, .12);
}
.callbar a {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.callbar__call { background: #1a1411; color: #f7f3ee; }
.callbar__quote { background: #d09b47; color: #1a1411; }

/* ---- hamburger ------------------------------------------------------ */
.lpburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(26, 20, 17, .14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.lpburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a1411;
  border-radius: 2px;
}

/* ---- the menu it opens ---------------------------------------------- */
.lpmenu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 98;
  flex-direction: column;
  padding: 6px 16px 14px;
  background: #f7f3ee;
  border-bottom: 1px solid rgba(26, 20, 17, .12);
  box-shadow: 0 18px 30px rgba(26, 20, 17, .08);
  max-height: calc(100vh - var(--cmhdr, 56px));
  overflow-y: auto;
}
.lpmenu.is-open { display: flex; }
.lpmenu > a,
.lpmenu__btn {
  display: block;
  width: 100%;
  padding: 12px 2px;
  font-size: 1rem;
  text-align: left;
  color: #1a1411;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(26, 20, 17, .08);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
.lpmenu__sub { display: none; padding: 0 0 6px 12px; }
.lpdd.is-open .lpmenu__sub { display: grid; }
.lpmenu__sub a {
  display: block;
  padding: 9px 4px;
  font-size: .92rem;
  color: #3a302a;
  text-decoration: none;
}
.lpmenu__chev { display: inline-block; transition: transform .18s ease; }
.lpdd.is-open .lpmenu__chev { transform: rotate(180deg); }

/* ---- FAQ accordion ---------------------------------------------------
   The answers stay in the HTML when collapsed - they are only hidden - so
   search still reads every town name in them. */
.lpfaq__h { margin: 0; }
.lpfaq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: 0;
  padding: 18px 2px;
  cursor: pointer;
  text-align: left;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  /* Inherit, never hard-code: on several of these pages the FAQ cards are
     dark ink with light text, and a fixed dark colour rendered the questions
     invisible against them. */
  color: inherit;
}
.lpfaq__chev {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b8852e;
  /* currentColor so the ring shows on light and dark cards alike. */
  border: 1px solid currentColor;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.lpfaq__chev::before { content: '+'; }
.lpfaq.is-open .lpfaq__chev {
  transform: rotate(45deg);
  background: #d09b47;
  color: #fff;
  border-color: #d09b47;
}
.lpfaq__a > p:last-child { margin-bottom: 18px; }

/* ---- phone only ------------------------------------------------------ */
@media (max-width: 860px) {
  .callbar { display: flex; }
  .lpburger { display: flex; }

  /* The header's own quote button is hidden: the call bar directly below
     carries both the number and the quote link, so it was saying "Free
     quote" twice. */
  .lp-hide-mobile { display: none !important; }

  /* Nine of these pages wrap the header onto three rows below 980px, which
     left a 192px sticky header on a phone. One row, like the others. */
  header.nav { flex-wrap: nowrap; padding: 10px 16px; gap: 12px; }
  header.nav > .nav__links { display: none; }
  header.nav .brand__logo { height: 38px; width: auto; }
}

/* "(937) 451-7360" was breaking after the dash in the hero buttons and
   rendering as two lines, which reads as a fault rather than a number. */
a[href^="tel:"] { white-space: nowrap; }

@media (max-width: 400px) {
  .callbar a { font-size: .88rem; padding: 12px 6px; }
}
