@charset "UTF-8";

/* Shared copyright alignment. The source text is kept in each page's footer. */
.footer-copy { text-align: center; }

.header-tel__local-service {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

#main .desktop-cta p.local-service-note,
#main .mobile-cta p.local-service-note {
  color: #245d40;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* PC-only unified consultation panel. Mobile CTA rules below remain unchanged. */
@media (min-width: 721px) {
  /* Neutralize the legacy TOP, area and service CTA wrappers at desktop widths. */
  #main .has-mobile-cta.desktop-cta-host,
  #main.junk-page .has-mobile-cta.desktop-cta-host {
    display: block;
    margin: 34px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
  }

  #main .desktop-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(248px, 0.9fr);
    align-items: center;
    column-gap: clamp(28px, 4vw, 58px);
    min-width: 0;
    padding: clamp(28px, 3vw, 40px) clamp(28px, 3.4vw, 46px);
    border: 1px solid #e3e8e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    color: var(--ink);
  }
  #main .desktop-cta__copy { min-width: 0; }
  #main .desktop-cta .desktop-cta__title {
    margin: 0 0 19px;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 5px solid var(--yellow);
    color: var(--ink);
    font-size: clamp(25px, 2.35vw, 32px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .008em;
  }
  #main .desktop-cta p.desktop-cta__description {
    margin: 0;
    padding: 0;
    color: #283c45;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
  }
  #main .desktop-cta p.local-service-note {
    margin: 10px 0 0;
    font-size: 16px;
  }
  #main .desktop-cta__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 13px 0 13px clamp(22px, 2.6vw, 34px);
    border-left: 1px solid #e5eae6;
    text-align: center;
  }
  #main .desktop-cta__phone-label {
    color: #52636c;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
  }
  #main .desktop-cta__number {
    display: block;
    color: var(--ink);
    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .015em;
    white-space: nowrap;
  }
  #main .desktop-cta__hours {
    color: #344851;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
  }
}

/* At narrow desktop/tablet widths, keep the phone information legible. */
@media (min-width: 721px) and (max-width: 900px) {
  #main .desktop-cta { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  #main .desktop-cta__phone {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid #e5eae6;
  }
}

/* The compact contact card exists only in the mobile layout. */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  /* Hide desktop content and retain the original mobile CTA unchanged. */
  #main .has-mobile-cta > :not(.mobile-cta),
  #main.junk-page .has-mobile-cta > :not(.mobile-cta) { display: none; }

  /* Remove outer panel cosmetics so there is exactly one card on mobile. */
  #main .has-mobile-cta,
  #main.junk-page .has-mobile-cta {
    display: block;
    padding: 0;
    margin: 24px 0 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #main .mobile-cta {
    display: grid;
    gap: 13px;
    min-width: 0;
    margin: 0;
    padding: 20px 16px 18px;
    border: 1px solid #e1e7df;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(23, 58, 53, .045);
    color: var(--ink);
    text-align: left;
  }

  #main .mobile-cta--standalone { margin: 24px 0 18px; }

  #main .mobile-cta__title {
    margin: 0;
    padding: 2px 0 2px 12px;
    border: 0;
    border-left: 4px solid var(--yellow);
    color: var(--ink);
    font-size: clamp(19px, 5.1vw, 21px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .01em;
  }

  #main .mobile-cta__description {
    margin: 0;
    color: #344c45;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.68;
  }

  #main .mobile-cta p.local-service-note {
    margin: 0;
    font-size: 14px;
  }

  #main a.mobile-cta__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 74px;
    margin: 0;
    padding: 12px 10px;
    border: 1px solid var(--button-bg);
    border-radius: 10px;
    background: var(--button-bg);
    color: var(--button-text);
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
  }

  #main a.mobile-cta__tel:hover { background: var(--button-hover); color: var(--button-text); }
  #main a.mobile-cta__tel:focus-visible { outline-offset: 3px; }

  #main .mobile-cta__number {
    color: inherit;
    font-size: clamp(20px, 5.8vw, 25px);
    font-weight: 800;
    letter-spacing: .018em;
    white-space: nowrap;
  }

  #main .mobile-cta__action {
    color: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  #main .mobile-cta__hours {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
  }
}

/* Shared page-top control: isolated from consultation CTA and navigation rules. */
.page-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  display: flex;
  width: 52px;
  height: 52px;
  padding: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--button-bg);
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .17);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.page-back-top[hidden] { display: none; }
.page-back-top:hover { background: var(--button-hover); }
.page-back-top:focus-visible { outline: 3px solid #173a35; outline-offset: 3px; }
.page-back-top svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .page-back-top { right: 15px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 10px; font-size: 9px; }
  .page-back-top svg { width: 18px; height: 18px; }
  /* Place above, never on top of, the existing fixed mobile contact bar. */
  .has-mobile-fixed-contact .page-back-top { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
