/*!
 * Anderson Systems — Main Theme Stylesheet
 * Consolidated from the approved HTML mockups (the source of truth).
 * Design tokens, shared chrome (header/hero/footer/CTA band) and per-section
 * styles. Background SVGs reference ../images/. Gravity Forms styles live in
 * gravityforms.css; block-editor parity styles in editor.css.
 */
/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
  background: #fff;
}
/* ===== CSS VARIABLES ===== */ :root {
  --black: #1A1A1A;
  --red: #CC0000;
  --taupe: #8C7B6E;
  --offwhite: #F2F0EE;
  --white: #ffffff;
  --mid-gray: #3a3a3a;
  --light-border: #e0dcd8;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0px;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.admin-bar .site-header {
  top: 32px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px;
  gap: 24px;
}
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 64px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--black);
  padding: 8px 10px;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--red);
}
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--red);
}
.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 5px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--red);
  color: var(--white) !important;
}
.header-red-bar {
  height: 3px;
  background: var(--red);
}
/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}
/* ===== PAGE HERO / BREADCRUMB BANNER ===== */
.page-hero {
  background: var(--black);
  background-image: url("../images/hero-bg.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 350%;
  padding: 56px 32px 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.page-hero h1 span {
  color: var(--red);
}
.hero-red-rule {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin-top: 20px;
}
/* ===== INTRO SECTION ===== */
.intro-section {
  background: var(--offwhite);
  padding: 72px 32px;
}
.intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-text h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.section-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}
.intro-text p {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.8;
  margin-bottom: 18px;
}
/* Overlapping image collage with rounded corners (matches approved home design) */
.intro-images {
  position: relative;
  width: 100%;
  min-height: 460px;
  padding-bottom: 36px;
  padding-right: 24px;
}
.intro-images img {
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
/* Main tall hero image */
.intro-images .img-main {
  width: 82%;
  height: 420px;
  position: relative;
  z-index: 1;
}
/* Smaller image overlapping the lower-right corner, white border to lift it */
.intro-images .img-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 280px;
  z-index: 3;
  border: 8px solid var(--white);
  border-radius: 24px;
}
.intro-images figcaption {
  display: none;
  position: absolute;
  left: 0;
  top: 332px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  z-index: 4;
}
/* ===== ABILITIES SECTION ===== */
.abilities-section {
  background: var(--white);
  padding: 80px 32px;
}
.abilities-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 12px;
}
.section-heading .rule-center {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 16px;
}
.section-heading p {
  font-size: 16px;
  color: var(--taupe);
  max-width: 600px;
  margin: 0 auto;
}
.abilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--light-border);
}
.ability-card {
  padding: 36px 28px;
  border-right: 1px solid var(--light-border);
  position: relative;
  transition: background 0.25s;
}
.ability-card:last-child {
  border-right: none;
}
.ability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s;
}
.ability-card:hover {
  background: var(--offwhite);
}
.ability-card:hover::before {
  background: var(--red);
}
.ability-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  line-height: 1;
}
.ability-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-border);
}
.ability-card ul {
  list-style: none;
  padding: 0;
}
.ability-card ul li {
  font-size: 14px;
  color: #4a4a4a;
  padding: 6px 0;
  border-bottom: 1px solid #f0ece8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.ability-card ul li:last-child {
  border-bottom: none;
}
.ability-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 6px;
}
/* ===== DARK BAND CTA ===== */
/* White rounded outer frame containing a dark rounded card (matches approved homepage) */
.cta-band {
  background-color: #F8F8F8;
  background-image: url("../images/cta-band-bg.svg");
  background-repeat: repeat-x;
  background-position: top center;
  padding: 64px 32px;
  position: relative;
  overflow: visible;
}
.home .cta-band {
  padding-bottom: 0;
}
.cta-band::before {
  content: none;
}
.cta-band-inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
body.home .cta-band-inner {
  width: 960px;
  position: relative;
  margin-left: 50%;
  transform: translate(-50%, -50%);
  top: 0;
  max-width: 100%;
}
.cta-band-card {
  background: var(--black);
  border-radius: 10px;
  padding: 38px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band-text h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.cta-band-text h2 span {
  color: var(--red);
}
.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-phone {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-phone svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}
.cta-band .btn-primary {
  border: 1.5px solid var(--white);
  padding: 13px 26px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 28px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-red {
  background: var(--red);
  border-color: var(--red);
}
.btn-red:hover {
  background: #aa0000;
  border-color: #aa0000;
}
/* ===== FOOTER ===== */
.site-footer {
  background: #363636;
}
/* Full-width 3-column colour bands */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}
.footer-col-1 {
  background: #363636;
}
.footer-col-2 {
  background: #292929;
}
.footer-col-3 {
  background: #1a1a1a;
}
/*
      Each column has a max-width wrapper that centres content
      within the overall 1280px page grid.
      On a 3-col equal grid, each col is ~33.33% wide.
      The page content area is max 1280px centred.
      So content inside each col should start at the same
      left edge as the page content — achieved by constraining
      the inner wrapper to max-width and using auto margins.
    */
.footer-col-inner {
  max-width: calc(1280px / 3);
  padding: 48px 32px;
  /* Push content to the correct edge per column */
}
.footer-col-1 .footer-col-inner {
  margin-left: auto; /* align to right edge of col = left content boundary */
  margin-right: 0;
  display: flex;
  align-items: center;
  min-height: 150px;
  padding-left: 0;
}
.footer-col-2 .footer-col-inner {
  margin-left: 0;
  margin-right: auto;
  padding-left: 48px;
}
.footer-col-3 .footer-col-inner {
  margin-left: 0;
  margin-right: auto;
  padding-left: 48px;
}
.footer-col-1 img {
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
}
.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #CC0000;
  margin-bottom: 22px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 14px;
  color: #d8d8d8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact-list {
  list-style: none;
}
.footer-contact-list li {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: #e2e2e2;
  margin-bottom: 12px;
  line-height: 1.4;
}
.footer-contact-list .label {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #8C7B6E;
  width: 64px;
  flex-shrink: 0;
}
.footer-contact-list a {
  color: #e2e2e2;
  transition: color 0.2s;
}
.footer-contact-list a:hover {
  color: #fff;
}
/* Bottom black bar — content aligned same as page */
.footer-bar {
  background: #000;
  padding: 22px 0;
}
.footer-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bar span, .footer-bar a {
  font-size: 14px;
  color: #b9b9b9;
  letter-spacing: 0.02em;
}
.footer-bar a:hover {
  color: #fff;
}
.footer-bar-links {
  display: flex;
  gap: 14px;
}
.footer-bar-links span {
  color: #b9b9b9;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .abilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ability-card:nth-child(2) {
    border-right: none;
  }
  .ability-card:nth-child(1), .ability-card:nth-child(2) {
    border-bottom: 1px solid var(--light-border);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-1 {
    grid-column: 1 / -1;
  }
  .footer-col-1 .footer-col-inner {
    margin-left: 0;
    padding: 40px 32px;
    min-height: auto;
  }
}
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 999;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    color: var(--white);
    font-size: 16px;
    padding: 12px 20px;
  }
  .nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    font-size: 16px;
    padding: 14px 28px;
  }
  .header-inner {
    padding: 14px 20px;
  }
  .intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro-images {
    min-height: 0;
    padding: 0 8px 8px 0;
  }
  .intro-images .img-main {
    width: 100%;
    height: 240px;
  }
  .intro-images .img-overlay {
    position: relative;
    width: 70%;
    height: 200px;
    margin: -50px 0 0 auto;
    right: 0;
    bottom: auto;
  }
  .abilities-grid {
    grid-template-columns: 1fr;
    border: none;
  }
  .ability-card {
    border-right: none;
    border-bottom: 1px solid var(--light-border);
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background 0.2s;
  }
  .ability-card:hover {
    border-left-color: var(--red);
  }
  .cta-band-card {
    flex-direction: column;
    text-align: left;
    align-items: center;
    padding: 30px 24px;
  }
  .footer-outer {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-col-inner {
    padding: 36px 24px;
    max-width: 100%;
  }
  .footer-col-1 .footer-col-inner {
    margin-left: 0;
    padding: 36px 24px;
    min-height: auto;
  }
  .footer-col-2 .footer-col-inner, .footer-col-3 .footer-col-inner {
    padding-left: 24px;
  }
  .footer-bar {
    padding: 16px 0;
  }
  .footer-bar-inner {
    padding: 0 24px;
  }
  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .page-hero {
    padding: 40px 20px 36px;
  }
  .intro-section, .abilities-section {
    padding: 56px 20px;
  }
  .cta-band {
    padding: 48px 20px;
  }
}
/* ===== CAREERS INTRO ===== */
.careers-intro {
  background: var(--offwhite);
  padding: 72px 32px 120px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.careers-intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.careers-intro-text h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.careers-intro-text .section-rule {
  margin-bottom: 24px;
}
.careers-intro-text p {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.85;
}
/* ===== OPEN POSITIONS ===== */
.positions-section {
  background: var(--white);
  padding: 80px 32px;
}
.positions-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.positions-section .section-heading {
  text-align: left;
  margin-bottom: 40px;
}
.positions-section .section-heading h2 {
  font-size: clamp(20px, 2.5vw, 28px);
}
.positions-section .rule-center {
  margin: 0 0 0 0;
}
.positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.position-card {
  border: 1px solid var(--light-border);
  background: var(--offwhite);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.position-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.position-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}
.position-card:hover::before {
  transform: scaleX(1);
}
.position-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.position-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1.3;
}
.position-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.position-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--taupe);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
}
.position-tag svg {
  width: 13px;
  height: 13px;
  stroke: var(--taupe);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.position-divider {
  height: 1px;
  background: var(--light-border);
  margin-bottom: 24px;
}
.btn-apply {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 11px 24px;
  transition: background 0.2s;
}
.btn-apply:hover {
  background: var(--red);
  color: var(--white);
}
@media (max-width: 1024px) {
  .positions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .careers-intro-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .careers-intro-image img {
    min-height: 260px;
  }
  .careers-intro {
    padding: 56px 20px 100px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  .positions-section {
    padding: 56px 20px;
  }
  .positions-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== CAREERS INTRO IMAGE ===== */
.careers-intro-image {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.careers-intro-image img {
  width: 90%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
/* ===== GENERAL RESUME SECTION ===== */
.resume-section {
  background: var(--black);
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
}
.resume-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.resume-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
/* Left: pitch copy */
.resume-pitch {}
.resume-pitch-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resume-pitch-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.resume-pitch h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.resume-pitch h2 span {
  color: var(--red);
}
.resume-pitch p {
  font-size: 15px;
  color: #999;
  line-height: 1.85;
  margin-bottom: 28px;
}
.resume-pitch-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resume-pitch-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #ccc;
  font-family: 'Lato', sans-serif;
}
.resume-pitch-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
/* Right: form */
.resume-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px;
}
.resume-form-wrap h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.rf-group {
  margin-bottom: 14px;
}
.rf-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 7px;
}
.rf-group label .req {
  color: var(--red);
  margin-left: 2px;
}
.rf-group input, .rf-group select, .rf-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--white);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}
.rf-group input::placeholder, .rf-group textarea::placeholder {
  color: #555;
}
.rf-group input:focus, .rf-group select:focus, .rf-group textarea:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
}
.rf-group textarea {
  height: 90px;
  resize: vertical;
}
.rf-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  color: #ccc;
}
.rf-group select option {
  background: #1a1a1a;
  color: var(--white);
}
/* File upload */
.rf-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rf-upload-label:hover {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
}
.rf-upload-label svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rf-upload-text {
  font-size: 13px;
  color: #888;
  font-family: 'Lato', sans-serif;
}
.rf-upload-text span {
  color: var(--red);
  font-weight: 700;
}
.rf-file-input {
  display: none;
}
.rf-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.rf-note {
  font-size: 12px;
  color: #555;
}
.rf-note span {
  color: var(--red);
}
.btn-rf-submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-rf-submit:hover {
  background: #aa0000;
}
@media (max-width: 1024px) {
  .resume-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .resume-section {
    padding: 48px 20px;
  }
  .resume-form-wrap {
    padding: 24px 18px;
  }
  .rf-row {
    grid-template-columns: 1fr;
  }
  .rf-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== CASE STUDIES V4 — SIMPLE LIST ===== */
.cs4-section {
  background: var(--offwhite);
  padding: 72px 32px 80px;
}
.cs4-inner {
  max-width: 960px;
  margin: 0 auto;
}
/* Stats row */
.cs4-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light-border);
  margin-bottom: 64px;
}
.cs4-stat {
  background: var(--white);
  padding: 28px 24px;
  text-align: center;
}
.cs4-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}
.cs4-stat-num span {
  color: var(--red);
}
.cs4-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}
/* Project list */
.cs4-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs4-item {
  background: var(--white);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cs4-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}
