/*
Theme Name: Battlefield Press
Theme URI:
Author: CyberBloom
Author URI:
Description: Custom block theme for Battlefield Press, built with Full Site Editing.
Version: 0.3.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: battlefield-press
*/

/* ============================================================
   GLOBAL RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

/* Visually hidden — accessible to screen readers, removed from visual flow */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* ============================================================
   SITE HEADER
   ≥1600px: standard sizing, inline nav
   1440-1599px: tight tier (smaller logo/nav/buttons), inline nav
   <1440px: hamburger menu; header buttons hidden, teleport into
   overlay at viewport bottom when open (html.has-modal-open)
   <768px: tighter padding
   Padding scales via max()/calc() — caps inner content at ~2000px wide.
   ============================================================ */

header.wp-block-template-part:has(.site-header) {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  background-color: #ffffff;
  min-height: 70px;
  padding-left: max(60px, calc((100vw - 2000px) / 2)) !important;
  padding-right: max(60px, calc((100vw - 2000px) / 2)) !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

/* Laptop tier — aggressive tightening to fit 7 nav items + logo + 2 buttons within viewport.
   Without this, space-between justification causes horizontal overflow at 1440-1599px. */
@media (min-width: 1440px) and (max-width: 1599px) {
  .site-header {
    gap: 16px !important;
  }

  .site-header .wp-block-site-logo img {
    width: 140px;
  }

  .site-header .wp-block-navigation {
    flex-shrink: 1;
    min-width: 0;
  }

  .site-header .wp-block-navigation__container {
    gap: 14px !important;
  }

  .site-header .wp-block-navigation-item__content,
  .site-header .wp-block-navigation-item__content .wp-block-navigation-item__label {
    font-size: 16px !important;
  }

  .header-buttons .wp-block-button__link {
    padding: 8px 14px;
    font-size: 14px !important;
  }

  .header-buttons {
    gap: 10px !important;
  }
}

/* Force hamburger menu below 1440px (7 nav items + logo + 2 buttons cannot fit at tablet/mobile widths) */
@media (max-width: 1439px) {
  .site-header .wp-block-navigation .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  .site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.has-modal-open):not(.is-menu-open) {
    display: none !important;
  }
}

/* ============================================================
   MOBILE OVERLAY — header buttons teleport
   <1440px: buttons hidden from header row. assets/js/mobile-nav.js
   moves the element into the overlay dialog when it opens, so the
   buttons sit after the nav list and scroll with it.
   ============================================================ */

@media (max-width: 1439px) {
  /* Hide buttons from header row */
  .site-header .header-buttons {
    display: none !important;
  }

  /* When overlay is open, show buttons in flow at the end of the list */
  html.has-modal-open .header-buttons {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 0 var(--wp--preset--spacing--40);
  }

  /* Stack the two button groups full-width */
  html.has-modal-open .site-header .header-buttons .wp-block-buttons {
    width: 100%;
    max-width: 220px;
    display: flex;
    justify-content: center;
  }

  html.has-modal-open .site-header .header-buttons .wp-block-button {
    width: 100%;
  }

  html.has-modal-open .site-header .header-buttons .wp-block-button__link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Breathing room at the end of the overlay content */
  html.has-modal-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-bottom: 24px !important;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* WP admin bar offset when logged in */
.admin-bar header.wp-block-template-part:has(.site-header) {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar header.wp-block-template-part:has(.site-header) {
    top: 46px;
  }
}

/* Overlay close (X) button — match enlarged hamburger sizing */
.site-header .wp-block-navigation__responsive-container-close {
  width: 44px;
  height: 44px;
  padding: 8px;
}

.site-header .wp-block-navigation__responsive-container-close svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ============================================================
   MOBILE OVERLAY — dropdown collapse behavior
   Submenus hidden by default inside mobile overlay; expanded
   only when parent <li> has .is-mobile-expanded (toggled via JS).
   ============================================================ */

@media (max-width: 1439px) {
  /* Hide all submenus inside the open overlay by default */
  html.has-modal-open .site-header .wp-block-navigation__submenu-container {
    display: none !important;
  }

  /* Center wrapped text within mobile overlay submenus */
  html.has-modal-open .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
  html.has-modal-open .site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
    text-align: center;
  }

  /* Show submenu when parent is marked expanded */
  html.has-modal-open .site-header .wp-block-navigation-item.has-child.is-mobile-expanded > .wp-block-navigation__submenu-container {
    display: flex !important;
  }

  /* Caret indicator on dropdown parents (chevron-down) */
  html.has-modal-open .site-header .wp-block-navigation-item.has-child > .wp-block-navigation-item__content::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
  }

  /* Caret rotates 180° when expanded */
  html.has-modal-open .site-header .wp-block-navigation-item.has-child.is-mobile-expanded > .wp-block-navigation-item__content::after {
    transform: rotate(-135deg) translate(-2px, -2px);
  }

  /* Horizontal dividers above/below the expanded group (per Figma image 2) */
  html.has-modal-open .site-header .wp-block-navigation-item.has-child.is-mobile-expanded {
    border-top: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    padding-top: 16px;
    padding-bottom: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  /* Hide WP's default submenu icon arrow (we render our own caret) */
  html.has-modal-open .site-header .wp-block-navigation__submenu-icon {
    display: none !important;
  }

  /* Mobile nav link color — BFP primary purple for top-level only.
     Submenu items keep desktop's text-muted grey for visual hierarchy. */
  html.has-modal-open .site-header > .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
  html.has-modal-open .site-header > .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content .wp-block-navigation-item__label {
    color: var(--wp--preset--color--primary) !important;
  }
}

/* ============================================================
   LOGO
   ============================================================ */

.site-header .wp-block-site-logo {
  flex-shrink: 0;
}

.site-header .wp-block-site-logo img {
  width: 200px;
  height: auto;
}

@media (max-width: 767px) {
  .site-header .wp-block-site-logo img {
    width: 140px;
  }
}

/* ============================================================
   NAVIGATION — RESPONSIVE BEHAVIOR
   Desktop (≥1440px): inline nav visible, hamburger hidden
   Tablet/Mobile (≤1439px): hamburger visible, inline nav hidden until opened
   ============================================================ */

.site-header .wp-block-navigation {
  flex-shrink: 0;
}

/* Nav link spacing — large desktop (≥1600px): full breathing room */
@media (min-width: 1600px) {
  .site-header .wp-block-navigation__container {
    gap: 36px !important;
  }
}

/* Nav link styling (applies to desktop inline nav AND opened overlay menu items) */
.site-header .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__content .wp-block-navigation-item__label {
  font-size: 18px !important;
  color: var(--wp--preset--color--text-muted) !important;
  font-weight: 500;
  text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

.site-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Hamburger button styling */
.site-header .wp-block-navigation__responsive-container-open {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--wp--preset--color--text-muted);
  transition: color 0.2s ease;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.site-header .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--text-secondary);
}

/* Hide the default WP hamburger SVG (2 lines) */
.site-header .wp-block-navigation__responsive-container-open svg {
  display: none;
}

/* Custom 3-line hamburger using pseudo-elements + box-shadow trick */
.site-header .wp-block-navigation__responsive-container-open::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: currentColor;
  box-shadow: 
    0 -9px 0 currentColor,
    0 9px 0 currentColor;
}

/* ============================================================
   DROPDOWN MENUS (desktop inline nav)
   ============================================================ */

.site-header .wp-block-navigation__submenu-container {
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 16px 0;
  min-width: 220px;
  left: 0 !important;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  overflow: hidden;
}

.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 8px 24px;
}

/* ============================================================
   ACTIVE DROPDOWN ITEM — registry
   For each new page, add a selector pair below matching the
   body.page-{slug} class to the dropdown link's href.
   ============================================================ */

