/* ==========================================================================
   Progressive Builders — component.css
   Shared, reusable components: header, footer, buttons, pills, cards, forms.
   Loads on every page (after global.css).
   ========================================================================== */

/* --- Buttons ----------------------------------------------------------- */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--pb-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--pb-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  line-height: 1;
}
.pb-btn:hover,
.pb-btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--pb-shadow-md);
}
.pb-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.pb-btn--primary {
  background: var(--pb-amber);
  color: #fff;
}
.pb-btn--primary:hover,
.pb-btn--primary:focus {
  background: var(--pb-amber-dark);
  color: #fff;
}

.pb-btn--navy {
  background: var(--pb-navy);
  color: #fff;
}
.pb-btn--navy:hover,
.pb-btn--navy:focus {
  background: var(--pb-navy-dark);
  color: #fff;
}

.pb-btn--outline {
  background: transparent;
  color: var(--pb-navy);
  border-color: var(--pb-border-navy);
}
.pb-btn--outline:hover,
.pb-btn--outline:focus {
  border-color: var(--pb-navy);
  color: var(--pb-navy);
}

.pb-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.pb-btn--ghost-light:hover,
.pb-btn--ghost-light:focus {
  background: #fff;
  color: var(--pb-navy);
  border-color: #fff;
}

/* --- Pills / badges ---------------------------------------------------- */
.pb-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--pb-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pb-navy);
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  padding: 8px 16px;
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
a.pb-pill:hover {
  border-color: var(--pb-amber);
  color: var(--pb-amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--pb-shadow-sm);
}

/* --- Generic card ------------------------------------------------------ */
.pb-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow-sm);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.pb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pb-shadow-lg);
  border-color: var(--pb-border-navy);
}

/* Post card — used on the Blog index (Latest Articles) and on single.php
   ("More Articles"). Grid wrapper + section background stay page-scoped. */
.pb-post-card {
  display: flex;
  flex-direction: column;
}
.pb-post-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.pb-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease !important;
}
.pb-post-card:hover .pb-post-card__media img {
  transform: scale(1.05);
}
.pb-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px;
}
.pb-post-card__meta {
  font-size: 0.72rem;
  color: var(--pb-amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pb-post-card__title {
  color: var(--pb-head);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.pb-post-card__title a {
  color: inherit;
}
.pb-post-card__title a:hover {
  color: var(--pb-amber-dark);
}
.pb-post-card__excerpt {
  font-size: 0.92rem;
  color: var(--pb-ash);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}
.pb-post-card__more {
  font-family: var(--pb-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pb-amber-dark);
}
.pb-post-card__more i {
  margin-left: 6px;
  font-size: 0.82em;
  transition: transform 0.25s ease !important;
}
.pb-post-card:hover .pb-post-card__more i {
  transform: translateX(4px);
}

/* Posts-loop empty state + pagination — used by the Blog index (home.php)
   and category archives (category.php). */
.pb-posts__empty {
  margin-top: 32px;
  color: var(--pb-ash);
}
.pb-posts__pagination {
  margin-top: 40px;
  text-align: center;
}
.pb-posts__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 3px;
  border-radius: var(--pb-radius-sm);
  border: 1px solid var(--pb-border);
  background: var(--pb-white);
  color: var(--pb-navy);
  font-family: var(--pb-font-display);
  font-weight: 600;
  transition: all 0.2s ease !important;
}
.pb-posts__pagination .page-numbers:hover {
  border-color: var(--pb-amber);
  color: var(--pb-amber-dark);
}
.pb-posts__pagination .page-numbers.current {
  background: var(--pb-navy);
  color: #fff;
  border-color: var(--pb-navy);
}

/* ==========================================================================
   HEADER — white, with a red bottom accent line and red active/hover state.
   ========================================================================== */
.pb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pb-white);
  border-bottom: 3px solid var(--pb-primary);
  box-shadow: 0 2px 12px rgba(20, 16, 12, 0.1);
}
.pb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-block: 10px;
}