.cs4-item-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.cs4-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cs4-item:hover .cs4-item-image img {
  transform: scale(1.05);
}
.cs4-item-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
}
.cs4-item-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.cs4-item:hover .cs4-item-body {
  border-left-color: var(--red);
}
.cs4-item-client {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 6px;
}
.cs4-item-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 10px;
}
.cs4-item-desc {
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.75;
  margin-bottom: 16px;
}
.cs4-item-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs4-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--light-border);
  padding: 4px 12px;
  background: var(--offwhite);
}
@media (max-width: 768px) {
  .cs4-section {
    padding: 48px 20px 56px;
  }
  .cs4-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cs4-item {
    grid-template-columns: 1fr;
  }
  .cs4-item-image {
    height: 200px;
  }
  .cs4-item-body {
    padding: 24px 20px;
    border-left: none;
    border-top: 3px solid transparent;
  }
  .cs4-item:hover .cs4-item-body {
    border-top-color: var(--red);
  }
}
/* ===== CLIENTS INTRO ===== */
.clients-intro {
  background: var(--offwhite);
  padding: 72px 32px 56px;
}
.clients-intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}
.clients-intro-inner h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.clients-intro-inner .section-rule {
  margin: 0 auto 24px;
}
.clients-intro-inner p {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.8;
}
/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--white);
  padding: 80px 32px;
}
.testimonials-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.testimonial-card {
  position: relative;
  background: var(--offwhite);
  border-left: 4px solid var(--red);
  padding: 48px 56px 40px 72px;
  margin-bottom: 40px;
  transition: box-shadow 0.25s;
}
.testimonial-card:last-of-type {
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.testimonial-quote-mark {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 80px;
  line-height: 1;
  color: var(--red);
  font-family: Georgia, serif;
  opacity: 0.5;
  pointer-events: none;
}
.testimonial-card blockquote {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.testimonial-card blockquote p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a3a3a;
  font-style: italic;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-rule {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 12px;
}
.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
  text-transform: uppercase;
}
.testimonial-title {
  font-size: 13px;
  color: var(--taupe);
  font-style: normal;
}
.testimonial-company {
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 40px 24px 32px 40px;
  }
  .testimonial-quote-mark {
    font-size: 56px;
    top: 16px;
    left: 12px;
  }
  .clients-intro {
    padding: 48px 20px 40px;
  }
  .testimonials-section {
    padding: 56px 20px;
  }
}
/* ===== CLIENT LOGOS SECTION ===== */
.clients-logos-section {
  background: var(--white);
  padding: 72px 32px 64px;
}
.clients-logos-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.clients-logos-heading {
  text-align: center;
  margin-bottom: 48px;
}
.clients-logos-heading h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.clients-logos-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 16px;
}
.clients-logos-subtext {
  font-size: 14px;
  color: var(--taupe);
  font-style: italic;
}
/* Logo grid */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
}
.clients-logo-card {
  background: var(--offwhite);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 6px;
  transition: background 0.2s, box-shadow 0.2s;
}
.clients-logo-card:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.clients-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
}
.clients-logo-industry {
  font-size: 12px;
  color: var(--taupe);
  font-family: 'Lato', sans-serif;
  text-align: center;
}
@media (max-width: 768px) {
  .clients-logos-section {
    padding: 48px 20px;
  }
  .clients-logo-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}
