/*
Theme Name:   CMRS Theme
Author:       2X
Description:  A CMRS Custom Theme
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cmrs-theme
*/

/* -------------------------------------------------
   Base
------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-primary: #487AC8;
  --color-primary-dark: #76ACDD;
  --color-cmrs-200: #76ACDD;
  --color-cmrs-300: #487AC8;
  --color-cmrs-400: #314877;
  --color-heading3: #434346;
  --color-muted: #6b7280;
  --color-border: #C4C4C4;
  --color-accent-bar: #111111;
  --font-body: "IBM Plex Sans", Roboto, sans-serif;
  --font-heading: var(--font-body);
  --max-width: 1300px;
  --color-footer-bg: #434346;
  --color-footer-text: #ffffff;
  --color-footer-heading: #ffffff;
  --color-footer-link: #ffffff;
  --color-footer-brand: #76ACDD;
  --font-h2: 48px;
  --font-h3: 40px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth; /* in-page anchor links (product catalog nav) */
  scrollbar-gutter: stable; /* keep the layout from shifting when the team popup locks page scroll */
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-cmrs-400); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------------------------------
   Buttons (shared base — all component buttons build on this)
------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--color-cmrs-200);
  color: #000000;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px;
}

.button:hover {
  background: var(--color-primary);
  text-decoration: none;
}

/* Light blue variant (CTA "button_choice" = lightBlue). Padding is 1px
   smaller so the border doesn't make it bigger than the default button. */
.button.button-light-blue {
  background: #F2F7FC;
  color: var(--color-cmrs-200);
  border: 1px solid #76ACDD;
  padding: 15px;
  transition: 0.2s ease-in-out;
}

.button.button-light-blue:hover {
  background: #F2F7FC;
  color: #487AC8;
  border-color: #487AC8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h2{
  font-size:var(--font-h2);
}
.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
  /* padding: 0 1.5rem; */
}
.fittoscreen{
    max-width: 1200px;
    margin: auto;
}
/* -------------------------------------------------
   Header
------------------------------------------------- */
.site-header {
  background: var(--color-bg);
  border-bottom: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index:999;
  box-shadow: 0 1px 0 var(--color-border);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .site-logo img {
  max-height: 56px;
  width: auto;
}

.site-title a {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}

/* Main nav */
.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
}

.main-navigation .menu-item {
  position: relative;
  /* margin-left: 2rem; */
}

.main-navigation .menu-item:first-child {
  margin-left: 0;
}

.main-navigation > ul > .menu-item > a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
}

.main-navigation > ul > .menu-item > a:hover {
  color: var(--color-cmrs-400);
  text-decoration: none;
}

.dropdown-caret {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  transition: transform 0.3s ease;
}

/* Desktop: rotate the caret while the dropdown / mega menu is open */
@media (min-width: 901px) {
  .main-navigation .menu-item:hover > a .dropdown-caret,
  .main-navigation .menu-item:focus-within > a .dropdown-caret {
    transform: rotate(180deg);
  }
}

/* Dropdown submenu */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  z-index: 50;
  flex-direction: column;
  gap: 0;
}

.main-navigation .menu-item:hover > .sub-menu,
.main-navigation .menu-item:focus-within > .sub-menu {
  display: flex;
}

.main-navigation .sub-menu .menu-item a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.main-navigation .sub-menu .menu-item a:hover {
  background: #f3f6fa;
  color: var(--color-cmrs-200);
  text-decoration: none;
}

/* Mega menu (Products) */
.main-navigation .menu-item.has-mega-menu {
  position: static; /* panel spans the full header width */
}

.main-navigation > ul > .has-mega-menu > a {
  position: relative;
}

/* Invisible bridge so the panel doesn't close while the pointer crosses the gap */
.main-navigation > ul > .has-mega-menu > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2rem;
  display: none;
}

.main-navigation .has-mega-menu:hover > a::after,
.main-navigation .has-mega-menu:focus-within > a::after {
  display: block;
}

.main-navigation > ul > .has-mega-menu:hover > a,
.main-navigation > ul > .has-mega-menu:focus-within > a {
  color: var(--color-cmrs-400);
  box-shadow: inset 0 -2px 0 var(--color-cmrs-400);
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #F2F7FC;
  border-top: 1px solid var(--color-cmrs-200);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.main-navigation .has-mega-menu:hover > .mega-menu,
.main-navigation .has-mega-menu:focus-within > .mega-menu {
  display: block;
}

.mega-menu-inner {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0;
  align-items: stretch;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.mega-intro {
  padding-right: 3rem;
  border-right: 1px solid var(--color-cmrs-200);
}

.mega-intro-heading {
  font-size: 28px;
  color: var(--color-heading3);
  margin: 0 0 1rem;
}

.mega-intro-text {
  color: var(--color-heading3);
  margin: 0 0 1.5rem;
}

.mega-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.main-navigation ul.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  padding-left: 3rem;
}

.main-navigation ul.mega-links {
  display: block;
  margin: 0.75rem 0 0;
  padding: 0;
}

.main-navigation .mega-col-title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-heading3);
  text-transform: none;
}