/* Border style — applied to <a> only */
body.page-company-history .site-header .wp-block-navigation__submenu-container a[href$="/company-history/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-company-history .site-header .wp-block-navigation__submenu-container a[href$="/company-history/"],
body.page-company-history .site-header .wp-block-navigation__submenu-container a[href$="/company-history/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-quality-assurance .site-header .wp-block-navigation__submenu-container a[href$="/quality-assurance/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-quality-assurance .site-header .wp-block-navigation__submenu-container a[href$="/quality-assurance/"],
body.page-quality-assurance .site-header .wp-block-navigation__submenu-container a[href$="/quality-assurance/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-equipment-list .site-header .wp-block-navigation__submenu-container a[href$="/equipment-list/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-equipment-list .site-header .wp-block-navigation__submenu-container a[href$="/equipment-list/"],
body.page-equipment-list .site-header .wp-block-navigation__submenu-container a[href$="/equipment-list/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-printing .site-header .wp-block-navigation__submenu-container a[href$="/printing/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-printing .site-header .wp-block-navigation__submenu-container a[href$="/printing/"],
body.page-printing .site-header .wp-block-navigation__submenu-container a[href$="/printing/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-die-cutting .site-header .wp-block-navigation__submenu-container a[href$="/die-cutting/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-die-cutting .site-header .wp-block-navigation__submenu-container a[href$="/die-cutting/"],
body.page-die-cutting .site-header .wp-block-navigation__submenu-container a[href$="/die-cutting/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-careers .site-header .wp-block-navigation__submenu-container a[href$="/careers/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-careers .site-header .wp-block-navigation__submenu-container a[href$="/careers/"],
body.page-careers .site-header .wp-block-navigation__submenu-container a[href$="/careers/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-folding-gluing .site-header .wp-block-navigation__submenu-container a[href$="/folding-gluing/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-folding-gluing .site-header .wp-block-navigation__submenu-container a[href$="/folding-gluing/"],
body.page-folding-gluing .site-header .wp-block-navigation__submenu-container a[href$="/folding-gluing/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* ClearPak — top-level item (no border, color override only) */
body.page-clearpak .site-header .wp-block-navigation a[href$="/clearpak/"],
body.page-clearpak .site-header .wp-block-navigation a[href$="/clearpak/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-prototyping-structural-design .site-header .wp-block-navigation__submenu-container a[href$="/prototyping-structural-design/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-prototyping-structural-design .site-header .wp-block-navigation__submenu-container a[href$="/prototyping-structural-design/"],
body.page-prototyping-structural-design .site-header .wp-block-navigation__submenu-container a[href$="/prototyping-structural-design/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-storage-fulfillment .site-header .wp-block-navigation__submenu-container a[href$="/storage-fulfillment/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-storage-fulfillment .site-header .wp-block-navigation__submenu-container a[href$="/storage-fulfillment/"],
body.page-storage-fulfillment .site-header .wp-block-navigation__submenu-container a[href$="/storage-fulfillment/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-continuous-improvement .site-header .wp-block-navigation__submenu-container a[href$="/continuous-improvement/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-continuous-improvement .site-header .wp-block-navigation__submenu-container a[href$="/continuous-improvement/"],
body.page-continuous-improvement .site-header .wp-block-navigation__submenu-container a[href$="/continuous-improvement/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-sustainability .site-header .wp-block-navigation__submenu-container a[href$="/sustainability/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-sustainability .site-header .wp-block-navigation__submenu-container a[href$="/sustainability/"],
body.page-sustainability .site-header .wp-block-navigation__submenu-container a[href$="/sustainability/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-folding-cartons .site-header .wp-block-navigation__submenu-container a[href$="/folding-cartons/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-folding-cartons .site-header .wp-block-navigation__submenu-container a[href$="/folding-cartons/"],
body.page-folding-cartons .site-header .wp-block-navigation__submenu-container a[href$="/folding-cartons/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-portfolio .site-header .wp-block-navigation__submenu-container a[href$="/portfolio/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-portfolio .site-header .wp-block-navigation__submenu-container a[href$="/portfolio/"],
body.page-portfolio .site-header .wp-block-navigation__submenu-container a[href$="/portfolio/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-case-studies .site-header .wp-block-navigation__submenu-container a[href$="/case-studies/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-case-studies .site-header .wp-block-navigation__submenu-container a[href$="/case-studies/"],
body.page-case-studies .site-header .wp-block-navigation__submenu-container a[href$="/case-studies/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* Border style — applied to <a> only */
body.page-case-studies .site-header .wp-block-navigation__submenu-container a[href$="/awards/"] {
  border-left: 7px solid var(--wp--preset--color--text-secondary);
  padding-left: 17px;
}

/* Text color — applied to <a> and inner label */
body.page-awards .site-header .wp-block-navigation__submenu-container a[href$="/awards/"],
body.page-awards .site-header .wp-block-navigation__submenu-container a[href$="/awards/"] .wp-block-navigation-item__label {
  color: var(--wp--preset--color--text-secondary) !important;
}

/* ============================================================
   HEADER BUTTONS
   <1440px: hidden from header row, teleported into open overlay
   (see MOBILE OVERLAY — header buttons teleport section above)
   ============================================================ */
.site-header .header-buttons {
  flex-shrink: 0;
  gap: 16px;
}

.header-buttons .wp-block-button__link {
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 16px !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

/* Contact Us */
.header-buttons .wp-block-button:not(.is-style-ftp) .wp-block-button__link {
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

.header-buttons .wp-block-button:not(.is-style-ftp) .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--button-hover) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

/* FTP — vertical gradient + SVG arrow */
.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link {
  position: relative;
  background: linear-gradient(to top, var(--wp--preset--color--accent), var(--wp--preset--color--primary)) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
  font-weight: 700;
  display: inline-flex !important;
  align-items: center;
  padding-right: 46px;
  overflow: hidden;
  transition: color 0.3s ease;
}

.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link:hover {
  color: transparent !important;
}

.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--wp--preset--color--accent), var(--wp--preset--color--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 7px;
}

.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link:hover::before {
  opacity: 1;
}

.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  z-index: 1;
  width: 16px;
  height: 16px;
  background-image: url('./assets/images/ftp-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, right 0.3s ease;
}

.header-buttons .wp-block-button.is-style-ftp .wp-block-button__link:hover::after {
  right: 50%;
  transform: translate(50%, -50%) scale(1.4);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--wp--preset--color--footer-bg);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
  text-align: center;
  color: var(--wp--preset--color--text-on-dark);
  gap: 24px !important;
}

@media (max-width: 1279px) {
  .site-footer {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
  }
}

/* Footer logo */
.site-footer .footer-logo {
  margin: 0 auto;
}

.site-footer .footer-logo img {
  width: 320px;
  height: auto;
  max-width: 100%;
}

/* Footer text blocks (address + phone) */
.site-footer .footer-address,
.site-footer .footer-phone {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-address p,
.site-footer .footer-phone p {
  color: var(--wp--preset--color--text-on-dark) !important;
  font-size: var(--wp--preset--font-size--body) !important;
  margin: 0;
  line-height: 1.4;
}

.site-footer .footer-phone a {
  color: var(--wp--preset--color--text-on-dark) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer .footer-phone a:hover {
  opacity: 0.8;
}

/* Footer Contact Us button — inverted style */
.site-footer .footer-cta {
  justify-content: center;
}

.site-footer .footer-cta .wp-block-button.is-style-footer-contact .wp-block-button__link {
  background-color: var(--wp--preset--color--text-on-dark) !important;
  color: var(--wp--preset--color--primary) !important;
  padding: 15px 25px;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-footer .footer-cta .wp-block-button.is-style-footer-contact .wp-block-button__link:hover {
  opacity: 0.85;
  color: var(--wp--preset--color--primary) !important;
}

/* Footer social icons */
.site-footer .footer-social {
  gap: 24px !important;
  margin-top: 8px;
}

.site-footer .footer-social__link {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-social__link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.site-footer .footer-social__link--instagram {
  background-image: url('./assets/images/social/instagram-logo.svg');
}

.site-footer .footer-social__link--tiktok {
  background-image: url('./assets/images/social/tiktok-logo.svg');
}

.site-footer .footer-social__link--linkedin {
  background-image: url('./assets/images/social/linkedin-logo.svg');
  background-size: 120%;
}

.site-footer .footer-social__link--facebook {
  background-image: url('./assets/images/social/facebook-logo.svg');
  background-size: 115%;
}

/* ============================================================
   FRONT PAGE — format styles overriding block gap mostly
   ============================================================ */

/* Remove default block-gap between header, main, sections, and footer so backgrounds touch */
main.front-page,
main.page-company-history,
main.page-quality-assurance,
main.page-clearpak {
  --wp--style--block-gap: 0 !important;
}

main.front-page,
main.page-company-history,
main.page-quality-assurance,
main.page-clearpak,
main.front-page > * + *,
main.page-company-history > * + *,
main.page-quality-assurance > * + *,
main.page-clearpak > * + *,
.wp-site-blocks > * + * {
  margin-top: 0 !important;
}

/* ============================================================
   FRONT PAGE — SECTION: Excellence (Over 60 Years)
   ============================================================ */

.section-excellence {
  background-color: var(--wp--preset--color--secondary);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
  text-align: center;
}

@media (max-width: 1279px) {
  .section-excellence {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .section-excellence {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
  }
}

/* Eyebrow */
.section-excellence__eyebrow {
  font-size: var(--wp--preset--font-size--small-plus) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

/* Heading */
.section-excellence__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 500;
  line-height: 1.05;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 24px 0;
}

/* Body */
.section-excellence__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary) !important;
  max-width: 1500px;
  margin: 0 auto 32px auto;
}

/* CTA — Company History button (matches header primary button styling) */
.section-excellence__cta .wp-block-button__link {
  padding: 15px 25px;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
  transition: background-color 0.2s ease;
}

.section-excellence__cta .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--button-hover) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

/* ============================================================
   FRONT PAGE — SECTION: Expertise (Trusted Expertise)
   ============================================================ */

.section-expertise {
  background-color: var(--wp--preset--color--text-secondary);
  padding: 0 !important;
  overflow: hidden;
}

.section-expertise__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 850px;
  gap: 0;
}

/* Content column — left */
.section-expertise__content {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

@media (max-width: 1279px) {
  .section-expertise__content {
    padding-left: var(--wp--preset--spacing--60);
    padding-right: var(--wp--preset--spacing--50);
  }
}

/* Heading */
.section-expertise__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 600;
  line-height: 1.05;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0 0 24px 0;
}

/* Body */
.section-expertise__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0 0 32px 0;
}

/* CTA — Case Studies button */
.section-expertise__cta .wp-block-button__link {
  padding: 15px 25px;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
  transition: background-color 0.2s ease;
}

.section-expertise__cta .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--button-hover) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

/* Image column — right, full-bleed to viewport edge */
.section-expertise__image {
  background-image: url('./assets/images/home/trusted-expertise.jpg');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--wp--preset--color--text-secondary);
  width: 100%;
  height: 100%;
  min-height: 850px;
}

/* Mobile — stack image above text, image takes ~50vh */
@media (max-width: 767px) {
  .section-expertise__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section-expertise__image {
    order: -1;
    min-height: 50vh;
    height: 50vh;
  }

  .section-expertise__content {
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
  }

  .section-expertise__heading {
    font-size: var(--wp--preset--font-size--xx-large) !important;
  }
}

/* ============================================================
   FRONT PAGE + COMPANY HISTORY — SECTION: Leadership Cards
   ============================================================ */

.section-leadership {
  background-color: var(--wp--preset--color--secondary);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

@media (max-width: 1279px) {
  .section-leadership {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .section-leadership {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
  }
}

.section-leadership__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-leadership__person {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Photo — egg/ellipse shape */
.section-leadership__photo {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 48% 48% 50% 50% / 46% 46% 52% 52%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-leadership__photo--jerry {
  background-image: url('./assets/images/home/jerry-theoret.jpg');
}

.section-leadership__photo--matt {
  background-image: url('./assets/images/home/matt-theoret.jpg');
}

/* Content */
.section-leadership__content {
  flex: 1;
  min-width: 0;
}

.section-leadership__name {
  font-size: var(--wp--preset--font-size--large) !important;
  font-weight: 700;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.section-leadership__title {
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.section-leadership__bio {
  font-size: var(--wp--preset--font-size--small-plus) !important;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0;
}

/* Tablet — shrink photos and inter-person gap to fit
   Note: .section-leadership__inner gap removed — overridden by the
   .section-leadership__inner gap: 60px in the @media (max-width: 1439px)
   block below at all viewports where this rule could fire. */
@media (max-width: 1279px) {
  .section-leadership__person {
    gap: 24px;
  }

  .section-leadership__photo {
    width: 160px;
  }
}

/* Smaller tablets / large mobile (768-1023px) — shrink photos further */
@media (max-width: 1023px) and (min-width: 768px) {
  .section-leadership__photo {
    width: 130px;
  }

  .section-leadership__inner {
    gap: 24px;
  }

  .section-leadership__person {
    gap: 20px;
  }
}

/* Mobile — stack persons vertically, photo above text */
@media (max-width: 1439px) {
  .section-leadership__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .section-leadership__person {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .section-leadership__photo {
    width: 220px;
  }
}

/* ============================================================
   FRONT PAGE — SECTION: Hero / Carousel
   ============================================================ */

.section-hero {
  background-color: var(--wp--preset--color--text-secondary);
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}

.section-hero__inner {
  position: relative;
  min-height: 950px;
}

/* Slides — stacked, only active is visible */
.section-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
  pointer-events: none;
}

.section-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0s;
  pointer-events: auto;
  z-index: 1;
}

/* Image column — left, full-bleed to viewport edge */
.section-hero__image {
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  min-height: 950px;
}

/* Content column — right */
.section-hero__content {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
  max-width: 850px;
}

@media (max-width: 1279px) {
  .section-hero__content {
    padding-right: var(--wp--preset--spacing--60);
    padding-left: var(--wp--preset--spacing--50);
  }
}

/* Heading */
.section-hero__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 600;
  line-height: 1.05;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0 0 24px 0;
}

/* Body */
.section-hero__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0 0 32px 0;
}

/* CTA — Learn More button */
.section-hero__cta .wp-block-button__link {
  display: inline-block;
  padding: 15px 25px;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.section-hero__cta .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--button-hover) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

/* Pagination dots — vertical column on the right */
.section-hero__dots {
  position: absolute;
  right: var(--wp--preset--spacing--40);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.section-hero__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: var(--wp--preset--color--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.section-hero__dot:hover {
  border-color: rgba(255, 255, 255, 1);
}

.section-hero__dot.is-active {
  background-color: var(--wp--preset--color--text-on-dark);
  border-color: var(--wp--preset--color--text-on-dark);
  transform: scale(1.3);
}

/* Mobile — image fills the hero; content overlays on the right over
   the dark right-side of each slide image. Image stays anchored left
   so products sit on the left, dark right-portion serves as text bg. */
@media (max-width: 767px) {
  .section-hero__cta {
    display: flex;
    justify-content: flex-end;
  }

  .section-hero__inner {
    min-height: 440px;
  }

  /* Slide: single grid cell, image and content layered */
  .section-hero__slide {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .section-hero__slide .section-hero__image,
  .section-hero__slide .section-hero__content {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  /* Image fills entire slide */
  .section-hero__image {
    min-height: 440px;
    background-size: cover;
    background-position: 40% center;
  }

  /* Content overlays on right ~55% (clears dots on right edge) */
  .section-hero__content {
    align-self: center;
    margin-left: 38%;
    max-width: 62%;
    padding: var(--wp--preset--spacing--40);
    padding-right: 64px;
    z-index: 1;
    text-align: right;
  }

  .section-hero__body {
    display: none;
  }

  .section-hero__heading {
    font-size: var(--wp--preset--font-size--xx-large) !important;
  }
}
/* ============================================================
   SITE FOOTER — BOTTOM BAR
   ============================================================ */

.site-footer-bottom {
  background-color: var(--wp--preset--color--background);
  padding: 16px var(--wp--preset--spacing--70);
  gap: 24px !important;
}

@media (max-width: 1279px) {
  .site-footer-bottom {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .site-footer-bottom {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
    justify-content: center !important;
    text-align: center;
  }
}

.site-footer-bottom__copyright {
  font-size: var(--wp--preset--font-size--x-small) !important;
  font-weight: 300;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0;
}

.site-footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.site-footer-bottom__links li {
  display: flex;
  align-items: center;
}

.site-footer-bottom__links li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: #cccccc;
  margin: 0 12px;
}

.site-footer-bottom__links a {
  font-size: var(--wp--preset--font-size--x-small) !important;
  font-weight: 300;
  color: var(--wp--preset--color--text-secondary) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer-bottom__links a:hover {
  opacity: 0.7;
}

/* ============================================================
   GLOBAL — PAGE HERO
   Reusable hero used across pages. Text left, image right (full-bleed right edge).
   Image path provided per-instance via inline style on .section-hero-page__image.
   ============================================================ */

.section-hero-page {
  background-color: var(--wp--preset--color--text-secondary);
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}

.section-hero-page__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 950px;
}

/* Content column — left */
.section-hero-page__content {
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
  max-width: 850px;
  justify-self: end;
  width: 100%;
}

/* Heading */
.section-hero-page__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 600;
  line-height: 1.05;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0 0 24px 0;
}

/* Body */
.section-hero-page__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wp--preset--color--text-on-dark) !important;
  margin: 0;
}

/* Image column — right, full-bleed to viewport edge */
.section-hero-page__image {
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  min-height: 950px;
}

/* Laptop/medium desktop — tighten content padding, anchor image to LEFT
   so the column shrinkage crops the right side of the image */
@media (max-width: 1599px) {
  .section-hero-page__content {
    padding-left: 60px;
    padding-right: 40px;
  }

  .section-hero-page__image {
    background-position: 80% center;
  }
}

/* Wide viewports — scale image larger to fill more of the right column */
@media (min-width: 2000px) {
  .section-hero-page__image {
    background-size: auto 130%;
  }
}

/* Tablets — image to the right of heading, compact section */
@media (max-width: 900px) {
  .section-hero-page__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 200px;
    align-items: center;
  }

  .section-hero-page__image {
    min-height: 200px;
    height: 100%;
    background-size: auto 130%;
    background-position: right center;
  }

  .section-hero-page__content {
    padding: var(--wp--preset--spacing--40);
    max-width: 100%;
    justify-self: stretch;
  }

  .section-hero-page__body {
    font-size: var(--wp--preset--font-size--body) !important;
  }

  .section-hero-page__heading {
    font-size: var(--wp--preset--font-size--xx-large) !important;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   MOBILE - IMAGE BANNER REMOVAL
   Per Elise: image banners are removed entirely below 768px; the format only
   reads well at full width. Video banners (Printing, Die Cutting, Folding &
   Gluing) are excluded and stay at all widths.
   Removes the whole section, heading included, as confirmed.
   ========================================================================== */

@media (max-width: 767px) {
	.section-hero-page,
	.page-clearpak .section-clearpak-hero {
		display: none !important;
	}
}

/* Flipped variant — image left, content right (mirror of the default).
   Add `section-hero-page--image-left` to the section alongside the base class.
   Used on the Folding Cartons hero. */
.section-hero-page--image-left .section-hero-page__image {
  grid-column: 1;
  grid-row: 1;
  background-position: left center;
  background-size: cover;
}

.section-hero-page--image-left .section-hero-page__content {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
  text-align: right;
}

/* Laptop tier — mirror the image anchor (crop the LEFT side instead of right) */
@media (max-width: 1599px) {
  .section-hero-page--image-left .section-hero-page__content {
    padding-left: 40px;
    padding-right: 60px;
  }
  .section-hero-page--image-left .section-hero-page__image {
    background-position: 20% center;
  }
}

/* Tablet/mobile — re-mirror the base compact rules */
@media (max-width: 900px) {
  .section-hero-page--image-left .section-hero-page__content {
    justify-self: stretch;
    padding: var(--wp--preset--spacing--40);
  }
  .section-hero-page--image-left .section-hero-page__image {
    background-position: left center;
  }
}

/* ============================================================
   GLOBAL — VIDEO HERO
   Full-bleed looping background video. Reusable across Printing,
   Die Cutting, Gluing (proposal lists animated banners on all three).
   Video + poster paths set per-instance in the pattern markup.
   ============================================================ */

.section-hero-video {
  position: relative;
  width: 100%;
  min-height: 950px;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background-color: var(--wp--preset--color--text-secondary);
}

.section-hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet — reduce height (950px is too tall once off desktop) */
@media (max-width: 900px) {
  .section-hero-video {
    min-height: 60vh;
  }
}

/* Mobile — fixed shorter band */
@media (max-width: 767px) {
  .section-hero-video {
    min-height: 440px;
  }
}

/* ============================================================
   COMPANY HISTORY — SECTION: Logo Evolution
   4 historical logos in a row (2x2 grid on mobile)
   ============================================================ */

.section-history-logos {
  background-color: var(--wp--preset--color--background);
  padding: 50px var(--wp--preset--spacing--70);
}

@media (max-width: 1599px) {
  .section-history-logos {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .section-history-logos {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
  }
}

.section-history-logos__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 100px;
  max-width: 1378px;
  margin: 0 auto;
}

.section-history-logos__logo {
  max-height: 200px;
  max-width: 100%;
  min-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Mobile — 2x2 grid */
@media (max-width: 767px) {
  .section-history-logos__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .section-history-logos__logo {
    max-height: 100px;
  }
}

/* ============================================================
   GLOBAL — TWO COLUMN SECTION
   Reusable two-column layout used across the site.
   Modifiers:
   - --image-left / --image-right     : photo position
   - --photo-polaroid / --photo-circle / --photo-plain : photo shape and styling
   - --with-bullets                   : styled bullet list for content
   ============================================================ */

.section-two-column {
  background-color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

/* Plain photo sections — half the horizontal padding so columns get more breathing room */
.section-two-column--photo-plain {
  padding-left: calc(var(--wp--preset--spacing--70) / 2);
  padding-right: calc(var(--wp--preset--spacing--70) / 2);
}

@media (max-width: 1599px) {
  .section-two-column {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }

  .section-two-column--photo-plain {
    padding-left: calc(var(--wp--preset--spacing--60) / 2) !important;
    padding-right: calc(var(--wp--preset--spacing--60) / 2) !important;
  }
}

@media (max-width: 767px) {
  .section-two-column {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
  }
}

.section-two-column__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 150px;
  max-width: 1378px;
  margin: 0 auto;
}

/* Plain photo sections — wider inner container so both columns get more room */
.section-two-column--photo-plain .section-two-column__inner {
  max-width: 1600px;
}

@media (min-width: 1025px) {
  .section-two-column--image-right .section-two-column__inner {
    grid-template-columns: 1.75fr 1fr;
  }

  .section-two-column--image-left .section-two-column__inner {
    grid-template-columns: 1fr 1.75fr;
  }
}

/* Image-right variant: content left, image right */
.section-two-column--image-right .section-two-column__content {
  grid-column: 1;
  grid-row: 1;
}

.section-two-column--image-right .section-two-column__image {
  grid-column: 2;
  grid-row: 1;
}

/* Image-left variant: image left, content right */
.section-two-column--image-left .section-two-column__content {
  grid-column: 2;
  grid-row: 1;
}

.section-two-column--image-left .section-two-column__image {
  grid-column: 1;
  grid-row: 1;
}

/* Content */
.section-two-column__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 500;
  line-height: 1.1;
  color: var(--wp--preset--color--text-primary) !important;
  margin: 0 0 16px 0;
}

/* Sub-heading (h3) — used for grouping inside content (e.g. "Heidelberg 8-Colour Perfecting Press") */
.section-two-column__content h3 {
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500 !important;
  line-height: 1.4;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 24px 0 8px 0;
}

/* First sub-heading after the intro paragraph — slightly less top margin */
.section-two-column__content > h3:first-of-type {
  margin-top: 16px;
}

.section-two-column__dates {
  font-size: var(--wp--preset--font-size--medium-plus) !important;
  font-weight: 600;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 24px 0;
}

.section-two-column__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0;
}

/* Closing paragraph after a bullet list — regular weight, spaced from the list */
.section-two-column--with-bullets
.section-two-column__body.section-two-column__body--outro {
  font-weight: 300;
  margin: 24px 0 0 0;
}

/* Regular-weight body inside a with-bullets section — for an intro paragraph
   that precedes the bold lead-in (e.g. Investment: regular intro, then bold
   "Recent investments include:"). */
.section-two-column--with-bullets .section-two-column__body.section-two-column__body--regular {
  font-weight: 300;
}

/* Photo styling — polaroid (default for History) */
.section-two-column--photo-polaroid .section-two-column__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  border: 1px solid rgba(92, 92, 92, 0.5);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  /* Added smooth transitions for both transform and shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Polaroid Hover State: Lift up and expand shadow */
.section-two-column--photo-polaroid .section-two-column__image img:hover {
  transform: translateY(-4px);
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.15); 
}

/* Photo styling — circle (used by Quality Assurance and similar pages) */
.section-two-column--photo-circle .section-two-column__image img {
  display: block;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  /* Added smooth transition for the scale effect */
  transition: transform 0.3s ease;
}

/* Circle Hover State: Subtle expansion */
.section-two-column--photo-circle .section-two-column__image img:hover {
  transform: scale(1.03);
}

.section-two-column--photo-community .section-two-column__image img {
  object-position: 30% center;
}


/* Photo styling — plain (no border, no shadow, no shape — for product/equipment photos) */
.section-two-column--photo-plain .section-two-column__image img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

/* When image column has multiple images, constrain each one's height so the total stack
   stays roughly similar in size to a single image in adjacent sections */
.section-two-column--photo-plain .section-two-column__image:has(img + img) img {
  max-height: 350px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Multi-image stacking — when image column contains multiple images, stack them */
.section-two-column__image img + img {
  margin-top: 0;
}

/* Bulleted body content (used when content has a bullet list instead of plain paragraphs) */
.section-two-column--with-bullets .section-two-column__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 500;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 24px 0;
}

/* When paired with --photo-plain, the intro paragraph stays at body default weight (no emphasis) */
.section-two-column--photo-plain.section-two-column--with-bullets .section-two-column__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
}

@media (min-width: 1025px) {
  .section-two-column--photo-plain.section-two-column--image-right .section-two-column__inner {
    grid-template-columns: 1fr 1.1fr;
    gap:25px;
  }

  .section-two-column--photo-plain.section-two-column--image-left .section-two-column__inner {
    grid-template-columns: 1.1fr 1fr;
    gap:25px;
  }
}

.section-two-column--with-bullets ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.section-two-column--with-bullets ul li {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300 !important; 
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary) !important;
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.section-two-column--with-bullets ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wp--preset--color--text-secondary);
}

.section-two-column--with-bullets ul li:last-child {
  margin-bottom: 0;
}

/* Definition-style bullets: bold term + sub-description on its own line.
   Used in Specialty Substrates / Finishing / Coatings sections.
   Inline parenthetical text after </strong> stays inline at body weight. */
.section-two-column--with-bullets ul li strong {
  font-weight: 500;
}

.section-two-column--with-bullets ul li .section-two-column__bullet-desc {
  display: block;
  margin-top: 4px;
}

/* Lis containing a description get slightly more breathing room between items */
.section-two-column--with-bullets ul li:has(.section-two-column__bullet-desc) {
  margin-bottom: 14px;
}

/* Nested bullet list — indented sub-items (e.g. What We Prototype:
   sub-types under "Blank Physical Prototypes"). Same bullet marker, indented. */
.section-two-column--with-bullets ul ul {
  margin: 8px 0 0 0;
  padding-left: 24px;
}

/* Mobile — stack content above image */
@media (max-width: 1024px) {
  .section-two-column__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* On mobile, both variants stack with content first, image second */
  .section-two-column--image-right .section-two-column__content,
  .section-two-column--image-left .section-two-column__content {
    grid-column: 1;
    grid-row: 1;
  }

  .section-two-column--image-right .section-two-column__image,
  .section-two-column--image-left .section-two-column__image {
    grid-column: 1;
    grid-row: 2;
  }

  .section-two-column__image img {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================================
   GLOBAL — ARROW LINK
   Inline purple link with an up-right arrow that nudges on hover.
   Drop <a class="arrow-link"> into any section content; stacks vertically.
   ============================================================ */

.arrow-link {
  display: block;
  margin-top: 16px;
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 500;
  color: var(--wp--preset--color--primary) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.arrow-link::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 10px;
  background-color: currentColor;
  -webkit-mask-image: url('./assets/images/ftp-arrow.svg');
          mask-image: url('./assets/images/ftp-arrow.svg');
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  transition: transform 0.2s ease;
}

.arrow-link:hover {
  opacity: 0.75;
}

.arrow-link:hover::after {
  transform: translate(3px, -3px);
}

/* ============================================================
   COMPANY HISTORY — SECTION: Leadership Intro
   Heading + intro paragraph + Darwin quote
   Lavender bg (same as leadership cards beneath it — visually one section)
   ============================================================ */

.section-leadership-intro {
  background-color: var(--wp--preset--color--secondary);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}

@media (max-width: 1599px) {
  .section-leadership-intro {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .section-leadership-intro {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
  }
}

.section-leadership-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-leadership-intro__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 500;
  line-height: 1.1;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 32px 0;
}

.section-leadership-intro__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 48px 0;
}

.section-leadership-intro__quote {
  margin: 0;
  padding: 0;
  border: none;
}

.section-leadership-intro__quote-text {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 500;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 8px 0;
}

.section-leadership-intro__quote-attribution {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0;
}

/* ============================================================
   GLOBAL — CENTERED INTRO SECTION
   Reusable centered-text section used across the site for intros,
   commitment statements, mission statements, etc.
   ============================================================ */

.section-centered-intro {
  background-color: var(--wp--preset--color--secondary);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

/* CTA-band variant — minimum height + vertical centering for short copy.
   Section grows naturally if content exceeds 425px. */
.section-centered-intro--cta-band {
  min-height: 425px;
  display: flex;
  align-items: center;
}

/* CTA button — smooth color transition + hover to button-hover token.
   Base button colors come from WP color attrs (primary / text-on-dark). */
.section-centered-intro__cta .wp-block-button__link {
  transition: background-color 0.2s ease;
}

.section-centered-intro__cta .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--button-hover) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
}

.section-centered-intro--cta-band .section-centered-intro__inner {
  width: 100%;
}

/* White background variant */
.section-centered-intro--bg-white {
  background-color: var(--wp--preset--color--background);
}

/* Purple heading variant — page-closing "outro" intros (Prototyping,
   Storage & Fulfillment) use primary purple for the heading. */
.section-centered-intro--purple .section-centered-intro__heading {
  color: var(--wp--preset--color--text-primary) !important;
}

@media (max-width: 1599px) {
  .section-centered-intro {
    padding-left: var(--wp--preset--spacing--60) !important;
    padding-right: var(--wp--preset--spacing--60) !important;
  }
}

@media (max-width: 767px) {
  .section-centered-intro {
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
  }
}

.section-centered-intro__inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.section-centered-intro__heading {
  font-size: var(--wp--preset--font-size--huge) !important;
  font-weight: 500;
  line-height: 1.1;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 32px 0;
}

.section-centered-intro__body {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 300;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0;
}

/* When body has multiple paragraphs, space them out */
.section-centered-intro__body + .section-centered-intro__body {
  margin-top: 24px;
}

/* Bold lead-in line (e.g. "Our commitment to our employees is reflected in:") */
.section-centered-intro__body.section-centered-intro__body--strong {
  font-weight: 500;
}

.section-centered-intro__body--strong-heavy {
  font-weight: 700;
}

/* Centered bullet list — each line individually centered, marker inline.
   list-style:none + manual bullet so the marker centers with the text
   instead of sitting in a hanging indent that breaks centering. */
.section-centered-intro__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  text-align: center;
}

.section-centered-intro__list li {
  font-size: var(--wp--preset--font-size--body) !important;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary) !important;
  margin: 0 0 16px 0;
}

.section-centered-intro__list li::before {
  content: "\2022";
  margin-right: 8px;
}

.section-centered-intro__list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PORTFOLIO ARCHIVE - INTRO
   Scoped to .page-portfolio. The archive intro is the page's h1 (no hero
   section above it), so it needs the heading colour explicitly and a taller
   top padding than the site-wide 80px.
   ========================================================================== */

.page-portfolio .section-centered-intro__heading {
	color: var(--wp--preset--color--text-primary) !important;
}

.page-portfolio .section-centered-intro {
	padding-top: 100px;
}

@media (max-width: 1279px) {
	.page-portfolio .section-centered-intro {
		padding-top: 80px;
	}
}

@media (max-width: 767px) {
	.page-portfolio .section-centered-intro {
		padding-top: 56px;
	}
}

/* ==========================================================================
   CASE STUDY SECTIONS
   Full-bleed black sections. Image is a full-frame composition matching the
   1728px Figma frame, pinned to its own side of the viewport at natural
   height; content overlays the opposite half.
   Side is set per item by Elise via --image-left / --image-right.
   Default (no modifier) = image left / content right.

   Responsive strategy: the overlay is kept down to 768px (the composition
   is designed as two halves, so stacking it exposes the empty half). Below
   1440px a scrim carries text legibility; below 768px the media is cropped
   to its subject half and the content stacks beneath.
   ========================================================================== */

.section-case-study {
	background-color: #000000;
	margin-block-start: 0;
	margin-block-end: 0;
}

.section-case-study__inner {
	position: relative;
	min-height: 950px;
}

/* --- Media --------------------------------------------------------------- */

.section-case-study__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/* Scrim layer. No-op at desktop; the responsive tiers below fill it in. */
.section-case-study__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: none;
}

/* Natural height, auto width, pinned to the image side. Overflows and gets
   clipped by __media below 1728px; leaves black on the content side above it. */
.section-case-study__image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: auto;
	max-width: none;
	height: 100%;
}

.section-case-study--image-right .section-case-study__image {
	left: auto;
	right: 0;
}

/* --- Content ------------------------------------------------------------- */

/* Half the viewport, capped at half the Figma frame so the column stays put
   on wide screens. 175px outer padding / 80px inner gap puts the 604px
   measure at 177-781px, matching Figma's 179-776px. */
.section-case-study__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 50%;
	max-width: 864px;
	min-height: 950px;
	margin-left: auto;
	margin-right: 0;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
	text-align: center;
}

.section-case-study--image-right .section-case-study__content {
	margin-left: 0;
	margin-right: auto;
	padding-right: var(--wp--preset--spacing--60);
	padding-left: var(--wp--preset--spacing--70);
}

.section-case-study__logo {
	display: block;
	width: auto;
	max-width: 335px;
	max-height: 206px;
	height: auto;
	object-fit: contain;
}

/* Capped to the same measure as the body so the line break matches Figma */
.section-case-study__heading {
	max-width: 604px;
	margin: 0;
	color: var(--wp--preset--color--text-on-dark) !important;
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 600;
	line-height: 1;
}

.section-case-study__body {
	max-width: 604px;
	margin: 0;
	color: var(--wp--preset--color--text-on-dark);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: 1.78;
}

.section-case-study__body p {
	margin: 0 0 1em;
}

.section-case-study__body p:last-child {
	margin-bottom: 0;
}

.section-case-study__body strong {
	font-weight: 600;
}

/* --- CTA ----------------------------------------------------------------- */

/* Figma: 60px button height. Set via min-height + flex centering so it holds
   independently of font-size. */
.section-case-study__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 0 28px;
	border-radius: 7px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text-on-dark);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.section-case-study__cta:hover {
	background-color: var(--wp--preset--color--button-hover);
	color: var(--wp--preset--color--text-on-dark);
}

/* --- Responsive ---------------------------------------------------------- */

/* Laptop tier -- matches the site-wide 175 -> 80 outer padding step */
@media (max-width: 1599px) {
	.section-case-study__content {
		padding-right: var(--wp--preset--spacing--60);
		padding-left: var(--wp--preset--spacing--50);
	}

	.section-case-study--image-right .section-case-study__content {
		padding-left: var(--wp--preset--spacing--60);
		padding-right: var(--wp--preset--spacing--50);
	}
}

/* Tablet tier (1024-1439px) -- artwork now reaches under the content column,
   so a directional scrim carries the text. Transparent over the artwork side,
   opaque over the content side. Threshold matches the header hamburger step. */
@media (max-width: 1439px) and (min-width: 1024px) {
	.section-case-study__media::after {
		background: linear-gradient(
			to right,
			rgba(0, 0, 0, 0) 45%,
			rgba(0, 0, 0, 0.75) 58%,
			rgba(0, 0, 0, 0.9) 70%
		);
	}

	.section-case-study--image-right .section-case-study__media::after {
		background: linear-gradient(
			to left,
			rgba(0, 0, 0, 0) 45%,
			rgba(0, 0, 0, 0.75) 58%,
			rgba(0, 0, 0, 0.9) 70%
		);
	}
}

/* Small tablet (768-1023px) -- the column split no longer holds, so the
   artwork becomes a flat-dimmed backdrop and the content runs full width
   centered over it. Section shortened; 950px is far too tall here. */
@media (max-width: 1023px) and (min-width: 768px) {
	.section-case-study__inner {
		min-height: 640px;
	}

	.section-case-study__media::after {
		background: rgba(0, 0, 0, 0.68);
	}

	.section-case-study__content,
	.section-case-study--image-right .section-case-study__content {
		width: 100%;
		max-width: none;
		min-height: 640px;
		margin: 0;
		padding: 64px var(--wp--preset--spacing--50);
	}
}

/* Mobile (<768px) -- stack. The media is cropped to the composition's
   subject half (864 of 1728 across the full 950 height) so the artwork
   renders about twice the size it would at full-frame width, with no
   dead black half. Adjust the aspect-ratio if a future asset puts its
   subject on more or less than half the frame. */
@media (max-width: 767px) {
	.section-case-study__inner {
		min-height: 0;
	}

	.section-case-study__media {
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: 864 / 950;
		overflow: hidden;
	}

	.section-case-study__media::after {
		background: none;
	}

	.section-case-study__image {
		position: absolute;
		top: 0;
		left: 0;
		right: auto;
		width: auto;
		max-width: none;
		height: 100%;
	}

	.section-case-study--image-right .section-case-study__image {
		left: auto;
		right: 0;
	}

	.section-case-study__content,
	.section-case-study--image-right .section-case-study__content {
		width: 100%;
		max-width: none;
		min-height: 0;
		margin: 0;
		gap: 20px;
		padding: 40px 24px;
	}

	.section-case-study__logo {
		max-width: 200px;
		max-height: 90px;
	}
}

/* ==========================================================================
   CASE STUDIES PAGE - SECTION OVERRIDES
   Page-specific tweaks to the two .section-centered-intro instances on this
   page. Scoped per-section rather than per-page so the intro and the closing
   CTA band can differ from each other.
   ========================================================================== */

/* Intro is the page h1, so it takes the heading colour rather than black. */
.section-case-studies-intro .section-centered-intro__heading {
	color: var(--wp--preset--color--text-primary) !important;
}

/* The case study sections above zero their own block margins; this one does
   not, so the default block gap renders as a white strip between the last
   black section and this band. */
.section-case-studies-cta {
	margin-block-start: 0 !important;
}

/* Consecutive black sections can leave a hairline of page background between
   them when the computed height lands on a fractional pixel. A black backdrop
   on the page itself fills the seam; the intro and CTA band paint their own
   backgrounds over it. */
body.page-case-studies {
	background-color: #000000;
}

/* ==========================================================================
   AWARDS ARCHIVE
   Flat list of award rows: presenter logo left, content right. The logo
   column is a fixed width rather than a fraction so a row with no logo
   supplied still aligns with the rest of the list instead of collapsing.
   Geometry per Figma: 358px logo / 258px gap / 766px content within 1378px.
   ========================================================================== */

.section-awards {
	background-color: var(--wp--preset--color--background);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.section-awards__inner {
	display: flex;
	flex-direction: column;
	gap: 300px;
	max-width: 1378px;
	margin: 0 auto;
}

.award-row {
	display: grid;
	grid-template-columns: 358px 1fr;
	gap: 258px;
}

/* --- Logo ---------------------------------------------------------------- */

/* Stretches to the row height so the logo reads at a similar scale to the
   content beside it. Wide/short marks (Burlington Chamber, Sappi) would
   otherwise be pinned small by the column width alone. */
.award-row__logo {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.award-row__logo-image {
	display: block;
	width: 100%;
	max-width: 358px;
	height: auto;
	object-fit: contain;
}

/* --- Content ------------------------------------------------------------- */

.award-row__heading {
	margin: 0 0 20px;
	color: var(--wp--preset--color--text-primary) !important;
	font-size: var(--wp--preset--font-size--huge) !important;
	font-weight: 500;
	line-height: 1.1;
}

.award-row__presenter {
	margin: 0 0 24px;
	color: var(--wp--preset--color--text-secondary) !important;
	font-size: var(--wp--preset--font-size--small-plus) !important;
	font-weight: 600;
	line-height: 1.4;
}

.award-row__description {
	margin: 0;
	color: var(--wp--preset--color--text-secondary) !important;
	font-size: var(--wp--preset--font-size--body) !important;
	font-weight: 300;
	line-height: 1.6;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1599px) {
	.section-awards {
		padding-left: var(--wp--preset--spacing--60) !important;
		padding-right: var(--wp--preset--spacing--60) !important;
	}

	.section-awards__inner {
		gap: 160px;
	}

	.award-row {
		grid-template-columns: 280px 1fr;
		gap: 120px;
	}

	.award-row__logo-image {
		max-width: 280px;
	}
}

/* Stack - logo above content, both left aligned */
@media (max-width: 1024px) {
	.section-awards__inner {
		gap: 96px;
	}

	.award-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.award-row__logo-image {
		max-width: 240px;
		max-height: 160px;
	}
}

@media (max-width: 767px) {
	.section-awards {
		padding-left: var(--wp--preset--spacing--40) !important;
		padding-right: var(--wp--preset--spacing--40) !important;
		padding-top: var(--wp--preset--spacing--50);
		padding-bottom: var(--wp--preset--spacing--50);
	}

	.section-awards__inner {
		gap: 72px;
	}

	.award-row__logo-image {
		max-width: 200px;
	}
}

/* The awards list is one section spanning many screens, so the site-wide
   scroll-anim rule would fire once at the top and reveal every row before
   any of them are scrolled to. scroll-anim.js observes each .award-row
   individually instead and tags it .scroll-anim-row.
   The hidden state hangs off .rows-placed rather than .has-scroll-anim:
   rows are classified at window load (lazy logos have no height before
   then), and hiding them any earlier means the first row paints, fades out,
   and fades back in. */
.has-scroll-anim .section-awards.scroll-anim .section-awards__inner {
	opacity: 1;
	transform: none;
	transition: none;
}

.has-scroll-anim .award-row.scroll-anim-row {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.has-scroll-anim .award-row.scroll-anim-row.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* ==========================================================================
   PORTFOLIO GRID
   3-across card grid on the Portfolio archive. The whole card is a <button>
   that opens the lightbox. Card = black media panel with overlaid taxonomy
   chips, plus a light grey meta panel beneath.
   ========================================================================== */

.section-portfolio-grid {
	padding: 0 var(--wp--preset--spacing--70) 80px;
	background-color: var(--wp--preset--color--background);
}

.section-portfolio-grid__inner {
	max-width: 1378px;
	margin: 0 auto;
}

.section-portfolio-grid__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.section-portfolio-grid__empty {
	margin: 40px 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--body);
	text-align: center;
}

/* --- Card ---------------------------------------------------------------- */

.portfolio-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--wp--custom--shadow-card);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card[hidden] {
	display: none;
}

/* The entire card is the clickable target. Button children must be inline
   elements, so everything inside is a <span> with display set here. */

.portfolio-card__button {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: pointer;
}

.portfolio-card__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* --- Card media (black panel) -------------------------------------------- */

.portfolio-card__media {
	position: relative;
	display: block;
	width: 100%;
	background-color: #000000;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.portfolio-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

/* --- Chips (overlaid top-left) ------------------------------------------- */

.portfolio-card__chips {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portfolio-card__chip {
	display: inline-block;
	margin: 0;
	padding: 5px 10px;
	border-radius: 4px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text-on-dark);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

/* --- Card meta (grey panel) ---------------------------------------------- */

.portfolio-card__meta {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 170px;
	padding: 20px 16px;
	background-color: #F2F2F2;
	text-align: center;
}

.portfolio-card__client {
	display: block;
	margin: 0 0 4px;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small-plus);
	line-height: 1.4;
}

.portfolio-card__product {
	display: block;
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small-plus);
	font-weight: 700;
	line-height: 1.4;
}

/* --- Card hover ---------------------------------------------------------- */

.portfolio-card:hover,
.portfolio-card:has(.portfolio-card__button:focus-visible) {
	transform: translateY(-4px);
	box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-card:hover .portfolio-card__image,
.portfolio-card:has(.portfolio-card__button:focus-visible) .portfolio-card__image {
	transform: scale(1.03);
}

/* Expand icon, fades in on hover */

.portfolio-card__media::after {
	content: "";
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.portfolio-card:hover .portfolio-card__media::after,
.portfolio-card__button:focus-visible .portfolio-card__media::after {
	opacity: 1;
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-card,
	.portfolio-card__image,
	.portfolio-card__media::after {
		transition: none;
	}

	.portfolio-card:hover,
	.portfolio-card:has(.portfolio-card__button:focus-visible) {
		transform: none;
	}

	.portfolio-card:hover .portfolio-card__image {
		transform: none;
	}
}

/* Touch devices have no hover - show the icon permanently */

@media (hover: none) {
	.portfolio-card__media::after {
		opacity: 1;
		transform: scale(1);
	}

	.portfolio-card:hover {
		transform: none;
	}
}

/* --- Pagination ---------------------------------------------------------- */

.portfolio-pagination {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 40px;
}

.portfolio-pagination[hidden] {
	display: none;
}

.portfolio-pagination__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 7px;
	background-color: #E0E0E0;
	box-shadow: var(--wp--custom--shadow-card);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.portfolio-pagination__btn:hover:not(:disabled) {
	background-color: #D0D0D0;
}

.portfolio-pagination__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.portfolio-pagination__arrow {
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

.portfolio-pagination__btn--prev .portfolio-pagination__arrow {
	border-right: 7px solid var(--wp--preset--color--text-secondary);
}

.portfolio-pagination__btn--next .portfolio-pagination__arrow {
	border-left: 7px solid var(--wp--preset--color--text-secondary);
}

/* --- Grid: tablet -------------------------------------------------------- */

@media (max-width: 1279px) {
	.section-portfolio-grid {
		padding: 0 var(--wp--preset--spacing--60) 64px;
	}

	.section-portfolio-grid__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.portfolio-card__meta {
		min-height: 140px;
		padding: 16px;
	}
}

/* --- Grid: mobile -------------------------------------------------------- */

@media (max-width: 767px) {
	.section-portfolio-grid {
		padding: 0 24px 48px;
	}

	.section-portfolio-grid__list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.portfolio-card__chips {
		top: 8px;
		left: 8px;
		right: 8px;
		gap: 4px;
	}

	.portfolio-card__chip {
		padding: 4px 8px;
		font-size: 12px;
	}

	.portfolio-card__meta {
		min-height: 120px;
	}
}

/* ==========================================================================
   PORTFOLIO FILTER BAR
   Custom dropdowns (not native <select>) so the open panel can match Figma.
   Behaviour in assets/js/portfolio.js.
   ========================================================================== */

.section-portfolio-filters {
	position: relative;
	z-index: 20;
	padding: 0 var(--wp--preset--spacing--70) 40px;
	background-color: var(--wp--preset--color--background);
}

.section-portfolio-filters__inner {
	max-width: 1378px;
	margin: 0 auto;
}

.portfolio-filters {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 107px;
	padding: 0 24px;
	border-radius: 8px;
	background-color: #F2F2F2;
	box-shadow: var(--wp--custom--shadow-card);
}

/* --- Individual dropdown ------------------------------------------------- */

.portfolio-filter {
	position: relative;
	flex: 1;
	min-width: 0;
	max-width: 300px;
}

.portfolio-filter__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 7px;
	background-color: #E0E0E0;
	box-shadow: var(--wp--custom--shadow-card);
	color: var(--wp--preset--color--text-secondary);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small-plus);
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}

.portfolio-filter__caret {
	flex-shrink: 0;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--wp--preset--color--text-secondary);
	transition: transform 0.2s ease;
}

.portfolio-filter__toggle[aria-expanded="true"] .portfolio-filter__caret {
	transform: rotate(180deg);
}

/* --- Active state -------------------------------------------------------- */

.portfolio-filter--is-active .portfolio-filter__toggle {
	background-color: var(--wp--preset--color--secondary);
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.portfolio-filter--is-active .portfolio-filter__caret {
	border-top-color: var(--wp--preset--color--primary);
}

/* --- Open panel ---------------------------------------------------------- */

.portfolio-filter__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 10;
	max-height: 320px;
	overflow-y: auto;
	margin: 0;
	padding: 8px 0;
	border-radius: 7px;
	background-color: var(--wp--preset--color--background);
	box-shadow: var(--wp--custom--shadow-card);
	list-style: none;
}

.portfolio-filter__panel[hidden] {
	display: none;
}

.portfolio-filter__option {
	margin: 0;
	padding: 10px 16px;
	color: #3D3D3D;
	font-size: var(--wp--preset--font-size--small-plus);
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

.portfolio-filter__option:hover,
.portfolio-filter__option:focus {
	background-color: #F2F2F2;
	color: var(--wp--preset--color--text-secondary);
	outline: none;
}

.portfolio-filter__option[aria-selected="true"] {
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
}

.portfolio-filter__option[aria-disabled="true"] {
	color: #B0B0B0;
	cursor: default;
	pointer-events: none;
}

/* --- Clear all ----------------------------------------------------------- */

.portfolio-filters__clear {
	flex-shrink: 0;
	margin: 0 auto;
	padding: 14px 20px;
	border: none;
	border-radius: 7px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text-on-dark);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	opacity: 1;
	visibility: visible;
	transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
}

.portfolio-filters__clear:hover {
	background-color: var(--wp--preset--color--button-hover);
}

.portfolio-filters__clear.is-inactive {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* --- CTA ----------------------------------------------------------------- */

.portfolio-filters__cta {
	flex-shrink: 0;
	padding: 14px 24px;
	border-radius: 7px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--text-on-dark);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.portfolio-filters__cta:hover {
	background-color: var(--wp--preset--color--button-hover);
	color: var(--wp--preset--color--text-on-dark);
}

/* --- Filter bar: wrap to stacked layout ---------------------------------- */

@media (max-width: 1649px) {
	.portfolio-filters {
		flex-wrap: wrap;
		gap: 16px;
		min-height: 0;
		padding: 20px;
	}

	.portfolio-filter {
		flex: 1 1 calc(33.333% - 11px);
		max-width: none;
	}

	.portfolio-filters__clear {
		flex: 1 1 auto;
		order: 1;
		margin: 0 0 0 auto;
		padding: 12px 20px;
	}

	.portfolio-filters__cta {
		flex: 1 1 100%;
		margin-left: 0;
		text-align: center;
		order: 2;
	}
}

/* --- Filter bar: tablet padding ------------------------------------------ */

@media (max-width: 1279px) {
	.section-portfolio-filters {
		padding: 0 var(--wp--preset--spacing--60) 32px;
	}
}

/* --- Filter bar: narrow tablet ------------------------------------------- */

@media (max-width: 1023px) {
	.portfolio-filter {
		flex: 1 1 calc(50% - 8px);
	}

  .portfolio-filters__clear {
		flex: 1 1 100%;
		order: 1;
		margin: 0;
		padding: 12px 20px;
	}
}

/* --- Filter bar: mobile -------------------------------------------------- */

@media (max-width: 767px) {
	.section-portfolio-filters {
		padding: 0 24px 24px;
	}

	.portfolio-filters {
		gap: 12px;
		padding: 16px;
	}

	.portfolio-filter {
		flex: 1 1 100%;
	}

	.portfolio-filter__toggle {
		white-space: normal;
	}

	.portfolio-filter__panel {
		max-height: 260px;
	}

	.portfolio-filters__clear {
		flex: 1 1 100%;
		margin: 0;
		padding: 14px 20px;
	}
}

/* ==========================================================================
   PORTFOLIO LIGHTBOX
   One overlay reused for every card, populated from the clicked card's
   data-images payload. Behaviour in assets/js/portfolio.js.
   ========================================================================== */

html.has-lightbox-open {
	overflow: hidden;
}

.portfolio-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
}

.portfolio-lightbox[hidden] {
	display: none;
}

.portfolio-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.8);
}

.portfolio-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 1000px;
	max-height: 100%;
	padding: 24px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--background);
	box-shadow: var(--wp--custom--shadow-card);
}

/* --- Close --------------------------------------------------------------- */

.portfolio-lightbox__close {
	position: absolute;
	top: 36px;
	right: 36px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 7px;
	background-color: rgba(0, 0, 0, 0.4);
	color: #FFFFFF;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.portfolio-lightbox__close:hover {
	background-color: rgba(0, 0, 0, 0.7);
}

/* --- Stage --------------------------------------------------------------- */

.portfolio-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	background-color: #000000;
	border-radius: 7px;
	overflow: hidden;
}

.portfolio-lightbox__image {
	display: block;
	width: 100%;
	max-height: 60vh;
	object-fit: contain;
}

.portfolio-lightbox__stage.is-loading .portfolio-lightbox__image {
	opacity: 0;
}

.portfolio-lightbox__stage.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: bfp-spin 0.8s linear infinite;
}

@keyframes bfp-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.portfolio-lightbox__stage.is-loading::after {
		animation: none;
	}
}