.pb-logo {
  display: inline-flex;
  align-items: center;
}
.pb-logo__plate {
  /* background: #fff;
  padding: 8px 14px;
  border-radius: var(--pb-radius-sm);
  box-shadow: var(--pb-shadow-sm); */
  display: inline-flex;
}
.pb-logo img {
  height: 80px;
  width: auto;
}

.pb-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pb-nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-nav-menu a {
  font-family: var(--pb-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pb-head);
  position: relative;
  padding-block: 6px;
}
.pb-nav-menu a:hover,
.pb-nav-menu .current-menu-item > a,
.pb-nav-menu .current-menu-ancestor > a,
.pb-nav-menu .current_page_item > a,
.pb-nav-menu .current_page_parent > a {
  color: var(--pb-primary);
}
/* Red hover underline (absolute bar) — on ::before so ::after is free for the caret. */
.pb-nav-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--pb-primary);
  transition: right 0.25s ease;
}
.pb-nav-menu a:hover::before,
.pb-nav-menu .current-menu-item > a::before,
.pb-nav-menu .current-menu-ancestor > a::before,
.pb-nav-menu .current_page_item > a::before,
.pb-nav-menu .current_page_parent > a::before {
  right: 0;
}

/* Remove the arrow ELEMENTS Astra/plugins inject (so we don't get duplicate carets). */
.pb-header .ast-header-navigation-arrow,
.pb-header .dropdown-menu-toggle,
.pb-header .ast-menu-toggle,
.pb-nav-menu .menu-item-has-children > a > *,
.pb-nav-menu .sub-menu a > * {
  display: none !important;
}
/* No underline bar or stray pseudo-arrows inside the dropdown. */
.pb-nav-menu .sub-menu a::before,
.pb-nav-menu .sub-menu a::after {
  content: none !important;
  display: none !important;
}

/* Caret on top-level items that HAVE a sub-menu (rendered after the label). */
.pb-nav-menu > .menu-item-has-children > a::after {
  content: "\f107"; /* Font Awesome: fa-angle-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.72em;
  margin-left: 7px;
  color: var(--pb-amber);
  display: inline-block;
  transition: transform 0.25s ease;
}
.pb-nav-menu > .menu-item-has-children:hover > a::after,
.pb-nav-menu > .menu-item-has-children.is-expanded > a::after {
  transform: rotate(180deg);
}

/* Injected mobile caret toggle (theme.js) — hidden on desktop, where the CSS
   caret above + hover dropdown handle things. */
.pb-submenu-toggle {
  display: none;
}

/* Sub-menus (desktop dropdown) */
.pb-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-sm);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  box-shadow: var(--pb-shadow-md);
}
.pb-nav-menu .menu-item-has-children {
  position: relative;
}
/* Desktop dropdown opens on hover. */
.pb-nav-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pb-nav-menu .sub-menu li {
  display: block;
}
.pb-nav-menu .sub-menu a {
  display: block;
  padding: 8px 18px;
}

/* Smooth reveal for the mobile sub-menu accordion. */
@keyframes pb-submenu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pb-header__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pb-header__phone {
  font-family: var(--pb-font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pb-primary);
  white-space: nowrap;
}
.pb-header__phone:hover {
  color: var(--pb-primary-dark);
}

/* Mobile toggle */
.pb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.pb-nav-toggle:hover,
.pb-nav-toggle:focus {
  background: none;
}