.page-hero {
  background: var(--black);
  padding: 56px 32px 48px;
  position: relative;
  overflow: hidden;
}
/* ===== CONTACT V3 ===== */
.page-hero {
  background: var(--black);
  background-image: url("../images/hero-bg.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 350%;
}
.cv3-simple-section {
  background: var(--offwhite);
  padding: 56px 32px 72px;
}
.cv3-simple-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.cv3-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
/* Left sidebar */
.cv3-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv3-contact-block {
  background: #8C7B6E;
  padding: 22px 20px;
}
.cv3-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cv3-contact-row:first-child {
  padding-top: 0;
}
.cv3-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cv3-contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.cv3-contact-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  width: 54px;
  flex-shrink: 0;
  padding-top: 1px;
}
.cv3-contact-val {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.5;
}
a.cv3-contact-val:hover {
  color: rgba(255, 255, 255, 0.75);
}
.cv3-hours-block {
  background: var(--white);
  padding: 24px;
}
.cv3-hours-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.cv3-hrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  padding: 7px 0;
  border-bottom: 1px solid var(--light-border);
  font-family: 'Lato', sans-serif;
}
.cv3-hrow:last-child {
  border-bottom: none;
}
.cv3-hday {
  font-weight: 700;
  color: var(--black);
}
.cv3-hrow.emergency {
  background: var(--black);
  margin: 10px -24px -24px;
  padding: 10px 24px;
}
.cv3-hrow.emergency .cv3-hday {
  color: var(--red);
}
.cv3-hrow.emergency span {
  color: var(--white);
}
.cv3-sidebar-img {
  overflow: hidden;
}
.cv3-sidebar-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}
/* Right form */
.cv3-form-box {
  background: var(--white);
  padding: 40px;
}
.cv3-form-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}
.cv3-form-box h2 span {
  color: var(--red);
}
.cv3-form-rule {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 10px 0 24px;
}
.cv3-frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.cv3-f {
  margin-bottom: 14px;
}
.cv3-f label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 7px;
}
.cv3-f label .req {
  color: var(--red);
  margin-left: 2px;
}
.cv3-f label .opt {
  color: #bbb;
  font-weight: 400;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}