.portfolio-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.portfolio-lightbox__nav:hover:not(:disabled) {
	background-color: #FFFFFF;
}

.portfolio-lightbox__nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.portfolio-lightbox__nav[hidden] {
	display: none;
}

.portfolio-lightbox__nav--prev {
	left: 16px;
}

.portfolio-lightbox__nav--next {
	right: 16px;
}

.portfolio-lightbox__arrow {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}

.portfolio-lightbox__nav--prev .portfolio-lightbox__arrow {
	border-right: 9px solid var(--wp--preset--color--text-secondary);
	margin-right: 3px;
}

.portfolio-lightbox__nav--next .portfolio-lightbox__arrow {
	border-left: 9px solid var(--wp--preset--color--text-secondary);
	margin-left: 3px;
}

/* --- Meta ---------------------------------------------------------------- */

.portfolio-lightbox__meta {
	text-align: center;
}

.portfolio-lightbox__client {
	margin: 0 0 4px;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small-plus);
	line-height: 1.4;
}

.portfolio-lightbox__product {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small-plus);
	font-weight: 700;
	line-height: 1.4;
}

/* --- Thumbnail strip ----------------------------------------------------- */

.portfolio-lightbox__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portfolio-lightbox__thumbs[hidden] {
	display: none;
}

.portfolio-lightbox__thumb {
	display: block;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 7px;
	background-color: #000000;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.6;
}