.pb-nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--pb-head);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
/* Animate to an X when the menu is open. */
.pb-header.is-open .pb-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pb-header.is-open .pb-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.pb-header.is-open .pb-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .pb-nav-toggle {
    display: flex;
  }
  .pb-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--pb-white);
    border-bottom: 3px solid var(--pb-primary);
    box-shadow: var(--pb-shadow-md);
    padding: 12px 24px 24px;
    display: none;
  }
  .pb-header.is-open .pb-header__nav {
    display: flex;
  }
  .pb-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .pb-nav-menu a {
    display: block;
    padding: 14px 0;
  }
  /* The sliding underline bar is a desktop hover affordance; on the full-width
     mobile links it renders as a stray red line under active/expanded items. */
  .pb-nav-menu a::before {
    display: none;
  }
  /* Parent link stays a normal (navigating) link; the caret button toggles the
     submenu. The button sits at the right edge of the parent row. */
  .pb-nav-menu .menu-item-has-children {
    position: relative;
  }
  .pb-nav-menu > .menu-item-has-children > a::after {
    display: none; /* the injected caret button carries the indicator on mobile */
  }
  .pb-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 52px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--pb-head);
    font-size: 1.05rem;
    cursor: pointer;
  }
  
  .pb-submenu-toggle:hover,
  .pb-submenu-toggle:focus {
      background: none !important;
      border: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;
  }
  
  .pb-submenu-toggle i {
    transition: transform 0.25s ease;
  }
  .pb-nav-menu .menu-item.is-expanded > .pb-submenu-toggle {
    color: var(--pb-primary);
  }
  .pb-nav-menu .menu-item.is-expanded > .pb-submenu-toggle i {
    transform: rotate(180deg);
  }
  /* Mobile sub-menus: hidden by default, revealed on tap (.is-expanded added by JS). */
  .pb-nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 0 0 16px;
    display: none;
  }
  .pb-nav-menu .menu-item.is-expanded > .sub-menu {
    display: block;
    padding-bottom: 8px;
    animation: pb-submenu-in 0.28s ease !important;
  }
  .pb-header__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
  }
  .pb-header__phone {
    text-align: center;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pb-footer {
  background: var(--pb-navy);
  color: var(--pb-light-text);
  border-top: 3px solid var(--pb-amber);
}
.pb-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}
.pb-footer h2 {
  font-family: var(--pb-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pb-amber);
  margin: 0 0 16px;
}
.pb-footer p {
  font-size: 0.92rem;
  line-height: 1.9;
  margin: 0 0 4px;
}
.pb-footer a {
  color: var(--pb-light-text);
}
.pb-footer a:hover {
  color: #fff;
}

.pb-footer__brand .pb-logo__plate {
  margin-bottom: 16px;
}
.pb-footer__brand img {
  height: 100px;
  width: auto;
  /* Dark transparent logo → white so it reads on the navy footer. */
  filter: brightness(0) invert(1);
}
.pb-footer__contact {
  margin-top: 14px;
  font-family: var(--pb-font-mono);
  font-size: 0.85rem;
}
.pb-footer__contact .pb-footer__phone {
  color: var(--pb-amber);
  font-weight: 700;
}

/* Social icons */
.pb-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.pb-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease !important;
}
.pb-footer__social a:hover,
.pb-footer__social a:focus {
  background: var(--pb-amber);
  border-color: var(--pb-amber);
  color: var(--pb-navy);
  transform: translateY(-3px);
}

.pb-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-footer-menu li {
  margin-bottom: 10px;
}
.pb-footer-menu a {
  font-size: 0.92rem;
}

.pb-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--pb-font-mono);
  font-size: 0.78rem;
  color: #ffffffe6;
}
.pb-footer__policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-footer__policy-links a {
  color: #ffffffe6;
  transition: color 0.2s ease !important;
}
.pb-footer__policy-links a:hover {
  color: var(--pb-amber);
}

@media (max-width: 1100px) {
  .pb-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 1024px) {
  .pb-footer__bar,
  .pb-footer__policy-links {
    justify-content: center;
  }
}
@media (max-width: 760px) {
  .pb-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .pb-footer__grid {
    grid-template-columns: 1fr;
  }
  .pb-footer__bar {
    flex-direction: column;
    text-align: center;
  }
  .pb-footer__policy-links {
    justify-content: center;
  }
}

/* ==========================================================================
   FORM CONTROLS (shared)
   ========================================================================== */