.main-navigation .mega-links .menu-item a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-heading3);
  /* font-weight: 500; */
  font-size: 16px;
  text-transform: none;
}

.main-navigation .mega-links .menu-item a:hover,
.main-navigation .mega-col-title:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Header actions (phone + CTA button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
}

.header-cta.button {
  margin-left: 12px;
}

/* Header: tablet & mobile */
@media (max-width: 1100px) {
  .main-navigation ul { gap: 24px; }
}

@media (max-width: 900px) {
  .site-header .container {
    gap: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-branding .site-logo img { max-height: 44px; }

  .menu-toggle { display: flex; }

  .main-navigation,
  .header-actions {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .nav-open .main-navigation { display: block; margin-top: 0.75rem; }
  .nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0 0.5rem;
    text-align: center;
  }

  /* Keep long menus reachable on short screens */
  .site-header .container { max-height: calc(100vh - 0px); }
  .nav-open .main-navigation { max-height: 60vh; overflow-y: auto; }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-navigation > ul > .menu-item {
    border-top: 1px solid var(--color-border);
  }

  .main-navigation > ul > .menu-item > a {
    display: flex;
    width: 100%;
    padding: 0.85rem 0;
  }

  /* Submenus become inline lists, collapsed until the parent is tapped */
  .main-navigation .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
  }

  .main-navigation .sub-menu .menu-item a {
    white-space: normal;
    padding: 0.5rem 0;
  }

  .header-cta.button {
    margin-left: 0;
    text-align: center;
  }

  /* Mega menu collapses to a stacked, always-open list */
  .main-navigation .menu-item.has-mega-menu { position: relative; }

  .main-navigation > ul > .has-mega-menu > a::after { display: none !important; }

  .main-navigation > ul > .has-mega-menu:hover > a,
  .main-navigation > ul > .has-mega-menu:focus-within > a {
    box-shadow: none;
  }

  .mega-menu {
    display: none;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .mega-menu-inner {
    display: block;
    padding: 0 0 0.5rem 1rem;
    max-height: none;
    overflow: visible;
  }

  /* Desktop hover/focus rules would keep a tapped menu open; only the class controls it here */
  .main-navigation .menu-item:not(.submenu-open):hover > .sub-menu,
  .main-navigation .menu-item:not(.submenu-open):focus-within > .sub-menu,
  .main-navigation .has-mega-menu:not(.submenu-open):hover > .mega-menu,
  .main-navigation .has-mega-menu:not(.submenu-open):focus-within > .mega-menu {
    display: none;
  }

  .main-navigation .menu-item.submenu-open > .sub-menu { display: flex; }
  .main-navigation .menu-item.submenu-open > .mega-menu { display: block; }

  .main-navigation .dropdown-caret { transition: transform 0.2s ease; }
  .main-navigation .submenu-open > a .dropdown-caret { transform: rotate(180deg); }

  /* Show the intro (heading, text, link) above the columns, like desktop */
  .mega-intro {
    padding: 0.5rem 0 1rem;
    border-right: 0;
  }
  .mega-intro-heading { font-size: 22px; margin-bottom: 0.5rem; }
  .mega-intro-text { font-size: 14px; margin-bottom: 1rem; }
  .mega-intro-link { font-size: 14px; }

  .main-navigation ul.mega-columns {
    display: block;
    padding-left: 0;
  }

  .main-navigation ul.mega-columns > .menu-item { margin-bottom: 0.75rem; }

  .main-navigation .mega-col-title { font-size: 16px; }
}

/* -------------------------------------------------
   Content
------------------------------------------------- */
/* .site-main {
  padding: 3rem 0;
  min-height: 50vh;
} */
.component-hero{
  min-height:700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.component-hero.has-video {
  background-image: none;
}
 
.hero-video {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  z-index: 0;
}
.component-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.component-hero .hero-text{
  max-width: 700px;
  position:relative;
  z-index:99;
}
.component-hero .hero-text h1{
  font-size:64px;
  line-height:1.1;
  margin-bottom: 24px;
  color:white;
}
.component-hero .hero-text .hero-subheading{
  margin-bottom:40px;
  line-height: 1.4;
  color:white;
}
/* -------------------------------------------------
   Reusable: Eyebrow label
------------------------------------------------- */
.eyebrow {
  display: inline-block;
  background: #EFEFEF;
  border: 1px solid #FFFFFF;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom:24px;
}
 
/* -------------------------------------------------
   Component: Product Cards
------------------------------------------------- */
.component-product-cards {
  padding: 124px 0;
  text-align: center;
}
 
.product-cards-header {
  margin-bottom: 4rem;
}
 
.product-cards-heading {
  /* font-size: 2rem; */
  color: #3a3a3a;
}
 
/* Columns span the full container width; each card is centred in its column */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
 
.product-card {
  margin-bottom: 1rem;
}
 
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 1.5rem;
}
 
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .product-card-media {
    height: 0;
    padding-top: 100%;
  }
  .product-card-media img,
  .product-card-media > a {
    position: absolute;
    top: 0;
    left: 0;
  }
}
 
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
/* Decorative accent block overlapping the image edge */
.product-card-accent {
  position: absolute;
  width: 34px;
  height: 46px;
  z-index: 2;
}
 
