/* WordPress server-rendered equivalents of the approved JS-enhanced globals. */
.global-header .nav-item.is-active > .nav-link,
.global-header .nav-link.is-active { color: var(--pg-green); }
.global-header .nav-dropdown.is-open > .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-drawer-backdrop { display: none; }
.pg-staging-form-notice { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #d8e8d5; border-radius: 10px; background: #f5fbf3; color: #39543c; font-size: 12px; line-height: 1.45; }
.header-search-btn svg { width: 20px; height: 20px; display: block; }
.header-schedule-btn { display: inline-flex; align-items: center; gap: 8px; }
.header-schedule-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.modal-close svg { width: 22px; height: 22px; display: block; }
.nav-caret svg, .mobile-drawer-chevron svg { width: 14px; height: 14px; display: block; }
.dropdown-item-icon svg { width: 18px; height: 18px; display: block; }
.footer-cta-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.footer-cta-actions .btn svg, .footer-socials svg { width: 18px; height: 18px; display: block; }
[hidden] { display: none !important; }
@media print { .premium-action-dock { display: none !important; } }

@media (min-width: 1181px) {
  .site-header.global-header .brand { flex: 0 0 auto; width: auto; max-width: 176px; }
  .site-header.global-header .site-logo--icon { display: none !important; }
}

@media (max-width: 1180px) {
  body .global-header .nav-panel { right: 0; transform: none; clip-path: inset(0 0 0 100%); visibility: hidden; pointer-events: none; transition: clip-path .24s ease, visibility 0s linear .24s; }
  body.nav-open .global-header .nav-panel { clip-path: inset(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  body.nav-open .mobile-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 65; border: 0; background: rgba(8,17,22,.48); }
}
@media (min-width: 1025px) {
  .site-header.global-header .dropdown-menu--technologies {
    width: min(600px, calc(100vw - 48px));
    max-height: none;
    overflow: visible;
  }

  .site-header.global-header .dropdown-menu--technologies > .dropdown-column--technology-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.hero-slide-picture { display: contents; }
.pg-brand-picture { display: contents; }

@media (max-width: 767px) {
  :root { --pg-mobile-edge: 20px; --pg-mobile-card-gap: 16px; }

  .site-header.global-header .navbar {
    gap: 10px;
  }

  .site-header.global-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-header.global-header .brand-logo {
    max-width: 100%;
  }

  .site-header.global-header .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .site-header.global-header .header-search-btn,
  .site-header.global-header .menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    line-height: 1;
    align-items: center;
    justify-content: center;
  }

  .site-header.global-header .header-search-btn {
    display: inline-grid;
    place-items: center;
  }

  .site-header.global-header .header-search-btn svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .site-header.global-header .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
  }

  .site-header.global-header .menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0;
    transform-origin: center;
  }

  body.nav-open .site-header.global-header .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .site-header.global-header .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  body.home-v2 .home-hero-carousel .hero-slide-media { display: none; }
  body.home-v2 .home-hero-carousel .hero-slide.is-active { padding-bottom: 42px; }
  .hero-slide-grid,
  .hero-slide.is-image-left .hero-slide-grid,
  .hero-slide.is-image-right .hero-slide-grid { grid-template-columns: minmax(0, 1fr); }

  .services-snapshot-grid { gap: 14px; }
  .services-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 7px 16px;
    padding: 20px;
    text-align: left;
  }

  .services-card .services-icon {
    grid-row: 1 / span 4;
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 17px;
  }

  .services-card .services-icon svg { width: 25px; height: 25px; }
  .services-card h3 { font-size: 18px; }
  .services-card .services-divider { display: none; }
  .services-card p { margin: 0; font-size: 13px; line-height: 1.55; }
  .services-card a {
    width: fit-content;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 0 0;
  }

  .technology-solutions-grid,
  .customer-review-layout {
    display: flex;
    gap: var(--pg-mobile-card-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 2px 1px 14px;
  }

  .technology-solutions-grid:focus-visible,
  .customer-review-layout:focus-visible { outline: 3px solid rgba(46,125,50,.38); outline-offset: 4px; }

  .technology-solution-card {
    flex: 0 0 min(86vw, 350px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .technology-image-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .technology-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
  .technology-card-body { margin-top: 18px; }

  .customer-featured-review,
  .customer-review-stack { display: contents; }

  .customer-review-layout .review-card {
    flex: 0 0 min(86vw, 360px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .site-footer.premium-footer-ready .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: var(--pg-mobile-edge);
    padding-right: var(--pg-mobile-edge);
  }

  .site-footer.premium-footer-ready .footer-main,
  .site-footer.premium-footer-ready .footer-cta-strip,
  .site-footer.premium-footer-ready .footer-newsletter-strip,
  .site-footer.premium-footer-ready .footer-bottom .container {
    padding-left: var(--pg-mobile-edge);
    padding-right: var(--pg-mobile-edge);
  }

  .site-footer .footer-main,
  .site-footer .footer-cta-strip,
  .site-footer .footer-newsletter-strip { margin-left: 0; margin-right: 0; }

  .site-footer .footer-toggle,
  .site-footer .footer-links a { min-height: 44px; }

  .site-footer .footer-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .site-footer .footer-bottom .container { gap: 14px; }
}

@media (max-width: 350px) {
  .site-header.global-header .navbar { gap: 6px; }
  .site-header.global-header .header-actions { gap: 6px; }
  .site-header.global-header .brand { width: 120px !important; max-width: 120px !important; flex: 0 1 120px !important; }
  .site-header.global-header .brand-logo { width: auto !important; max-width: 120px !important; height: auto !important; }
  .technology-solution-card,
  .customer-review-layout .review-card { flex-basis: calc(100vw - 42px); }
}

/* Scoped WordPress content containment; avoids third-party block overrides. */
.pg-prose { min-width: 0; overflow-wrap: anywhere; }
.pg-prose > * { max-width: 100%; }
.pg-prose .wp-block-search__inside-wrapper { flex-wrap: wrap; }
.pg-prose .wp-block-search__input { min-width: 0; }