.cv3-f input, .cv3-f select, .cv3-f textarea {
  width: 100%;
  background: var(--offwhite);
  border: 1px solid var(--light-border);
  padding: 11px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--black);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.cv3-f input:focus, .cv3-f select:focus, .cv3-f textarea:focus {
  border-color: var(--red);
}
.cv3-f textarea {
  height: 110px;
  resize: vertical;
}
.cv3-f select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  background-color: var(--offwhite);
}
.cv3-fsubmit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}
.cv3-fnote {
  font-size: 12px;
  color: #bbb;
}
.cv3-fnote span {
  color: var(--red);
}
.btn-cv3b {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cv3b:hover {
  background: #aa0000;
}
@media (max-width: 1024px) {
  .cv3-layout {
    grid-template-columns: 1fr;
  }
  .cv3-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cv3-hours-block {
    flex: 1;
    min-width: 240px;
  }
  .cv3-sidebar-img {
    flex: 1;
    min-width: 200px;
    min-height: 160px;
  }
}
@media (max-width: 768px) {
  .cv3-simple-section {
    padding: 40px 20px 56px;
  }
  .cv3-form-box {
    padding: 24px 18px;
  }
  .cv3-frow {
    grid-template-columns: 1fr;
  }
  .cv3-fsubmit {
    flex-direction: column;
    align-items: flex-start;
  }
  .cv3-sidebar {
    flex-direction: column;
  }
}
/* ===== FAQ PAGE ===== */
.faq-section {
  background: var(--white);
  padding: 72px 32px 80px;
}
.faq-inner {
  max-width: 1280px;
  margin: 0 auto;
}
/* Category block */
.faq-category {
  margin-bottom: 64px;
}
.faq-category:last-child {
  margin-bottom: 0;
  margin-top: 64px;
}
.faq-category-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-category-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* Accordion items */
.faq-item {
  border-bottom: 1px solid var(--light-border);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--light-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--red);
}
.faq-question[aria-expanded="true"] {
  color: var(--red);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--light-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.faq-question:hover .faq-icon, .faq-question[aria-expanded="true"] .faq-icon {
  border-color: var(--red);
  background: var(--red);
}
.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s, transform 0.3s;
}
.faq-question:hover .faq-icon svg, .faq-question[aria-expanded="true"] .faq-icon svg {
  stroke: var(--white);
}
.faq-question[aria-expanded="true"] .faq-icon svg {
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-answer.open {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 0 24px 0;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.8;
}
.faq-answer-inner a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer-inner a:hover {
  color: #aa0000;
}
/* Divider between categories */
.faq-divider {
  height: 1px;
  background: var(--light-border);
  margin: 0 0 64px;
}
@media (max-width: 768px) {
  .faq-section {
    padding: 48px 20px 56px;
  }
  .faq-question {
    font-size: 14px;
  }
}
/* ===== POSITION PAGE ===== */
.position-layout {
  background: var(--white);
  padding: 72px 32px 80px;
}
.position-layout-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
/* Left: job content */
.position-content {}
.position-intro {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--light-border);
}
.position-section {
  margin-bottom: 40px;
}
.position-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--black);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.position-section ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.position-section ul li {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.7;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid #f0ece8;
  position: relative;
}
.position-section ul li:last-child {
  border-bottom: none;
}
.position-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
/* Right: sticky meta + form */
.position-sidebar {
  position: sticky;
  top: 100px;
}
.position-meta-card {
  background: var(--offwhite);
  border-top: 3px solid var(--red);
  padding: 28px 28px 32px;
  margin-bottom: 32px;
}
.position-meta-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 16px;
}
.meta-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: #3a3a3a;
}
.meta-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}
.meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2px;
}
/* Application form */
.application-form-wrap {
  background: var(--black);
  padding: 32px 28px;
}
.application-form-wrap h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 8px;
}
.form-group label .req {
  color: var(--red);
  margin-left: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 11px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--black);
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  box-shadow: 0 0 0 2px var(--red);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.form-note {
  font-size: 11px;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.5;
}
.btn-submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-submit:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
/* Responsive */
@media (max-width: 1024px) {
  .position-layout-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .position-sidebar {
    position: static;
  }
}
@media (max-width: 768px) {
  .position-layout {
    padding: 48px 20px 56px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
/* ===================================================================
   WORDPRESS INTEGRATION  (not in mockups — required for WP front end)
   =================================================================== */
/* Accessibility: skip link + screen-reader text */
.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;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--black);
  color: #fff;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* Generic page / single content wrapper + Gutenberg block content */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}
.page-main {
  padding: 64px 20px;
}
.page-main-inner {
  max-width: 1280px;
  margin: 0 auto;
}
/* WordPress alignment classes for block content */
.entry-content > * {
  margin-bottom: 1.4em;
}
.alignleft {
  float: left;
  margin: .3em 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: .3em 0 1em 1.5em;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .alignwide {
  max-width: 1080px;
  margin-left: calc(50% - 540px);
  margin-right: calc(50% - 540px);
}
.entry-content .alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@media (max-width: 1120px) {
  .entry-content .alignwide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
/* Core block defaults that match the mockup type scale */
.wp-block-heading {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  margin-top: 1.2em;
}
.entry-content a {
  color: var(--red);
  text-decoration: underline;
}
.entry-content figure.wp-block-image figcaption, .wp-element-caption {
  font-size: 13px;
  color: var(--mid-gray);
  text-align: center;
  margin-top: 8px;
}
.wp-block-quote {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  font-style: italic;
  color: var(--mid-gray);
}
.wp-block-button__link, .wp-element-button {
  background: var(--black);
  color: #fff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 24px;
}
.wp-block-button__link:hover {
  background: var(--red);
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}
.wp-block-table td, .wp-block-table th {
  border: 1px solid var(--light-border);
  padding: 10px 14px;
}
/* Pagination (archives) */
.as-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.as-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--light-border);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}
.as-pagination .page-numbers.current {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.as-pagination .page-numbers:hover {
  border-color: var(--red);
  color: var(--red);
}
/* Empty-state for archives with no posts */
.as-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--mid-gray);
}
/* ===================================================================
   THEME SUPPLEMENTARY  (classes used by WP templates not in mockups)
   =================================================================== */