.pb-field {
  margin-bottom: 18px;
}
.pb-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pb-slate);
  margin-bottom: 6px;
}
.pb-input,
.pb-select,
.pb-textarea {
  width: 100%;
  font-family: var(--pb-font-body);
  font-size: 1rem;
  color: var(--pb-slate);
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-sm);
  padding: 12px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.pb-input:focus,
.pb-select:focus,
.pb-textarea:focus {
  outline: none;
  border-color: var(--pb-amber);
  box-shadow: 0 0 0 3px var(--pb-border-amber);
}
.pb-textarea {
  min-height: 130px;
  resize: vertical;
}

/* ==========================================================================
   PAGE HERO (shared by interior pages)
   Two flavors:
   • Photo hero (.pb-page-hero, no --pattern) — only the pages that carried a
     hero photo before the rebrand (about, adu, bath-remodels, kitchen-remodels)
     set their image INLINE with a dark overlay + WHITE text.
   • Solid hero (.pb-page-hero--pattern) — every other page: a flat TAN brand
     color (--pb-secondary) with DARK text and a red baseline accent.
   ========================================================================== */
.pb-page-hero {
  position: relative;
  background-color: var(--pb-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Solid tan hero (no background image), dark text, red baseline accent. */
.pb-page-hero--pattern {
  position: relative;
  overflow: hidden;
  background-color: var(--pb-secondary);
  background-image: none;
  color: var(--pb-slate);
}
/* Red baseline accent along the bottom edge. */
.pb-page-hero--pattern::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--pb-primary);
}
.pb-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(64px, 10vw, 128px);
  text-align: center;
}
.pb-page-hero__title {
  color: #fff;
  margin: 0;
}
.pb-page-hero__sub {
  color: var(--pb-light-text);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  max-width: 60ch;
  margin: 16px auto 0;
}
/* On the tan solid hero, flip the (white-by-default) hero text to dark ink. */
.pb-page-hero--pattern .pb-page-hero__title {
  color: var(--pb-head);
}
.pb-page-hero--pattern .pb-page-hero__sub {
  color: var(--pb-slate);
}
/* Ghost-light buttons (white, built for dark heroes) need a dark treatment on
   the tan hero so they stay visible (used on 404 + thank-you). */
.pb-page-hero--pattern .pb-btn--ghost-light {
  color: var(--pb-head);
  border-color: var(--pb-border-navy);
}
.pb-page-hero--pattern .pb-btn--ghost-light:hover,
.pb-page-hero--pattern .pb-btn--ghost-light:focus {
  background: var(--pb-dark);
  color: #fff;
  border-color: var(--pb-dark);
}
.pb-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}

/* ==========================================================================
   CTA BAND (shared) — full-width RED-GRADIENT band with light text. The
   primary button flips to WHITE (a red button would vanish on the red bg).
   ========================================================================== */
.pb-cta-band {
  background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-dark) 100%);
  padding-block: clamp(56px, 8vw, 96px);
}
.pb-cta-band__panel {
  /* Content wrapper only — no card treatment; centered within the container. */
}
.pb-cta-band__title {
  color: #fff;
  margin-bottom: 26px;
}
.pb-cta-band__text {
  color: var(--pb-light-text);
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 0 auto 28px;
}
.pb-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
/* Primary button → solid white with red text, so it stands out on the red band. */
.pb-cta-band .pb-btn--primary {
  background: #fff;
  color: var(--pb-primary);
}
.pb-cta-band .pb-btn--primary:hover,
.pb-cta-band .pb-btn--primary:focus {
  background: #fff;
  color: var(--pb-primary-dark);
}
/* Outline buttons (dark border/text by default) → white outline on the red
   band; fill white with red text on hover. */
.pb-cta-band .pb-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.pb-cta-band .pb-btn--outline:hover,
.pb-cta-band .pb-btn--outline:focus {
  background: #fff;
  color: var(--pb-primary);
  border-color: #fff;
}
/* Cross-links sit on the red band here (they're red on light sections
   elsewhere, e.g. the 404 "Popular Pages" grid — left unchanged). */