.accent-pos-left {
  left: -14px;
  top: 30%;
}
 
.accent-pos-right {
  right: -14px;
  top: 30%;
}
 
.accent-pos-top-left {
  left: -10px;
  top: -12px;
  width: 44px;
  height: 26px;
}
 
.accent-color-light { background: #c5d9ef; }
.accent-color-mid   { background: #6fa3d8; }
.accent-color-dark  { background: #2c4a7c; }
 
.product-card-title {
  font-size: 28px;
  font-weight: 700;
  color: #434346;
  margin: 0 0 16px;
}
 
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-cmrs-300);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
 
.product-card-link:hover {
  color: var(--color-cmrs-400);
  text-decoration: none;
}

/* -------------------------------------------------
   Component: CTA Quote Card
------------------------------------------------- */
.component-cta-quote {
  padding: 124px 0;
}

/* Backgrounds come from --cta-bg / --cta-bg-mobile set inline by the template */
.component-cta-quote.has-background-image {
  background: var(--cta-bg) center right / cover no-repeat;
}

.component-cta-quote.cta-style-center.has-background-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(202, 223, 243, 0.8) 100%),
    var(--cta-bg) 50% / cover no-repeat;
}

@media (max-width: 700px) {
  .component-cta-quote.has-background-image {
    background-image: var(--cta-bg-mobile);
  }
  .component-cta-quote.cta-style-center.has-background-image {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(202, 223, 243, 0.8) 100%),
      var(--cta-bg-mobile);
  }
}
 
.cta-quote-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(30, 60, 100, 0.08);
  padding: 64px;
  /* max-width: 800px; */
  margin: 0 auto;
  text-align: center;
}
 
.cta-quote-heading {
  font-size: var(--font-h3);
  color: var(--color-heading3);
  margin: 0 0 0.85rem;
}
 
.cta-quote-text {
  color: var(--color-heading3);
  font-size: 1rem;
  margin: 0 0 1.75rem;
}

/* -------------------------------------------------
   Component: Image + Content (2 Column)
------------------------------------------------- */
.component-image-content {
  padding: 124px 0;
  background:#F2F7FC;
}
 
.image-content-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
 
.image-content-media,
.image-content-text {
  flex: 1 1 400px;
}
 
.image-content-media img {
  width: 100%;
  height: auto;
  display: block;
}
 
/* Default order: image first, text second */
.image-content-media { order: 1; }
.image-content-text  { order: 2; }
 
/* Reversed: text first, image second */
.component-image-content.image-position-right .image-content-media { order: 2; }
.component-image-content.image-position-right .image-content-text  { order: 1; }
 
.image-content-heading {
  /* font-size: 1.9rem; */
  line-height:1.1;
  color: #434346;
  margin: 0 0 24px;
}
 
.image-content-body {
  color: #434346;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 40px;
}
 
.image-content-body p {
  margin: 0 0 1em;
}
 
.image-content-body p:last-child {
  margin-bottom: 0;
}
 