/* Breadcrumb (sits on the dark page hero; mockup leaves it inheriting white) */
.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, .7);
  transition: color .2s;
}
.breadcrumb a:hover {
  color: var(--red);
}
.breadcrumb [aria-current="page"] {
  color: #fff;
}
.breadcrumb-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, .4);
}
.page-hero-subtitle {
  color: rgba(255, 255, 255, .85);
  margin-top: 14px;
  max-width: 720px;
}
/* Post / archive / search card grid (standard posts) */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
}
.post-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.post-card-body {
  padding: 24px 26px 28px;
}
.post-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.post-card-title a:hover {
  color: var(--red);
}
.post-card-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 12px;
}
.archive-description {
  max-width: 760px;
  margin: 0 auto 48px;
  color: var(--mid-gray);
  text-align: center;
}
/* Single post meta + navigation */
.entry-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 24px;
}
.entry-featured {
  margin: 0 0 32px;
}
.entry-featured img {
  width: 100%;
  object-fit: cover;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--light-border);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.post-nav-next {
  text-align: right;
  margin-left: auto;
}
.post-nav a:hover {
  color: var(--red);
}
/* Single case study (inferred layout) */
.cs-single {
  padding: 64px 32px;
}
.cs-single-inner {
  display: block;
}
.cs-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cs-single-meta .cs4-item-client {
  margin: 0;
}
.cs-single-image {
  margin: 0 0 32px;
}
.cs-single-image img {
  width: 100%;
  object-fit: cover;
}
.cs-single .cs4-item-outcomes {
  margin-bottom: 28px;
}
.cs-single-back {
  margin-top: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.cs-single-back a:hover {
  color: var(--red);
}
/* Client logo image (when a logo is uploaded instead of a text name) */
.clients-logo-img {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
}
/* Static form placeholder note (shown until a Gravity Form is connected) */
.as-form-placeholder-note {
  background: #fff7e6;
  border: 1px solid #ffd98a;
  color: #7a5b00;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 4px;
}
/* ===================================================================
   SINGLE POSITION — GUTENBERG BLOCK CONTENT
   The job body is authored as blocks (paragraph/heading/list), so the
   mockup's .position-section styling is remapped onto the block output
   inside .position-content (wp-block-heading, wp-block-list, etc.).
   =================================================================== */
/* Lead/intro: first paragraph gets the separating rule from the mockup. */
.position-content > p:first-of-type {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.85;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--light-border);
}
/* Body paragraphs. */
.position-content p {
  color: #3a3a3a;
  line-height: 1.85;
}
/* Section headings (Primary Function, Qualifications, …) — red underline. */
.position-content h2, .position-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--black);
  margin: 44px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
/* Avoid a double gap immediately after the bordered intro. */
.position-content > p:first-of-type + h2, .position-content > p:first-of-type + h3 {
  margin-top: 0;
}
/* Lists: dividers + red dot bullets, with breathing room. */
.position-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.position-content ul li {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.7;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid #f0ece8;
  position: relative;
}
.position-content ul li:last-child {
  border-bottom: none;
}
.position-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}
/* Ordered lists keep their numbers but match the spacing. */
.position-content ol {
  margin: 20px 0 0;
  padding-left: 20px;
}
.position-content ol li {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.7;
  padding: 6px 0;
}
/* ===================================================================
   FULL WIDTH PAGE TEMPLATE
   Designed <section> blocks render full-bleed at their own inner width;
   loose prose blocks fall back to a readable centered measure.
   =================================================================== */
.page-main-fluid {
  width: 100%;
}
/* Designed sections (and full/wide-aligned blocks) span the full width. */
.page-main-fluid > section, .page-main-fluid > .alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
/* Loose blocks typed directly on the page stay readable and centered. */
.page-main-fluid > p, .page-main-fluid > h1, .page-main-fluid > h2, .page-main-fluid > h3, .page-main-fluid > h4, .page-main-fluid > ul, .page-main-fluid > ol, .page-main-fluid > blockquote, .page-main-fluid > figure, .page-main-fluid > .wp-block-image, .page-main-fluid > .wp-block-buttons {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
/* First loose block after the hero needs a little breathing room. */
.page-main-fluid > p:first-child, .page-main-fluid > h2:first-child {
  margin-top: 48px;
}
/* ===================================================================
   NAV MENU (wp_nav_menu <ul>/<li> — reset bullets, lay out as the mockup)
   =================================================================== */
.site-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.site-nav .nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* Sub-menus (only if an editor adds nested items) */
.site-nav .nav-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1000;
}
.site-nav .nav-menu li:hover > .sub-menu, .site-nav .nav-menu li:focus-within > .sub-menu {
  display: block;
}
.site-nav .nav-menu .sub-menu a {
  display: block;
}
/* Mobile: stack the menu inside the full-screen overlay */
@media (max-width: 768px) {
  .site-nav .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .site-nav .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    display: block;
    padding: 4px 0;
  }
}
/* Defensive: let the contact form column shrink instead of overflowing. */
.cv3-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}
@media (max-width: 1024px) {
  .cv3-layout {
    grid-template-columns: 1fr;
  }
}
/* Active nav item (CPT archives/singles get the class via filter) */
.site-nav .nav-menu .current-menu-item > a, .site-nav .nav-menu .current_page_item > a {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}
/* ===================================================================
   HOMEPAGE  (block-pattern sections — styled by className)
   =================================================================== */