.portfolio-lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.portfolio-lightbox__thumb:hover {
	opacity: 1;
}

.portfolio-lightbox__thumb[aria-current="true"] {
	border-color: var(--wp--preset--color--primary);
	opacity: 1;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 767px) {
	.portfolio-lightbox {
		padding: 16px;
	}

	.portfolio-lightbox__panel {
		gap: 16px;
		padding: 16px;
	}

	.portfolio-lightbox__image {
		max-height: 50vh;
	}

	.portfolio-lightbox__nav {
		width: 36px;
		height: 36px;
	}

	.portfolio-lightbox__nav--prev {
		left: 8px;
	}

	.portfolio-lightbox__nav--next {
		right: 8px;
	}

	.portfolio-lightbox__thumb {
		width: 48px;
		height: 48px;
	}
}

/* ============================================================
   CLEARPAK PAGE
   ============================================================ */

/* Tokens */
.page-clearpak {
  --clearpak-blue: #005596;
  --clearpak-button-bg: #0DA4E4;
  --clearpak-button-text: #003663;
}


/* ------------------------------------------------------------
   ClearPak Hero
   ------------------------------------------------------------ */

.page-clearpak .section-clearpak-hero {
  background-color: var(--clearpak-blue);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
  min-height: clamp(740px, 55vw, 1000px);
  display: flex;
  align-items: center;
}

