/* =====================================================================
   BASE RULES (merged from peb-pages.css and peb-home-slider.css on 2026-11-24)
   Article column, table of contents on article pages, Home logo grid.
   ===================================================================== */
.peb_intro {
  min-height: 650px;
  margin-left: -30px;
  padding: 30px 0 50px 30px;
  border-left: 1px solid #ccc;
}

.peb_intro img {
  max-width: 100%;
  height: auto !important;
}

/* Table of contents (built by setupTableOfContents in main.js) */
.toc-container {
  max-width: 100%;
  margin: 25px 0;
  padding: 15px 20px;
  border: 1px solid #e1e8ed;
  background-color: #f7f9fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e8ed;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2672b0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.toc-title i {
  font-size: 18px;
}

.toc-toggle {
  color: #2672b0;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.toc-toggle:hover {
  text-decoration: underline;
}

.toc-list {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.toc-item {
  margin: 8px 0;
  line-height: 1.5;
}

.toc-item a {
  display: inline-block;
  color: #444;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.toc-item a:hover {
  padding-left: 5px;
  color: #2672b0;
  text-decoration: none;
}

.toc-h2 {
  font-weight: 600;
}

.toc-h3 {
  padding-left: 20px;
  font-size: 14.5px;
}

/* Home: projects section width, partner logo grid */
.home-project {
  max-width: 1366px;
  margin-right: auto;
  margin-left: auto;
  padding: 40px 0;
}

.home-partner {
  padding: 40px 0;
}

ul.partner {
  width: 50%;
  margin: 0;
  padding: 0;
}

ul.partner li {
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
  width: 25%;
  height: 90px;
  border: 1px solid #bbb;
  background: #f7f7f7;
  list-style: none;
}

ul.partner li a {
  padding: 20px;
}

ul.partner li:hover {
  background: rgba(255, 255, 255, 0.3);
}

ul.partner li img {
  max-width: 100px;
  max-height: 60px;
}

@media (max-width: 768px) {
  .home-project {
    padding: 40px 20px;
  }

  ul.partner {
    width: 100%;
  }
}

@media (max-width: 450px) {
  ul.partner li {
    width: 50%;
  }
}

/* =====================================================================
   PEB PHILIPPINES WEBSITE - MAIN STYLESHEET
   ---------------------------------------------------------------------
   Styles shared by many pages live here. Edit once, every page updates.

   Load order on every page:
     1. vendor/css/*        third-party libraries (Bootstrap, Owl, Swiper...)
     2. assets/css/peb-*    the site font and the original base stylesheets
     3. assets/css/main.css THIS FILE

   Sections:
     HEADER  ->  SHARED SECTIONS  ->  FOOTER & FLOATING WIDGETS
     ->  SHARED HELPER CLASSES  ->  PAGE-SPECIFIC STYLES
   ===================================================================== */

/* ---- Page-wide basics (HTML polish, 2026-11-19) ----
   Images carry their real width and height in the HTML so the browser keeps their space before
   they load (no jumping text). This keeps them scaling as before: any rule that sets a height wins. */
:where(img[width][height]) {
  height: auto;
}

/* Office list in the About page map: the soft shadow it had from bootstrap-theme.css (no longer loaded). */
.list-group {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}

/* Home, customers & partners logos (these were inline styles on each image). */
ul.partner .partner-logo img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* =====================================================================
   HEADER
   ===================================================================== */

/* ---- Header: 'Projects' 3-column mega menu ---- */

/* Centred on the header container (not the menu item), so the wide panel can't
   run off the right of the screen. Moving the menu items doesn't affect this.
   top: 60px is the bottom edge of the menu item, so there is no hover gap. */

.main_menu > li.has-mega-project {
  position: static;
}

.vtc-menu-desktop .midde .menus ul.main_menu li.has-mega-project > .sub-menu.menu-project-mega {
  top: 75px;
}

.vtc-menu-desktop .midde .menus ul.main_menu li.has-mega-project:hover > .sub-menu.menu-project-mega {
  top: 60px;
}

.main_menu > li.has-mega-project .sub-menu.menu-project-mega {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 1020px !important;
  max-width: 96vw !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid #e5e7eb !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  overflow: visible !important;
  z-index: 10000 !important;
}

.menu-project-mega .mega-project-item-wrap {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
  overflow: visible !important;
}

.project-mega-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  overflow: visible !important;
  border-top: 2px solid #2672b0;
}

.project-mega-col {
  flex: 1 !important;
  padding: 18px 22px !important;
  position: relative !important;
  border-right: 1px solid #f1f5f9 !important;
  overflow: visible !important;
}

.project-mega-col:last-child {
  border-right: none !important;
}

.project-col-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f8fafc !important;
  justify-content: center;
}

.project-col-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2672b0 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  line-height: 1.3 !important;
}

.project-item-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.project-country-list {
  max-height: none !important;
  padding-right: 0 !important;
}

.project-country-list::-webkit-scrollbar {
  width: 4px;
}

.project-country-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.project-item-list > li {
  position: relative !important;
  list-style: none !important;
  margin-bottom: 4px !important;
  overflow: visible !important;
}

.project-item-list > li > a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 9px 12px !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  line-height: 1.4 !important;
  text-transform: capitalize !important;
}

.project-item-list > li > a i.fa-angle-right {
  color: #94a3b8 !important;
  font-size: 13px !important;
  transition:
    transform 0.2s ease,
    color 0.2s ease !important;
}

.project-item-list > li:hover > a {
  background: #eef2f8 !important;
  color: #2672b0 !important;
  font-weight: 600 !important;
}

.project-item-list > li:hover > a i.fa-angle-right {
  transform: translateX(4px) !important;
  color: #2672b0 !important;
}

/* Responsive Mobile / Tablet */

@media (max-width: 991px) {
  .main_menu > li.has-mega-project .sub-menu.menu-project-mega {
      position: static !important;
      transform: none !important;
      width: 100% !important;
      max-width: 100% !important;
      box-shadow: none !important;
      border: none !important;
    }

  .project-mega-grid {
      flex-direction: column !important;
    }

  .project-mega-col {
      border-right: none !important;
      border-bottom: 1px solid #f1f5f9 !important;
      padding: 14px 10px !important;
    }

}

/* ---- Header: icons inside desktop sub-menus ---- */

.vtc-menu-desktop .midde .two .menus ul.main_menu li .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================================================================
   SHARED SECTIONS (only some pages use these classes)
   ===================================================================== */

/* ---- Swiper sliders (site-wide defaults) ---- */

/* Custom Swiper navigation buttons (arrows) */

/* ---- About page: office/factory network map (pins drawn by main.js) ---- */

.network-tabs-wrapper .nav-pills > li.active > a,
.network-tabs-wrapper .nav-pills > li.active > a:hover,
.network-tabs-wrapper .nav-pills > li.active > a:focus {
  background-color: #2672b0 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) !important;   /* neutral, was a blue glow */
}

.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -32px;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.map-pin i {
  font-size: 24px;
  line-height: 32px;
  color: #7f8c8d;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
  display: block;
}

.map-pin.active i {
  color: #2672b0 !important;
  font-size: 32px !important;
  line-height: 32px !important;
  filter: drop-shadow(0px 4px 8px rgba(15, 23, 42, 0.3)) !important;
}

.map-pin.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(38, 114, 176, 0.3);
  transform: translate(-50%, 50%) scale(1.6);   /* a still "you are here" ring; the pulsing animation was removed 2026-11-20 */
  z-index: -1;
}

.info-panel-card:hover #info-loc-image {
  transform: scale(1.05);
}

.locations-text-list .list-group-item {
  font-size: 13px;
  padding: 10px 15px;
  color: #555;
  border: none;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.locations-text-list .list-group-item:last-child {
  border-bottom: none;
}

.locations-text-list .list-group-item:hover {
  background: #f5f5f5;
  color: #2672b0;
}

.locations-text-list .list-group-item.active-item {
  background: #edf1f7 !important;
  color: #2672b0 !important;
  font-weight: 600;
  border-left: 3px solid #2672b0;
}

/* =====================================================================
   FOOTER & FLOATING WIDGETS
   ===================================================================== */

/* ---- Footer: 'download profile' button ---- */

.dowload-profile {
  cursor: pointer;
  color: #fff !important;
  padding: 8px 12px;
  border: 1px solid #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

@media screen and (max-width: 1199px) {
  .mbdno {
      display: none;
    }
}

/* ---- Footer: awards row on small phones ---- */

@media (max-width: 450px) {
  .reward {
      display: flex;
      gap: 5px;
      justify-content: space-between;
    }

  .reward img {
      width: 65px !important;
      height: 65px !important;
    }
}

/* the four badges need less room on the narrowest phones (320px) */
@media (max-width: 360px) {
  .reward img {
      width: 58px !important;
      height: 58px !important;
    }
}

/* ---- Footer: BIR certificate and QR code ---- */

.footer-bir {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  width: 150%;
}

.footer-bir .bir-cell {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bir .bir-logo {
  height: 103px;
}

.footer-bir .bir-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.01);
}

/* Mobile / tablet: 991px and below */

@media screen and (max-width: 991px) {
  .footer-bir {
      width: 100%;
      max-width: 420px;
      margin-top: 12px;
      gap: 8px;
    }

  .footer-bir .bir-cell {
      flex: 1 1 0;
      min-width: 0;
    }

  .footer-bir .bir-logo {
      height: 96px;
    }
}

@media screen and (max-width: 575px) {
  .footer-bir {
      max-width: 100%;
      gap: 6px;
    }

  .footer-bir .bir-logo {
      height: 84px;
    }
}

@media screen and (max-width: 359px) {
  .footer-bir .bir-logo {
      height: 70px;
    }
}

/* ---- Footer: social media icons ---- */

ul.follow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

ul.follow li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

ul.follow li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #ffffff;
  line-height: 1;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

ul.follow li a:hover {
  color: #fff000;
  transform: translateY(-2px);
}

ul.follow li a svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Social icons with no account linked yet (class "follow-soon", no href): shown, but they go nowhere */

/* ---- Footer: certificate/QR lightbox ---- */

/* ---- Footer bottom space (tablet & mobile) ----
   The 50px used to make room for a fixed hotline bar that no longer exists.
   It now sits inside the blue overlay (.footer > div), so the overlay reaches
   the bottom of the page instead of leaving a strip of the photo uncovered. */

@media screen and (max-width: 1199px) {
  .footer > div {
      padding-bottom: 50px;
    }
}

/* ---- Floating contact buttons (left edge, desktop) ---- */

/* Fixed to the left edge of the screen */

.contact-float-side {
  position: fixed;
  left: 0;
  bottom: 100px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Each contact button: a rectangle rounded on the right */

.cf-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px; /* was 72px; widened 2026-11-19 so 11px text fits */
  padding: 7px 4px 6px;
  box-sizing: border-box;
  background: #2672b0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cf-side-item:hover {
  background: #1f5a8f;
  box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.32);
  color: #ffffff;
  transform: translateX(3px);
}

/* Animated gif */

.cf-side-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* Khung icon */

.cf-side-icon-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  color: #ffffff;
}

.cf-side-icon-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.cf-side-svg {
  transform-origin: center center;
  animation: cfMessShake 2.2s ease-in-out infinite;
}

/* Gentle shake effect for Messenger */

@keyframes cfMessShake {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  8% {
    transform: rotate(-14deg) scale(1.08);
  }
  16% {
    transform: rotate(14deg) scale(1.08);
  }
  24% {
    transform: rotate(-10deg) scale(1.05);
  }
  32% {
    transform: rotate(10deg) scale(1.05);
  }
  40% {
    transform: rotate(-5deg) scale(1.02);
  }
  48% {
    transform: rotate(5deg) scale(1.02);
  }
  56% {
    transform: rotate(0deg) scale(1);
  }
}

/* Main label */

.cf-side-label {
  font-size: 11px; /* was 9px (readability fix 2026-11-19) */
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.1px;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Secondary line / phone number */

.cf-side-sub {
  font-size: 11px; /* was 7.5px (readability fix 2026-11-19) */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 1px;
  display: block;
  width: 100%;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hidden on mobile / tablet at 991px and below */

@media screen and (max-width: 991px) {
  .contact-float-side {
      display: none !important;
    }
}

/* ---- Contact modal, footer offices slider and misc footer ---- */

#myModal .modal-content {
  padding: 40px 60px;
}

#myModal .modal-content h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #2672b0;
}

#myModal .modal-content label {
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
}

#myModal .modal-content label span {
  color: red;
}

#myModal .modal-content .form-control {
  font-style: italic;
  padding: 8px 10px;
  height: auto;
}

#myModal .modal-content button {
  background: #2672b0;
  border-radius: 20px;
  width: 120px;
  height: 30px;
  color: #fff;
  border: 1px solid #2672b0;
}

#myModal form {
  padding-top: 5px;
}

#myModal form > .form-group.clearfix {
  margin-bottom: 0;
}

/* Consent box in the profile popup (2026-11-20), same look as the project details popup's */
#myModal .profile-consent {
  margin: 4px 0 8px;
}

#myModal .modal-content .profile-consent label {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

#myModal .profile-consent a {
  color: #2672b0;
  text-decoration: underline;
}

#myModal .profile-consent input[aria-invalid="true"] {
  outline: 2px solid #d81319;
  outline-offset: 1px;
}

#myModal .profile-consent-error {
  min-height: 20px;
  margin: 0 0 8px;
  color: #d81319;
  font-size: 14px;
  text-align: center;
}

#myModal .profile-name-field {
  padding-left: 0;
  margin-bottom: 15px;
}

@media (max-width: 991px) {
  #myModal .profile-name-field {
      padding-right: 0;
    }
}

/* After the form: the three company profiles (setupProfilePopup in main.js) */
#myModal .profile-step-downloads h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  font-weight: 700;
  outline: none;
}

#myModal .profile-intro {
  margin: 0 0 18px;
  color: #475569;
}

#myModal .profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#myModal .profile-card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

#myModal .profile-card--main {
  border-color: #2672b0;
  background: #f0f6fb;
}

#myModal .profile-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2672b0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#myModal .profile-card h4 {
  margin: 0 0 4px;
  color: #1f5a8f;
  font-size: 17px;
  font-weight: 700;
}

#myModal .profile-card p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

#myModal .profile-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #2672b0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

#myModal .profile-dl:hover,
#myModal .profile-dl:focus-visible {
  background: #1f5a8f;
  color: #ffffff;
  text-decoration: none;
}

#myModal .profile-dl span {
  font-weight: 400;
  opacity: 0.85;
}

@media (max-width: 575px) {
  #myModal .modal-content {
    padding: 28px 20px;
  }
}

#myModal [data-replica-form-note] {
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  text-align: center;
}

input#profile-phone {
  padding-left: 50px !important;
}

.footer-top p {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 20px;
  margin-top: 10px;
}

.footer-map-link {
  color: #fff;
}

.footer-map-link:hover {
  color: #fff;
  text-decoration: none;
}

/* ================================================== FOOTER REPRESENTATIVE OFFICES SLIDER CSS ================================================== */

.footer-offices-section {
  width: 100%;
  text-align: left;
}

.footer-office-item {
  padding: 0 5px;
  box-sizing: border-box;
}

.footer-office-header {
  margin-bottom: 12px;
}

.footer-office-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: 0.3px;
}

.footer-office-line {
  display: block;
  width: 65px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.footer-office-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-office-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-top: 2px;
}

.footer-office-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.footer-office-address {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.45;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}

/* Owl Carousel dots trong footer */

.footer-offices-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.footer-offices-carousel .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: block;
  transition: all 0.25s ease;
}

.footer-offices-carousel .owl-dots .owl-dot.active span {
  background: #ffffff;
  width: 22px;
  border-radius: 4px;
}

a:focus {
  outline: 0 !important;
}

/* =====================================================================
   PAGE WIDTH SAFEGUARDS
   ---------------------------------------------------------------------
   These stop content from making the page wider than the window.
   ===================================================================== */

/* Lets long URLs in article text wrap on phones. Normal words are unaffected. */

.peb_intro {
  overflow-wrap: break-word;
}

/* =====================================================================
   SHARED HELPER CLASSES
   ---------------------------------------------------------------------
   These replaced style="..." attributes that were repeated across the site.
   !important keeps the same priority the inline style had.
   ===================================================================== */

/* Footer photo: steel roof frame from one of our own Philippine projects (2026-11-23; source
   assets/images/projects-ph/coca-cola-1.webp). Was a SEICO stock photo, 476a92e08e91-bg-footer.webp. */
.footer {
  background: url("../images/footer-bg-ph-project.webp") center 35% / cover no-repeat;
}

.u-btn-plain {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
}

.u-btn-noborder {
  border: none !important;
  outline: none !important;
}

.u-cert-85 {
  height: 85px !important;
  width: 85px !important;
}

.u-cert-90 {
  height: 90px !important;
  width: 90px !important;
}

.u-relative {
  position: relative !important;
}

.u-pad-right-50 {
  padding-right: 50px !important;
}

.u-fill-white {
  fill: #fff !important;
}