@media (max-width: 700px) {
  .image-content-media,
  .component-image-content.image-position-right .image-content-media {
    order: 1;
  }
  .image-content-text,
  .component-image-content.image-position-right .image-content-text {
    order: 2;
  }
}
/* -------------------------------------------------
  Component Testimony
------------------------------------------------- */
.component-testimony{
  padding: 124px 0;
  background:#EFEFEF;
  text-align: center;
  margin:auto;
}
.component-testimony h3{
  font-size:var(--font-h3);
}
.testimony-title{
  margin-bottom:64px;
}
.testimony-slider {
  position: relative;
  padding: 0 3rem;
}
 
/* Prevent flash of unstyled/unsliced content before Slick initializes */
.testimony-slider:not(.slick-initialized) {
  display: flex;
  overflow: hidden;
}
 
.testimony-slider:not(.slick-initialized) .testimony-slide {
  min-width: 100%;
}
 
.testimony-slide {
  text-align: left;
  background: #ffffff;
  padding: 2.25rem;
  margin: 0 12px;
}
 
.slick-track {
  display: flex !important;
}
 
.slick-slide {
  height: auto !important;
}
 
.slick-slide > div {
  height: 100%;
}
 
.testimony-quote-icon {
  display: inline-flex;
  color: var(--color-cmrs-200);
  margin-bottom: 0.75rem;
}
 
.testimony-quote-text {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
 
.testimony-author-name {
  font-weight: 700;
  color: #3a3a3a;
  margin: 0;
  font-size: 0.95rem;
}
 
.testimony-author-company {
  font-style: italic;
  color: #777777;
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}
 
/* Arrows */
.testimony-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  color: var(--color-cmrs-200);
  cursor: pointer;
  z-index: 10;
  padding: 0;
}
 
.testimony-arrow:hover {
  color: var(--color-primary);
}
 
.testimony-arrow-prev {
  left: 0;
}
 
.testimony-arrow-next {
  right: 0;
}
 
/* Dots — thin bar style instead of round dots */
.testimony-slider .slick-dots {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2rem 0 0;
  padding: 0;
}
 
.testimony-slider .slick-dots li {
  margin: 0;
}
 
.testimony-slider .slick-dots li button {
  display: block;
  width: 28px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: #d5d5d5;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
 
.testimony-slider .slick-dots li.slick-active button {
  background: var(--color-cmrs-200);
}
 
/* Mobile: full-width rounded card, no arrows, compact spacing.
   Section padding is set here rather than in the shared mobile block below. */
@media (max-width: 700px) {
  .component-testimony { padding: 40px 0 44px; }
  .component-testimony .eyebrow { font-size: 16px; }
  .component-testimony h3 { font-size: 28px; color: var(--color-heading3); }
  .testimony-title { margin-bottom: 36px; }
  .testimony-slider { padding: 0; }
  .testimony-arrow { display: none !important; }
  .testimony-slide {
    margin: 0;
    padding: 32px;
    border-radius: 8px;
  }
  .testimony-quote-icon {
    color: #c5d9ef;
    margin-bottom: 1.5rem;
  }
  .testimony-quote-text { font-size: 15px; margin-bottom: 2rem; }
  .testimony-author-name { font-size: 16px; }
  .testimony-author-company { font-size: 15px; color: #555555; }
  .testimony-slider .slick-dots { gap: 6px; margin-top: 2rem; }
  .testimony-slider .slick-dots li button {
    width: 22px;
    height: 6px;
    border-radius: 0;
  }
}

/* -------------------------------------------------
   Component: Features Cards
   (paste into style.css, e.g. after the Testimony component)
------------------------------------------------- */
.component-features {
  padding: 124px 0;
}

.features-inner {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

/* Header: heading left, description right */
.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 64px;
}

.features-heading {
  font-size: var(--font-h2);
  line-height: 1.1;
  color: var(--color-heading3);
  margin: 0;
}

.features-header-right {
  color: var(--color-heading3);
  font-size: 18px;
  line-height: 1.4;
  padding-top: 0.5rem;
}

.features-header-right p {
  margin: 0 0 1em;
}

.features-header-right p:last-child {
  margin-bottom: 0;
}

/* Cards grid — column count is set by the PHP class (2, 3 or 4) */
.features-grid {
  display: grid;
  gap: 3rem 2.5rem;
}

.features-cols-2 { grid-template-columns: repeat(2, 1fr); }
.features-cols-3 { grid-template-columns: repeat(3, 1fr); }
.features-cols-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c5d9ef;
  margin-bottom: 24px;
}

.feature-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading3);
  margin: 0 0 12px;
}

.feature-card-text {
  color: var(--color-heading3);
  font-size: 14px;
  line-height: 1.6;
}

.feature-card-text p {
  margin: 0 0 1em;
}

.feature-card-text p:last-child {
  margin-bottom: 0;
}

