/* Pro Carpenter One v1.1: isolated, responsive header/nav redesign. */
.pc-site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  box-shadow: 0 6px 28px rgba(13, 23, 33, .065);
}
.admin-bar .pc-site-header { top: 32px; }
.pc-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: clamp(12px, 1.8vw, 28px);
}
.pc-header-brand { display: flex; align-items: center; flex: 0 0 auto; padding: 5px 0; }
.pc-logo-image { width: 175px; height: auto; max-width: none; display: block; }
.pc-desktop-nav { display: flex; justify-content: center; align-items: stretch; flex: 1 1 auto; min-width: 0; height: 80px; }
.pc-primary-links { display: flex; justify-content: center; align-items: stretch; gap: clamp(11px, 1.45vw, 25px); padding: 0; margin: 0; list-style: none; }
.pc-primary-links > li { display: flex; align-items: stretch; }
.pc-top-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  color: #182028;
  transition: color .18s;
}
.pc-top-link:after { content: ""; position: absolute; bottom: 18px; left: 0; right: 0; height: 2px; background: var(--red, #bd0926); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.pc-top-link:hover, .pc-top-link.is-current { color: var(--red, #bd0926); }
.pc-top-link:hover:after, .pc-top-link.is-current:after { transform: scaleX(1); }
.pc-services-link-group { display: flex; align-items: center; gap: 1px; }
.pc-services-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #34414a;
  border: 0;
  min-width: 27px;
  height: 38px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
}
.pc-services-expand svg { transition: transform .2s; }
.pc-services-entry.is-open .pc-services-expand svg { transform: rotate(180deg); }
.pc-services-expand:hover { color: var(--red, #bd0926); background: #f6f6f6; }
.pc-services-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 130;
  width: min(790px, calc(100vw - 34px));
  max-height: min(65vh, 520px);
  overflow-y: auto;
  top: calc(100% - 1px);
  left: 50%;
  padding: 28px 30px 30px;
  border: 1px solid #e5e8ea;
  border-top: 3px solid var(--red, #bd0926);
  background: #fff;
  box-shadow: 0 20px 58px rgba(15, 23, 42, .16);
  border-radius: 0 0 9px 9px;
  transform: translate(-50%, 10px);
  transition: visibility .18s, opacity .18s, transform .18s;
}
.pc-services-entry.is-open .pc-services-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.pc-services-panel-head { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 0 0 19px; border-bottom: 1px solid #e9ecef; margin-bottom: 14px; }
.pc-panel-kicker { display: block; font-size: 10px; letter-spacing: .19em; color: var(--red, #bd0926); font-weight: 800; margin-bottom: 4px; }
.pc-services-panel-head h2 { font-size: 24px; margin: 0; }
.pc-services-all { font-size: 12px; font-weight: 800; color: var(--red, #bd0926); white-space: nowrap; }
.pc-service-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 12px; padding: 0; margin: 0; list-style: none; }
.pc-service-link-grid li { min-width: 0; }
.pc-service-link-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px; border-radius: 5px; min-height: 52px; font-size: 13px; line-height: 1.35; font-weight: 700; color: #252d34; }
.pc-service-link-grid a span { color: #bd0926; font-size: 16px; flex: 0 0 auto; }
.pc-service-link-grid a:hover, .pc-service-link-grid a:focus-visible { background: #f6f7f8; color: var(--red, #bd0926); }
.pc-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: clamp(8px, 1vw, 15px); }
.pc-header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pc-header-phone svg { color: var(--red, #bd0926); }
.pc-header-cta { padding: 13px 16px; font-size: 12px; white-space: nowrap; }
.pc-mobile-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; color: #1c2630; border: 1px solid #e2e6e9; border-radius: 6px; background: #fff; cursor: pointer; }
.pc-close-icon { display: none; }
.pc-mobile-toggle[aria-expanded="true"] .pc-menu-icon { display: none; }
.pc-mobile-toggle[aria-expanded="true"] .pc-close-icon { display: block; }
.pc-mobile-toggle:hover { background: #f6f7f8; }
.pc-mobile-menu[hidden], .pc-mobile-services[hidden] { display: none !important; }
.pc-mobile-menu { display: none; }
.pc-site-header button:focus-visible, .pc-site-header a:focus-visible { outline: 3px solid #bf092a; outline-offset: 3px; }
/* v1.2.2: original transparent logo, rendered solid white via CSS on the dark footer. */
.footer .footer-brand { display:inline-flex;align-items:center;width:max-content;max-width:100%;background:transparent;padding:0;border:0;border-radius:0;box-shadow:none; }
.footer .footer-brand img.pc-footer-logo { display:block;width:165px;max-width:100%;height:auto;object-fit:contain;object-position:left center;background:transparent;filter:brightness(0) invert(1); }
@media (max-width: 1170px) {
  .pc-header-phone { display: none; }
  .pc-primary-links { gap: 17px; }
}
@media (max-width: 1020px) {
  .pc-header-inner { min-height: 69px; }
  .pc-logo-image { width: 164px; }
  .pc-desktop-nav, .pc-header-cta, .pc-header-phone { display: none; }
  .pc-mobile-toggle { display: inline-flex; }
  .pc-mobile-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #ebedef;
    box-shadow: 0 22px 33px rgba(15, 23, 42, .16);
    max-height: calc(100dvh - 69px - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .pc-mobile-menu-inner { width: min(620px, calc(100% - 34px)); margin: 0 auto; padding: 12px 0 24px; }
  .pc-mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 49px;
    font-size: 16px;
    font-weight: 780;
    color: #1b2229;
    padding: 12px 4px;
    border-bottom: 1px solid #e9ecef;
  }
  .pc-mobile-menu-link:hover { color: var(--red, #bd0926); }
  .pc-mobile-services-row { display: flex; align-items: stretch; border-bottom: 1px solid #e9ecef; }
  .pc-mobile-services-row .pc-mobile-menu-link { flex: 1; border-bottom: 0; }
  .pc-mobile-services-toggle { display: flex; justify-content: center; align-items: center; width: 51px; border: 0; border-left: 1px solid #e9ecef; background: #f8f9fa; cursor: pointer; }
  .pc-mobile-services-toggle svg { transition: transform .2s; }
  .pc-mobile-services-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .pc-mobile-services { background: #f5f6f7; padding: 5px 13px 7px; }
  .pc-mobile-service-list { list-style: none; padding: 0; margin: 0; }
  .pc-mobile-service-list li + li { border-top: 1px solid #e5e7e9; }
  .pc-mobile-service-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 6px; font-size: 14px; font-weight: 700; color: #25303a; line-height: 1.4; }
  .pc-mobile-service-list a span { color: var(--red, #bd0926); font-size: 16px; }
  .pc-mobile-menu-footer { padding-top: 20px; display: flex; flex-direction: column; gap: 9px; }
  .pc-mobile-quote { justify-content: center; width: 100%; min-height: 47px; }
  .pc-mobile-phone { font-size: 14px; text-align: center; font-weight: 750; color: #303841; padding: 7px; }
  body.pc-mobile-menu-open { overflow: hidden; }
}
@media (max-width: 782px) {
  .admin-bar .pc-site-header { top: 46px; }
  .admin-bar .pc-mobile-menu { max-height: calc(100dvh - 69px - 46px); }
}
@media (max-width: 600px) {
  .pc-logo-image { width: 152px; }
  .pc-header-inner { min-height: 66px; }
  .pc-mobile-menu { max-height: calc(100dvh - 66px); }
  .pc-mobile-menu-inner { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-site-header *, .pc-site-header *:before, .pc-site-header *:after { transition: none !important; }
}
