/* Call bar (phones and touch devices) and "Scan to call" QR card (desktop with a mouse).
   Uses the template's own colour tokens so each site keeps its palette. */
.cb-bar, .cb-qr { font-family: inherit; }
.cb-bar { display: none; }

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .cb-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: block; padding-bottom: env(safe-area-inset-bottom); background: var(--navy, #082a45); box-shadow: 0 -6px 20px rgba(8, 42, 69, 0.22); }
  .cb-call { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; color: var(--white, #fff); font-size: 16px; font-weight: 800; letter-spacing: 0.03em; text-decoration: none; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
  .cb-call:active { background: rgba(255, 255, 255, 0.08); }
  .cb-call:focus-visible { outline: 3px solid var(--blue, #bfe0fb); outline-offset: -5px; }
  .cb-call svg { flex: 0 0 auto; width: 20px; height: 20px; }
  .cb-call[aria-disabled="true"] { font-size: 15px; opacity: 0.85; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .sticky-call { display: none !important; }
  /* The open phone menu sits above the bar, which is also hidden from screen readers while the menu is open. */
  html:has(.nav-toggle[aria-expanded="true"]) .cb-bar { display: none; }
  /* NJ (Weebly Birdseye) template: theme.js marks the open phone menu with body.nav-open. */
  body.nav-open .cb-bar { display: none; }
}
@media (max-width: 340px) { .cb-call { font-size: 14px; gap: 8px; } }

/* Niche logo (cfg.logo): the second name line (the domain's city part) stays visible on phones, where the
   template hides its tagline, so the full domain always shows. */
@media (max-width: 580px) {
  .brand-copy[data-logo] span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; }
}

/* LeadSmart form iframes in the master's form spots: no border, rounded like the template cards, and tall enough for
   the form at each width (measured: ~455px at full desktop width, ~716px in the contact column, ~790px on phones),
   so the form never shows its own scrollbar. */
.ls-frame { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--white, #fff); }
/* The contact card ends where the form ends instead of stretching to the height of the text column beside it. */
.full-form.ls-embed { align-self: start; padding: 0; overflow: hidden; }
/* Quote panel with a LeadSmart form (layout A, chosen by the owner): the template's heading and one line on the left,
   the form on the right at a width where its labels sit above the fields; stacked on tablets and phones. */
.quote-panel:has(> .ls-embed) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-rows: auto auto; column-gap: 44px; align-items: center; }
.quote-panel:has(> .ls-embed) > h2 { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.quote-panel > .ls-lead { grid-column: 1; grid-row: 2; align-self: start; margin: 0; color: #d8e5ee; font-size: 16px; line-height: 1.6; }
.quote-panel > .ls-embed { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 1020px) {
  .quote-panel:has(> .ls-embed) { grid-template-columns: 1fr; }
  .quote-panel > .ls-embed { grid-column: 1; grid-row: 3; margin-top: 18px; }
}
.quote-panel .ls-frame { height: 760px; }
/* LeadSmart form in the footer (owner's choice): fills the empty space under the short "Service areas" and "Contact"
   columns, beside the tall disclaimer and Services columns; full width at the end of the footer on smaller screens. */
.footer-quote { min-width: 0; }
.footer-quote .ls-frame { height: 700px; }
@media (min-width: 1021px) {
  .footer-main:has(> .footer-quote) { row-gap: 26px; }
  .footer-main:has(> .footer-quote) > :nth-child(1), .footer-main:has(> .footer-quote) > :nth-child(2) { grid-row: 1 / span 2; }
  .footer-main > .footer-quote { grid-column: 3 / span 2; grid-row: 2; }
}
@media (max-width: 1020px) { .footer-main > .footer-quote { grid-column: 1 / -1; } }
.full-form .ls-frame { height: 730px; }
@media (max-width: 1020px) { .quote-panel .ls-frame { height: 600px; } }
@media (max-width: 820px) { .full-form .ls-frame { height: 600px; } }
@media (max-width: 580px) { .quote-panel .ls-frame, .full-form .ls-frame { height: 800px; } }

/* Real Google Maps embed in the template's map card (keeps the card's white frame, radius and shadow). */
.map-card.map-embed { padding: 0; }
.map-card.map-embed iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* Device polish: the full domain name wraps onto two lines (at the <wbr> the builder adds) instead of being cut
   off with an ellipsis. */
@media (max-width: 820px) {
  .site-header .brand-copy strong { overflow: visible; font-size: 15px; line-height: 1.12; text-overflow: clip; white-space: normal; }
}

.cb-qr { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 156px; padding: 16px 12px 12px; color: var(--ink, #10243a); text-align: center; background: var(--white, #fff); border-radius: 18px; box-shadow: 0 18px 50px rgba(8, 42, 69, 0.28); opacity: 0; transform: translateY(14px); transition: opacity 0.25s, transform 0.25s; }
.cb-qr[hidden] { display: none; }
.cb-qr.is-open { opacity: 1; transform: none; }
.cb-close { position: absolute; top: -10px; right: -10px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; color: var(--white, #fff); background: var(--navy, #082a45); border: 2px solid var(--white, #fff); border-radius: 50%; cursor: pointer; font: inherit; font-size: 18px; font-weight: 800; line-height: 1; }
.cb-close:focus-visible { outline: 3px solid var(--accent-text, #225d82); outline-offset: 2px; }
.cb-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.cb-qr img { display: block; width: 116px; height: 116px; margin: 0 auto; padding: 6px; border: 2px solid var(--blue, #bfe0fb); border-radius: 10px; }
.cb-num { display: block; margin-top: 10px; color: var(--accent-text, #225d82); font-size: 15px; font-weight: 800; text-decoration: none; }
.cb-note { margin: 3px 0 0; color: var(--muted, #5b6b7b); font-size: 12px; }
/* Service hours (owner rule): open = scan to call; closed = no phone number anywhere, the card shows a
   "Get a Free Quote" button that leads to the LeadSmart form instead of the code. */
/* Closed hours (owner-approved design): the card shrinks to one navy "Get a Free Quote" button, no details, linking
   to the LeadSmart form. */
.cb-quote { display: none; padding: 12px 16px; color: var(--white, #fff); font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; background: var(--navy, #082a45); border-radius: 999px; transition: background 0.2s; }
.cb-quote:hover { background: var(--accent-text, #225d82); }
.cb-quote:focus-visible { outline: 3px solid var(--accent-text, #225d82); outline-offset: 3px; }
html.lines-closed .cb-qr { width: auto; padding: 16px; }
html.lines-closed .cb-qr > .cb-title, html.lines-closed .cb-qr > img, html.lines-closed .cb-qr > .cb-num, html.lines-closed .cb-qr > .cb-note { display: none; }
html.lines-closed .cb-quote { display: inline-block; }
/* The phone icon belongs to calling; it is hidden while the bar reads "Get a Free Quote". */
html.lines-closed .cb-call svg { display: none; }
@media (max-width: 820px), (hover: none) and (pointer: coarse) { .cb-qr { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .cb-qr { transition: none; } }
@media print { .cb-bar, .cb-qr { display: none !important; } body { padding-bottom: 0; } }