/* Tablet: 3 and 4 card layouts drop to 2 columns */
@media (max-width: 1000px) {
  .features-header {
    gap: 2rem;
  }
  .features-cols-3,
  .features-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: stack everything */
@media (max-width: 700px) {
  .component-features {
    padding: 64px 0;
  }
  .features-header {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .features-heading {
    font-size: 32px;
  }
  .features-cols-2,
  .features-cols-3,
  .features-cols-4 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
/* -------------------------------------------------
   Footer
------------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
 
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
 
@media (max-width: 800px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}
 
@media (max-width: 500px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
 
.footer-brand-name {
  color: var(--color-footer-brand);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
 
.footer-address {
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
 
.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
 
.footer-credit-text {
  font-size: 14px;
  color: var(--color-footer-text);
}
 
.footer-credit-logo {
  max-height: 32px;
  width: auto;
}
 
.footer-col-title {
  color: var(--color-footer-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
 
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.footer-menu li {
  margin-bottom: 0.65rem;
}
 
.footer-menu a,
.footer-menu span {
  color: var(--color-footer-link);
  text-decoration: none;
  font-size: 16px;
}
 
.footer-menu a:hover {
  color: var(--color-footer-heading);
  text-decoration: underline;
}
 
.footer-email-link {
  text-decoration: underline;
}
 
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1.25rem;
}
 
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
 
.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
 
.footer-socials {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
 
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-footer-bg);
}
 
.footer-socials a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* -------------------------------------------------
   Utilities
------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* -------------------------------------------------
   Component: Team
------------------------------------------------- */
.component-team {
  padding: 124px 0;
}

.team-title {
  text-align: center;
  color: #434346;
  margin: 0 0 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card-media {
  aspect-ratio: 1 / 1;
  background: #eef4fb;
  margin-bottom: 1.25rem;
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-name {
  font-size: 24px;
  font-weight: 700;
  color: #3a3a3a;
  margin: 0 0 0.25rem;
}

.team-card-position {
  font-size: 18px;
  color: #434346;
  margin: 0 0 0.75rem;
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.team-card-link:hover {
  color: var(--color-cmrs-400);
}

/* Popup */
.team-modal {
  width: min(1280px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 64px;
  border: 0;
  background: #fff;
  color: var(--color-text);
  overflow: auto;
}

.team-modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

/* Fade + slide in and out (display/overlay transitions keep the exit animated) */
@media (prefers-reduced-motion: no-preference) {
  .team-modal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      overlay 0.25s allow-discrete,
      display 0.25s allow-discrete;
  }

  .team-modal[open] {
    opacity: 1;
    transform: none;
  }

  .team-modal::backdrop {
    background: rgba(0, 0, 0, 0);
    transition:
      background-color 0.25s ease,
      overlay 0.25s allow-discrete,
      display 0.25s allow-discrete;
  }

  .team-modal[open]::backdrop {
    background: rgba(0, 0, 0, 0.35);
  }

  @starting-style {
    .team-modal[open] {
      opacity: 0;
      transform: translateY(16px);
    }

    .team-modal[open]::backdrop {
      background: rgba(0, 0, 0, 0);
    }
  }
}

.team-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--color-cmrs-200);
  color: #111;
  cursor: pointer;
}

.team-modal-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.team-modal-media {
  flex: 0 0 370px;
  max-width: 370px;
}

.team-modal-media img {
  width: 100%;
  height: auto;
  display: block;
}

.team-modal-content {
  flex: 1;
}

.team-modal-name {
  font-size: var(--font-h3);
  line-height: 1.1;
  color: #434346;
  margin: 0 0 1rem;
}

.team-modal-position {
  margin: 0 0 2rem;
}

.team-modal-bio {
  line-height: 1.6;
  margin: 0 0 2rem;
}

.team-modal-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-modal-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.team-modal-contact svg {
  color: #b0b5bd;
  flex: none;
}

.team-modal-label {
  font-weight: 700;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-modal { padding: 32px 24px; }
  .team-modal-inner { flex-direction: column; gap: 24px; align-items: stretch; }
  .team-modal-media { flex: none; max-width: 260px; }
}

@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------
   Mobile spacing for all components (matches Features)
   Remove this block to undo.
------------------------------------------------- */
@media (max-width: 700px) {
  .component-product-cards,
  .component-cta-quote,
  .component-image-content,
  .component-features,
  .component-team {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}


/* -------------------------------------------------
   Template: Contact
------------------------------------------------- */
.component-contact {
  padding: 64px 0 124px;
}

.component-contact.has-background-image {
  background: var(--contact-bg) center bottom / cover no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 4rem;
  align-items: start;
}

.contact-heading {
  font-size: 48px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-heading3);
  margin: 0 0 1.5rem;
}

.contact-text {
  color: var(--color-heading3);
  font-size:18px;
  max-width: 560px;
  margin: 0 0 2rem;
}

.contact-card {
  max-width: 400px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 60, 100, 0.12);
  color: var(--color-heading3);
  font-size: 16px;
  line-height: 1.5;
}
.contact-card p { margin: 0; }

.contact-card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 1rem;
}

.contact-card-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  margin-top:4px;
  margin-bottom:24px;
}

.contact-card-hours { margin-bottom: 1rem; }

.contact-card-sep { margin: 0 0.4rem; }

.contact-card-numbers a,
.contact-card-email a { font-weight:500; text-decoration: underline; }

.contact-card-email { margin-top: 0.25rem; }

/* Form card: styles both HubSpot's rendered form and the dummy form */
.contact-form-card {
  background: #EFEFEF;
  padding: 36px 32px 28px;
}

.contact-form-card .hs-form-field,
.contact-form-card .hsfc-FieldSet,
.contact-form-card .hsfc-TextField,
.contact-form-card .hsfc-EmailField,
.contact-form-card .hsfc-TextareaField {
  margin-bottom: 24px;
}

.contact-form-card label,
.contact-form-card .hsfc-FieldLabel {
  display: block;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 400 !important;
  line-height: 1.4;
  color: var(--color-heading3);
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card textarea,
.contact-form-card select,
.contact-form-card .hs-input,
.contact-form-card .hsfc-TextInput,
.contact-form-card .hsfc-TextareaInput {
  display: block;
  width: 100% !important;
  height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  box-shadow: none;
}

.contact-form-card textarea,
.contact-form-card textarea.hs-input,
.contact-form-card .hsfc-TextareaInput {
  height: 104px;
  min-height: 104px;
  resize: vertical;
}

/* Selects match the text inputs, with our own caret */
.contact-form-card select,
.contact-form-card select.hs-input {
  height: 42px !important;
  padding: 0 40px 0 12px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
  cursor: pointer;
}

/* HubSpot legacy embed: one field per row, full width, no extra margins */
.contact-form-card fieldset {
  display: block;
  max-width: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form-card fieldset .hs-form-field {
  float: none !important;
  width: 100% !important;
}

.contact-form-card .input {
  margin-right: 0 !important;
}

.contact-form-card .hs-form-required {
  margin-left: 1px;
  color: inherit;
}

.contact-form-card .hs-richtext,
.contact-form-card .hs-richtext p {
  margin: 0;
}

.contact-form-card .legal-consent-container,
.contact-form-card .hsfc-RichText {
  margin: 28px 0 32px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-heading3);
}

.contact-form-card .legal-consent-container p,
.contact-form-card .hsfc-RichText p { margin: 0; }

.contact-form-card .legal-consent-container a,
.contact-form-card .hsfc-RichText a {
  color: #3B6FC4;
  text-decoration: underline;
}

.contact-form-card .hs-error-msgs,
.contact-form-card .hsfc-ErrorAlert {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #c0392b;
  font-size: 12px;
}

.contact-form-card .hs-error-msgs label {
  margin: 0;
  font-size: 12px;
  color: #c0392b;
}

.contact-form-card .hs_submit,
.contact-form-card .hs-submit {
  margin-top: 8px;
}

.contact-form-card input[type="submit"],
.contact-form-card .hs-button,
.contact-form-card .hsfc-Button {
  display: block;
  width: 100% !important;
  height: auto;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: var(--color-cmrs-200);
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}

.contact-form-card input[type="submit"]:hover,
.contact-form-card .hs-button:hover,
.contact-form-card .hsfc-Button:hover {
  background: var(--color-primary);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-heading { font-size: 36px; }
}

@media (max-width: 700px) {
  .component-contact { padding: 40px 0 64px; }
  .contact-form-card { padding: 28px 20px 24px; }
}

/* -------------------------------------------------
   Product Detail (single product)
------------------------------------------------- */
.component-product-detail { padding: 80px 0; }

.product-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cmrs-200);
}