.pb-cta-band .pb-crosslinks a {
  color: var(--pb-light-text);
}
.pb-cta-band .pb-crosslinks a:hover {
  color: #fff;
}
.pb-cta-band__lic {
  margin-top: 22px;
  color: var(--pb-light-text);
  font-size: 0.82rem;
  letter-spacing: 1px;
}
@media (max-width: 640px) {
  .pb-cta-band__actions .pb-btn {
    flex: 1 1 auto;
  }
}

/* CTA cross-links row (shared — Home Remodels, Outdoor Living). */
.pb-crosslinks,
.pb-hr-crosslinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 24px;
}
.pb-crosslinks a,
.pb-hr-crosslinks a  {
  font-family: var(--pb-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pb-amber-dark);
}
.pb-crosslinks a:hover,
.pb-hr-crosslinks a:hover {
  color: var(--pb-navy);
}
/* Home Remodels crosslinks sit on the red CTA band — white for contrast. */
.pb-hr-crosslinks a {
  color: #fff;
}
.pb-hr-crosslinks a:hover {
  color: var(--pb-secondary);
}

/* ==========================================================================
   PHOTO GRID + LIGHTBOX (shared — Outdoor Living, Project Gallery)
   Each tile is an <a data-lightbox="group" href="full.jpg"><img></a>.
   theme.js wires the click-to-open lightbox.
   ========================================================================== */