.page-clearpak .section-clearpak-hero__inner {
  width: 100%;
  max-width: 1378px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas:
    "wordmark image"
    "body     image";
  column-gap: 60px;
  row-gap: var(--wp--preset--spacing--50);
  align-items: start;
}

.page-clearpak .section-clearpak-hero__wordmark {
  grid-area: wordmark;
  align-self: end;
}

.page-clearpak .section-clearpak-hero__wordmark img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

.page-clearpak .section-clearpak-hero__body {
  grid-area: body;
  color: var(--wp--preset--color--text-on-dark);
  font-size: var(--wp--preset--font-size--body);
  font-weight: 300;
  line-height: 1.5;
  max-width: 540px;
  margin: 0;
}

.page-clearpak .section-clearpak-hero__image {
  grid-area: image;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: clamp(540px, 40vw, 860px);
}

@media (max-width: 1279px) {
  .page-clearpak .section-clearpak-hero {
    padding: 60px var(--wp--preset--spacing--60);
  }
  .page-clearpak .section-clearpak-hero__image {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .page-clearpak .section-clearpak-hero {
    min-height: 0;
    padding: 0 var(--wp--preset--spacing--40);
  }

  .page-clearpak .section-clearpak-hero__inner {
    grid-template-columns: 1fr 1.3fr;
    grid-template-areas: "wordmark image";
    column-gap: 16px;
    row-gap: 0;
    align-items: center;
    min-height: 200px;
  }

  .page-clearpak .section-clearpak-hero__wordmark {
    align-self: center;
  }

  .page-clearpak .section-clearpak-hero__wordmark img {
    max-width: 100%;
  }

  .page-clearpak .section-clearpak-hero__body {
    display: none;
  }

  .page-clearpak .section-clearpak-hero__image {
    display: block;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-size: cover;
    background-position: 85% center;
  }
}


/* ------------------------------------------------------------
   ClearPak Logo intro (BFP × Clearpak)
   ------------------------------------------------------------ */

.page-clearpak .section-clearpak-logo-intro {
  background-color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.page-clearpak .section-clearpak-logo-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-clearpak .section-clearpak-logo-intro__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--50);
  margin-bottom: 48px;
}