.product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-detail-title {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading3);
  margin-bottom: 24px;
}

.product-detail-description {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--color-heading3);
}

.product-detail-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.product-detail-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 16px 20px;
  background: #eeeeee;
  border-top: 3px solid var(--color-cmrs-200);
  color: var(--color-heading3);
  text-decoration: none;
}

.product-detail-download:hover { text-decoration: none; background: #e6e6e6; }

.product-detail-download-label { font-size: 18px; font-weight: 700; }

.product-detail-download-cta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 48px;
  padding: 40px;
  border: 1px solid var(--color-border);
}

.product-detail-spec-heading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading3);
}

.product-detail-spec-body {
  font-size: 16px;
  color: var(--color-heading3);
}

.product-detail-spec-body p { margin: 0; }
.product-detail-spec-body ul { margin: 0; padding-left: 16px; }
.product-detail-spec-body li { margin-bottom: 4px; }

.product-detail-spec-link {
  font-size: 12px;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .product-detail-top { grid-template-columns: 1fr; }
  .product-detail-media { order: -1; }
  .product-detail-specs { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-title { font-size: 32px; }
}

@media (max-width: 500px) {
  .product-detail-downloads { grid-template-columns: 1fr; }
}

/* -------------------------------------------------
   Component: Page Cards
------------------------------------------------- */
.component-page-cards {
  padding: 120px 0;
  background-color: #EFEFEF;
}

.page-cards-grid {
  display: grid;
  gap: 24px;
}

.page-cards-cols-1 { grid-template-columns: 1fr; }
.page-cards-cols-2 { grid-template-columns: repeat(2, 1fr); }
.page-cards-cols-3 { grid-template-columns: repeat(3, 1fr); }
.page-cards-cols-4 { grid-template-columns: repeat(4, 1fr); }

.page-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.page-card-media {
  display: block;
  height: 300px;
  overflow: hidden;
  background: var(--color-border);
}

.page-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.page-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #434346;
  margin: 0 0 16px;
}