/* ---- Hero (core/cover) ---- */
.home-hero.wp-block-cover {
  min-height: 580px;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 32px 64px 0px;
  color: #fff;
}
.home-hero .wp-block-cover__inner-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 0;
}
.home-hero .wp-block-cover__image-background {
  object-position: center;
}
/* Mild even dim; the text panel supplies the contrast. */
.home-hero .wp-block-cover__background {
  background: rgba(0, 0, 0, .28) !important;
  opacity: 1 !important;
}
/* Inner content is left-aligned within the 1280 container (side margins). */
.home-hero .wp-block-cover__inner-container {
  display: flex;
}
/* Semi-transparent black panel behind the hero copy (matches the mockup). */
.home-hero .hero-panel {
  background: rgba(0, 0, 0, .7);
  padding: 44px;
  max-width: 600px;
}
.home-hero h1, .home-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.8vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.home-hero p {
  font-size: 16px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .92);
}
.home-hero .wp-block-buttons {
  gap: 12px;
}
.home-hero .wp-block-button__link {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 22px;
}
.home-hero .wp-block-button__link:hover {
  background: #aa0000;
}
.home-hero .is-style-outline .wp-block-button__link, .home-hero .wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, .95);
  color: var(--black);
  border: none;
  border-radius: 3px;
}
.home-hero .is-style-outline .wp-block-button__link:hover {
  background: #fff;
}
/* Neutralise WordPress's default flow block-gap (margin-block-start: 24px on
   `.is-layout-flow > *`, injected by core from theme.json) on our grid
   containers' children — the grids use `gap`, so the inherited top margin only
   misaligns the rows/columns. */
.home-services .svc-layout > *, .home-services .svc-cards > *, .home-services .svc-photos > *, .home-why .why-grid > *, .home-industries .ind-grid > * {
  margin-block-start: 0;
  margin-top: 0;
}
/* ---- Services ---- */
.home-services {
  background: var(--offwhite);
  padding: 80px 32px 96px;
}
.home-services .home-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.home-services .section-tick {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-services .section-tick::before {
  content: '';
  width: 6px;
  height: 30px;
  background: var(--red);
  display: inline-block;
}
.home-services .svc-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}
/* Overlapping "picture-in-picture": a large photo with a smaller framed photo
   sitting in its bottom-right corner. */
.home-services .svc-photos {
  position: relative;
  min-height: 480px;
}
.home-services .svc-photos .wp-block-image {
  margin: 0;
}
.home-services .svc-photos .wp-block-image:first-of-type {
  position: absolute;
  top: 115px;
  right: 0;
  width: auto;
  height: 70%;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
}
.home-services .svc-photos .wp-block-image:last-of-type {
  left: 0;
  position: absolute;
  top: 12%;
  height: 200px;
  aspect-ratio: 1;
  border: 20px solid var(--offwhite);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}
.home-services .svc-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
/* Equal-height card grid (all four uniform). */
.home-services .svc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 24px;
}
.home-services .svc-card {
  background: #fff;
  border: 1px solid var(--light-border);
  padding: 36px 28px;
  text-align: center;
  /*display: flex;
  flex-direction: column;
  justify-content: center;*/
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.home-services .svc-card figure {
  background: var(--red);
  border-radius: 50%;
  padding: 15px 15px;
  margin: 0 auto 15px;
  aspect-ratio: 1;
  width: 64px;
  height: 64px;
}
.home-services .svc-card p {
  font-size: 12px;
  color: var(--mid-gray);
  margin: 0px;
}
.home-services .svc-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}
.home-services .svc-card img {
  width: 32px;
  height: 32px;
  margin: 0;
  display: block;
}
.home-services .svc-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
}
.home-services .svc-card p {
  font-size: 14px;
  color: var(--mid-gray);
  margin: 0;
}
/* ---- Why Anderson Systems ---- */
.home-why {
  background-color: var(--black);
  background-image: url("../images/hero-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 84px 32px;
  /* Diagonal cut: the dark band rises into the Services section (higher on the
     right). Flip the two y-values to reverse the slant direction. */
  position: relative;
  margin-top: -56px;
  padding-top: 132px;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
}
.home-why .home-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.home-why .home-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  text-align: center;
  margin: 0 0 48px;
}
.home-why .why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
  height: fit-content;
}
.home-why .why-card {
  background: #3D3D3D;
  border: 1px solid #8C7B6E;
  padding: 30px 18px;
  text-align: center;
  height: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.home-why .why-card img {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: block;
}
.home-why .why-card p, .home-why .why-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e8e2dc;
  margin: 0;
  line-height: 1.4;
}
/* ---- Industries We Serve (core/cover) ---- */
.home-industries.wp-block-cover {
  min-height: 360px;
  padding: 84px 32px 76px;
  color: #fff;
}
.home-industries .wp-block-cover__background {
  /*background: rgba(20, 20, 20, .74) !important;
  opacity: 1 !important;*/
}
.home-industries .wp-block-cover__inner-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.home-industries .home-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  margin: 0 0 40px;
  color: #fff;
}
/* minmax(0,1fr) keeps all six columns equal and lets long labels wrap instead
   of blowing the grid out (1fr defaults to minmax(auto,1fr), which can't shrink
   below a long word like "Biopharmaceutical"). */