/* =====================================================================
   PAGE-SPECIFIC STYLES
   ---------------------------------------------------------------------
   Moved here from the <style> tags in each page.
   Rules that could also match on other pages are limited with :where(.page-name),
   which uses the class on that page's <body> tag and adds no specificity.
   ===================================================================== */

/* CSS style for home-certificates slider */

.home-certificates {
  padding: 50px 0;
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
}

:where(.page-home) .certificate-wrapper {
  position: relative;
  background: #fff;
  padding: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

:where(.page-home) .certificate-wrapper img {
  max-height: 280px;
  width: auto !important;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

:where(.page-home) .certificate-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(38, 114, 176, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

:where(.page-home) .certificate-hover i {
  color: #fff;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

:where(.page-home) .certificate-wrapper:hover {
  border-color: #2672b0;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.12);   /* neutral, was a blue glow */
}

:where(.page-home) .certificate-wrapper:hover img {
  transform: scale(1.05);
}

:where(.page-home) .certificate-wrapper:hover .certificate-hover {
  opacity: 1;
}

:where(.page-home) .certificate-wrapper:hover .certificate-hover i {
  transform: scale(1);
}

:where(.page-home) .certificates-slider .owl-nav [class*="owl-"] {
  color: #2672b0;
  margin: 0 !important;
  cursor: pointer;
  position: absolute !important;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 28px;
  background: #fff;
  font-size: 20px;
  border-radius: 50%;
  border: 1px solid #2672b0;
  top: 50% !important;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

:where(.page-home) .certificates-slider .owl-nav .owl-prev {
  left: -15px !important;
}

:where(.page-home) .certificates-slider .owl-nav .owl-next {
  right: -15px !important;
}

:where(.page-home) .certificates-slider .owl-nav [class*="owl-"]:hover {
  background: #2672b0;
  color: #fff;
}

@media (max-width: 767px) {
  :where(.page-home) .certificate-wrapper img {
      max-height: 220px;
    }

  :where(.page-home) .certificates-slider .owl-nav {
      display: none;
    }
}

/* ================================================== CENTER THE PARTNER LIST AND ITEMS ================================================== */

:where(.page-home) ul.partner {
  width: 85%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}

:where(.page-home) ul.partner li {
  width: 15%;
  margin: 8px;
  box-shadow: rgba(15, 23, 42, 0.18) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;   /* neutral (was blue-gray) */
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

:where(.page-home) ul.partner a.partner-logo {
  cursor: zoom-in;
}

:where(.page-home) ul.partner li:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

@media (max-width: 991px) {
  :where(.page-home) ul.partner {
      width: 100%;
      margin: 0 auto;
    }
}

@media (max-width: 450px) {
  :where(.page-home) ul.partner li {
      width: calc(50% - 16px);
    }
}

/* ================================================== EXTRA CSS SO SWIPER WORKS ON MOBILE ================================================== */

/* The general .swiper rule adds padding that the home page's slider must not have */

/* Use the slider on screens under 768px (mobile) */

@media (max-width: 767px) {
  :where(.page-home) .mobile-swiper-container {
      overflow: hidden;
      position: relative;
    }

  /* The logo row as a slider (Owl Carousel since 2026-11-23, was Swiper): the slider sets each
     slide's width, so the logo boxes drop their old grid width, margin and float. */

  :where(.page-home) ul.partner.owl-carousel li {
      float: none;
      width: auto;
      margin: 0;
    }
}

/* ================================================== PARTNER LOGO POPUP (Home) ==================================================
   Redesigned 2026-11-23: square corners like the rest of the site, a header strip with a counter,
   the logo on a white plate over a faint drawing grid (with corner marks), previous/next buttons,
   and the seico.vn project button below. */

.partner-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.partner-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;   /* visible (and focusable) at once while it fades in */
}

.partner-modal .partner-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.partner-modal .partner-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-top: 3px solid var(--hx-blue, #2672b0);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  text-align: left;
  transform: translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-modal.active .partner-modal-content {
  transform: translateY(0);
}

/* header strip: label, counter, close */
.partner-modal .partner-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 22px;
  border-bottom: 1px solid var(--hx-line, #e2e8f0);
}

.partner-modal .partner-modal-kicker {
  flex: 1;
  color: var(--hx-muted, #5f6e84);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-modal .partner-modal-count {
  color: var(--hx-navy, #1f5a8f);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.partner-modal .partner-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hx-line, #e2e8f0);
  border-radius: 2px;
  background: #ffffff;
  color: var(--hx-ink, #0f172a);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.partner-modal .partner-modal-close:hover,
.partner-modal .partner-modal-close:focus-visible {
  border-color: var(--hx-navy, #1f5a8f);
  background: var(--hx-navy, #1f5a8f);
  color: #ffffff;
}

/* stage: faint grid, logo plate in the middle, arrows at the sides */
.partner-modal .partner-modal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 290px;
  padding: 28px 72px;
  background-color: var(--hx-alt, #f0f6fb);
  background-image:
    linear-gradient(rgba(31, 90, 143, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 90, 143, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
}

.partner-modal .partner-modal-img-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 26px 30px;
  border: 1px solid var(--hx-line, #e2e8f0);
  background: #ffffff;
}

/* drawing-frame corner marks on the plate */
.partner-modal .partner-modal-img-box::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  --m: var(--hx-blue, #2672b0);
  background:
    linear-gradient(var(--m), var(--m)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--m), var(--m)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 1.5px 14px no-repeat;
  opacity: 0.55;
}

.partner-modal .partner-modal-img-box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.partner-modal .partner-modal-img-box img.is-swapping {
  opacity: 0;
}

.partner-modal .partner-modal-nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid var(--hx-navy, #1f5a8f);
  border-radius: 2px;
  background: #ffffff;
  color: var(--hx-navy, #1f5a8f);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.partner-modal .partner-modal-prev { left: 14px; }
.partner-modal .partner-modal-next { right: 14px; }

.partner-modal .partner-modal-nav:hover,
.partner-modal .partner-modal-nav:focus-visible {
  background: var(--hx-navy, #1f5a8f);
  color: #ffffff;
}

.partner-modal .partner-modal-nav[hidden] {
  display: none;
}

/* name and project button */
.partner-modal .partner-modal-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--hx-line, #e2e8f0);
}

.partner-modal .partner-modal-title {
  margin: 0;
  color: var(--hx-ink, #0f172a);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.partner-modal .partner-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 2px;
  background: var(--hx-blue, #2672b0);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.partner-modal .partner-modal-link:hover,
.partner-modal .partner-modal-link:focus {
  background: var(--hx-navy, #1f5a8f);
  color: #ffffff;
  text-decoration: none;
}

.partner-modal .partner-modal-link[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .partner-modal .partner-modal-stage {
    height: 230px;
    padding: 22px 58px;
  }

  .partner-modal .partner-modal-img-box {
    padding: 18px;
  }

  .partner-modal .partner-modal-prev { left: 8px; }
  .partner-modal .partner-modal-next { right: 8px; }

  .partner-modal .partner-modal-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .partner-modal .partner-modal-title {
    font-size: 20px;
  }

  .partner-modal .partner-modal-link {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-modal,
  .partner-modal .partner-modal-content,
  .partner-modal .partner-modal-img-box img {
    transition: none;
  }

  .partner-modal .partner-modal-content {
    transform: none;
  }
}

/* ===== end project card ===== */

@media screen and (max-width: 991px) {
  :where(.page-projects) .owl-nav .owl-next {
      transform: translateX(0) !important;
    }

  :where(.page-projects) .owl-nav {
      top: 0% !important;
      transform: translateY(-5px) !important;
      z-index: 100 !important;
      gap: 5px;
      justify-content: end !important;
    }

  :where(.page-projects) .owl-nav .owl-prev {
      opacity: 1 !important;
      transform: translateX(0) !important;
    }

}

:where(.page-projects) .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: -1;
}

/* World map sits behind the careers block -- starting at the heading -- and
         shows through the gaps between the cards. */

:where(.page-projects) .owl-nav i {
  font-size: 30px;
  background: #fff;
  padding: 0 5px;
  border: 1px solid #cccccca9;
}

:where(.page-projects) .owl-nav .owl-prev {
  transform: translateX(-100%);
  opacity: 0;
}

:where(.page-projects) .owl-nav .owl-next {
  transform: translateX(100%);
}

/* ---- Job detail template (careers/jobs/marketing-manager.html) ---- */

/* Section headings: same blue title and underline as the home page */

/* Closing call to action */

/* ---- International projects popup (built by setupInternationalProjectsPopup in main.js) ---- */

/* Sits above the sticky header and the phone menu. */

#intlProjectsModal {
  z-index: 1000020;
}

body.intl-popup-open .modal-backdrop {
  z-index: 1000010;
}

#intlProjectsModal .modal-dialog {
  max-width: 480px;
  margin: 60px auto;
}

#intlProjectsModal .modal-content {
  position: relative;
  padding: 36px 44px 28px;
  border: none;
  border-top: 4px solid #2672b0;
}

/* square corners (Bootstrap rounds .modal-content) */
#intlProjectsModal .modal-dialog .modal-content {
  border-radius: 0;
}

#intlProjectsModal .logo img {
  max-height: 34px;
}

#intlProjectsModal h3 {
  margin: 18px 0 10px;
  color: #2672b0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

#intlProjectsModal .intl-popup-text {
  margin-bottom: 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

#intlProjectsModal .intl-popup-text strong {
  color: #0f172a;
}

#intlProjectsModal label {
  font-size: 15px;
  font-weight: 400;
}

#intlProjectsModal label span {
  margin-left: 2px;
  color: red;
}

#intlProjectsModal .form-control {
  height: auto;
  padding: 9px 12px;
  font-style: italic;
}

#intlProjectsModal .form-control[aria-invalid="true"] {
  border-color: #d81319;
  box-shadow: none;
  outline: 2px solid rgba(216, 19, 25, 0.35);
  outline-offset: 0;
}

#intlProjectsModal .intl-popup-error {
  min-height: 20px;
  margin: 0 0 8px;
  color: #d81319;
  font-size: 13px;
  text-align: center;
}

#intlProjectsModal .intl-popup-submit {
  min-width: 190px;
  padding: 9px 22px;
  border: 1px solid #2672b0;
  border-radius: 20px;
  background: #2672b0;
  color: #ffffff;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

#intlProjectsModal .intl-popup-submit:hover,
#intlProjectsModal .intl-popup-submit:focus {
  border-color: #1f5a8f;
  background: #1f5a8f;
}

#intlProjectsModal .intl-popup-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

#intlProjectsModal .intl-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
}

#intlProjectsModal .intl-popup-close:hover,
#intlProjectsModal .intl-popup-close:focus {
  background: #e2e8f0;
  color: #0f172a;
}

#intlProjectsModal .intl-popup-foot {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  #intlProjectsModal .modal-dialog {
      margin: 30px 12px;
    }

  #intlProjectsModal .modal-content {
      padding: 30px 22px 22px;
    }
}

/* ---- About page (about/about.html, body.page-about) ---- */

/* One page with every About topic; menu and breadcrumb follow the section on screen (setupAboutPage in main.js). */

html:has(body.page-about) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.page-about) {
      scroll-behavior: auto;
    }
}

/* Branch & factory network map (pins and details are drawn by main.js) */

:where(.page-about) .ab-map-tabs {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 30px;
  background: #f1f5f9;
}

:where(.page-about) .ab-map-tabs > li > a {
  padding: 8px 22px;
  border-radius: 25px;
  color: #475569;
  font-weight: 600;
}

:where(.page-about) .ab-map {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

:where(.page-about) .ab-map .map-bg {
  display: block;
  width: 100%;
  height: auto;
}

:where(.page-about) .ab-map .map-pins-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

:where(.page-about) .ab-map .map-pin {
  pointer-events: auto;
}

:where(.page-about) .ab-map-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

:where(.page-about) .ab-map-card .info-image-container {
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

:where(.page-about) .ab-map-card #info-loc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

:where(.page-about) .ab-map-card .info-details-container {
  padding: 18px;
}

:where(.page-about) .ab-map-card #info-loc-name {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2672b0;
  color: #2672b0;
  font-size: 15px;
  font-weight: 700;
}

:where(.page-about) .ab-map-card .info-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.page-about) .ab-map-card .info-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

:where(.page-about) .ab-map-card .info-contact-list i {
  width: 14px;
  margin-top: 3px;
  color: #2672b0;
  text-align: center;
}

:where(.page-about) .ab-map-list {
  max-height: 200px;
  margin-top: 16px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

:where(.page-about) .ab-map-list .list-group {
  margin-bottom: 0;
}

/* =====================================================================
   SITE-WIDE REFRESH (inner pages)
   ---------------------------------------------------------------------
   The look of the About page applied to the other inner pages: white
   cards with soft shadows, brand-blue headings with a short accent bar,
   highlighted side menus. Header, footer and home page are unchanged.
   Each page's <body> says which layout it uses:
     layout-sidebar   pages with the left menu (products, services, careers, job)
     layout-template  pages built from the content template (shared/, placeholders)
     layout-project   project detail pages (projects/details/)
     page-contact     the Contact page
   ===================================================================== */

/* ---- Article text on menu and template pages ---- */

.toc-container {
  border-top: 3px solid #2672b0;
}

/* ---- Template pages (placeholder layout) ---- */

.tpl-content {
  margin-top: 24px;
}

/* ---- Contact page ---- */

/* ---- Long-form article pages built on the template (e.g. steel structure design to American standards) ---- */

.std-page {
  font-size: 15px;
  line-height: 1.7;
}

.std-page .std-lead {
  color: #1e293b;
  font-size: 17px;
}

.std-page .std-figure {
  margin: 26px 0;
}

.std-page .std-figure img {
  display: block;
  width: 100%;
}

.std-page .std-figure figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

.std-page .std-table-wrap {
  margin: 18px 0 10px;
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.std-page .std-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.std-page .std-table th {
  padding: 12px 14px;
  background: #2672b0;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.std-page .std-table td {
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  vertical-align: top;
}

.std-page .std-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.std-page .std-table td:last-child {
  color: #2672b0;
  font-weight: 700;
  white-space: nowrap;
}

.std-page .std-note {
  color: #64748b;
  font-size: 13px;
}

.std-page .std-steps > li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.std-page .std-refs {
  padding: 16px 18px 16px 36px;
  border-radius: 6px;
  background: #f3f5f9;
  font-size: 14px;
}

@media (max-width: 600px) {
  .std-page .std-table-wrap {
      overflow: visible;
      box-shadow: none;
    }

  .std-page .std-table {
      min-width: 0;
      background: transparent;
    }

  .std-page .std-table thead {
      display: none;
    }

  .std-page .std-table,
    .std-page .std-table tbody,
    .std-page .std-table tr,
    .std-page .std-table td {
      display: block;
    }

  .std-page .std-table tr {
      margin-bottom: 14px;
      overflow: hidden;
      border-radius: 6px;
      background: #ffffff;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    }

  .std-page .std-table td,
    .std-page .std-table tbody tr:nth-child(even) td {
      padding: 8px 14px;
      border-top: 0;
      background: transparent;
    }

  .std-page .std-table td:first-child {
      padding-top: 12px;
      background: #e9edf4;
      color: #2672b0;
    }

  .std-page .std-table td:not(:first-child):before {
      content: attr(data-label);
      display: block;
      color: #64748b;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

  .std-page .std-table td:last-child {
      padding-bottom: 12px;
      white-space: normal;
    }
}

/* ---- Logo "PEB Philippines" (header, phone menu, footer, popups) ----
   Image files (cropped from the originals in assets/logo/):
     assets/images/logo-peb-philippines-horizontal.png  header + popups (from logo 1)
     assets/images/logo-peb-philippines-stacked.png     footer (from logo 3)
   In the header the logo and the "Powered by SEICO" line are one link to the home page. */

a.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
}

a.brand-logo:hover,
a.brand-logo:focus {
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.brand-powered {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px; /* min. 11px (readability fix 2026-11-19) */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* desktop header: the link fills the 80px-high logo column */

.vtc-menu-desktop .midde .one > a.brand-logo {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Header logo sizes (owner's request, 2026-11-13):
   - screens that show the whole menu (1200px and up): 250px, a little
     smaller so it sits comfortably beside the menu (220px while the bar floats);
   - screens where the menu collapses behind the button: big, up to 290px.
   The "Powered by SEICO Group" line scales with the logo so the pair
   keeps its proportions (text size = 4.75% of the logo width). */

.vtc-menu-desktop .midde .one {
  width: 24%;          /* room for the 250px logo */
}

.vtc-menu-desktop .midde .two {
  width: 71%;          /* the menu needs about 680px at 1200px */
}

.vtc-menu-desktop .midde .one .brand-logo-img {
  width: 250px;
}

.vtc-menu-desktop .midde .one .brand-powered {
  margin-top: 6px;
  font-size: 11.9px;
  letter-spacing: 1.9px;
}

/* phone bar (centred) and slide-out menu: the logo takes all the width
   left between the menu button and an equal gap on the right, up to 320px */

@media (max-width: 1199px) {
  .vtc-menu-mobile {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vtc-menu-mobile .one,
  .vtc-menu-mobile .three {
    flex: 0 0 32px;
    width: 32px;
  }

  .vtc-menu-mobile .two {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

.vtc-menu-mobile a.logo-x.brand-logo {
  align-items: center;
}

/* 90% of the room left beside the menu button, up to 290px (made a little smaller on 2026-11-13) */
.vtc-menu-mobile a.logo-x img.brand-logo-img {
  width: min(290px, calc((100vw - 96px) * 0.9));
}

.vtc-menu-mobile .brand-powered {
  margin-top: 6px;
  font-size: max(11px, min(13.8px, calc((100vw - 96px) * 0.0428)));
  letter-spacing: min(2.2px, calc((100vw - 96px) * 0.0068));
}

.vtc-small-menu .vtc-small-menu-header .brand-logo-img {
  width: 230px;
}

.vtc-small-menu .vtc-small-menu-header .brand-powered {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1.65px;
}

.vtc-small-menu .vtc-small-menu-header .logo-x {
  width: auto;
}

/* ---- DETACHING NAVIGATION BAR (2026-11-13, idea from pebphilsteel.com) ----
   setupDetachingNav() in main.js moves the bar through two states:
   - html.nav-stuck: the menu bar (desktop) or the logo bar (phones and
     tablets) is pinned to the top of the window, looking just as it does
     in the header (the top contact strip scrolls away);
   - html.nav-stuck.nav-detached: the bar pulls away from the edges into
     a rounded, frosted white card 12px below the top. Every change between
     the two is a transition, so the bar glides instead of popping.
   html.nav-drop: the page opened far down (reload, link to a section), so
   the card drops in from above. html.nav-instant: no transitions while
   the script re-measures after a resize. */

@keyframes hx-nav-drop {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

html.nav-stuck .vtc-menu-desktop .midde,
html.nav-stuck .vtc-menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;                       /* above the page, below popups (1050) and the phone menu */
  margin: 0 auto;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0), 0 0 0 rgba(15, 23, 42, 0), 0 0 0 rgba(0, 0, 0, 0);
  transition:
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;
}

html.nav-stuck .vtc-menu-desktop .midde {
  max-width: 100vw;                    /* a number, so it can shrink smoothly to the card width */
}

html.nav-stuck .vtc-menu-mobile {
  width: auto;                         /* follow left and right instead of the 100% width in peb-common.css */
}

html.nav-detached .vtc-menu-desktop .midde,
html.nav-detached .vtc-menu-mobile {
  top: 12px;
  border-bottom-color: transparent;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 32px rgba(15, 23, 42, 0.14), 0 1px 4px rgba(0, 0, 0, 0.06);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.nav-detached .vtc-menu-desktop .midde,
  html.nav-detached .vtc-menu-mobile {
    background-color: rgba(255, 255, 255, 0.97);
  }
}

html.nav-drop .vtc-menu-desktop .midde,
html.nav-drop .vtc-menu-mobile {
  animation: hx-nav-drop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html.nav-instant .vtc-menu-desktop .midde,
html.nav-instant .vtc-menu-mobile,
html.nav-instant .vtc-menu-desktop .midde .one .brand-logo-img,
html.nav-instant .vtc-menu-desktop .midde .one .brand-powered {
  transition: none !important;
}

/* desktop: the card is as wide as the page content, centered; the logo
   shrinks from 250px to 220px as it detaches */
.vtc-menu-desktop .midde .one .brand-logo-img {
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtc-menu-desktop .midde .one .brand-powered {
  transition: font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1), margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html.nav-detached .vtc-menu-desktop .midde {
  left: 16px;
  right: 16px;
  max-width: 1200px;
  padding: 2px 0;
}

html.nav-detached .vtc-menu-desktop .midde > .container {
  width: auto;
  max-width: 1170px;
}

html.nav-detached .vtc-menu-desktop .midde .one .brand-logo-img {
  width: 220px;
}

html.nav-detached .vtc-menu-desktop .midde .one .brand-powered {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 1.35px;
}

/* the Products and Projects panels open just below the floating card
   (85px = card height minus its 2px top padding) instead of over it;
   an invisible strip under each menu item keeps the hover alive across the gap */
html.nav-detached .vtc-menu-desktop .midde .menus ul.main_menu li.has-mega-project > .sub-menu.menu-project-mega {
  top: 100px;
}

html.nav-detached .vtc-menu-desktop .midde .menus ul.main_menu li.has-mega-project:hover > .sub-menu.menu-project-mega {
  top: 85px;
}

html.nav-detached .vtc-menu-desktop .midde .two .menus ul.main_menu li.has-mega-project > a::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 28px;
}

/* phones and tablets: the logo bar, inset 12px from each side (the logo keeps its size) */
html.nav-detached .vtc-menu-mobile {
  left: 12px;
  right: 12px;
}

/* phones and tablets: as the bar detaches, the full logo fades and shrinks
   away and logo 2 (the "PEB" square, assets/images/logo-peb-square.png from
   assets/logo/2.png) fades in, so the floating bar is small and tidy
   (owner's idea, 2026-11-13). The logo link's height is animated with
   max-height: its natural height is the logo (17.5% of its width) plus the
   "Powered by" line (4.28% of the width) plus the 6px gap between them. */
.vtc-menu-mobile a.logo-x.brand-logo {
  position: relative;
  max-height: calc(min(290px, (100vw - 96px) * 0.9) * 0.2178 + 8px);
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtc-menu-mobile a.logo-x img.brand-logo-img,
.vtc-menu-mobile a.logo-x .brand-powered {
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtc-menu-mobile a.logo-x.brand-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 8px;
  background: #192845 url("../images/logo-peb-square.png") center / cover no-repeat;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

html.nav-detached .vtc-menu-mobile a.logo-x.brand-logo {
  max-height: 44px;
}

html.nav-detached .vtc-menu-mobile a.logo-x img.brand-logo-img,
html.nav-detached .vtc-menu-mobile a.logo-x .brand-powered {
  opacity: 0;
  transform: scale(0.8);
}

html.nav-detached .vtc-menu-mobile a.logo-x.brand-logo::after {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.1s;
}

html.nav-instant .vtc-menu-mobile a.logo-x.brand-logo,
html.nav-instant .vtc-menu-mobile a.logo-x img.brand-logo-img,
html.nav-instant .vtc-menu-mobile a.logo-x .brand-powered,
html.nav-instant .vtc-menu-mobile a.logo-x.brand-logo::after {
  transition: none !important;
}

/* sections reached from a link on another page stop below the floating bar */
html {
  scroll-padding-top: 112px;
}

/* footer: the logo is navy on white, so it sits on a white card */

.brand-footer-card {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
}

.brand-footer-card img {
  display: block;
  width: 150px;
  height: auto;
}

/* popups */

.modal .logo img,
#intlProjectsModal .logo img {
  width: 210px;
  max-width: 100%;
  height: auto;
  max-height: none;
}

/* About page: content images carry width/height attributes so the browser reserves their
   space before they load (keeps the menu and in-page jumps accurate). This keeps their
   proportions when CSS scales them down; zero specificity, so any sized rule still wins. */

:where(.page-about) :where(main) img {
  height: auto;
}

/* ---- Colour scheme matched to the PEB Philippines logo ----
   Logo navy  #1f5a8f  deep backgrounds, dark ends of gradients, hover states
   Main blue  #2672b0  headings, links, buttons, active menu items (was #0c4da2)
   Accent red #d81319  unchanged (heading underline and small details)
   The footer uses a navy overlay taken from the logo; the top contact strip is styled in
   "HEADER CONTACT STRIP" below. */

.footer > div {
  background: linear-gradient(180deg, rgba(31, 90, 143, 0.86) 0%, rgba(31, 90, 143, 0.94) 100%);
}

/* =====================================================================
   CORPORATE DESIGN ("hx"): HOME PAGE AND CONTACT PAGE
   ---------------------------------------------------------------------
   Engineering-minimal building blocks: hero, key figures, numbered
   section headings (hx-head), cards, steps, contact band, form card.
   Every rule is scoped to .hx, so only pages whose <main> has the class
   "hx" use it: index.html (<main class="hx hx-home">) and
   contact/contact.html (<main class="hx hx-contact-page">). Contact
   page parts are in "CONTACT PAGE" further down. Colors follow the
   steel-blue palette chosen 2026-11-12 to sit with the navy logo
   (#192845) and stay clear of PEBSteel's royal blue #0031a7:
   deep #1f5a8f, blue #2672b0, red #d81319.
   ===================================================================== */

.hx {
  --hx-navy: #1f5a8f;
  --hx-blue: #2672b0;
  --hx-red: #d81319;
  --hx-red-dark: #b00f14;
  --hx-ink: #0f172a;
  --hx-text: #475569;
  --hx-muted: #5f6e84;
  --hx-line: #e2e8f0;
  --hx-rule: #cbd5e1;
  --hx-alt: #f0f6fb;
  --hx-sky: #d3e9fa;
  color: var(--hx-text);
}

.hx .hx-section {
  padding: 96px 0;
  background: #ffffff;
}

.hx .hx-section--alt {
  background: var(--hx-alt);
}

/* ---- Section headings ---- */

.hx .hx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 48px;
}

.hx .hx-head-main {
  flex: 1 1 420px;
}

.hx .hx-head-side {
  flex: 0 1 380px;
}

.hx .hx-head-side p {
  margin: 0 0 12px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.6;
}

.hx .hx-title {
  margin: 0;
  color: var(--hx-navy);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  text-transform: none;
}

.hx .hx-title--light {
  color: #ffffff;
}

.hx .hx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.hx .hx-link i,
.hx .hx-card-more i,
.hx .hx-btn i {
  transition: transform 0.2s ease;
}

.hx .hx-link:hover,
.hx .hx-link:focus {
  color: var(--hx-navy);
  text-decoration: none;
}

.hx .hx-link:hover i,
.hx .hx-btn:hover i {
  transform: translateX(4px);
}

/* ---- Buttons ---- */

.hx .hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hx .hx-btn--primary {
  background: var(--hx-red);
  color: #ffffff;
}

.hx .hx-btn--primary:hover,
.hx .hx-btn--primary:focus {
  background: var(--hx-red-dark);
  color: #ffffff;
  text-decoration: none;
}

.hx .hx-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.hx .hx-btn--ghost:hover,
.hx .hx-btn--ghost:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

/* ---- Hero ---- */

.hx .hx-hero {
  position: relative;
  overflow: hidden;
  background: var(--hx-navy);
  color: #ffffff;
}

.hx .hx-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center 35%;
  background-size: cover;
}

/* Hero photo (preloaded in index.html; a 1280px copy on phones) */
.hx-home .hx-hero-bg {
  background-image: url("../images/d48707e0f4d3-thiet-ke-khung-thep-nha-cong-nghiep.webp");
}

@media (max-width: 767px) {
  .hx-home .hx-hero-bg {
    background-image: url("../images/home-hero-1280.webp");
  }
}

.hx .hx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(31, 90, 143, 0.96) 0%, rgba(31, 90, 143, 0.86) 42%, rgba(31, 90, 143, 0.35) 75%, rgba(31, 90, 143, 0.15) 100%);
}

.hx .hx-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 150px;
}

.hx .hx-hero-title {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  text-transform: none;
}

.hx .hx-hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

.hx .hx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hx .hx-hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 560px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hx .hx-hero-certs span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--hx-red);
  vertical-align: middle;
}

/* ---- Key figures ---- */

.hx .hx-stats {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  /* The card overlaps the hero by 72px. Below that line the section is the same light blue
     as the video section that follows (.hx-video-intro), so the card sits on one continuous
     background instead of ending on a white strip (fixed 2026-11-23). */
  padding-bottom: 40px;
  background: linear-gradient(to bottom, transparent 72px, var(--hx-alt) 72px);
}

.hx .hx-video-intro {
  padding-top: 56px;   /* the stats section above already supplies 40px of the same blue */
}

.hx .hx-stats-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* 5 figures since 2026-11-13 */
  margin: 0;
  padding: 0;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  list-style: none;
}

.hx .hx-stats-list li {
  padding: 30px 32px;
  border-left: 1px solid var(--hx-line);
}

.hx .hx-stats-list li:first-child {
  border-left: 0;
}

.hx .hx-stat-value {
  display: block;
  color: var(--hx-navy);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.hx .hx-stat-label {
  display: block;
  margin-top: 10px;
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---- Product cards ---- */

.hx .hx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hx .hx-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  border-radius: 2px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hx .hx-card:hover,
.hx .hx-card:focus {
  border-color: var(--hx-blue);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
}

.hx .hx-card-img {
  display: block;
  padding-top: 62%;
  background-position: center;
  background-size: cover;
}

.hx .hx-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
  border-top: 3px solid var(--hx-navy);
}

.hx .hx-card:hover .hx-card-body {
  border-top-color: var(--hx-red);
}

.hx .hx-card-title {
  display: block;
  color: var(--hx-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .hx-card-text {
  display: block;
  flex: 1;
  margin-top: 10px;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.6;
}

.hx .hx-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--hx-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hx .hx-card:hover .hx-card-more i {
  transform: translateX(4px);
}

/* ---- Delivery process ---- */

.hx .hx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hx-rule);
  list-style: none;
}

.hx .hx-steps li {
  position: relative;
}

.hx .hx-steps li::before {   /* node on the line */
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 9px;
  height: 9px;
  background: var(--hx-red);
}

.hx .hx-steps li:first-child::before {
  left: 0;
}

.hx .hx-step {
  display: block;
  height: 100%;
  padding: 36px 36px 8px 0;
  color: inherit;
  text-decoration: none;
}

.hx .hx-steps li + li .hx-step {
  padding-left: 36px;
  border-left: 1px solid var(--hx-rule);
}

.hx .hx-step:hover,
.hx .hx-step:focus {
  color: inherit;
  text-decoration: none;
}

.hx .hx-step-num {
  display: block;
  color: transparent;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  -webkit-text-stroke: 1px var(--hx-blue);
  transition: color 0.25s ease;
}

.hx .hx-step:hover .hx-step-num,
.hx .hx-step:focus .hx-step-num {
  color: var(--hx-blue);
}

.hx .hx-step-title {
  display: block;
  margin-top: 18px;
  color: var(--hx-navy);
  font-size: 20px;
  font-weight: 700;
}

.hx .hx-step-text {
  display: block;
  margin-top: 10px;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- About + reasons to partner ---- */

.hx .hx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hx .hx-about-text > p:not(.hx-eyebrow) {
  margin: 22px 0 26px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}

.hx .hx-about-media {
  position: relative;
}

.hx .hx-about-media::before {   /* offset outline frame */
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  border: 1px solid var(--hx-blue);
  opacity: 0.35;
}

.hx .hx-video {
  position: relative;
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hx .hx-why {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--hx-line);
}

.hx .hx-why-title {
  margin: 0 0 28px;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-why-list li {
  display: flex;
  gap: 16px;
  color: var(--hx-ink);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-why-num {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--hx-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- Featured projects (carousel markup is shared with the original) ---- */

.hx .home-project.hx-projects {
  max-width: none;
  margin: 0;
  padding: 96px 0;
}

/* ---- Customers & partners ---- */

.hx .home-partner.hx-partners {
  background: #ffffff;
}

.hx .hx-partners ul.partner a.partner-logo img {
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.hx .hx-partners ul.partner a.partner-logo:hover img,
.hx .hx-partners ul.partner a.partner-logo:focus img,
.hx .hx-partners ul.partner li:hover a.partner-logo img {
  filter: none;
  opacity: 1;
}

/* the whole box opens the enlarged logo (main.js), so it shows the zoom cursor everywhere */

.hx .hx-partners ul.partner li {
  cursor: zoom-in;
}

/* ---- Carousel buttons (phones), partner logos + certificates (2026-11-23) ----
   Under 768px both sliders get a pair of previous/next buttons below them (wired in main.js).
   Wider screens don't need them: the logos are a grid and the certificates keep their side arrows. */

.hx-carousel-nav {
  display: none;
}

@media (max-width: 767px) {
  /* The logo row as a slider fills the full width (Owl Carousel since 2026-11-23). */
  .hx .hx-partners ul.partner.owl-carousel {
    width: 100%;
    margin: 0;
  }

  .hx .hx-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }

  .hx .hx-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--hx-navy);
    border-radius: 2px;
    background: #ffffff;
    color: var(--hx-navy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .hx .hx-carousel-btn:active {
    background: var(--hx-navy);
    color: #ffffff;
  }

  .hx .hx-carousel-btn:focus-visible {
    outline: 2px solid var(--hx-navy);
    outline-offset: 2px;
  }
}

/* ---- Contact & consultation ---- */

.hx .hx-contact {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--hx-navy);
  color: rgba(255, 255, 255, 0.8);
}

.hx .hx-contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.hx .hx-contact-lead {
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.hx .hx-contact-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.hx .hx-contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-contact-list i {
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--hx-sky);
  font-size: 16px;
  text-align: center;
}

.hx .hx-contact-list a {
  color: #ffffff;
  text-decoration: none;
}

.hx .hx-contact-list a:hover,
.hx .hx-contact-list a:focus {
  text-decoration: underline;
}

.hx .hx-contact-list strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
}

.hx .hx-form-card {
  padding: 40px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  color: var(--hx-text);
}

.hx .hx-form-title {
  margin: 0;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-form-note {
  margin: 6px 0 24px;
  color: var(--hx-muted);
  font-size: 13px;
}

/* ---- Tablet ---- */

@media (max-width: 1199px) {
  .hx .hx-hero-title {
      font-size: 46px;
    }

  /* five figures in the numbers row: tighter so "5,700+" fits at 992-1199px */
  .hx .hx-stats-list li {
      padding: 26px 20px;
    }

  .hx .hx-stat-value {
      font-size: 34px;
    }
}

@media (max-width: 991px) {
  .hx .hx-section,
    .hx .hx-contact,
    .hx .home-project.hx-projects {
      padding: 72px 0;
    }

  .hx .hx-cards {
      grid-template-columns: repeat(2, 1fr);
    }

  .hx .hx-stats-list {
      grid-template-columns: repeat(2, 1fr);
    }

  .hx .hx-stats-list li:nth-child(3) {
      border-left: 0;
    }

  .hx .hx-stats-list li:nth-child(n + 3) {
      border-top: 1px solid var(--hx-line);
    }

  .hx .hx-stats-list li:nth-child(5) {   /* the odd fifth figure spans the row */
      grid-column: 1 / -1;
      border-left: 0;
    }

  .hx .hx-steps {   /* becomes a vertical timeline */
      grid-template-columns: 1fr;
      border-top: 0;
    }

  .hx .hx-steps li .hx-step,
    .hx .hx-steps li + li .hx-step {
      padding: 4px 0 36px 32px;
      border-left: 1px solid var(--hx-rule);
    }

  .hx .hx-steps li::before,
    .hx .hx-steps li:first-child::before {
      top: 8px;
      left: -4px;
    }

  .hx .hx-about-grid,
    .hx .hx-contact-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }

  .hx .hx-why-list {
      grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Phone ---- */

@media (max-width: 767px) {
  .hx .hx-hero::before {
      background: linear-gradient(180deg, rgba(31, 90, 143, 0.86) 0%, rgba(31, 90, 143, 0.94) 100%);
    }

  .hx .hx-hero-inner {
      padding-top: 64px;
      padding-bottom: 120px;
    }

  .hx .hx-hero-title {
      font-size: 34px;
      letter-spacing: -0.5px;
    }

  .hx .hx-hero-lead {
      font-size: 16px;
    }

  .hx .hx-btn {
      flex: 1 1 auto;
      justify-content: center;
    }

  .hx .hx-title {
      font-size: 28px;
    }

  .hx .hx-head {
      margin-bottom: 32px;
    }

  .hx .hx-cards {
      grid-template-columns: 1fr;
      gap: 20px;
    }

  .hx .hx-stats-list li {
      padding: 22px 20px;
    }

  .hx .hx-stat-value {
      font-size: 30px;
    }

  .hx .hx-step-num {
      font-size: 44px;
    }

  .hx .hx-why {
      margin-top: 56px;
    }

  .hx .hx-why-list {
      grid-template-columns: 1fr;
      gap: 20px;
    }

  .hx .hx-about-media::before {
      display: none;
    }

  .hx .hx-form-card {
      padding: 28px 22px;
    }
}

/* customer logos: flat logo wall on tablet/desktop (phones keep the swipe slider) */

@media (min-width: 768px) {
  .hx .hx-partners ul.partner {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      width: 100%;
      border-top: 1px solid var(--hx-line);
      border-left: 1px solid var(--hx-line);
    }

  .hx .hx-partners ul.partner li {
      width: auto;
      height: 112px;
      margin: 0;
      border: 0;
      border-right: 1px solid var(--hx-line);
      border-bottom: 1px solid var(--hx-line);
      border-radius: 0;
      background: #ffffff;
      box-shadow: none;
    }

  .hx .hx-partners ul.partner li:hover {
      background: var(--hx-alt);
      box-shadow: none;
      transform: none;
    }

  .hx .hx-partners ul.partner li img {
      border-radius: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hx .hx-partners ul.partner {
      grid-template-columns: repeat(4, 1fr);
    }
}

/* phones: product cards sit side by side with their photo to keep the list short */

@media (max-width: 767px) {
  .hx .hx-card {
      flex-direction: row;
    }

  .hx .hx-card-img {
      flex: 0 0 38%;
      padding-top: 0;
      min-height: 150px;
    }

  .hx .hx-card-body {
      padding: 16px 16px 16px 18px;
      border-top: 0;
      border-left: 3px solid var(--hx-navy);
    }

  .hx .hx-card:hover .hx-card-body {
      border-left-color: var(--hx-red);
    }

  .hx .hx-card-title {
      font-size: 16px;
    }

  .hx .hx-card-text {
      font-size: 13px;
    }

  .hx .hx-card-more {
      margin-top: 12px;
    }
}

/* ---- Back-to-top button (every page; added by setupBackToTop in assets/js/main.js) ----
   is-visible  : drops down into the corner with a small bounce (btt-drop)
   is-leaving  : rises and fades when the visitor scrolls back to the top by hand (btt-rise)
   is-launching: travels up the screen while the page glides to the top after a click (btt-launch) */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);   /* a light edge so the button still shows over the dark footer */
  border-radius: 4px;
  background: #1f5a8f;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.2s ease;
}

.back-to-top.is-visible,
.back-to-top.is-leaving,
.back-to-top.is-launching {
  visibility: visible;
}

.back-to-top.is-visible {
  opacity: 1;
  animation: btt-drop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.back-to-top.is-leaving {
  animation: btt-rise 0.35s ease-in both;
}

.back-to-top.is-launching {
  pointer-events: none;
  animation: btt-launch var(--btt-launch-ms, 800ms) cubic-bezier(0.55, 0, 0.45, 1) both;
}

@keyframes btt-drop {
  0% { opacity: 0; transform: translateY(-48px); }
  60% { opacity: 1; transform: translateY(6px); }
  80% { transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes btt-rise {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-40px); }
}

@keyframes btt-launch {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70vh); }
}

.back-to-top:hover {
  background: #2672b0;
}

.back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -5px;
  background: #2672b0;
}

@media (max-width: 767px) {
  .back-to-top {
      right: 14px;
      bottom: 14px;
      width: 42px;
      height: 42px;
    }
}

/* =====================================================================
   CONTACT PAGE (contact/contact.html, <main class="hx hx-contact-page">)
   Uses the shared "hx" design above, plus: page header, message section,
   form fields and location cards (map on top, details below).
   ===================================================================== */

/* ---- Page header (also usable by other hx pages) ---- */

.hx .hx-pagehero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--hx-navy) 0%, var(--hx-blue) 100%);
  color: #ffffff;
}

.hx .hx-pagehero-inner {
  position: relative;
  padding-top: 56px;
  padding-bottom: 64px;
}

/* ---- Engineering grid behind page headers (owner's request 2026-11-23) ----
   Graph-paper look: a fine 16px grid plus a major line every 80px, in white at 2% and 4.5%.
   It is meant to be barely there: you see it if you look for it, never over the text. It is
   lighter on the left, behind the title, and fully visible toward the right.
   Used on the 28 inner page headers (.hx-pagehero) and the dark side of the Home hero (.hx-hero).
   Note: a stronger grid (5%, 64px) was removed on 2026-11-20 when every design-checker flag was
   fixed; this one was asked for on purpose. */
.hx .hx-pagehero::before,
.hx .hx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 60%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 60%);
  pointer-events: none;
}

/* Home: above the blue overlay, under the text; it fades out over the photo on the right. */
.hx .hx-hero::after {
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 30%, transparent 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 30%, transparent 75%);
}