.page-card-text {
  font-size: 16px;
  color: #434346;
  margin: 0 0 24px;
}

.page-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--color-cmrs-200);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.page-card-link:hover {
  color: var(--color-cmrs-400);
  text-decoration: none;
}

@media (max-width: 1000px) {
  .page-cards-cols-3,
  .page-cards-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .component-page-cards { padding: 40px 0; }
  .page-cards-cols-2,
  .page-cards-cols-3,
  .page-cards-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------
   Component: Page Banner
------------------------------------------------- */
.component-page-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  background: var(--color-cmrs-200);
}
.component-page-banner .page-banner-bg,
.component-page-banner .page-banner-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.component-page-banner .page-banner-inner {
  position: relative;
  z-index: 1;
}
.component-page-banner .page-banner-title {
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .component-page-banner {
    min-height: 140px;
  }
  .component-page-banner .page-banner-title {
    font-size: 32px;
  }
}

/* -------------------------------------------------
   Component: Product Catalog
   --catalog-top / --catalog-nav-h are set by main.js; fallbacks below.
------------------------------------------------- */
.component-product-catalog {
  --catalog-top: 80px;
  --catalog-nav-h: 48px;
}
.catalog-nav {
  position: sticky;
  top: var(--catalog-top);
  z-index: 900;
  background: #f3f8fd;
  overflow-x: auto;
}
.catalog-nav-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 24px 1.5rem;
  list-style: none;
  white-space: nowrap;
}
.catalog-nav-list a {
  display: block;
  border-bottom: 2px solid transparent;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.catalog-nav-list a:hover,
.catalog-nav-list a.is-active {
  color: var(--color-cmrs-400);
  border-bottom-color: var(--color-primary);
}
.catalog-section {
  padding-top: 120px;
  scroll-margin-top: calc(var(--catalog-top) + var(--catalog-nav-h));
}
.catalog-section:last-child { padding-bottom: 120px; }
.catalog-heading {
  margin: 0 0 2rem;
  padding-left: 12px;
  border-left: 6px solid var(--color-cmrs-200);
  color: var(--color-heading3);
  font-size: 32px;
  line-height: 1.2;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-heading3);
  text-decoration: none;
  transition: box-shadow .2s ease;
}
.catalog-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.catalog-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.catalog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-card-title {
  margin-top: auto;
  padding: 14px 10px;
  background: #efefef;
  border-top: 3px solid var(--color-cmrs-200);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .catalog-nav-list { justify-content: flex-start; gap: 1.25rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .catalog-section { padding-top: 48px; }
  .catalog-heading { font-size: 26px; }
}

/* -------------------------------------------------
   Component: Resources
   (template-parts/components/component-resources.php)
   ------------------------------------------------- */
.component-resources {
  padding: 124px 0;
}
.resources-section + .resources-section {
  margin-top: 80px;
}
.resources-heading {
  margin: 0 0 2.5rem;
  padding-left: 12px;
  border-left: 6px solid var(--color-cmrs-200);
  color: var(--color-heading3);
  font-size: 32px;
  line-height: 1.2;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 24px 30px;
  background: #eeeeee;
  border-top: 3px solid var(--color-cmrs-200);
  color: var(--color-heading3);
  text-align: center;
  text-decoration: none;
  transition: background .2s ease;
}
.resource-card:hover,
.resource-card:focus-visible {
  background: #e6e6e6;
  text-decoration: none;
}
.resource-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.resource-card-cta {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}
.resource-card:hover .resource-card-cta { color: var(--color-cmrs-400); }
@media (max-width: 1000px) {
  .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .component-resources { padding: 40px 0; }
  .resources-section + .resources-section { margin-top: 48px; }
  .resources-heading { font-size: 28px; margin-bottom: 36px; }
  .resources-grid { grid-template-columns: 1fr; gap: 20px; }
  .resource-card { gap: 16px; padding: 32px 24px 28px; }
  .resource-card-title { font-size: 18px; }
}

/* -------------------------------------------------
   Component: Projects
   (template-parts/components/component-projects.php, template-parts/project-card.php)
   Filter nav matches the Product Catalog nav. --projects-top is set by main.js.
   ------------------------------------------------- */
.component-projects {
  --projects-top: 80px;
  padding-bottom: 124px;
}
.projects-nav {
  position: sticky;
  top: var(--projects-top);
  z-index: 900;
  background: #f3f8fd;
  overflow-x: auto;
}
/* Drop the header's bottom rule so it doesn't sit on top of the filter nav */
body:has(.projects-nav) .site-header,
body:has(.catalog-nav) .site-header { box-shadow: none; }
.projects-nav-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 24px 1.5rem;
  list-style: none;
  white-space: nowrap;
}
.projects-nav-list button {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.projects-nav-list button:hover,
.projects-nav-list button.is-active {
  color: var(--color-cmrs-400);
  border-bottom-color: var(--color-primary);
}
.component-projects .container {
  padding-top: 120px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.project-card[hidden] { display: none; }
.project-card-media {
  aspect-ratio: 4 / 3;
  background: #eeeeee;
}
.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 28px;
}
.project-card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--color-heading3);
  font-size: 16px;
  line-height: 1.5;
}
.project-card-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  object-fit: contain;
}