.pb-photogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.pb-photogrid__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--pb-radius);
  cursor: pointer;
}
.pb-photogrid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease !important;
}
.pb-photogrid__item:hover img {
  transform: scale(1.06);
}
.pb-photogrid__item::after {
  content: "\f00e"; /* Font Awesome: magnifying-glass-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(27, 51, 85, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease !important;
}
.pb-photogrid__item:hover::after {
  opacity: 1;
  background: rgba(27, 51, 85, 0.45);
}

/* Lightbox overlay (built once by theme.js, appended to <body>). */
.pb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  background: rgba(20, 16, 12, 0.93);
}
.pb-lightbox.is-open {
  display: flex;
}
.pb-lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}
.pb-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pb-lightbox__cap {
  margin-top: 12px;
  font-family: var(--pb-font-mono);
  font-size: 0.8rem;
  color: var(--pb-light-text);
  text-align: center;
}
.pb-lightbox__close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.pb-lightbox__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease !important;
}
.pb-lightbox__nav:hover {
  background: var(--pb-amber);
}
@media (max-width: 600px) {
  .pb-lightbox__nav {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   PROCESS / STEPS (shared — About "How We Work", service-page processes, etc.)
   auto-fit handles any step count (4, 5, …) and wraps responsively.
   ========================================================================== */
.pb-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.pb-process__step {
  position: relative;
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  padding: 30px 24px 26px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.pb-process__step:hover {
  transform: translateY(-6px);
  box-shadow: var(--pb-shadow-lg);
  border-color: var(--pb-border-navy);
}
.pb-process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pb-navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pb-process__title {
  color: var(--pb-head);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.pb-process__desc {
  font-size: 0.95rem;
  color: var(--pb-ash);
  line-height: 1.7;
}

/* ==========================================================================
   FAQ ACCORDION (shared — Room Additions, Kitchen, ADU, …)
   Native <details>/<summary> — accessible, no JS required.
   ========================================================================== */
.pb-faq {
  max-width: 840px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pb-faq__item {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.pb-faq__item[open] {
  border-color: var(--pb-border-amber);
}
.pb-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--pb-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pb-head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pb-faq__q::-webkit-details-marker {
  display: none;
}
.pb-faq__icon {
  flex-shrink: 0;
  color: var(--pb-amber);
  transition: transform 0.25s ease;
}
.pb-faq__item[open] .pb-faq__icon {
  transform: rotate(45deg);
}
.pb-faq__a {
  padding: 0 24px 22px;
  color: var(--pb-ash);
  line-height: 1.8;
}

/* ==========================================================================
   BEFORE / AFTER GALLERY (shared — Room Additions, Kitchen, Bath, …)
   ========================================================================== */
.pb-gallery {
  background: var(--pb-white);
}
.pb-gallery .pb-section-title {
  color: var(--pb-head);
}
.pb-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.pb-gallery-card {
  display: flex;
  flex-direction: column;
}
/* Single-image gallery card media (used where before/after pairs aren't available). */
.pb-gallery-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pb-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease !important;
}
.pb-gallery-card:hover .pb-gallery-card__media img {
  transform: scale(1.05);
}
.pb-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pb-ba__item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pb-ba__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-ba__label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 16, 12, 0.7);
  padding: 3px 8px;
  border-radius: 3px;
}
.pb-ba__label--after {
  background: var(--pb-amber);
}
.pb-gallery-card__body {
  padding: 18px 20px 20px;
}
.pb-gallery-card__title {
  margin-bottom: 2px;
}
.pb-gallery-card__meta {
  font-size: 0.78rem;
  color: var(--pb-ash);
}
.pb-gallery__cta {
  margin-top: 36px;
}
.pb-gallery__cta i {
  margin-left: 6px;
  font-size: 0.82em;
  transition: transform 0.25s ease;
}
.pb-gallery__cta .pb-btn:hover i {
  transform: translateX(4px);
}
@media (max-width: 820px) {
  .pb-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .pb-gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GHL FORM SLOT (shared placeholder — service-page quote forms)
   The "quote" band is a page CTA, so it uses the same red-gradient treatment
   as .pb-cta-band; replace the inner white block with the GHL embed.
   ========================================================================== */
.pb-quote {
  background: linear-gradient(135deg, var(--pb-primary) 0%, var(--pb-primary-dark) 100%);
}
.pb-quote .pb-section-title {
  color: #fff;
}
.pb-quote .pb-lead {
  color: var(--pb-light-text);
}
.pb-form-slot {
  max-width: 760px;
  margin: 40px auto 0;
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
  background: var(--pb-white);
  border: 2px dashed var(--pb-border-navy);
  border-radius: var(--pb-radius);
  color: var(--pb-ash);
}
.pb-form-slot__icon {
  font-size: 28px;
  color: var(--pb-amber);
  margin-bottom: 14px;
}
.pb-form-slot__label {
  font-family: var(--pb-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pb-navy);
  margin-bottom: 6px;
}
.pb-form-slot__note {
  font-size: 0.9rem;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   SCOPE / "WHAT'S INCLUDED" GRID (shared — Kitchen, Bath, Outdoor, ADU)
   Static icon cards (not links).
   ========================================================================== */
.pb-scope__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.pb-scope-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-border);
  border-top: 3px solid var(--pb-amber);
  border-radius: var(--pb-radius);
  padding: 28px 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.pb-scope-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pb-shadow-lg);
}
.pb-scope-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-tint);
  color: var(--pb-navy);
  font-size: 22px;
  margin-bottom: 16px;
}
.pb-scope-card__title {
  color: var(--pb-head);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.pb-scope-card__desc {
  font-size: 0.95rem;
  color: var(--pb-ash);
  line-height: 1.7;
}

/* ==========================================================================
   MAP EMBED (shared — Service Areas, Contact)
   ========================================================================== */
.pb-map {
  background: var(--pb-white);
}
.pb-map .pb-section-title {
  color: var(--pb-head);
}
.pb-map__frame {
  margin-top: 40px;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  overflow: hidden;
  box-shadow: var(--pb-shadow-md);
  line-height: 0;
}
.pb-map__frame iframe {
  display: block;
  width: 100%;
}
@media (max-width: 600px) {
  .pb-map__frame iframe {
    height: 320px;
  }
}