.home-industries .ind-grid {
  display: flex;
  gap: 0px;
  width: 100%;
  flex-flow: row;
  max-width: 100% !important;
  justify-content: center;
}
.home-industries .ind-item {
  text-align: center;
  padding: 22px 8px;
  background: rgb(140, 123, 110, 0.41);
  border: 1px solid #DCC8B9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 1 185px;
  max-width: 185px;
  height: stretch;
}
.home-industries .ind-item img {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  display: block;
}
.home-industries .ind-item p, .home-industries .ind-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* ---- Testimonials carousel (CPT-driven) ---- */
.tcar {
  position: relative;
  padding: 96px 32px;
  background-size: cover;
  background-position: center;
}
.tcar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 22, var(--tcar-overlay, .72));
}
.tcar-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(20, 22, 26, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 56px 86px 44px;
  text-align: center;
  border-radius: 20px;
}
.tcar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin: 0 0 8px;
}
.tcar-mark {
  color: var(--red);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 18px;
}
.tcar-track {
  position: relative;
}
.tcar-slide {
  display: none;
}
.tcar-slide.is-active {
  display: block;
}
.tcar-slide blockquote {
  margin: 0 0 24px;
}
.tcar-slide blockquote p {
  font-size: 16px;
  font-style: italic;
  color: #FFF;
  line-height: 1.5;
  margin: 0;
}
.tcar-name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.tcar-company {
  display: block;
  font-size: 13px;
  /*color: var(--taupe);*/
  color: #fff;
  font-style: italic;
}
.tcar-rule {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 16px;
}
.tcar-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.tcar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: none;
  cursor: pointer;
  padding: 0;
}
.tcar-dot.is-active {
  background: var(--red);
}
/* Prev/next arrows (injected by testimonials-carousel.js) straddling the card. */
.tcar-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;  background: transparent; border: unset; color: #fff; cursor: pointer; padding: 0; z-index: 4; display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.tcar-arrow:hover { opacity: 0.5; }
.tcar-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tcar-arrow svg { width: 44px; height: 44px; display: block; }
.tcar-prev { left: 10px; }
.tcar-next { right: 10px; }
@media (max-width: 767px) {
  .tcar-arrow { width: 38px; height: 38px; }
  .tcar-prev { left: 6px; }
  .tcar-next { right: 6px; }
}
/* ---- Homepage responsive ---- */
@media (max-width: 1024px) {
  /*.home-services .svc-layout { grid-template-columns: 1fr; } */
  .home-services .svc-photos {
    grid-template-columns: 1fr 1fr;
  }
  .home-why .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-industries .ind-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }
  .home-industries .ind-item:nth-child(3n+1) {
    /*border-left: none;*/
  }
}
@media (max-width: 800px) {
  .home-services .svc-layout {
    grid-template-columns: 1fr;
  }
  .home-services .svc-photos .wp-block-image:last-of-type {
    left: -18px;
    bottom: 40px;
    /*position: absolute;
    bottom: unset;
    right: 0;
    height: 380px;
    aspect-ratio: 1;
    border: unset;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    width: 50%;
    top: 50px;*/
  }
  .home-services .svc-photos .wp-block-image:first-of-type {
    position: absolute;
    top: 100px;
    right: 0;
    width: auto;
    height: 380px;
    overflow: hidden;
    border-radius: 10px;
    box-sizing: border-box;
  }
  body.home .cta-band-inner {
    transform: translate(-50%, 0%);
  }
  .home-hero.wp-block-cover {
    padding: 0px;
  }
  .home-hero .wp-block-cover__inner-container, .home-hero .hero-panel {
    max-width: 100%;
  }
  .home-services .svc-photos img {
    width: 100% !important;
  }
  .home-industries .ind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .home-industries .ind-item {
    max-width: none;
  }
}
@media (max-width: 680px) {
  .home-services .svc-cards {
    grid-template-columns: 1fr;
  }
  .home-services .svc-photos {
    grid-template-columns: 1fr;
  }
  .home-why .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-industries .ind-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-industries .ind-item {
    /*border-left: none;*/
  }
  .tcar-inner {
    padding: 56px 86px 44px;
  }
}
@media (max-width: 479px) {
  .home-industries .ind-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}
/* ===================================================================
   SERVICE PAGES (intro angled bottom, stats band, capabilities, design-build)
   =================================================================== */