/*---Hover state---*/
.project-card-media {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s linear;
}

.project-card-media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  background: var(--zoom-icon) center / contain no-repeat;
  opacity: 0;
  transition: opacity .3s linear;
  pointer-events: none;
}

.project-card:hover .project-card-media img,
.project-card:focus-within .project-card-media img {
  transform: scale(1.05);
}

.project-card:hover .project-card-media::after,
.project-card:focus-within .project-card-media::after {
  opacity: 1;
}

.project-card-media:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/*---Modal---*/
.pm {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .8);
}
.pm[open] { display: flex; align-items: center; justify-content: center; }
.pm-figure {
  margin: 0;
  width: fit-content;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.pm-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: calc(100vh - 200px);
}
.pm-caption { padding: 1rem 1.25rem; max-width: 90vw;}
.pm-caption .project-card-row { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem;}
.pm-caption .project-card-row:last-child { margin: 0; }
.pm-caption .project-card-icon { width: 20px; height: 20px; flex: none; }

.pm-close, .pm-nav {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.pm-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.pm-nav   { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 0 .5rem; }
.pm-prev  { left: .75rem; }
.pm-next  { right: .75rem; } 
.pm-close:focus-visible, .pm-nav:focus-visible { outline: 2px solid #fff; }
/*---Modal---*/

@media (prefers-reduced-motion: reduce) {
  .project-card-media img,
  .project-card-media::after { transition: none; }
}
/*---Hover state---*/

@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .component-projects { padding-bottom: 64px; }
  .component-projects .container { padding-top: 48px; }
  .projects-nav-list { justify-content: flex-start; gap: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* -------------------------------------------------
   Component: Featured Projects
   (template-parts/components/component-featured-projects.php)
   Cards and grid come from the Projects block (.projects-grid, .project-card).
   ------------------------------------------------- */
.component-featured-projects {
  padding: 124px 0;
}
.featured-projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4rem;
}
.featured-projects-heading {
  margin: 0;
  color: var(--color-heading3);
}
.featured-projects-button {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .component-featured-projects { padding: 64px 0; }
  .featured-projects-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5rem;
  }
}