@media (max-width: 767px) {
  /* Phones: the Home hero is evenly blue, so the grid can run across it like on the other pages */
  .hx .hx-hero::after {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 60%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, #000000 60%);
  }
}

.hx .hx-crumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  list-style: none;
  text-transform: uppercase;
}

.hx .hx-crumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--hx-red);
}

.hx .hx-crumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.hx .hx-crumb a:hover,
.hx .hx-crumb a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.hx .hx-pagehero-title {
  margin: 0;
  color: #ffffff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  text-transform: none;
}

.hx .hx-pagehero-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.6;
}

/* Buttons under a page header's text (Contact page: "Request a consultation", 2026-11-19) */
.hx .hx-pagehero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---- 01 Message ---- */

.hx .hx-message-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.hx .hx-message-lead {
  margin: 22px 0 32px;
  color: var(--hx-text);
  font-size: 16px;
  line-height: 1.7;
}

.hx .hx-direct {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-direct li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hx-line);
}

.hx .hx-direct li:last-child {
  border-bottom: 1px solid var(--hx-line);
}

.hx .hx-direct-icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: var(--hx-navy);
  color: #ffffff;
  font-size: 18px;
}

.hx .hx-direct-label {
  display: block;
  margin-bottom: 3px;
  color: var(--hx-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hx .hx-direct a {
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.hx .hx-direct a:hover,
.hx .hx-direct a:focus {
  color: var(--hx-blue);
  text-decoration: underline;
}

.hx-contact-page .hx-form-card {
  border: 1px solid var(--hx-line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hx .hx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hx .hx-field {
  display: block;
  margin: 0;
  font-weight: 400;
}

.hx .hx-field--full {
  grid-column: 1 / -1;
}

.hx .hx-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--hx-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Required-field star on the Contact and Consultation forms (2026-11-20): red and a bit larger,
   like the popups' red stars. */
.hx .hx-req {
  margin-left: 1px;
  color: var(--hx-red);
  font-size: 15px;
  font-weight: 700;
  line-height: 0;
}

/* A question too long for capitals (consultation page, 2026-11-19) */
.hx .hx-field-label.hx-field-label--long {
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.hx .hx-field .form-control {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hx-rule);
  border-radius: 2px;
  box-shadow: none;
  color: var(--hx-ink);
  font-size: 15px;
}

.hx .hx-field textarea.form-control {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.hx .hx-field .form-control:focus {
  border-color: var(--hx-blue);
  box-shadow: none;
  outline: 2px solid var(--hx-blue);
  outline-offset: 1px;
}

.hx .hx-field .form-control[aria-invalid="true"] {
  border-color: var(--hx-red);
}

.hx .hx-btn--block {
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  border: 0;
}

/* ---- 02/03 Location cards: big map, clear details ---- */

.hx .hx-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hx .hx-loc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.hx .hx-loc-map {
  position: relative;
  height: 340px;
  border-bottom: 3px solid var(--hx-navy);
  background: #e5e3df;
}

.hx .hx-loc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hx .hx-loc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 28px;
}

.hx .hx-loc-title {
  margin: 0 0 12px;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-loc-list {
  align-self: stretch;
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hx .hx-loc-list li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-ink);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-loc-list li:last-child {
  border-bottom: 0;
}

.hx .hx-loc-list i {
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--hx-blue);
  font-size: 16px;
  text-align: center;
}

.hx .hx-loc-list a {
  color: var(--hx-ink);
  text-decoration: none;
}

.hx .hx-loc-list a:hover,
.hx .hx-loc-list a:focus {
  color: var(--hx-blue);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .hx .hx-message-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
}

@media (max-width: 767px) {
  .hx .hx-pagehero-inner {
      padding-top: 36px;
      padding-bottom: 44px;
    }

  .hx .hx-pagehero-title {
      font-size: 32px;
    }

  .hx .hx-pagehero-lead {
      font-size: 15px;
    }

  .hx .hx-loc-grid,
    .hx .hx-form-grid {
      grid-template-columns: 1fr;
    }

  .hx .hx-loc-map {
      height: 280px;
    }

  .hx .hx-loc-body {
      padding: 22px 20px 24px;
    }

  .hx .hx-direct a {
      font-size: 16px;
    }
}

/* =====================================================================
   ABOUT PAGE (about/about.html, <main class="hx hx-about-page">)
   Shared "hx" design plus: jump links, intro split with facts, partner
   cards, service tiles, SEICO figures and factories, vision/mission,
   core values, QHSE items, credentials, commitment band. The office and
   factory map keeps its own styles (search "office/factory map").
   ===================================================================== */

.hx .hx-pagehero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hx .hx-pagehero-jump a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hx .hx-pagehero-jump a:hover,
.hx .hx-pagehero-jump a:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.hx-about-page [id] {
  scroll-margin-top: 20px;
}

/* ---- text ---- */

.hx .hx-prose p {
  margin: 0 0 16px;
  color: var(--hx-text);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.hx .hx-prose--wide {
  max-width: 880px;
  margin-bottom: 40px;
}

.hx .hx-split .hx-prose {
  margin-top: 22px;
}

.hx .hx-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-ticks li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--hx-ink);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-ticks li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--hx-red);
}

.hx .hx-subhead {
  margin: 0 0 24px;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-sub {
  margin-top: 72px;
}

/* ---- 01 intro + facts ---- */

.hx .hx-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}

.hx .hx-facts {
  padding: 30px 32px;
  border-top: 3px solid var(--hx-navy);
  background: var(--hx-alt);
}

.hx .hx-facts-title {
  margin: 0 0 8px;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hx .hx-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--hx-line);
}

.hx .hx-facts li:last-child {
  border-bottom: 0;
}

.hx .hx-facts-value {
  display: block;
  color: var(--hx-navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .hx-facts-label {
  display: block;
  margin-top: 8px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.45;
}

/* ---- 02 partner cards ---- */

.hx .hx-partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hx .hx-partner-card {
  padding: 32px 34px;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-partner-role {
  margin: 0 0 6px;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hx .hx-partner-name {
  margin: 0;
  color: var(--hx-navy);
  font-size: 26px;
  font-weight: 700;
}

.hx .hx-partner-sub {
  margin: 4px 0 20px;
  color: var(--hx-muted);
  font-size: 14px;
}

/* ---- 03 services ---- */

.hx .hx-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hx-line);
  border-left: 1px solid var(--hx-line);
  list-style: none;
}

.hx .hx-services li {
  padding: 30px 30px 32px;
  border-right: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
  background: #ffffff;
}

.hx .hx-services-num {
  display: block;
  color: transparent;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px var(--hx-blue);
}

.hx .hx-services h3 {
  margin: 16px 0 8px;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
}

.hx .hx-services p {
  margin: 0;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.65;
}

.hx .hx-callout {
  margin: 36px 0 0;
  padding: 22px 26px;
  border-left: 4px solid var(--hx-red);
  background: var(--hx-alt);
  color: var(--hx-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---- 04 SEICO Group ---- */

.hx .hx-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 48px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  list-style: none;
}

.hx .hx-figures li {
  padding: 26px 28px;
  border-left: 1px solid var(--hx-line);
}

.hx .hx-figures li:first-child {
  border-left: 0;
}

.hx .hx-figures-value {
  display: block;
  color: var(--hx-navy);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hx .hx-figures-label {
  display: block;
  margin-top: 8px;
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hx .hx-seico-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: start;
}

.hx .hx-prose .hx-chips-title {
  margin: 28px 0 12px;
  color: var(--hx-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hx .hx-flags-count {
  margin-left: 8px;
  white-space: nowrap;
  color: var(--hx-muted, #5f6b7a);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
}

.hx .hx-flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-flags li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--hx-rule);
  border-radius: 2px;
  background: #ffffff;
  color: var(--hx-text);
  font-size: 13px;
  line-height: 1.3;
}

.hx .hx-flags img {
  flex: 0 0 auto;
  width: 32px;
  height: 24px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  object-fit: cover;
}

.hx .hx-factory-list {
  display: grid;
  gap: 16px;
}

.hx .hx-factory {
  padding: 24px 26px;
  border: 1px solid var(--hx-line);
  border-left: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-factory h3 {
  margin: 0 0 12px;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
}

.hx .hx-factory dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}

.hx .hx-factory dt {
  color: var(--hx-muted);
  font-weight: 600;
}

.hx .hx-factory dd {
  margin: 0;
  color: var(--hx-ink);
}

.hx .hx-factory-note {
  margin: 0;
  color: var(--hx-muted);
  font-size: 13px;
}

/* ---- 05 vision, mission, core values ---- */

.hx .hx-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hx .hx-vm {
  overflow: hidden;
  border: 1px solid var(--hx-line);
  border-radius: 2px;
  background: #ffffff;
}

.hx .hx-vm-img {
  height: 240px;
  overflow: hidden;
  border-bottom: 3px solid var(--hx-navy);
}

.hx .hx-vm-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx .hx-vm-body {
  padding: 28px 30px 30px;
}

.hx .hx-vm-body h3,
.hx .hx-qhse-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-vm-body h3 i,
.hx .hx-qhse-body h3 i {
  color: var(--hx-red);
  font-size: 18px;
}

.hx .hx-vm-body > p,
.hx .hx-qhse-body > p {
  margin: 0 0 16px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.7;
}

.hx .hx-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hx .hx-value {
  padding: 26px 24px 28px;
  border-top: 3px solid var(--hx-navy);
  background: var(--hx-alt);
}

.hx .hx-value-num {
  color: var(--hx-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hx .hx-value h4 {
  margin: 10px 0 10px;
  color: var(--hx-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .hx-value p {
  margin: 0;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- 06 QHSE ---- */

.hx .hx-qhse {
  display: grid;
  gap: 24px;
}

.hx .hx-qhse-item {
  display: grid;
  grid-template-columns: 4fr 8fr;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  border-radius: 2px;
  background: #ffffff;
}

.hx .hx-qhse-img {
  min-height: 240px;
  background: var(--hx-alt);
}

.hx .hx-qhse-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx .hx-qhse-body {
  padding: 28px 32px 30px;
  border-left: 3px solid var(--hx-navy);
}

.hx .hx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-tags li {
  padding: 6px 12px;
  background: var(--hx-navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- 07 credentials ---- */

.hx .hx-cred-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}

.hx .hx-cred-feature {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  color: var(--hx-text);
  text-decoration: none;
}

.hx .hx-cred-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.hx .hx-cred-feature span {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--hx-line);
  font-size: 13px;
}

.hx .hx-cred-feature:hover,
.hx .hx-cred-feature:focus {
  color: var(--hx-blue);
  text-decoration: none;
}

.hx .hx-cred-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-cred-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.6;
}

.hx .hx-cred-list li:first-child {
  padding-top: 0;
}

.hx .hx-cred-list i {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--hx-navy);
  color: #ffffff;
  font-size: 17px;
  line-height: 40px;
  text-align: center;
}

.hx .hx-cred-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hx-navy);
  font-size: 16px;
}

.hx .hx-cert-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.hx .hx-cert-gallery a {
  display: block;
  padding: 10px;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  color: var(--hx-text);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hx .hx-cert-gallery a:hover,
.hx .hx-cert-gallery a:focus {
  border-color: var(--hx-blue);
  color: var(--hx-blue);
  text-decoration: none;
  transform: translateY(-3px);
}

.hx .hx-cert-gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

/* ---- 08 commitment band ---- */

.hx .hx-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(120deg, var(--hx-navy) 0%, var(--hx-blue) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.hx .hx-band .container {
  position: relative;
}

.hx .hx-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 44px 0 40px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.hx .hx-pillars li {
  padding: 28px 32px 0 0;
}

.hx .hx-pillars li + li {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hx .hx-pillars-word {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.hx .hx-pillars p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.65;
}

.hx .hx-band-text {
  max-width: 860px;
}

.hx .hx-band-text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
}

.hx .hx-band-text .hx-band-sign {
  color: #ffffff;
  font-weight: 700;
}

/* ---- 09 map inside the hx layout ---- */

.hx-about-page .peb_network_map {
  margin-top: 8px;
}

@media (max-width: 1199px) {
  .hx .hx-values {
      grid-template-columns: repeat(2, 1fr);
    }

  .hx .hx-cert-gallery {
      grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
  .hx .hx-split,
    .hx .hx-seico-grid,
    .hx .hx-cred-grid,
    .hx .hx-vm-grid,
    .hx .hx-partners-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }

  .hx .hx-services {
      grid-template-columns: repeat(2, 1fr);
    }

  .hx .hx-figures {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .hx .hx-figures li:nth-child(3) {
      border-left: 0;
    }

  .hx .hx-figures li:nth-child(n + 3) {
      border-top: 1px solid var(--hx-line);
    }

  .hx .hx-qhse-item {
      grid-template-columns: 1fr;
    }

  .hx .hx-qhse-img {
      height: 220px;
      min-height: 0;
    }

  .hx .hx-qhse-body {
      border-top: 3px solid var(--hx-navy);
      border-left: 0;
    }

  .hx .hx-pillars {
      grid-template-columns: 1fr;
    }

  .hx .hx-pillars li,
    .hx .hx-pillars li + li {
      padding: 22px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      border-left: 0;
    }

  .hx .hx-band {
      padding: 72px 0;
    }
}

@media (max-width: 767px) {
  .hx .hx-services,
    .hx .hx-values {
      grid-template-columns: 1fr;
    }

  .hx .hx-cert-gallery {
      grid-template-columns: repeat(2, 1fr);
    }

  .hx .hx-figures li {
      padding: 20px 16px;
    }

  .hx .hx-figures-value {
      font-size: 24px;
    }

  .hx .hx-partner-card,
    .hx .hx-facts {
      padding: 24px 22px;
    }

  .hx .hx-vm-img {
      height: 190px;
    }

  .hx .hx-qhse-body,
    .hx .hx-vm-body {
      padding: 22px 20px 24px;
    }
}

/* =====================================================================
   PROJECTS IN THE PHILIPPINES (projects/projects.html, section#philippine-projects)
   Cards grouped by year; data from the PEB Philippines 2026 company deck.
   ===================================================================== */

.ph-projects {
  padding: 50px 0 30px;
  background: #f5f7fa;
  border-bottom: 1px solid #e3e8f0;
}

.ph-projects .ph-years ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.ph-projects .ph-years a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #c8d1e0;
  border-radius: 999px;
  background: #ffffff;
  color: #2672b0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ph-projects .ph-years a:hover,
.ph-projects .ph-years a:focus {
  background: #2672b0;
  border-color: #2672b0;
  color: #ffffff;
}

.ph-projects .ph-year {
  padding-top: 26px;
  scroll-margin-top: 20px;
}

.ph-projects .ph-year-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1f5a8f;
  color: #1f5a8f;
  font-size: 24px;
  font-weight: 700;
}

.ph-projects .ph-year-title small {
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 500;
}

.ph-projects .ph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ph-projects .ph-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-top: 3px solid #2672b0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ph-projects .ph-card-top {
  min-height: 22px;
  margin-bottom: 8px;
}

.ph-projects .ph-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-projects .ph-status--completed {
  background: #edf5fc;
  color: #2672b0;
}

.ph-projects .ph-status--ongoing {
  background: #fdecec;
  color: #b0101a;
}

.ph-projects .ph-card-title {
  margin: 0 0 8px;
  color: #1f5a8f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.ph-projects .ph-card-loc {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.5;
}

.ph-projects .ph-card-loc .fa {
  margin-top: 3px;
  color: #d81319;
}

.ph-projects .ph-card-facts {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
}

.ph-projects .ph-card-facts div {
  display: flex;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.5;
}

.ph-projects .ph-card-facts dt {
  flex: 0 0 52px;
  color: #8a94a3;
  font-weight: 600;
}

.ph-projects .ph-card-facts dd {
  margin: 0;
  color: #2d3748;
}

@media (max-width: 991px) {
  .ph-projects .ph-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
  .ph-projects {
      padding: 36px 0 20px;
    }

  .ph-projects .ph-grid {
      grid-template-columns: 1fr;
    }

}

/* =====================================================================
   CREDENTIALS & EQUIPMENT PAGE (credentials/credentials.html, <main class="hx hx-cred-page">)
   Reuses the hx blocks (page hero, heads, cred grid, cert gallery, band); the parts below are new.
   ===================================================================== */

.hx-cred-page [id] {
  scroll-margin-top: 20px;
}

/* ---- 01 licences & permits: document image + details ---- */

.hx .hx-doc-list {
  display: grid;
  gap: 28px;
}

.hx .hx-doc {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--hx-line);
  background: #ffffff;
}

/* landscape documents (PCA certificate) get a wider image column */
.hx .hx-doc--landscape {
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
}

.hx .hx-doc-img {
  position: relative;
  display: block;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  cursor: zoom-in;
}

.hx .hx-doc-img img {
  display: block;
  width: 100%;
  height: auto;
}

.hx .hx-doc-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(31, 90, 143, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hx .hx-doc-img:hover .hx-doc-zoom,
.hx .hx-doc-img:focus .hx-doc-zoom {
  background: var(--hx-red);
}

.hx .hx-doc-issuer {
  margin: 0 0 6px;
  color: var(--hx-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
  text-transform: none; /* was uppercase; long official names read better in normal case (2026-11-19) */
}

.hx .hx-doc-title {
  margin: 0 0 18px;
  color: var(--hx-navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .hx-doc-facts {
  margin: 0;
  border-top: 1px solid var(--hx-line);
}

.hx .hx-doc-facts div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hx-line);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-doc-facts dt {
  color: var(--hx-muted);
  font-weight: 600;
}

.hx .hx-doc-facts dd {
  margin: 0;
  color: var(--hx-navy);
}

/* ---- 02 company registrations ---- */

.hx .hx-sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.hx .hx-sec-card {
  display: block;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  color: var(--hx-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hx .hx-sec-card:hover,
.hx .hx-sec-card:focus {
  border-color: var(--hx-blue);
  color: var(--hx-text);
  text-decoration: none;
  transform: translateY(-3px);
}

.hx .hx-sec-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hx .hx-sec-text {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid var(--hx-line);
  font-size: 13px;
  line-height: 1.5;
}

.hx .hx-sec-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hx-navy);
  font-size: 15px;
}

.hx .hx-reg-list {
  margin-top: 0;
}

/* ---- 03 SEICO: inspection & testing plan ---- */

.hx .hx-itp {
  padding: 28px;
  border: 1px solid var(--hx-line);
  background: #ffffff;
}

.hx .hx-itp-title {
  margin: 0 0 16px;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
}

.hx .hx-itp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hx .hx-itp-table th {
  padding: 10px 12px;
  background: var(--hx-navy);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
}

.hx .hx-itp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-text);
}

.hx .hx-itp-table td + td {
  color: var(--hx-navy);
  font-weight: 600;
  white-space: nowrap;
}

.hx .hx-itp-note {
  margin: 16px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- 04 heavy equipment ---- */

.hx .hx-equip-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: stretch;
}

.hx .hx-equip-photo {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  cursor: zoom-in;
}

.hx .hx-equip-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .hx-equip-photo:hover img,
.hx .hx-equip-photo:focus img {
  transform: scale(1.03);
}

.hx .hx-equip-list {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hx-line);
}

.hx .hx-equip-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hx-line);
  font-size: 14px;
  line-height: 1.5;
}

.hx .hx-equip-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hx-navy);
  font-size: 16px;
}

.hx .hx-equip-qty {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  background: var(--hx-navy);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

/* ---- 05 tools ---- */

.hx .hx-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-tool {
  border: 1px solid var(--hx-line);
  background: #ffffff;
}

.hx .hx-tool-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.hx .hx-tool-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .hx-tool-img:hover img,
.hx .hx-tool-img:focus img {
  transform: scale(1.04);
}

.hx .hx-tool p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--hx-line);
  color: var(--hx-navy);
  font-size: 15px;
  font-weight: 600;
}

.hx .hx-tool .hx-equip-qty {
  min-width: 34px;
  height: 34px;
  font-size: 15px;
}

.hx .hx-cred-cta .hx-band-text {
  max-width: 720px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.hx .hx-cred-cta .hx-btn {
  margin-top: 28px;
}

/* ---- footer: link under the certificate logos (all pages) ---- */

.footer .footer-cred-link {
  margin: 14px 0 0;
}

.footer .footer-cred-link a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer .footer-cred-link a:hover,
.footer .footer-cred-link a:focus {
  color: #fff000;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .hx .hx-equip-grid {
      grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }

  .hx .hx-equip-list {
      grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
  .hx .hx-doc {
      grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
      gap: 24px;
    }

  .hx .hx-doc-facts div {
      grid-template-columns: 140px minmax(0, 1fr);
    }

  .hx .hx-sec-grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

  .hx .hx-reg-list {
      grid-column: 1 / -1;
    }

  .hx .hx-tool-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
  .hx .hx-doc {
      grid-template-columns: 1fr;
      padding: 20px;
    }

  .hx .hx-doc-img {
      max-width: 320px;
    }

  .hx .hx-doc-facts div {
      grid-template-columns: 1fr;
      gap: 2px;
    }

  .hx .hx-doc-title {
      font-size: 19px;
    }

  .hx .hx-sec-grid {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

  .hx .hx-itp {
      padding: 20px;
    }

  .hx .hx-itp-table td + td {
      white-space: normal;
    }

  .hx .hx-equip-grid {
      grid-template-columns: 1fr;
    }

  .hx .hx-equip-photo img {
      min-height: 0;
      max-height: 420px;
    }

  .hx .hx-tool-grid {
      grid-template-columns: 1fr;
    }
}

/* =====================================================================
   PRODUCTS & SERVICES PAGE (products-services/products-services.html, <main class="hx hx-ps-page">)
   Reuses the hx blocks (page hero, split + facts, cards, steps, band, callout); the parts below are new.
   ===================================================================== */

.hx-ps-page [id] {
  scroll-margin-top: 20px;
}

/* ---- 01 overview: wide photo under the text ---- */

.hx .hx-ps-banner {
  margin: 56px 0 0;
  overflow: hidden;
  border: 1px solid var(--hx-line);
}

.hx .hx-ps-banner img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ---- 03 services: "Learn more" under each step ---- */

.hx .hx-step-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--hx-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hx .hx-step:hover .hx-step-more,
.hx .hx-step:focus .hx-step-more {
  color: var(--hx-red);
}

/* ---- 04 why PEB: benefit cards + good-to-know list ---- */

.hx .hx-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.hx .hx-benefit {
  padding: 28px 26px;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-benefit-value {
  display: block;
  margin-bottom: 14px;
  color: var(--hx-red);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.hx .hx-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--hx-alt);
  color: var(--hx-red);
  font-size: 20px;
}

.hx .hx-benefit h3 {
  margin: 0 0 8px;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
}

.hx .hx-benefit p {
  margin: 0;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.65;
}

.hx .hx-know {
  padding: 32px 36px;
  border: 1px solid var(--hx-line);
  background: #ffffff;
}

.hx .hx-know-title {
  margin: 0 0 14px;
  color: var(--hx-navy);
  font-size: 20px;
  font-weight: 700;
}

.hx .hx-know-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.hx .hx-know-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hx-line);
  font-size: 15px;
  line-height: 1.55;
}

.hx .hx-know-list dt {
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.9;
  text-transform: uppercase;
}

.hx .hx-know-list dd {
  margin: 0;
  color: var(--hx-ink);
}

/* ---- 05 figures band ---- */

.hx .hx-band-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hx .hx-band-stats li {
  padding: 28px 24px 0 0;
}

.hx .hx-band-stats li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hx .hx-band-stats-value {
  display: block;
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
}

.hx .hx-band-stats-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- 06 projects grid ---- */

.hx .hx-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hx .hx-proj {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  color: var(--hx-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hx .hx-proj:hover,
.hx .hx-proj:focus {
  border-color: var(--hx-blue);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  color: var(--hx-text);
  text-decoration: none;
  transform: translateY(-3px);
}

/* Showcase cards with no link (SEICO sample projects, archived 2026-11-19) */
.hx .hx-proj--static:hover {
  border-color: var(--hx-line);
  box-shadow: none;
  transform: none;
}

.hx .hx-proj--static:hover .hx-proj-img img {
  transform: none;
}

.hx .hx-proj-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hx .hx-proj-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .hx-proj:hover .hx-proj-img img,
.hx .hx-proj:focus .hx-proj-img img {
  transform: scale(1.04);
}

.hx .hx-proj-body {
  display: block;
  padding: 18px 20px 20px;
  border-top: 3px solid var(--hx-navy);
}

.hx .hx-proj-title {
  display: block;
  color: var(--hx-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.hx .hx-proj-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--hx-muted);
  font-size: 13px;
}

.hx .hx-proj-meta .fa {
  margin-top: 2px;
  color: var(--hx-red);
}

.hx .hx-ps-local {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
}

.hx .hx-ps-local p {
  flex: 1 1 520px;
  margin: 0;
  font-weight: 500;
}

.hx .hx-ps-local strong {
  color: var(--hx-navy);
}

/* ---- 07 call to action ---- */

.hx .hx-ps-cta .hx-band-text {
  max-width: 720px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.hx .hx-ps-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 1199px) {
  .hx .hx-benefits {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
  .hx .hx-know-list {
      grid-template-columns: 1fr;
    }

  .hx .hx-band-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .hx .hx-band-stats li:nth-child(3) {
      padding-left: 0;
      border-left: 0;
    }

  .hx .hx-band-stats li:nth-child(n+3) {
      padding-top: 28px;
    }

  .hx .hx-proj-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .hx .hx-ps-banner img {
      height: 300px;
    }
}

@media (max-width: 767px) {
  .hx .hx-benefits,
    .hx .hx-proj-grid {
      grid-template-columns: 1fr;
    }

  .hx .hx-know {
      padding: 24px 20px;
    }

  .hx .hx-know-list div {
      grid-template-columns: 1fr;
      gap: 2px;
    }

  .hx .hx-band-stats-value {
      font-size: 34px;
    }

  .hx .hx-ps-banner {
      margin-top: 36px;
    }

  .hx .hx-ps-banner img {
      height: 220px;
    }
}

/* =====================================================================
   ARTICLE PAGES (product, service and policy pages, <main class="hx hx-article-page">)
   Left: menu and contact card. Right: the article. Built on the shared hx blocks.
   ===================================================================== */

.hx-article-page [id] {
  scroll-margin-top: 20px;
}

.hx .hx-article-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: 56px;
  align-items: start;
}

.hx .hx-article {
  grid-area: main;
  min-width: 0;
  color: var(--hx-text);
  font-size: 16px;
  line-height: 1.75;
}

.hx .hx-article > *:first-child {
  margin-top: 0;
}

.hx .hx-article p {
  margin: 0 0 18px;
}

.hx .hx-article a:not(.hx-btn):not(.share-item) {
  color: var(--hx-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hx .hx-article a:not(.hx-btn):not(.share-item):hover {
  color: var(--hx-red);
}

.hx .hx-article h2 {
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-navy);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.hx .hx-article h3 {
  margin: 30px 0 12px;
  color: var(--hx-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.hx .hx-article strong {
  color: var(--hx-ink);
}

.hx .hx-article ul:not(.hx-ticks):not(.hx-icon-list):not(.toc-list),
.hx .hx-article ol:not(.hx-numbered) {
  margin: 0 0 20px;
  padding-left: 22px;
}

.hx .hx-article li {
  margin-bottom: 8px;
}

.hx .hx-article ul ul {
  margin: 8px 0 0;
}

.hx .hx-article img {
  max-width: 100%;
  height: auto;
}

.hx .hx-article .hx-ticks {
  margin-bottom: 22px;
}

.hx .hx-article-note {
  padding: 14px 18px;
  border-left: 3px solid var(--hx-red);
  background: var(--hx-alt);
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- figures ---- */

.hx .hx-figure {
  margin: 0 0 22px;
}

.hx .hx-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  cursor: zoom-in;
}

.hx .hx-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.hx .hx-figure a:hover img,
.hx .hx-figure a:focus img {
  transform: scale(1.02);
}

.hx .hx-figure figcaption {
  margin-top: 8px;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hx .hx-fig-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.hx .hx-fig-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hx .hx-fig-grid .hx-figure {
  margin: 0;
}

.hx .hx-split-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hx .hx-icon-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hx .hx-icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  color: var(--hx-navy);
  font-weight: 600;
}

.hx .hx-icon-list img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hx .hx-app-card {
  padding: 20px;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-app-card .hx-app-num {
  margin: 0;
  color: var(--hx-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hx .hx-app-card h3 {
  margin: 2px 0 12px;
}

.hx .hx-app-card .hx-figure {
  margin-bottom: 12px;
}

.hx .hx-app-card p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ---- standards, steps and tables ---- */

.hx .hx-standards {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.hx .hx-standard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--hx-line);
  border-left: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-standard h3 {
  margin: 0;
}

.hx .hx-standard ul {
  margin: 10px 0 0 !important;
  font-size: 15px;
}

.hx .hx-standard img {
  flex: 0 0 auto;
  max-width: 130px;
  max-height: 80px;
  object-fit: contain;
}

.hx .hx-numbered {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: hx-step;
}

.hx .hx-numbered li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 54px;
  border-bottom: 1px solid var(--hx-line);
  counter-increment: hx-step;
}

.hx .hx-numbered li::before {
  content: counter(hx-step);
  position: absolute;
  top: 10px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--hx-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hx .hx-table-wrap {   /* scroll box for wide tables; the outer line is on the table itself */
  margin-bottom: 22px;
  overflow-x: auto;
}

.hx .hx-table-wrap > table {
  border: 1px solid var(--hx-line);
}

.hx .hx-specs {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
}

.hx .hx-specs th,
.hx .hx-specs td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hx-line);
  text-align: left;
  vertical-align: top;
}

.hx .hx-specs tbody tr:last-child th,
.hx .hx-specs tbody tr:last-child td {
  border-bottom: 0;
}

.hx .hx-specs tbody th {
  width: 40%;
  background: var(--hx-alt);
  color: var(--hx-navy);
  font-weight: 600;
}

.hx .hx-specs thead th {
  background: var(--hx-navy);
  color: #ffffff;
  font-weight: 600;
}

.hx .hx-specs--grid tbody th {
  width: auto;
  min-width: 120px;
}

.hx .hx-btn--outline {
  border: 1px solid var(--hx-navy);
  background: transparent;
  color: var(--hx-navy);
  text-decoration: none;
}

.hx .hx-btn--outline:hover,
.hx .hx-btn--outline:focus {
  background: var(--hx-navy);
  color: #ffffff;
}

/* ---- side menu and contact card ---- */

.hx .hx-side {
  grid-area: side;
  display: grid;
  gap: 24px;
}

.hx .hx-side-nav,
.hx .hx-side-card {
  padding: 22px 22px 18px;
  border: 1px solid var(--hx-line);
  background: var(--hx-alt);
}

.hx .hx-side-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hx-navy);
  color: var(--hx-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hx .hx-side-group {
  margin: 14px 0 4px;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hx .hx-side-nav ul,
.hx .hx-side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-side-nav a {
  display: block;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.hx .hx-side-nav a:hover,
.hx .hx-side-nav a:focus {
  border-left-color: var(--hx-rule);
  color: var(--hx-blue);
  text-decoration: none;
}

.hx .hx-side-nav a.active {
  border-left-color: var(--hx-red);
  color: var(--hx-navy);
  font-weight: 700;
}

.hx .hx-side-card li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.5;
}

.hx .hx-side-card li .fa {
  flex: 0 0 14px;
  margin-top: 4px;
  color: var(--hx-red);
}

.hx .hx-side-card li a {
  color: var(--hx-navy);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hx .hx-side-card li strong {
  display: block;
  color: var(--hx-navy);
}

/* ---- table of contents and share buttons inside the new design ---- */

.hx .hx-article .toc-container {
  margin: 0 0 30px;
  border-radius: 0;
}

.hx .hx-article .std-page {
  font-size: inherit;
}

@media (max-width: 1199px) {
  .hx .hx-article-grid {
      grid-template-columns: 250px minmax(0, 1fr);
      gap: 36px;
    }
}

@media (max-width: 991px) {
  .hx .hx-article-grid {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "main" "side";
      gap: 40px;
    }

  .hx .hx-side {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: start;
    }
}

@media (max-width: 767px) {
  .hx .hx-article {
      font-size: 15.5px;
    }

  .hx .hx-article h2 {
      margin-top: 34px;
      font-size: 22px;
    }

  .hx .hx-side,
    .hx .hx-split-media,
    .hx .hx-fig-grid,
    .hx .hx-fig-grid--3 {
      grid-template-columns: minmax(0, 1fr);
    }

  .hx .hx-standard {
      align-items: flex-start;
      flex-direction: column;
      gap: 12px;
    }
}

/* =====================================================================
   PROJECTS SECTION (projects.html, industrial-projects.html, details/*.html)
   ===================================================================== */

.hx-projects-page [id] {
  scroll-margin-top: 20px;
}

.hx .ph-projects {
  background: #ffffff;
  border-bottom: 0;
}

.hx .ph-projects .ph-years ul {
  justify-content: flex-start;
}

.hx .ph-projects .ph-years a {
  border-radius: 0;
}

.hx .ph-projects .ph-card {
  border-radius: 0;
  box-shadow: none;
}

.hx .ph-projects .ph-status {
  border-radius: 0;
}

/* ---- old styles that must not reach the new design ---- */

.hx .hx-article.peb_intro {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  margin-left: 0;      /* the base .peb_intro rule pulls it 30px left, which cut off the article on phones */
  min-height: 0;
}

.hx .hx-article .toc-list a {
  font-weight: 500;
  text-decoration: none;
}

.hx .hx-article .toc-list a:hover {
  text-decoration: underline;
}

/* ---- while a photo is enlarged, nothing floats over it ---- */

.viewer-open .contact-float-side,
.viewer-open .back-to-top {
  display: none !important;
}

/* ---- picture viewer (PhotoSwipe, 2026-11-25): caption bar under the photo ---- */

.pswp__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 40vh;
  overflow-y: auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.pswp__caption[hidden] {
  display: none;
}

/* ---- footer: logos of the licences and registrations held in the Philippines ---- */
.footer-bir.footer-ph-marks {
  margin-top: 14px; /* was 8px under the BIR badge row, removed 2026-11-19 */
}
.footer-ph-marks .bir-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px;
}
.footer-ph-marks .bir-logo {
  height: 72px;
}
.footer-ph-marks .bir-logo img {
  transform: none;
}

/* =====================================================================
   VIDEO PLAYER (Home + FAQ, <div class="hx-player hx-yt" data-hx-yt="YouTube id">; script: setupYouTubePlayers in main.js)
   ===================================================================== */
.hx .hx-player {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--hx-navy);
}
.hx .hx-player-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.hx .hx-player-big {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--hx-red);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  color: #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.hx .hx-player-big:hover,
.hx .hx-player-big:focus-visible {
  background: var(--hx-navy);
  transform: translate(-50%, -50%) scale(1.06);
}
.hx .hx-player-big svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.hx .hx-player.is-playing .hx-player-big {
  opacity: 0;
  pointer-events: none;
}
.hx .hx-player.is-loading .hx-player-big {
  opacity: 0;
}
.hx .hx-player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: hx-player-spin 0.8s linear infinite;
}
.hx .hx-player.is-loading .hx-player-spinner {
  display: block;
}
@keyframes hx-player-spin {
  to {
    transform: rotate(360deg);
  }
}
.hx .hx-yt .hx-yt-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: #000000;
  cursor: auto;
}
.hx .hx-yt.is-playing .hx-player-big {
  opacity: 0;
  pointer-events: none;
}
.hx .hx-yt.is-loading .hx-player-spinner {
  z-index: 3;
}
@media (max-width: 480px) {
  .hx .hx-player-big {
    width: 60px;
    height: 60px;
  }
  .hx .hx-player-big svg {
    width: 24px;
    height: 24px;
  }
}

/* ---- every page: sections reached from a section link ---- */
.hx [id] {
  scroll-margin-top: 20px;
}
[id][tabindex="-1"]:focus {
  outline: none;
}

.hx .hx-contact-privacy .hx-head {
  margin-bottom: 0;
}

/* ---- Philippine Partners, 01 DELTA Group: delivery line, closing line and four photos ---- */
.hx .hx-delta-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hx .hx-delta-flow li {
  color: var(--hx-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hx .hx-delta-flow li + li::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 12px;
  background: var(--hx-red);
  vertical-align: middle;
}

.hx .hx-delta-commit {
  margin: 22px 0 0;
  color: var(--hx-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.hx .hx-delta-photos {
  margin: 48px 0 0;
}

.hx .hx-fig-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .hx .hx-fig-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hx .hx-fig-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx .hx-delta-flow li {
    flex: 0 0 50%;
  }

  .hx .hx-delta-flow li::before,
  .hx .hx-delta-flow li + li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 2px;
    margin: 0 8px 0 0;
    background: var(--hx-red);
    vertical-align: middle;
  }

  .hx .hx-delta-commit {
    font-size: 18px;
  }
}

/* =====================================================================
   PHILIPPINE PROJECTS (projects/projects.html, philippine-projects.html, project-types.html)
   Cards, tiles and the "See all" box are drawn by assets/js/ph-projects.js from
   assets/js/ph-projects-data.js. The list cards reuse the .ph-card styles above.
   ===================================================================== */

/* ---- figures strip ---- */
.hx .pj-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hx-line);
  background: var(--hx-alt);
}

.hx .pj-figures li {
  padding: 20px 24px;
}

.hx .pj-figures li + li {
  border-left: 1px solid var(--hx-line);
}

.hx .pj-figures strong {
  display: block;
  color: var(--hx-navy);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.hx .pj-figures span {
  display: block;
  margin-top: 6px;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ---- featured project cards ---- */
.hx .pj-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Five featured projects (2026-11-20): the two newest share the first row, the other three
   sit below. A 6-column grid: cards take 2 columns, the first two take 3 when there are 5+. */
@media (min-width: 992px) {
  .hx .pj-features:not(.pj-features--inline) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hx .pj-features:not(.pj-features--inline) > .pj-feature {
    grid-column: span 2;
  }

  .hx .pj-features:not(.pj-features--inline) > .pj-feature:nth-child(-n + 2):nth-last-child(n + 4) {
    grid-column: span 3;
  }

  .hx .pj-features:not(.pj-features--inline) > .pj-feature:nth-child(-n + 2):nth-last-child(n + 4) .pj-feature-media {
    aspect-ratio: 16 / 9;
  }
}

/* Two per row on tablets: a last card on its own row lies wide, picture beside the text. */
@media (min-width: 768px) and (max-width: 991px) {
  .hx .pj-features:not(.pj-features--inline) > .pj-feature:last-child:nth-child(odd) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .hx .pj-features:not(.pj-features--inline) > .pj-feature:last-child:nth-child(odd) .pj-feature-media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.hx .pj-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hx-line);
  background: #ffffff;
}

.hx .pj-feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hx-alt);
  cursor: zoom-in;
}

.hx .pj-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .pj-feature-media:hover img,
.hx .pj-feature-media:focus img {
  transform: scale(1.03);
}

.hx .pj-feature-year {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 14px;
  background: var(--hx-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hx .pj-feature-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  background: rgba(31, 90, 143, 0.82);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.hx .pj-feature-zoom .fa {
  margin-right: 6px;
}

.hx .pj-feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
  border-top: 3px solid var(--hx-navy);
}

.hx .pj-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.hx .pj-feature .ph-status,
.hx .pj-list .ph-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hx .pj-feature .ph-status--completed {
  background: #edf5fc;
  color: var(--hx-blue);
}

.hx .pj-feature .ph-status--ongoing {
  background: #fdecec;
  color: #b0101a;
}

.hx .pj-type-tag {
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.hx .pj-type-tag:hover,
.hx .pj-type-tag:focus {
  color: var(--hx-red);
  text-decoration: underline;
}

.hx .pj-feature-title {
  margin: 0 0 8px;
  color: var(--hx-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .pj-feature-loc {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--hx-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hx .pj-feature-loc .fa {
  margin-top: 3px;
  color: var(--hx-red);
}

.hx .pj-feature-facts {
  margin: 0 0 18px;
  border-top: 1px solid var(--hx-line);
}

.hx .pj-feature-facts div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hx-line);
  font-size: 14px;
  line-height: 1.45;
}

.hx .pj-feature-facts dt {
  color: var(--hx-muted);
  font-weight: 600;
}

.hx .pj-feature-facts dd {
  margin: 0;
  color: var(--hx-ink);
}

.hx .pj-similar {
  margin-top: auto;
  align-self: flex-start;
}

.hx .pj-similar .fa {
  margin-left: 6px;
}

/* type page: a featured project gets a wide card, picture on the left */

.hx .pj-more {
  margin: 32px 0 0;
}

/* ---- project type tiles ---- */
.hx .pj-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hx .pj-type {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-blue);
  background: #ffffff;
  color: var(--hx-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hx .pj-type:hover,
.hx .pj-type:focus {
  border-top-color: var(--hx-red);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: var(--hx-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.hx .pj-type .fa {
  margin-bottom: 14px;
  color: var(--hx-red);
  font-size: 24px;
}

.hx .pj-type-name {
  color: var(--hx-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .pj-type-count {
  margin-top: 4px;
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 600;
}

.hx .pj-type-text {
  margin-top: 10px;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hx .pj-type--all {
  border-color: var(--hx-navy);
  border-top-color: var(--hx-red);
  background: var(--hx-navy);
}

.hx .pj-type--all .pj-type-name,
.hx .pj-type--all .pj-type-count,
.hx .pj-type--all .pj-type-text,
.hx .pj-type--all:hover .pj-type-text {
  color: #ffffff;
}

.hx .pj-type--all .pj-type-text {
  opacity: 0.8;
}

.hx .pj-other {
  margin-top: 56px;
}

.hx .pj-other .hx-subhead {
  margin-bottom: 18px;
}

/* ---- "See all" box ---- */
.hx .pj-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 30px 32px;
  border: 1px solid var(--hx-line);
  border-left: 4px solid var(--hx-red);
  background: #ffffff;
}

.hx .pj-gate[hidden] {
  display: none;
}

.hx .pj-gate-count {
  margin: 0 0 14px;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 600;
}

.hx .pj-gate-count strong {
  margin-right: 4px;
  color: var(--hx-red);
  font-size: 34px;
  line-height: 1;
}

.hx .pj-gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .pj-gate-chips li {
  padding: 5px 10px;
  border: 1px solid var(--hx-line);
  background: var(--hx-alt);
  color: var(--hx-text);
  font-size: 13px;
}

.hx .pj-gate-chips span {
  margin-left: 4px;
  color: var(--hx-navy);
  font-weight: 700;
}

.hx .pj-gate-action {
  text-align: center;
}

.hx .pj-gate-note {
  margin: 10px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx .pj-gate + .pj-list {
  margin-top: 0;
}

/* ---- full lists (reuse .ph-card) ---- */
.hx .pj-list.ph-projects {
  padding: 0;
  border: 0;
  background: transparent;
}

.hx .pj-list .ph-years {
  margin-bottom: 6px;
}

.hx .pj-list .ph-year:first-of-type {
  padding-top: 14px;
}

.hx .pj-featured-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  background: var(--hx-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hx .pj-card-type {
  margin: -4px 0 10px;
  font-size: 13px;
}

/* a project photo across the top of a small card (from the "photos" list) */
.hx .pj-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: -18px -20px 16px;
  background: var(--hx-alt);
  cursor: zoom-in;
}

.hx .pj-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .pj-card-media:hover img,
.hx .pj-card-media:focus img {
  transform: scale(1.03);
}

.hx .pj-card-media--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f8 0%, #e3e9f3 100%);
  cursor: default;
}

.hx .pj-card-media--none .fa {
  color: rgba(38, 114, 176, 0.28);
  font-size: 44px;
}

.hx .pj-card-type a {
  color: var(--hx-blue);
  font-weight: 600;
  text-decoration: none;
}

.hx .pj-card-type a:hover,
.hx .pj-card-type a:focus {
  color: var(--hx-red);
  text-decoration: underline;
}

.hx .pj-card-similar {
  margin-top: 12px;
  color: var(--hx-red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hx .pj-card-similar:hover,
.hx .pj-card-similar:focus {
  color: var(--hx-navy);
  text-decoration: underline;
}

.hx .pj-card-similar .fa {
  margin-left: 4px;
}

/* ---- SEICO countries ---- */
.hx .pj-countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .pj-countries li > a,
.hx .pj-countries .pj-country-plain {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 9px 12px;
  border: 1px solid var(--hx-rule);
  background: #ffffff;
  color: var(--hx-text);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}

.hx .pj-countries li > a:hover,
.hx .pj-countries li > a:focus {
  border-color: var(--hx-blue);
  color: var(--hx-blue);
}

.hx .pj-countries li > a .fa {
  margin-left: auto;
  color: var(--hx-muted);
  font-size: 12px;
}

.hx .pj-countries .pj-country-plain {
  color: var(--hx-muted);
}

.hx .pj-countries img {
  flex: 0 0 auto;
  width: 32px;
  height: 24px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
  object-fit: cover;
}

.hx .pj-countries-note {
  margin: 14px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
}

.hx .pj-countries-note .fa {
  margin-right: 6px;
}

#seico-group .hx-figures {
  margin-bottom: 36px;
}

/* ---- details form: extra fields ---- */
#intlProjectsModal .intl-popup-consent {
  margin: 4px 0 12px;
}

#intlProjectsModal .intl-popup-consent label {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

#intlProjectsModal .intl-popup-consent a {
  color: #2672b0;
  text-decoration: underline;
}

#intlProjectsModal .intl-popup-consent input[aria-invalid="true"] {
  outline: 2px solid #d81319;
  outline-offset: 1px;
}

#intlProjectsModal .form-group {
  margin-bottom: 12px;
}

@media (max-width: 1199px) {
  .hx .pj-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hx .pj-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx .pj-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx .pj-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx .pj-gate-action {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hx .pj-features,
  .hx .pj-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx .pj-figures {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx .pj-figures li + li {
    border-top: 1px solid var(--hx-line);
    border-left: 0;
  }

  .hx .pj-figures li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
  }

  .hx .pj-figures strong {
    flex: 0 0 auto;
    min-width: 84px;
    font-size: 24px;
  }

  .hx .pj-figures span {
    margin-top: 0;
  }

  .hx .pj-gate {
    padding: 24px 20px;
  }

  .hx .pj-gate .hx-btn {
    width: 100%;
  }

  .hx .pj-countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Header: Products & Services uses the same 3-column panel as Projects (li.has-mega-products) ---- */
.project-link-list > li > a {
  text-transform: none !important;
}

/* ---- Home: featured projects (cards from assets/js/ph-projects.js) ---- */
.hx .pj-more--home {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Floating contact buttons: tucked into the left edge behind a tab (setupContactDrawer in main.js) ---- */
.contact-float-side.cf-drawer {
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-float-side.cf-drawer.is-open {
  transform: translateX(0);
}

.contact-float-side.cf-drawer .cf-side-item {
  visibility: hidden;
  transition: visibility 0s linear 0.35s, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-float-side.cf-drawer.is-open .cf-side-item {
  visibility: visible;
  transition-delay: 0s;
}

/* the tab that stays on screen */
.cf-side-toggle {
  position: absolute;
  top: 50%;
  left: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #2672b0;
  color: #ffffff;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, width 0.2s ease;
}

.cf-side-toggle:hover,
.cf-side-toggle:focus-visible {
  width: 34px;
  background: #1f5a8f;
}

.cf-side-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.cf-side-toggle .fa-comments {
  font-size: 15px;
}

.cf-side-toggle .cf-side-arrow {
  font-size: 14px;
  transition: transform 0.35s ease;
}

.contact-float-side.cf-drawer.is-open .cf-side-arrow {
  transform: rotate(180deg);
}

/* Footer: says whose the ISO badges are */
footer.footer p.footer-iso-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0;
  text-transform: none;
}

/* Social icons with no account yet (class "follow-soon") are hidden until a link is added.
   To show one again: give its <a> an href and remove class="follow-soon". */

/* ---- Philippine Partners, company registrations: one column per pair of certificates
   (SEC incorporations, SEC filings, BIR, Customs), two rows. Was three columns until the two SEC
   filings were added on 2026-11-23; grid-auto-columns keeps any extra pair the same width
   instead of spilling out of the layout. ---- */
.hx .hx-reg-docs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 24px 24px;
}

.hx .hx-reg-docs + .hx-reg-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 36px;
}

.hx .hx-reg-docs + .hx-reg-list li {
  border-top: 1px solid var(--hx-line);
}

@media (max-width: 991px) {
  .hx .hx-reg-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .hx .hx-reg-docs + .hx-reg-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hx .hx-reg-docs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hx .hx-reg-docs .hx-sec-card img {
  aspect-ratio: 1400 / 1980;
  object-fit: cover;
  object-position: top;
}

/* ---- Products & Services, 04 Why pre-engineered: photos on the benefit cards and the comparison table ---- */
.hx .hx-benefits--photo .hx-benefit {
  overflow: hidden;
}

.hx .hx-benefit-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: -28px -26px 22px;
  background: var(--hx-alt);
  cursor: zoom-in;
}

.hx .hx-benefit-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hx .hx-benefit-photo:hover img,
.hx .hx-benefit-photo:focus img {
  transform: scale(1.04);
}

.hx .hx-compare {
  margin: 0 0 40px;
}

.hx .hx-compare-title {
  margin: 0 0 16px;
  color: var(--hx-navy);
  font-size: 20px;
  font-weight: 700;
}

.hx .hx-compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--hx-line);
  background: #ffffff;
  font-size: 15px;
}

.hx .hx-compare-table th,
.hx .hx-compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--hx-line);
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
}

.hx .hx-compare-table thead th {
  background: var(--hx-alt);
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hx .hx-compare-table thead th.is-peb {
  background: var(--hx-navy);
  color: #ffffff;
}

.hx .hx-compare-table tbody th {
  width: 24%;
  color: var(--hx-navy);
  font-weight: 700;
  white-space: nowrap;
}

.hx .hx-compare-table tbody th .fa {
  width: 22px;
  margin-right: 10px;
  color: var(--hx-red);
  text-align: center;
}

.hx .hx-compare-table td {
  width: 38%;
  color: var(--hx-muted);
}

.hx .hx-compare-table td.is-peb {
  background: rgba(38, 114, 176, 0.05);
  color: var(--hx-ink);
  font-weight: 600;
}

.hx .hx-compare-table td.is-peb .fa {
  margin-right: 10px;
  color: #1f8a4c;
}

.hx .hx-compare-table tbody tr:last-child th,
.hx .hx-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.hx .hx-compare-source {
  margin: 10px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
}

/* A tall photo whose file is narrower than the article column (e.g. the arched steel structure on
   Steel structure applications, 667 px): shown at most 560 px wide so it is never stretched. */
.hx .hx-figure--narrow {
  max-width: 560px;
}

/* A single product shot (e.g. the SP Fireshield can on Industrial paint): kept small. */
.hx .hx-figure--product {
  max-width: 300px;
}

/* Phones (2026-11-20, second version): each topic is its own card: a tinted title bar, then the
   two answers side by side, each with its own small label right above it ("Pre-engineered" in
   a dark blue pill on a blue-tinted cell, "Conventional" in a gray pill on white), so the reader
   never has to look back up to a header row. The table keeps its meaning for screen readers
   through the role attributes in the HTML. */
@media (max-width: 767px) {
  .hx .hx-compare-table,
  .hx .hx-compare-table tbody {
    display: block;
  }

  .hx .hx-compare-table {
    border: 0;
    background: transparent;
    font-size: 14px;
  }

  .hx .hx-compare-table thead {
    display: none;   /* the labels are in every cell instead */
  }

  .hx .hx-compare-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 12px;
    border: 1px solid var(--hx-line);
    background: #ffffff;
  }

  .hx .hx-compare-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .hx .hx-compare-table th,
  .hx .hx-compare-table td {
    display: block;
    width: auto;
    border-bottom: 0;
  }

  .hx .hx-compare-table tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 11px 14px;
    border-bottom: 1px solid var(--hx-line);
    background: #f1f5fa;
    color: var(--hx-navy);
    font-size: 15px;
    white-space: normal;
  }

  .hx .hx-compare-table tbody tr:last-child th {
    border-bottom: 1px solid var(--hx-line);
  }

  .hx .hx-compare-table tbody th .fa {
    width: 18px;
    margin-right: 8px;
  }

  .hx .hx-compare-table td {
    padding: 12px 14px 14px;
    color: #475569;
    line-height: 1.45;
  }

  .hx .hx-compare-table td.is-peb {
    border-right: 1px solid var(--hx-line);
    background: #eaf3fb;
    color: #14263b;
    font-weight: 600;
  }

  .hx .hx-compare-table td.is-peb .fa {
    margin-right: 6px;
  }

  /* the column name, right above each answer */
  .hx .hx-compare-table td::before {
    content: attr(data-label);
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    margin-bottom: 8px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #e3e8ef;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
  }

  .hx .hx-compare-table td.is-peb::before {
    background: var(--hx-navy);
    color: #ffffff;
  }
}

/* the three notes under the registration certificates sit side by side, so the first one keeps its top spacing too */
.hx .hx-reg-docs + .hx-reg-list li,
.hx .hx-reg-docs + .hx-reg-list li:first-child {
  padding-top: 18px;
}

/* ---- Project type pages: one grid of identical cards; the unlocked ones join the same rows ---- */
.hx .pj-rest:not([hidden]) {
  display: contents;
}

.hx .pj-type-list + .pj-gate {
  margin-top: 28px;
}

.hx .pj-type-list .ph-grid {
  gap: 24px;
}

/* ---- Home 05: Philippine partners and SEICO Group's clients ---- */
.hx .hx-partners-group + .hx-partners-group {
  margin-top: 56px;
}

.hx .hx-partners-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--hx-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hx .hx-partners-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hx-line);
}

.hx .hx-ph-partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.hx .hx-ph-partner {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-navy);
  background: #ffffff;
}

.hx .hx-ph-partner img {
  display: block;
  width: 100%;
  height: 170px;
  padding: 18px 40px;
  object-fit: contain;
  background: #ffffff;
  border-bottom: 1px solid var(--hx-line);
}

.hx .hx-ph-partner > div {
  padding: 20px 22px 22px;
}

.hx .hx-ph-partner strong {
  display: block;
  color: var(--hx-navy);
  font-size: 17px;
  font-weight: 700;
}

.hx .hx-ph-partner-role {
  display: inline-block;
  margin: 6px 0 10px;
  color: var(--hx-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hx .hx-ph-partner p {
  margin: 0;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.6;
}

.hx .hx-partners-note {
  margin: -8px 0 20px;
  color: var(--hx-muted);
  font-size: 14px;
}

@media (max-width: 991px) {
  .hx .hx-ph-partners {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx .hx-ph-partner {
    flex-direction: row;
    align-items: center;
  }

  .hx .hx-ph-partner img {
    flex: 0 0 36%;
    width: 36%;
    height: 130px;
    padding: 14px 18px;
    border-right: 1px solid var(--hx-line);
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hx .hx-ph-partner {
    flex-direction: column;
    align-items: stretch;
  }

  .hx .hx-ph-partner img {
    width: 100%;
    height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--hx-line);
  }
}

@media (max-width: 480px) {
  .hx .hx-ph-partner img {
    flex: none;
  }
}

/* =====================================================================
   CONSULTATION PAGE (contact/consultation.html, 2026-11-13)
   The long project form: intro on the left (sticky on desktop), the form
   on the right in four numbered groups. Script: setupConsultationForm.
   ===================================================================== */

.hx .hx-consult-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 56px;
  align-items: start;
}

.hx .hx-consult-intro {
  position: sticky;
  top: 120px;                      /* below the floating menu bar */
}

.hx .hx-consult-group {
  margin: 0 0 8px;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 1px solid var(--hx-line);
  min-width: 0;
}

.hx .hx-consult-group + .hx-consult-group {
  padding-top: 26px;
}

.hx .hx-consult-group legend {
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 700;
}

.hx .hx-consult-group > .hx-form-grid + .hx-choice,
.hx .hx-consult-group > .hx-choice + .hx-form-grid,
.hx .hx-consult-group > .hx-choice + .hx-choice,
.hx .hx-consult-group > .hx-plans-link + .hx-choice {
  margin-top: 20px;
}

/* single-choice questions: each answer is a tappable row */
.hx .hx-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
}

.hx .hx-choice--row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hx .hx-choice--row > .hx-field-label {
  flex: 0 0 100%;
}

.hx .hx-choice--row label {
  flex: 0 0 auto;
  min-width: 130px;
}

.hx .hx-choice--row .hx-choice-other {
  flex: 1 1 260px;
}

.hx .hx-choice > .hx-field-label {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.hx .hx-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--hx-rule);
  border-radius: 4px;
  background: #ffffff;
  color: var(--hx-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hx .hx-choice label:hover {
  border-color: var(--hx-blue);
}

.hx .hx-choice label:has(input[type="radio"]:checked) {
  border-color: var(--hx-blue);
  background: var(--hx-alt);
}

.hx .hx-choice input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hx-blue);
}

.hx .hx-choice-other .form-control {
  flex: 1 1 140px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hx-rule);
  border-radius: 2px;
  box-shadow: none;
  font-size: 15px;
}

.hx .hx-choice-other .form-control:disabled {
  background: transparent;
  border-style: dashed;
  cursor: pointer;
}

.hx .hx-choice-other .form-control[aria-invalid="true"],
.hx .hx-choice[aria-invalid="true"] label {
  border-color: var(--hx-red);
}

.hx .hx-choice[aria-invalid="true"] > .hx-field-label {
  color: var(--hx-red);
}

/* link to the plans (instead of a file upload) */
.hx .hx-plans-link textarea.form-control {
  min-height: 72px;
}

.hx .hx-upload-help {
  margin: 6px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
}

/* the email link inside the help text: underlined so it does not rely on colour alone (2026-11-26) */
.hx .hx-upload-help a {
  text-decoration: underline;
}

.hx .hx-consult-error {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--hx-red);
  background: #fdf2f2;
  color: #9b1c1c;
  font-size: 14px;
}

.hx-consult-page [data-replica-form-note] {
  margin: 14px 0 0;
  color: var(--hx-text);
  font-size: 14px;
}

@media (max-width: 991px) {
  .hx .hx-consult-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hx .hx-consult-intro {
    position: static;
  }
}

@media (max-width: 767px) {
  .hx .hx-choice--row {
    flex-direction: column;
    align-items: stretch;
  }

  .hx .hx-choice--row label,
  .hx .hx-choice--row .hx-choice-other {
    flex: none;              /* in a column, a flex size would set the height */
  }

  .hx .hx-choice-other {
    flex-wrap: wrap;
  }
}

/* Home, section 07: the consultation card (button to contact/consultation.html, 2026-11-13) */
.hx .hx-consult-cta-lead {
  margin: 10px 0 16px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.6;
}

.hx .hx-consult-cta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx .hx-consult-cta-list li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-ink);
  font-size: 15px;
  line-height: 1.5;
}

.hx .hx-consult-cta-list li:last-child {
  border-bottom: 0;
}

.hx .hx-consult-cta-list .fa {
  margin-top: 3px;
  color: var(--hx-blue);
}

/* Second, smaller link under a card's button (About page "Send us a message" card, 2026-11-19) */
.hx .hx-consult-cta-alt {
  margin: 14px 0 0;
  color: var(--hx-muted);
  font-size: 14px;
  text-align: center;
}

/* Comparison tables that stack on phones (class hx-specs--stack, e.g. SP Deck vs Form deck):
   each row becomes a card, the first cell is its heading and the other cells
   show the column name from their data-label attribute. */
@media (max-width: 575px) {
  .hx .hx-specs--stack,
  .hx .hx-specs--stack tbody,
  .hx .hx-specs--stack tr,
  .hx .hx-specs--stack td {
    display: block;
    width: 100%;
  }

  .hx .hx-specs--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hx .hx-specs--stack tr {
    margin-bottom: 12px;
    border: 1px solid var(--hx-line);
  }

  .hx .hx-specs--stack td {
    border: 0;
    border-top: 1px solid var(--hx-line);
  }

  .hx .hx-specs--stack td.hx-stack-head {
    border-top: 0;
    background: var(--hx-alt);
    color: var(--hx-navy);
    font-weight: 700;
  }

  .hx .hx-specs--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--hx-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .hx .hx-table-wrap:has(.hx-specs--stack) {
    overflow: visible;
  }
}

/* tablets: the landscape document card keeps a wider image than the portrait ones (220px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hx .hx-doc--landscape {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
}

/* Home: "See how a pre-engineered building comes together" video (2026-11-13).
   Since 2026-11-20 it has its own light-blue section (.hx-video-intro) right after the
   hero and key figures, before Products & services, so it needs no divider line. */
.hx .hx-process-video {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.hx .hx-process-video-kicker {
  margin: 0 0 10px;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hx .hx-process-video-title {
  margin: 0 0 16px;
  color: var(--hx-navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.hx .hx-process-video-text p:not(.hx-process-video-kicker) {
  margin: 0 0 12px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .hx .hx-process-video {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hx .hx-process-video-title {
    font-size: 22px;
  }
}

/* =====================================================================
   FORM RESULT MESSAGES (written by assets/js/google-forms.js, 2026-11-19)
   ===================================================================== */
.gf-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid;
  font-size: 14px;
  line-height: 1.6;
}

.gf-status--ok {
  border-color: #2e7d32;
  background: #e5f4e4;
  color: #1d4d20;
}

.gf-status--error {
  border-color: #d81319;
  background: #fbebeb;
  color: #8a1015;
}

/* =====================================================================
   POPUP CONFIRMATION (profile download and project details popups, 2026-11-20)
   ---------------------------------------------------------------------
   Shown by main.js (showConfirm) after the popup form is sent: a check mark
   that draws itself, "Thank you, <name>!", what happens next and a button to
   skip the wait. .popup-step-in fades and lifts a step in (also used on the
   downloads that follow). No animation for visitors who ask for less motion.
   ===================================================================== */
.popup-confirm {
  padding: 18px 10px 8px;
  text-align: center;
}

.popup-check {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}

.popup-check circle,
.popup-check path {
  fill: none;
  stroke: #2e7d32;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popup-check circle {
  stroke-width: 3;
  stroke-dasharray: 145;
}

.popup-check path {
  stroke-width: 4;
  stroke-dasharray: 31;
}

#myModal .modal-content .popup-confirm-title,
#intlProjectsModal .popup-confirm-title {
  margin: 0 0 8px;
  color: #1f5a8f;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.popup-confirm-text {
  margin: 0 auto 18px;
  max-width: 380px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.popup-confirm-next {
  min-width: 190px;
  padding: 9px 22px;
  border: 1px solid #2672b0;
  border-radius: 20px;
  background: #ffffff;
  color: #2672b0;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* the profile popup sizes every button 120 x 30 px (#myModal .modal-content button): undo that here */
#myModal .modal-content .popup-confirm-next {
  width: auto;
  height: auto;
  background: #ffffff;
  color: #2672b0;
}

.popup-confirm-next:hover,
.popup-confirm-next:focus-visible,
#myModal .modal-content .popup-confirm-next:hover,
#myModal .modal-content .popup-confirm-next:focus-visible {
  background: #2672b0;
  color: #ffffff;
}

.popup-step-in {
  animation: popup-step-in 0.35s ease-out both;
}

.popup-step-in .popup-check circle {
  animation: popup-draw-circle 0.5s ease-out both;
}

.popup-step-in .popup-check path {
  animation: popup-draw-check 0.35s ease-out 0.4s both;
}

@keyframes popup-step-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes popup-draw-circle {
  from { stroke-dashoffset: 145; }
  to { stroke-dashoffset: 0; }
}

@keyframes popup-draw-check {
  from { stroke-dashoffset: 31; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-step-in,
  .popup-step-in .popup-check circle,
  .popup-step-in .popup-check path {
    animation: none;
  }
}

/* Form boxes in focus: a solid outline instead of Bootstrap 3's blurred blue glow
   (.form-control:focus in vendor/css/bootstrap-3.3.7-trimmed.min.css), 2026-11-20. Still clearly visible
   for keyboard users. */
.form-control:focus {
  border-color: #2672b0;
  outline: 2px solid #2672b0;
  outline-offset: 1px;
  box-shadow: none;
}

/* Spam trap ("honeypot") box added to every lead form by google-forms.js (2026-11-20).
   Moved off-screen rather than display:none, because some robots skip boxes set to display:none. */
.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile "are you human" box, placed above each lead form's Send button by
   google-forms.js (2026-11-25). Takes no space while Turnstile stays invisible; gets room only
   when Cloudflare asks the visitor to tick the box. */
.ts-box {
  max-width: 100%;
}
.ts-box--shown {
  margin: 4px 0 14px;
}

/* =====================================================================
   ENGINEERING TOUCHES (owner's request 2026-11-23)
   ---------------------------------------------------------------------
   Small details borrowed from steel drawings, following the faint header
   grid (see "Engineering grid behind page headers"). They are all thin,
   pale and kept beside or behind the content, never on top of text:
   1. a dimension line under each section title (.hx-title)
   2. drawing-frame corner marks on key pictures
   3. the same faint grid on the dark bands (not the footer)
   ===================================================================== */

/* 1. Dimension line: a short line with an end tick on each side, like a
      measurement on a drawing. It takes the title's own colour, softened. */
.hx .hx-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 9px;
  margin-top: 14px;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: 0.4;
}

/* 2. Corner marks: four small L-shaped brackets, like the corners of a
      drawing frame. White and inset on photos (product cards, featured
      projects); blue and just outside the frame on the Home video. They
      sharpen slightly when the picture is hovered or focused. */
.hx .hx-card-img,
.hx .hx-process-video-media {
  position: relative;
}

.hx .hx-card-img::after,
.hx .pj-feature-media::after,
.hx .hx-process-video-media::before {
  --mark: rgba(255, 255, 255, 0.85);
  --len: 14px;
  --w: 1.5px;
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  background:
    linear-gradient(var(--mark), var(--mark)) left top / var(--len) var(--w) no-repeat,
    linear-gradient(var(--mark), var(--mark)) left top / var(--w) var(--len) no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / var(--len) var(--w) no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top / var(--w) var(--len) no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / var(--len) var(--w) no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / var(--w) var(--len) no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / var(--len) var(--w) no-repeat,
    linear-gradient(var(--mark), var(--mark)) left bottom / var(--w) var(--len) no-repeat;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.25s ease, inset 0.25s ease;
}

.hx .hx-card:hover .hx-card-img::after,
.hx .hx-card:focus .hx-card-img::after,
.hx .pj-feature-media:hover::after,
.hx .pj-feature-media:focus::after {
  inset: 8px;
  opacity: 0.95;
}

.hx .pj-feature-year {
  z-index: 2;   /* the red year label stays above the top-left mark */
}

.hx .hx-process-video-media::before {
  --mark: var(--hx-navy);
  --len: 16px;
  --w: 1px;
  inset: -10px;
  z-index: 0;
  opacity: 0.45;
}

/* 3. Faint grid on the dark bands (Home "Contact" band, the "Have a project
      in mind?" style bands on inner pages). */
.hx .hx-band::before,
.hx .hx-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, #000000 65%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, #000000 65%);
  pointer-events: none;
}

/* (2026-11-23: the footer grid and the scale-ruler ticks on the Home key figures were tried
   and removed at the owner's request; the footer keeps its plain blue overlay.) */

/* Privacy notice under the Contact and Consultation Send buttons (2026-11-23), and the
   "needs JavaScript" note shown only when scripts are off. */
.hx .hx-form-privacy {
  margin: 14px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hx .hx-form-privacy a {
  color: var(--hx-blue);
  text-decoration: underline;
}

/* A Send button waiting for the page to finish loading looks unavailable. */
.hx .hx-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---- About page: frequently asked questions (2026-11-23) ----
   Each group has its label on the left and its questions on the right (stacked on phones).
   The questions are plain <details> boxes; the + mark turns into a - when one is open. */
.hx .hx-faq-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--hx-rule);
}

.hx .hx-faq-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.hx .hx-faq-group-title {
  margin: 0;
  color: var(--hx-navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.hx .hx-faq-item {
  border-bottom: 1px solid var(--hx-line);
}

.hx .hx-faq-item:first-child {
  border-top: 1px solid var(--hx-line);
}

.hx .hx-faq-item summary {
  position: relative;
  display: block;
  padding: 16px 44px 16px 0;
  color: var(--hx-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.hx .hx-faq-item summary::-webkit-details-marker {
  display: none;
}

/* the + / - mark, drawn with two thin bars */
.hx .hx-faq-item summary::before,
.hx .hx-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--hx-blue);
  transition: transform 0.2s ease;
}

.hx .hx-faq-item summary::after {
  transform: rotate(90deg);
}

.hx .hx-faq-item[open] summary::after {
  transform: rotate(0deg);
}

.hx .hx-faq-item summary:hover {
  color: var(--hx-navy);
}

.hx .hx-faq-item summary:focus-visible {
  outline: 2px solid var(--hx-blue);
  outline-offset: 2px;
}

.hx .hx-faq-answer {
  max-width: 70ch;
  padding: 0 0 18px;
  color: var(--hx-text);
  font-size: 15px;
  line-height: 1.7;
}

.hx .hx-faq-answer p,
.hx .hx-faq-answer ul {
  margin: 0 0 10px;
}

.hx .hx-faq-answer p:last-child,
.hx .hx-faq-answer ul:last-child {
  margin-bottom: 0;
}

.hx .hx-faq-answer ul {
  padding-left: 20px;
}

.hx .hx-faq-answer a {
  color: var(--hx-blue);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hx .hx-faq-item summary::after {
    transition: none;
  }
}

/* Reply-time promise just above the Contact and Consultation Send buttons (2026-11-23). */
.hx .hx-form-reply {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--hx-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.hx .hx-form-reply .fa {
  color: var(--hx-blue);
}

/* Links inside a page header's intro line (FAQ page, 2026-11-23): white and underlined,
   so they stay readable on the blue header. */
.hx .hx-pagehero-lead a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx .hx-pagehero-lead a:hover,
.hx .hx-pagehero-lead a:focus {
  color: var(--hx-sky);
}

/* ---- FAQ page, desktop: clearer sections (2026-11-23). The owner preferred the original layout
   (group on the left, questions on the right) over a 2 x 2 card grid, but with better sectioning.
   Each group now has a numbered left column (01-04) with an icon, the group name, a one-line
   summary and the question count; that column stays in view while its questions scroll by, and
   the groups are split by a stronger rule. Phones and tablets keep the plain stacked list
   (icon, number and summary hidden). ---- */
.hx .hx-faq-icon,
.hx .hx-faq-group-desc {
  display: none;
}

@media (min-width: 992px) {
  .hx .hx-faq {
    counter-reset: faq-group;
  }

  .hx .hx-faq-group {
    counter-increment: faq-group;
    grid-template-columns: 4fr 8fr;
    gap: 56px;
    padding: 44px 0;
    border-top: 2px solid var(--hx-rule);
  }

  .hx .hx-faq-group:first-child {
    padding-top: 8px;
    border-top: 0;
  }

  .hx .hx-faq-group-head {
    position: sticky;
    top: 130px;   /* just below the floating menu bar */
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
    padding-left: 22px;
    border-left: 3px solid var(--hx-blue);
  }

  /* section number, like a drawing reference: 01, 02 ... */
  .hx .hx-faq-group-head::before {
    content: counter(faq-group, decimal-leading-zero);
    display: block;
    color: var(--hx-sky);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .hx .hx-faq-group-head > div {
    flex: 0 0 100%;
    margin-top: 16px;
  }

  .hx .hx-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: var(--hx-navy);
    color: #ffffff;
    font-size: 18px;
  }

  .hx .hx-faq-group-title {
    padding-top: 0;
    font-size: 21px;
  }

  .hx .hx-faq-group-desc {
    display: block;
    margin: 8px 0 0;
    color: var(--hx-muted);
    font-size: 15px;
    line-height: 1.6;
  }

  .hx .hx-faq-count {
    display: block;
    margin-top: 12px;
    color: var(--hx-navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ---- Contact page, "Policy, Privacy & Terms": the two legal links side by side (2026-11-24) ---- */
.hx .hx-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}

/* Phone numbers inside article text stay on one line (2026-11-24) */
.hx .hx-article a[href^="tel:"] {
  white-space: nowrap;
}

/* =====================================================================
   HEADER CONTACT STRIP (every page, <div class="top"> above the menu; 2026-11-24)
   White with a faint blue engineering grid that fades into the menu bar (16px fine lines, a stronger line every 80px,
   like the page headers' grid in blue instead of white), navy text, blue icons, a thin rule
   between phone and email, office hours on the right (wide screens only).
   ===================================================================== */
.vtc-menu-desktop .top {
  position: relative;
  width: 100%;
  padding: 8px 0;
  color: #1f5a8f;
  font-size: 13px;
  letter-spacing: 0.2px;
}

/* The grid covers the contact strip and the menu bar below it: fully there across the top half of
   the strip, then fading out by the middle of the menu bar, so the strip melts into the menu.
   When the menu bar is pinned while scrolling it gets its own white background (no grid). */
.vtc-menu-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 114, 176, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 114, 176, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(38, 114, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 114, 176, 0.05) 1px, transparent 1px);
  background-position: center -1px;
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000000 0, #000000 18px, transparent 88px);
  mask-image: linear-gradient(180deg, #000000 0, #000000 18px, transparent 88px);
  pointer-events: none;
}

/* Phones and tablets: the menu bar (.vtc-menu-mobile) sits below the strip's box, so it gets its own
   copy of the grid, lined up with the strip's lines, that carries on the same fade: about 72% at the
   join, gone by the middle of the bar. Strip height: 36px (481-1199px wide) or 32px (480px and less). */
@media (max-width: 1199px) {
  .vtc-menu-desktop::before {
    -webkit-mask-image: linear-gradient(180deg, #000000 0, #000000 50%, rgba(0, 0, 0, 0.72) 100%);
    mask-image: linear-gradient(180deg, #000000 0, #000000 50%, rgba(0, 0, 0, 0.72) 100%);
  }

  .vtc-menu-mobile {
    position: relative;
    z-index: 0;
  }

  .vtc-menu-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(rgba(38, 114, 176, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(38, 114, 176, 0.1) 1px, transparent 1px),
      linear-gradient(rgba(38, 114, 176, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(38, 114, 176, 0.05) 1px, transparent 1px);
    background-position: center -37px, center -37px, center -5px, center -5px;
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0, transparent 46px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0, transparent 46px);
    pointer-events: none;
  }

  /* pinned while scrolling: plain white bar */
  html.nav-stuck .vtc-menu-mobile::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .vtc-menu-mobile::before {
    background-position: center -33px, center -33px, center -1px, center -1px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0, transparent 42px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0, transparent 42px);
  }
}

.vtc-menu-desktop .top > .container {
  position: relative;
}

.vtc-menu-desktop .top .hx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 20px;
}

/* Bootstrap's clearfix pseudo-elements on .container would act as flex items here. */
.vtc-menu-desktop .top .hx-topbar::before,
.vtc-menu-desktop .top .hx-topbar::after {
  display: none;
}

.vtc-menu-desktop .top .peb_contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vtc-menu-desktop .top .peb_contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  line-height: 20px;
}

.vtc-menu-desktop .top .peb_contact li:first-child {
  padding-left: 0;
}

.vtc-menu-desktop .top .peb_contact li + li {
  border-left: 1px solid rgba(38, 114, 176, 0.3);
}

.vtc-menu-desktop .top i {
  width: 14px;
  color: #2672b0;
  font-size: 13px;
  text-align: center;
}

.vtc-menu-desktop .top .hx-topbar-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5f6e84;
  line-height: 20px;
}

/* Phones may turn the number and address into links; keep them in the strip's colors. */
.vtc-menu-desktop .top a,
.vtc-menu-desktop .top a[x-apple-data-detectors] {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 991px) {
  .vtc-menu-desktop .top .hx-topbar-hours {
    display: none;
  }

  .vtc-menu-desktop .top .hx-topbar {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .vtc-menu-desktop .top {
    padding: 6px 0;
    font-size: 12px;
  }

  .vtc-menu-desktop .top .peb_contact {
    justify-content: center;
    gap: 0 18px;
  }

  .vtc-menu-desktop .top .peb_contact li {
    padding: 0;
  }

  .vtc-menu-desktop .top .peb_contact li + li {
    border-left: 0;
  }
}

/* =====================================================================
   PAGE NOT FOUND (404.html at the site root; 2026-11-24)
   ===================================================================== */
.hx .hx-404-intro {
  max-width: 720px;
}

.hx .hx-404-intro p {
  margin: 0 0 24px;
  color: var(--hx-text);
  font-size: 17px;
  line-height: 1.6;
}

.hx .hx-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hx .hx-404-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.hx .hx-404-links a {
  display: block;
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--hx-line);
  border-top: 3px solid var(--hx-navy);
  background: var(--hx-alt);
  color: var(--hx-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hx .hx-404-links a:hover,
.hx .hx-404-links a:focus-visible {
  border-color: var(--hx-blue);
  transform: translateY(-3px);
}

.hx .hx-404-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hx-navy);
  font-size: 18px;
  line-height: 1.3;
}

.hx .hx-404-links span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .hx .hx-404-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hx .hx-404-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Example text inside form boxes: lighter than what visitors type, but darker than Bootstrap's
   #999 so it stays readable (3.6:1 on white). Owner asked for a lighter shade on 2026-11-25
   (was #6b7280, 4.8:1). */
.form-control::placeholder {
  color: #80878f;
}