.page-clearpak .section-clearpak-logo-intro__logo-bfp {
  max-width: 360px;
  height: auto;
  display: block;
}

.page-clearpak .section-clearpak-logo-intro__logo-clearpak {
  max-width: 280px;
  height: auto;
  display: block;
}

.page-clearpak .section-clearpak-logo-intro__separator {
  font-size: var(--wp--preset--font-size--medium-plus);
  font-weight: 600;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1;
}

.page-clearpak .section-clearpak-logo-intro__body {
  font-size: var(--wp--preset--font-size--body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
}

.page-clearpak .section-clearpak-logo-intro__body + .section-clearpak-logo-intro__body {
  margin-top: var(--wp--preset--spacing--40);
}

@media (max-width: 1279px) {
  .page-clearpak .section-clearpak-logo-intro {
    padding: 60px var(--wp--preset--spacing--60);
  }
}

@media (max-width: 767px) {
  .page-clearpak .section-clearpak-logo-intro {
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  }
  .page-clearpak .section-clearpak-logo-intro__logos {
    flex-direction: column;
    gap: var(--wp--preset--spacing--40);
    margin-bottom: 32px;
  }
  .page-clearpak .section-clearpak-logo-intro__logo-bfp {
    max-width: 280px;
  }
  .page-clearpak .section-clearpak-logo-intro__logo-clearpak {
    max-width: 220px;
  }
}


/* ------------------------------------------------------------
   ClearPak Two-column overrides
   Applies to every .section-two-column on this page.
   ------------------------------------------------------------ */

/* Heading uses ClearPak blue instead of global purple */
.page-clearpak .section-two-column__heading {
  color: var(--clearpak-blue) !important;
}

/* Cap inner to standard content width (overrides --photo-plain's 1600px) so it
   aligns horizontally with sections above */
.page-clearpak .section-two-column--photo-plain .section-two-column__inner {
  max-width: 1378px;
}

/* Equal columns so the gap centers on the page */
@media (min-width: 1025px) {
  .page-clearpak .section-two-column--photo-plain.section-two-column--image-right .section-two-column__inner,
  .page-clearpak .section-two-column--photo-plain.section-two-column--image-left .section-two-column__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Image: smaller cap than Equipment List default + right-aligned in column at desktop */
.page-clearpak .section-two-column--photo-plain .section-two-column__image img {
  max-width: 380px;
}

/* Photo-plain smaller variant — for assets that read too large at
   the default 900px cap (e.g. Prototyping "Custom Packaging" dieline graphic).
   Requires both classes so it beats the base photo-plain rule on specificity. */
.section-two-column--photo-plain.section-two-column--photo-smaller .section-two-column__image img {
  max-width: 540px;
}

/* Image sits closer to page-center gap: right-aligned in image-right, left-aligned in image-left */
.page-clearpak .section-two-column--photo-plain.section-two-column--image-right .section-two-column__image img {
  margin: 0 0 0 auto;
}

.page-clearpak .section-two-column--photo-plain.section-two-column--image-left .section-two-column__image img {
  margin: 0 auto 0 0;
}

/* Re-center image when columns stack */
@media (max-width: 1024px) {
  .page-clearpak .section-two-column--photo-plain.section-two-column--image-right .section-two-column__image img,
  .page-clearpak .section-two-column--photo-plain.section-two-column--image-left .section-two-column__image img {
    margin: 0 auto;
  }
}

/* Photo-larger modifier — for images with built-in whitespace that need a larger cap */
.page-clearpak .section-two-column--photo-larger .section-two-column__image img {
  max-width: 520px;
}

/* ------------------------------------------------------------
   The Clearpak Difference section
   Extends .section-centered-intro with a blue bg variant + CTA.
   ------------------------------------------------------------ */

/* Blue background variant — heading + body inherit white text from this scope */
.section-centered-intro--bg-blue {
  background-color: var(--clearpak-blue);
}

.section-centered-intro--bg-blue .section-centered-intro__heading,
.section-centered-intro--bg-blue .section-centered-intro__body {
  color: var(--wp--preset--color--text-on-dark) !important;
}

/* Feature lines — centered list, no bullets, tight stacking */
.page-clearpak .section-centered-intro__features {
  list-style: none;
  padding: 0;
  margin: var(--wp--preset--spacing--40) 0;
  color: var(--wp--preset--color--text-on-dark);
  font-size: var(--wp--preset--font-size--body);
  font-weight: 300;
  line-height: 1.6;
}

.page-clearpak .section-centered-intro__features li {
  margin: 0;
}

/* Bolded closer line */
.page-clearpak .section-centered-intro__body--emphasized {
  font-weight: 600;
  margin-top: var(--wp--preset--spacing--40) !important;
}

/* CTA button */
.section-centered-intro__cta {
  margin-top: var(--wp--preset--spacing--50);
  justify-content: center;
}

.page-clearpak .section-centered-intro__cta .wp-block-button__link {
  padding: 15px 25px;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--clearpak-button-bg) !important;
  color: var(--clearpak-button-text) !important;
  transition: background-color 0.2s ease;
}

.page-clearpak .section-centered-intro__cta .wp-block-button__link:hover {
  background-color: var(--clearpak-button-text) !important;
  color: var(--clearpak-button-bg) !important;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */


/* ------------------------------------------------------------
   Info section (eyebrow + heading + intro left, address blocks right)
   ------------------------------------------------------------ */

.page-contact .section-contact-info {
  background-color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.page-contact .section-contact-info__inner {
  max-width: 1378px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 80px;
}

.page-contact .section-contact-info__content {
  max-width: 540px;
  min-width: 0;
}

.page-contact .section-contact-info__details {
  flex-shrink: 0;
}

.page-contact .section-contact-info__eyebrow {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  letter-spacing: 0.05em;
  margin: 0 0 var(--wp--preset--spacing--40);
}

.page-contact .section-contact-info__heading {
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  line-height: 1.05;
  margin: 0 0 var(--wp--preset--spacing--50);
}

.page-contact .section-contact-info__body {
  font-size: var(--wp--preset--font-size--body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary);
  margin: 0 0 var(--wp--preset--spacing--40);
  max-width: 540px;
}

.page-contact .section-contact-info__body:last-child {
  margin-bottom: 0;
}

.page-contact .section-contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.page-contact .section-contact-info__block-heading {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  letter-spacing: 0.05em;
  margin: 0 0 var(--wp--preset--spacing--20);
}

.page-contact .section-contact-info__block-body {
  font-size: var(--wp--preset--font-size--body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
}

.page-contact .section-contact-info__block-body em {
  font-style: italic;
  font-weight: 600;
}

@media (max-width: 1279px) {
  .page-contact .section-contact-info {
    padding: 60px var(--wp--preset--spacing--60);
  }
  .page-contact .section-contact-info__inner {
    gap: 60px;
  }
}

@media (max-width: 767px) {
  .page-contact .section-contact-info {
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  }
  .page-contact .section-contact-info__inner {
    flex-direction: column;
    gap: 48px;
  }
  .page-contact .section-contact-info__content {
    max-width: 100%;
  }
}


/* ------------------------------------------------------------
   Map section
   ------------------------------------------------------------ */

.page-contact .section-contact-map {
  width: 100%;
  background-color: var(--wp--preset--color--background);
}

.page-contact .section-contact-map__image {
  display: block;
  width: 100%;
  height: 800px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .page-contact .section-contact-map {
    overflow: hidden;
  }
  .page-contact .section-contact-map__image {
    height: 280px;
    transform: scale(1.5);
    transform-origin: center center;
  }
}


/* ------------------------------------------------------------
   Form section (heading + intro; form styling in next step)
   ------------------------------------------------------------ */

.page-contact .section-contact-form {
  background-color: var(--wp--preset--color--background);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.page-contact .section-contact-form__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-contact .section-contact-form__heading {
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  line-height: 1.05;
  margin: 0 0 var(--wp--preset--spacing--40);
}

.page-contact .section-contact-form__intro {
  font-size: var(--wp--preset--font-size--body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary);
  margin: 0 0 var(--wp--preset--spacing--50);
}

@media (max-width: 1279px) {
  .page-contact .section-contact-form {
    padding: 60px var(--wp--preset--spacing--60);
  }
}

@media (max-width: 767px) {
  .page-contact .section-contact-form {
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
  }
}

/* ------------------------------------------------------------
   Form fields styling (overrides Fluent Forms defaults)
   Scoped to .page-contact .section-contact-form so Fluent Forms
   on other pages (future contact embeds, etc.) is unaffected.
   ------------------------------------------------------------ */

/* Labels — small, uppercase, tracked */
.page-contact .section-contact-form .ff-el-input--label label {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: var(--wp--preset--spacing--20);
  display: inline-block;
}

/* Hide the default asterisk indicator */
.page-contact .section-contact-form .ff-el-input--label.asterisk-right label::after,
.page-contact .section-contact-form .ff-el-input--label.asterisk-right::after {
  content: none !important;
}

/* Add "(REQUIRED)" suffix to required-field labels in red */
.page-contact .section-contact-form .ff-el-input--label.ff-el-is-required label::after {
  content: " (REQUIRED)" !important;
  color: #FF6B6D !important;
  font-weight: 700;
  margin-left: 4px;
}

/* Input + textarea fields */
.page-contact .section-contact-form .ff-el-form-control {
  background-color: rgba(217, 217, 217, 0.45);
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: var(--wp--preset--font-size--body);
  font-family: inherit;
  color: var(--wp--preset--color--text-secondary);
  width: 100%;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease;
}

.page-contact .section-contact-form .ff-el-form-control:focus {
  outline: none;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.35);
}

.page-contact .section-contact-form .ff-el-form-control::placeholder {
  color: #888;
}

/* Textarea sizing */
.page-contact .section-contact-form textarea.ff-el-form-control {
  min-height: 120px;
  resize: vertical;
}

/* Field group spacing */
.page-contact .section-contact-form .ff-el-group {
  margin-bottom: var(--wp--preset--spacing--40);
}

.page-contact .section-contact-form .ff-name-field-wrapper {
  margin-bottom: var(--wp--preset--spacing--40);
}

/* First Name / Last Name two-column row */
.page-contact .section-contact-form .ff-t-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--40);
}

.page-contact .section-contact-form .ff-t-cell .ff-el-group {
  margin-bottom: 0;
}

/* Submit button — outline pill style */
.page-contact .section-contact-form .ff_submit_btn_wrapper {
  margin-top: var(--wp--preset--spacing--50);
}

.page-contact .section-contact-form .ff-btn-submit {
  position: relative;
  background-color: transparent !important;
  border: 3px solid var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary) !important;
  padding: 12px 40px !important;
  border-radius: 999px !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: color 0.4s ease, background-color 0.5s ease;
  min-width: 160px;
  overflow: hidden;
  z-index: 0;
  opacity: 1 !important;
  filter: none !important;
}

.page-contact .section-contact-form .ff-btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--wp--preset--color--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.page-contact .section-contact-form .ff-btn-submit:hover {
  color: var(--wp--preset--color--text-on-dark) !important;
  background-color: var(--wp--preset--color--primary) !important;
  opacity: 1 !important;
  transition: color 0.4s ease, background-color 0s linear 0.1s;
}

.page-contact .section-contact-form .ff-btn-submit:hover::before {
  width: 250%;
  height: 600%;
}

/* Two-column row stacks on mobile */
@media (max-width: 767px) {
  .page-contact .section-contact-form .ff-t-container {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
  }
}

/* Form is left-aligned (overrides section's text-align: center used for heading/intro) */
.page-contact .section-contact-form .fluentform {
  text-align: left;
}

/* Submit button row stays centered */
.page-contact .section-contact-form .ff_submit_btn_wrapper {
  text-align: center;
}

/* ------------------------------------------------------------
   File upload dropzone — Figma: dashed border, cloud icon, dark pill button
   ------------------------------------------------------------ */

/* The clickable dropzone area */
.page-contact .section-contact-form .ff_file_upload_holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 160px;
  padding: 40px 24px;
  background-color: rgba(217, 217, 217, 0.45);
  border: 2px dashed var(--wp--preset--color--text-secondary);
  border-radius: 6px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-contact .section-contact-form .ff_file_upload_holder:hover {
  background-color: rgba(217, 217, 217, 0.65);
}

/* Cloud upload icon (SVG via pseudo-element) above the button */
.page-contact .section-contact-form .ff_file_upload_holder::before {
  content: '';
  display: block;
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 19a4.5 4.5 0 0 1-.5-8.972 5.5 5.5 0 0 1 10.78-1.473A4.5 4.5 0 0 1 17 19'/%3E%3Cpath d='M12 19V11'/%3E%3Cpath d='m8.5 13.5 3.5-3.5 3.5 3.5'/%3E%3C/svg%3E");
}

/* The SELECT FILES button — dark pill */
.page-contact .section-contact-form .ff_upload_btn.ff-btn {
  display: inline-block !important;
  width: auto !important;
  max-width: max-content !important;
  align-self: center;
  background-color: var(--wp--preset--color--text-secondary) !important;
  color: var(--wp--preset--color--text-on-dark) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px !important;
  border-radius: 7px !important;
  border: none !important;
  line-height: 1.3 !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.page-contact .section-contact-form .ff_upload_btn.ff-btn:hover {
  opacity: 0.85;
}

/* Uploaded file list spacing */
.page-contact .section-contact-form .ff-uploaded-list {
  width: 100%;
  margin-top: 16px;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;

  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text-on-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  /* Hidden by default — fades/slides in when .is-visible is added */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--wp--preset--color--text-primary);
}

.scroll-top-btn svg {
  display: block;
}

/* Hide the button while the mobile nav overlay is open
   (it would otherwise float over the menu) */
html.has-modal-open .scroll-top-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

@media (max-width: 767px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
}

/* ============================================================
   SCROLL FLOAT-IN ANIMATION
   The section (and its background color) stays static; only the
   inner content container floats up. Hidden state only applies
   when JS adds .has-scroll-anim to <html>.
   ============================================================ */

.has-scroll-anim .scroll-anim [class*="__inner"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.has-scroll-anim .scroll-anim.is-visible [class*="__inner"] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .has-scroll-anim .scroll-anim [class*="__inner"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   LOADING SCREEN
   Full-screen black overlay with centered looping logo video.
   Shown once per session on first visit; dismissed on window.load
   or a 20s safety timeout (whichever first). The inline head script
   (functions.php) sets the html classes below before first paint.
   ============================================================ */

.bfp-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.bfp-loading-screen.is-hiding {
  opacity: 0;
}

.bfp-loading-screen__video {
  width: 320px;
  max-width: 70vw;
  height: auto;
  display: block;
}

/* First visit this session: lock scroll while the overlay is up. */
html.loading-screen-active,
html.loading-screen-active body {
  overflow: hidden;
}

/* Subsequent pages this session: overlay never paints (no flash). */
html.loading-screen-seen .bfp-loading-screen {
  display: none !important;
}

/* Upload field helper note — lighter + smaller than form body text */
.page-contact .ff-upload-note {
  text-align: center;
  font-size: var(--wp--preset--font-size--small) !important;
  color: var(--wp--preset--color--text-muted) !important;
  line-height: 1.4;
}

/* ==========================================================================
   404 PAGE
   Reuses the centered-intro layout. Only the numeral size and the minimum
   height are specific to this page.
   ========================================================================== */

.section-404 {
	display: flex;
	align-items: center;
	min-height: 60vh;
}

.section-404 .section-centered-intro__heading {
	font-size: clamp(5rem, 14vw, 10rem);
	line-height: 1;
	margin-block-end: 0.25em;
	color: var(--wp--preset--color--primary);
}

.section-404 .section-centered-intro__body {
	margin-block-end: 2rem;
}