/* Angled bottom on the intro section (service pages). */
.intro-section {
  padding-bottom: 120px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
/* Bridge: intro-images built from core Image blocks / shortcode imgs fill their frame. */
.intro-images .wp-block-image {
  margin: 0;
}
.intro-images .wp-block-image img {
  width: 100%;
  height: 100%;
}
/* Service patterns are native blocks wrapped in flow Group blocks, so core
   injects `margin-block-start` (block-gap) on every child. Neutralise it on
   these containers — the grids position with `gap`/columns and the text blocks
   rely on the mockup's own element margins, so the inherited top margin only
   misaligns rows and doubles vertical rhythm. (`:where()` block-gap is
   zero-specificity, so a plain selector overrides it.) */
.intro-inner > *, .intro-text > *, .section-heading > *, .abilities-grid > *, .abilities-grid-2col > *, .piping-two-lists > *, .ability-card > *, .stats-band-inner > *, .stats-item > *, .hvac-capabilities-inner > *, .hvac-col > *, .design-build-inner > * {
  margin-block-start: 0;
  margin-top: 0;
}
.abilities-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--light-border);
}
.abilities-grid-2col .ability-card {
  border-right: 1px solid var(--light-border);
}
.abilities-grid-2col .ability-card:nth-child(even) {
  border-right: none;
}
.design-build-section {
  background: var(--offwhite);
  padding: 72px 32px;
}
.design-build-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.design-build-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.design-build-inner .section-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}
.design-build-inner p {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.8;
  margin-bottom: 16px;
}
.design-build-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.design-build-list li {
  font-size: 15px;
  color: #3a3a3a;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.design-build-list li:last-child {
  border-bottom: none;
}
.design-build-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
}
.inline-cta-link {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.inline-cta-link:hover {
  opacity: 0.75;
}
.piping-two-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--light-border);
}
.piping-two-lists .ability-card:first-child {
  border-right: 1px solid var(--light-border);
}
.piping-two-lists .ability-card:last-child {
  border-right: none;
}
@media (max-width: 767px) {
  .abilities-grid-2col {
    grid-template-columns: 1fr;
  }
  .abilities-grid-2col .ability-card {
    border-right: none;
    border-bottom: 1px solid var(--light-border);
  }
  .piping-two-lists {
    grid-template-columns: 1fr;
  }
  .piping-two-lists .ability-card {
    border-right: none;
    border-bottom: 1px solid var(--light-border);
  }
  .intro-stats {
    gap: 16px;
  }
  .design-build-section {
    padding: 56px 20px;
  }
}
.ability-card-desc {
  font-size: 13px;
  color: var(--taupe);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
  margin-top: 0;
}
.stats-band {
  background: var(--white);
  padding: 0;
}
.stats-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 0 32px;
}
.stats-item {
  padding: 48px 40px;
  text-align: center;
}
.stats-divider {
  background: var(--light-border);
  height: 60px;
  width: 1px;
}
.stats-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 767px) {
  .stats-band-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .stats-divider {
    height: 1px;
    width: 60px;
    margin: 0 auto;
  }
  .stats-item {
    padding: 32px 20px;
  }
}
.intro-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.intro-stat {
  border-left: 3px solid var(--red);
  padding-left: 16px;
}
.intro-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}
.hvac-capabilities {
  background: var(--white);
  padding: 80px 32px;
}
.hvac-capabilities-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}
.hvac-col {
  padding: 0 56px;
}
.hvac-col:first-child {
  padding-left: 0;
}
.hvac-col:last-child {
  padding-right: 0;
}
.hvac-col h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 8px;
}
.hvac-col p {
  font-size: 16px;
  color: #3a3a3a;
  line-height: 1.8;
  margin-bottom: 24px;
}
.hvac-col-divider {
  background: var(--light-border);
  width: 1px;
  align-self: stretch;
  margin: 0;
}
.hvac-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hvac-list li {
  font-size: 15px;
  color: #4a4a4a;
  padding: 8px 0;
  border-bottom: 1px solid #f0ece8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.hvac-list li:last-child {
  border-bottom: none;
}
.hvac-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
}
@media (max-width: 900px) {
  .hvac-capabilities-inner {
    grid-template-columns: 1fr;
  }
  .hvac-col-divider {
    height: 1px;
    width: 100%;
    margin: 40px 0;
  }
  .hvac-col {
    padding: 0;
  }
  .hvac-capabilities {
    padding: 56px 20px;
  }
}
.design-build-list li {
  font-size: 15px;
  color: #3a3a3a;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
@media screen and (min-width:1200px) {
  .home-services .svc-layout {
    gap: 60px;
  }
}
@media screen and (min-width:1920px) {
  .header-logo img {
    height: 74px;
  }
  .header-inner {
    max-width: 1480px;
  }
  .page-hero-inner, .intro-inner, .abilities-inner, .footer-bar-inner, .careers-intro-inner, .positions-inner, .resume-inner, .clients-intro-inner, .testimonials-inner, .clients-logos-inner, .cv3-simple-inner, .faq-inner, .position-layout-inner, .page-main-inner, .home-hero .wp-block-cover__inner-container, .home-services .home-inner, .home-why .home-inner, .home-industries .wp-block-cover__inner-container, .design-build-inner, .stats-band-inner, .hvac-capabilities-inner, .tcar-inner {
    max-width: 1414px;
  }
  .home-hero h1, .home-hero h2 {
    font-size: 40px;
  }
  .home-hero p {
    font-size: 18px;
  }
  .home-services {
    padding: 90px 32px 120px;
  }
  .home-services .svc-card {
    display: block;
    padding: 36px 42px;
  }
  .home-services .svc-card figure {
    margin-bottom: 20px;
  }
  .home-services .svc-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
  }
  .home-services .section-tick, .home-why .home-heading, .home-industries .home-heading, .tcar-title {
    font-size: 36px;
  }
  .home-services .svc-layout {
    grid-template-columns: 33.33% 1fr;
  }
  .footer-col-title, .tcar-slide blockquote p {
    font-size: 18px;
  }
  .home-services .svc-card p, .footer-bar span, .footer-bar a, .footer-contact-list .label, .footer-links a, .footer-contact-list li, .home-why .why-card p, .home-why .why-card h3 {
    font-size: 16px;
  }
  .btn-primary, .home-hero .wp-block-button__link, .site-nav a {
    font-size: 14px;
  }
  .home-why .why-card {
    justify-content: flex-start;
  }
  .home-why .why-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
  }
  .home-industries.wp-block-cover {
    padding-bottom: 120px;
  }
  .home-industries .wp-block-cover__inner-container {
    max-width: 1580px;
  }
  .home-industries .ind-item {
    max-width: 240px;
    padding: 22px;
  }
  .home-industries .ind-item img {
    width: 44px;
    height: 44px;
  }
  .home-industries .ind-item p {
    font-size: 16px;
  }
  .home-services .svc-photos .wp-block-image:first-of-type img {
    width: 355px !important;
  }
  .home-services .svc-photos .wp-block-image:first-of-type {
    height: 76%;
  }