/*
Theme Name: Elsteel Modular
Theme URI: https://elsteel.com
Author: Ben Balfour
Author URI: https://benbalfour.com
Description: A custom WordPress theme for Elsteel. Goodbye Odoo!
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elsteel-modular
Tags: custom-theme, elsteel, modular build
*/

/* ========== CSS Boilerplate ========== */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

:root {
  /* Colors */
  --color-primary: #003E67;
  --color-secondary: #CC2228;
  --color-accent: #F5F5F5;
  --color-bg: #ffffff;
  --color-text: #003E67;
  --color-muted: #777;
  --color-darkblue: #002246;
  --color-border: #d9d9d9;
  --primary: var(--color-primary);

  /* Typography */
  --font-base: calibri, sans-serif;
  --font-heading: eurostile-extended, sans-serif;

  /* Font Sizes */
  --font-size-base: 1.2rem;
  --font-size-lg: 1.7rem;
  --font-size-sm: 0.875rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  /* Borders */
  --border-radius: 12px;
  --btn-radius: 12px;
  --border: 1px solid #f5f5f5;
}

/* Box Sizing Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base Reset */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Body Styles */
body {
  font-family: var(--font-base);
  font-size: clamp(1.2rem, 1vw, 1.5rem);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.4rem, 3.7vw, 2.05rem);
}

h2 {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

h6 {
  font-size: clamp(0.875rem, 1vw, 1rem);
}

.title-light {
  font-weight: 400;
}

section p {
  margin-bottom: 2%;
}

/* Reusable Classes */
.container {
  width: 100%;
  padding: 0 var(--spacing-sm);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* Buttons */
.btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 1.6rem;
  border: none;
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: var(--btn-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #fff;
}

.cta-button-news {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.1rem 1.2rem;
  border: none;
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: var(--btn-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #fff;
  width: fit-content;
  margin-top: var(--spacing-xs);
}

.cta-button--red {
  background-color: var(--color-secondary);
}

.cta-button--blue {
  background-color: var(--color-primary);
}

.cta-button--sm {
  padding: 0.3rem 2rem;
  font-size: var(--font-size-base);
  width: fit-content;
  margin-top: 10px;
}

.cta-button--mid {
  margin: 10% auto 0;
}

.cta-button--red:hover {
  background-color: #a61b1b;
}

.cta-button--blue:hover {
  background-color: #08253d;
}

.arrow-icon svg {
  height: 1.5rem;
  width: auto;
}

/* Backgrounds */
.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.bg-grey {
  background-color: var(--color-accent);
}

.bg-white {
  background-color: #fff;
  padding: 40px 50px;
}

.accent-line,
.accent-line-full {
  height: 2px;
  background-color: var(--color-secondary);
  border: none;
  margin: 2rem 0;
}

.accent-line {
  width: 80%;
}

.accent-line-full {
  width: 100%;
}

/* Layout */
section,
aside {
  width: 100%;
  position: relative;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: transparent;
  transition: background-color 0.6s ease, box-shadow 0.6s ease, padding 0.6s ease;
}

.header-inner {
  width: 86%;
  margin: 1.8% auto;
  display: flex;
  justify-content: space-between;
  transition: margin 0.6s ease;
}

.header-logo-1 {
  width: 275px;
  transition: width 0.6s ease;
}

nav {
  width: 60%;
  display: flex;
  align-items: center;
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 100;
  border-bottom: 2px solid var(--color-bg);
  transition: color 0.6s ease, border-bottom 0.6s ease;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7%;
  width: 100%;
}

.nav-button {
  display: inline-flex;
  justify-content: center;
  padding: 7px 26px;
  border: none;
  border-radius: var(--btn-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #fff;
}

/* Hide submenus by default */
nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  padding: 1rem;
  border: 0.2px solid #cfcfcf;
  z-index: 999;
  min-width: 200px;
  width: max-content;
  border-radius: 0 0 8px 8px;
}

/* Reveal on hover */
nav li:hover > ul {
  display: block;
}

/* Position submenu */
nav li {
  position: relative;
}

nav ul ul li {
  display: block;
  padding: 0.5rem 0;
}

/* Optional: style links inside submenu */
nav ul ul a {
  color: var(--color-text);
  white-space: nowrap;
}

/* Match your nav spacing */
nav > ul {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}

nav li.current-menu-item > a,
nav li.current_page_item > a {
  font-weight: bold;
  border-bottom: 2px solid var(--color-secondary);
}

/* Scroll-triggered header styles */
header.scrolled {
  position: fixed;
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled .header-inner {
  margin: 1.5% auto;
}

header.scrolled nav {
  border-bottom: none;
  color: var(--color-text);
}

header.scrolled .header-logo-1 {
  width: 250px;
}

header.scrolled .nav-btn {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 0 20px;
  border-radius: var(--border-radius);
}

/* Hero */
.hero-split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  height: 100vh;
  color: var(--color-bg);
}

.hero-products {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  height: 70vh;
  color: var(--color-bg);
}

.hero-image {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image-product {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.hero-image-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  padding: var(--spacing-sm);
width: fit-content;
  max-width: 65vw;
	
}

.hero-text {
  background-color: rgba(15, 63, 103, 0.5);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 300;
  margin: 0;
}

.hero-content span p {
  font-size: clamp(0.8rem, 1.75vw, 1.1rem);
  font-weight: unset;
  margin: 0;
}

/* Product Navigation */
.product-navigation {
  padding: 0.8rem 0;
}

.product-nav-inner {
  display: flex;
  gap: 2%;
  width: 85%;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.product-navigation.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 98;
}

.product-nav-action {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

/* FAB Section */
.fab-deck {
  width: 86%;
  margin: 0 auto;
  padding: 2% 0;
  display: flex;
  gap: 5%;
}

.fab-card {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fab-title {
  font-size: 1.5rem;
}

.fab-icon svg {
  width: 180px;
}

/* Content Split */
.section-inner {
  width: 86%;
  margin: 0 auto;
  padding: 5% 0;
}

.testing-search-form .section-inner {
  padding: 0;
}

.certificate-results .section-inner {
  padding: 10px 0 5%;
}

.split-section {
  display: flex;
  width: 80%;
  gap: 5%
}
.full-width-split 
{width: 100%}

.split-left,
.split-right {
  width: 50%;
  padding: 50px 0;
  z-index: 5;
  align-content: center;
}

.full-width-split .split-left
{padding-left: 7%;}

.split-right-video 
{padding-right: 7%;}

.split-text {
  margin-bottom: 50px;
}

.split-lower {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60%;
}

.split-image {
  position: relative;
  width: 50%;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.es-grid-2 {
  width: 87%;
  margin: 50px auto;
}

/* Section with Image Background */
.section-image-2 {
  min-height: 75vh;
  color: #fff;
}

.section-image-2-bg {
  position: relative;
  width: 100%;
  height: 100%;
}


.section-image-2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
  position: relative;
  z-index: 0;
}

.product-jumbo {
  height: 65vh;
  position: relative;
  overflow: hidden;
}

.jumbo-ol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 760px);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 50px;
  text-align: center;
  z-index: 2;
}

.jumbo-image-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jumbo-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-section-ol-2 {
  width: 70%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.section-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(520px, 70vh, 900px);
  padding: clamp(5rem, 10vw, 8rem) 0;
  margin: 0;
  overflow: hidden;
}

.section-image-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section-image-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.section-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.full-section-ol {
  position: relative;
  z-index: 3;
  width: 86%;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 50px;
}

.full-section-ol h2 {
  margin: 0 auto;
}

.full-section-ol p {
  width: 75%;
  margin: 0 auto;
  padding-bottom: 18px;
}

.mid-btn {
  margin: 2.5rem auto 0;
  width: fit-content;
}

/* Map */
.section-map {
  height: 45vh;
}

.section-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-ol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 40%;
  text-align: center;
}

/* News */
.news-filter-section {
  width: 86%;
  margin: 50px auto;
}

.news-results-inner {
  width: 86%;
  margin: 0 auto 50px;
}

.news-wrapper {
  display: flex;
  gap: 10%;
  margin-top: var(--spacing-lg);
}

.news-left,
.news-right {
  display: flex;
  flex-direction: column;
}

.news-left {
  width: 60%;
}

.news-right {
  width: 40%;
  gap: 50px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-card img {
  width: 100%;
  object-fit: cover;
}

.news-right .news-card img {
  width: 100%;
  object-fit: cover;
  height: auto;
  margin-bottom: var(--spacing-xs);
}

.news-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2.3rem;
  margin-top: 0.4rem;
}

.news-filter-btn {
  background: transparent;
  border: 0px;
  padding: 0.4rem 0;
  font: inherit;
  color: var(--primary);
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-filter-btn:hover,
.news-filter-btn.active {
  border-bottom: 2px solid var(--color-secondary);
}

/* News archive */
.news-card-archive {
  background-color: var(--color-accent);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card-content {
  padding: var(--spacing-sm) var(--spacing-sm);
  position: relative;
}

.news-card-content h4 {
  font-size: 1rem;
}

.news-card-content h4::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 0;
  width: 60%;
  height: 2px;
  background-color: var(--color-secondary);
}

.news-card-img-wrap {
  width: 90%;
  margin: 20px auto 0;
  height: 180px;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.news-grid .news-card {
  background-color: var(--color-bg);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
}

.es-card__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--color-secondary);
  color: var(--color-accent);
  margin: 20px 0 0 20px;
}

.news-card-bottom {
  display: flex;
  padding: 15px 0 0;
  margin: auto 0 20px 20px;
}

/* Footer */
.bottom-bar {
  background-color: #08253d;
  color: #fff;
  text-align: center;
  padding: var(--spacing-sm) 0;
}

.bottom-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 88%;
}

.footer-container {
  width: 86%;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  gap: var(--spacing-md);
}

.footer-column {
  min-width: 260px;
}

.footer-column:nth-child(2) {
  flex: 2 1 50%;
}

.footer-column:nth-child(1),
.footer-column:nth-child(3) {
  flex: 1 1 20%;
}

.footer-column h4 {
  font-family: var(--font-base);
  font-size: var(--font-base);
  margin-bottom: var(--spacing-sm);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--color-bg);
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.footer-column ul li a:hover {
  opacity: 0.8;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-sm) 0;
}

.footer-logo {
  max-height: 50px;
  width: auto;
}

.plus {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-secondary);
}

.footer-text-sm {
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.footer-contact {
  list-style: none;
  padding: 0;
  font-size: var(--font-size-base);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: 0.75rem;
}

.footer-contact img,
.footer-social img {
  width: 25px;
  height: auto;
}

.footer-social {
  margin-top: var(--spacing-sm);
  display: flex;
}

.footer-social a {
  font-family: "Font Awesome 5 Brands";
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--color-bg);
  transition: opacity 0.2s ease-in-out;
}

.footer-social a:hover {
  opacity: 0.7;
}


.header-social img {
  width: 35px;
  height: auto;
}

.header-social {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: 1rem;
}

.header-social a {
  font-family: "Font Awesome 5 Brands";
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--color-bg);
  transition: opacity 0.2s ease-in-out;
}

.header-social a:hover {
  opacity: 0.7;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
}

.language-switch img {
  height: 18px;
}

/* Features */
.features-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-col {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-col.center {
  flex: 2 1 500px;
}

.feature-icon {
  width: 100px;
  margin-bottom: var(--spacing-md);
}

.feature-icon img {
  width: 100%;
}

.feature-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.feature-col ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Gallery */
.gallery-split {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: var(--spacing-sm);
  padding: 3% 0;
}

.gallery-split.container {
  width: 75%;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 5%;
  justify-content: center;
}

.gallery-thumbs .thumb {
  width: 100%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.gallery-thumbs .thumb.active {
  border: 2px solid var(--color-primary);
}

.gallery-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-main img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  color: var(--color-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
}

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

.es-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.es-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 50, 0.7);
  backdrop-filter: blur(3px);
}

.es-modal__dialog {
  position: relative;
  width: min(92vw, 640px);
  margin: 6vh auto 0;
  background: #fff;
  color: var(--color-primary);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.es-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-primary);
}

body.modal-open {
  overflow: hidden;
}

/* Team */
.team-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.team-modal[aria-hidden="false"] {
  display: flex;
}

.team-modal-content {
  background: #fff;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  position: relative;
}

.team-modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.team-grid {
  width: 85%;
  margin: 0 auto;
}

.team-grid-inner {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.team-member {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.team-member-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.team-member-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
}

.team-member-info-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  width: 80%;
}

.team-member-info-left h3 {
  font-size: var(--font-base);
  margin-bottom: 0.25rem;
}

.team-member-info-left p {
  font-size: var(--font-base);
  color: var(--color-muted);
  margin: 0;
}

.team-member-linkedin {
  width: 12%;
}

.team-member-linkedin img {
  width: 100%;
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  color: white;
  overflow: hidden;
}

.testimonial-slider .swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  padding: 2rem;
  max-width: 700px;
  border-radius: var(--border-radius);
  text-align: center;
}

.testimonial-content blockquote {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: bold;
  text-transform: uppercase;
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-secondary);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.timeline-entry.left {
  flex-direction: row;
  justify-content: flex-end;
}

.timeline-entry.right {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 40px;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-content {
  width: 35%;
  margin: 0 10%;
}

.timeline-box {
  background: var(--color-bg);
  border: var(--border);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-box img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2rem;
  height: 2.75rem;
  z-index: 110;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}

header.scrolled .mobile-nav-toggle {
  color: var(--color-text);
}


.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  color: #fff;
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--color-primary);
  color: #fff;
  z-index: 90;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

header {
  z-index: 100;
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu::-webkit-scrollbar {
  display: none;
}

.mobile-menu-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mobile-menu-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 64%;
  padding: 6.5rem 1.5rem 1.75rem;
  align-items: center;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 1rem;
}

.mobile-menu-list,
.mobile-menu-list .sub-menu {
  display: flex;
  flex-direction: column;
}

.mobile-menu-list > li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}

.mobile-menu-list > li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.25s ease;
}



.mobile-menu-list a:hover,
.mobile-menu-list a:focus {
  opacity: 0.8;
}

.mobile-menu-list .nav-button,
.mobile-menu-list a.nav-button,
.mobile-menu-list .nav-btn,
.mobile-menu-list a.nav-btn,
.mobile-menu-list .menu-item-button > a,
.mobile-menu-list .menu-item-button a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 1rem 0;
  margin: 0;
  background: transparent !important;
  color: #fff !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mobile-menu-list .nav-button:hover,
.mobile-menu-list a.nav-button:hover,
.mobile-menu-list .nav-btn:hover,
.mobile-menu-list a.nav-btn:hover,
.mobile-menu-list .menu-item-button > a:hover,
.mobile-menu-list .menu-item-button a:hover,
.mobile-menu-list .nav-button:focus,
.mobile-menu-list a.nav-button:focus,
.mobile-menu-list .nav-btn:focus,
.mobile-menu-list a.nav-btn:focus,
.mobile-menu-list .menu-item-button > a:focus,
.mobile-menu-list .menu-item-button a:focus {
  background: transparent !important;
  color: #fff !important;
  opacity: 0.8;
}

.mobile-menu-list .menu-item-has-children > a {
  padding-right: 0.25rem;
}

.mobile-menu .sub-menu {
  display: block;
  position: static;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-width: 0;
  width: 100%;
  padding: 0 0 0.75rem 0;
  margin: 0;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu .submenu-open > .sub-menu {
  max-height: 1000px;
  opacity: 1;
}

.mobile-menu .sub-menu li {
  border: 0;
}

.mobile-menu .sub-menu a {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.25rem 0 0.25rem 1rem;
  opacity: 0.92;
}

.submenu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  border: solid #fff;
  border-width: 0 1px 1px 0;
  padding: 4px;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.submenu-open > a > .submenu-arrow {
  transform: rotate(-135deg);
}

.mobile-menu-contact {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  padding-left: 1rem;
}

.mobile-menu-contact-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.75rem;
}

.mobile-menu-contact a,
.mobile-menu-contact p {
  display: block;
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.mobile-menu-contact a:last-of-type,
.mobile-menu-contact p:last-child {
  margin-bottom: 0;
}

body.menu-open {
  overflow: hidden;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4%;
  background-color: var(--color-accent);
  width: 100%;
  margin: 0;
  border-bottom: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  width: 45%;
}

.nav-next {
  display: flex;
  justify-content: flex-end;
}

.post-wrapper h1 {
  position: relative;
  margin: 50px 0;
  padding-bottom: 50px;
}

.post-wrapper h1::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 2px;
  background-color: var(--color-secondary);
  bottom: 0;
  left: 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: flex;
  flex-direction: column;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation .nav-previous a:hover .nav-title,
.post-navigation .nav-next a:hover .nav-title {
  color: var(--color-secondary);
}

.post-navigation .nav-arrow {
  font-size: 1.25rem;
}

.post-navigation .nav-label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.post-navigation .nav-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.3;
}

.post-navigation .nav-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.screen-reader-text {
  display: none;
}

/* Search / Certificates */
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.search-form .form-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 200px;
}

.search-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.search-form select {
  font-size: 1rem;
  padding: 0.75rem;
  border: var(--border);
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease;
  width: 100%;
}

.search-form button[type="submit"] {
  width: 100%;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: var(--btn-radius);
  background-color: var(--color-secondary);
  color: #fff;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 0;
}

.search-form button:hover {
  background-color: #a61b1b;
}

.certificate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
}

.certificate-table thead {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.certificate-table thead th:first-child {
  text-align: left;
  padding: 1.25rem 1rem;
}

.certificate-table thead th {
  text-align: center;
  padding: 1.25rem 1rem;
}

.certificate-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text);
  text-align: center;
}

.certificate-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.certificate-table tr:hover {
  background-color: var(--color-accent);
  transition: background-color 0.2s ease;
}

select.disabled-select {
  background-color: #eee;
  cursor: not-allowed;
  color: #777;
}

/* Gauge */
.gauge-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.gauge-block {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.gauge-center {
  position: absolute;
  top: 55%;
  left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  line-height: 1;
}

.gauge-number {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
}

.gauge-label {
  font-size: 1rem;
  margin-top: 0;
  color: var(--color-text);
}

/* Brochure styling */
.full-page-text-slide {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.full-page-text-slide .container {
  max-width: 900px;
  margin: 0 auto;
}

.video-slide {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brochure-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-thirds-slide,
.one-third-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.two-thirds-inner,
.one-third-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.two-thirds-image {
  width: 66.666%;
  height: 100%;
  overflow: hidden;
}

.two-thirds-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-thirds-content {
  width: 33.333%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg);
  position: relative;
}

.two-thirds-text,
.one-third-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.one-third-content {
  width: 66.666%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg);
  position: relative;
}

.one-third-image {
  width: 33.333%;
  height: 100%;
  overflow: hidden;
}

.one-third-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.red-underline {
  height: 4px;
  width: 100%;
  background-color: var(--color-secondary);
  border: none;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
}

.card-deck-slide {
  display: flex;
  align-items: center;
  height: 100vh;
}

.card-deck-inner {
  display: flex;
  width: 100%;
  padding: 4rem 2rem;
}

.card-deck-intro {
  width: 33.333%;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-deck-grid {
  width: 66.666%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-content: center;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  justify-content: flex-start;
  text-align: left;
}

.feature-card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

.feature-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.cta-button {
  margin-top: auto;
  align-self: flex-start;
}

/* Breaker logos */
.breaker-slider-wrap {
  margin-top: 0;
  text-align: center;
}

.breaker-swiper img {
  max-height: 80px;
  margin: 0 auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.breaker-swiper img:hover {
  opacity: 1;
}

/* Testing cards */
.es-testing-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem;
}

.es-testing-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.es-testing-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.es-testing-card__content {
  padding: 1.5rem;
}

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.video-embed.is-4x3 {
  aspect-ratio: 4 / 3;
}

.video-embed iframe,
.video-embed > div,
.video-embed embed,
.video-embed object {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
}

.video-embed iframe {
  min-height: 100%;
}

.video-embed.is-4x3 {
  padding-top: 75%;
  aspect-ratio: 4 / 3;
}

/* Software Features */
.es-software-features__inner {
  padding: var(--spacing-lg) 0;
  width: 87%;
  margin: 0 auto;
}

.es-software-features__heading {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.es-software-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
  align-items: start;
}

.es-software-features__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.es-software-features__icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
}

.es-software-features__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.es-software-features__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.es-software-features__text {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1rem, 1vw, 1.1rem);
  line-height: 1.5;
}

/* Forms */
.es-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.es-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.es-form__row,
.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input,
.form-group select {
  height: 56px;
  padding: 22px 16px 8px;
}

.form-group textarea {
  min-height: 160px;
  padding: 28px 16px 16px;
  line-height: 1.5;
  resize: vertical;
}

.form-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 8px;
  background: #fff;
  color: #7b7b7b;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #ababab;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 62, 103, 0.08);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group textarea:focus::placeholder {
  color: #8a8a8a;
}

.form-group--textarea label {
  top: 20px;
  transform: none;
}

.form-group--textarea textarea:focus + label,
.form-group--textarea textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
}

.form-group select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.25L7 7.25L13 1.25' stroke='%23003E67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
  cursor: pointer;
  color: var(--color-primary);
}

.form-group select:has(option:checked[value=""]) {
  color: #7b7b7b;
}

.es-form__checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-primary);
  cursor: pointer;
}

.es-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.es-form .cta-button-med {
  align-self: flex-start;
  min-width: 220px;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.es-form .cta-button-med:hover {
  background: #08253d;
}

.es-form__honeypot,
.es-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.es-form--newsletter {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.es-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.es-form-row input[type="text"],
.es-form-row input[type="email"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #cdd5db;
  border-radius: 10px;
  font-size: 1rem;
}

.es-form-row--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-split {
  align-items: stretch;
  gap: 3rem;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-image {
  width: 100%;
  height: 100%;
  min-height: 780px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-locations-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.contact-locations-map-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
}

.contact-locations-map-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-locations-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0.96), rgba(245, 245, 245, 0.98));
  z-index: 2;
}

.contact-locations-inner {
  position: relative;
  z-index: 3;
}

.contact-locations-intro {
  margin-bottom: 3rem;
}

.contact-locations-intro .accent-line-full {
  max-width: 280px;
  margin: 1rem auto 0;
}

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

.location-card {
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.location-card-image {
  width: 100%;
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
}

.location-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.location-card-content h3 {
  font-family: var(--font-base);
  font-size: 2rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.location-card-content p {
  margin: 0;
  line-height: 1.5;
}

.location-card-content a {
  color: inherit;
  text-decoration: none;
}

.location-card-content a:hover {
  text-decoration: underline;
}

.location-meta {
  margin-bottom: 0.5rem;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: auto;
  padding: 0.45rem 0.75rem;
  background-color: var(--color-secondary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;
}

/* Product Gallery Block */
.product-gallery-block {
  margin: 5rem auto;
  width: 86%;
}

.product-gallery-single img,
.product-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.product-gallery-single {
  width: 100%;
}

.product-gallery-single img {
  max-height: 500px;
}

.product-gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-item {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
}

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

.product-gallery-grid--2 .gallery-item img {
  aspect-ratio: 4 / 3;
}

.product-gallery-grid--3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.product-gallery-grid--3 .gallery-item--large img {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.gallery-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}

.gallery-stack .gallery-item img {
  aspect-ratio: 4 / 3;
}

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

.product-gallery-grid--4 .gallery-item img {
  aspect-ratio: 4 / 3;
}

/* ========== BREAKPOINTS ========== */

@media (min-width: 576px) {
  .team-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .team-grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1024px) {
  .card-deck-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1800px) {
  .team-grid-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .contact-split {
    flex-direction: column;
  }

  .contact-form-wrap,
  .contact-image-wrap {
    width: 100%;
  }

  .contact-image {
    min-height: 500px;
  }

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

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-col.center {
    order: -1;
  }

  .es-testing-cards__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    flex: 1 1 100%;
	  width: auto;
	  max-width: 100%;
  }

  .container,
  .section-inner,
  .fab-deck,
  .split-section {
    flex-direction: column;
    width: 100%;
    padding:var(--spacing-lg) var(--spacing-md);
  }


  .header-inner,
  .product-nav-inner {
    flex-direction: column;
    width: 100%;
    padding: 5px var(--spacing-sm);
  }

  .header-logo-1 {width: 250px;}

  header.scrolled .header-logo-1 {
    width: 200px;
    }

  .mobile-nav-toggle {
    display: flex;
  }

  #desktop-menu {
    display: none;
  }

  nav li:hover > ul {
    display: none;
  }

  header.scrolled .nav-btn {padding:0;}
  nav li.current-menu-item > a, nav li.current_page_item > a {border-bottom: 0.5px solid var(--color-secondary);}

  .split-section {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .mobile-switch {flex-direction: column-reverse; background-color: var(--color-accent); padding: 20px 0; margin: 20px 0;}

  .split-left,
  .split-right,
  .split-image {
    width: 100%;
    padding: var(--spacing-sm);
  }

  .split-image img {
    aspect-ratio: auto;
  }

  .fab-deck {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .fab-card {
    width: 100%;
  }

  .product-nav-inner,
  .product-nav-action {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  .product-nav-action {
    gap: var(--spacing-sm);
  }

  .news-wrapper {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .news-left,
  .news-right {
    width: 100%;
  }

  .product-jumbo {
    height: clamp(520px, 78vh, 760px);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
  }

  .jumbo-image-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .jumbo-image-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%);
    z-index: 1;
  }

  .jumbo-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .jumbo-ol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 540px;
    padding: 1.75rem 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.94);
    text-align: center;
    z-index: 2;
  }

  .jumbo-ol h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    line-height: 1.15;
    margin: 0;
  }

  .jumbo-ol .cta-button {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
  }

  .jumbo-ol p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
  }

  .jumbo-ol .accent-line-full {
    margin: 1rem 0;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    width: 100%;
    flex: none;
  }

  .full-section-ol,
  .full-section-ol-2 {
    width: calc(100% - 2rem);
    padding: 1.5rem 1.25rem;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.88);
    text-align: center;
    z-index: 3;
  }

  .map-ol {
    width: calc(100% - 2rem);
    height: auto;
    padding: 1.5rem 1.25rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.88);
    text-align: center;
    z-index: 3;
  }

  .full-section-ol p,
  .full-section-ol-2 p,
  .map-ol p {
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .full-section-ol h2,
  .full-section-ol-2 h2,
  .map-ol h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    line-height: 1.15;
    margin: 0;
  }

  .full-section-ol .accent-line-full,
  .full-section-ol-2 .accent-line-full,
  .map-ol .accent-line-full,
  .map-ol .accent-line {
    margin: 1rem 0;
  }

  .section-image {
    min-height: auto;
    padding: 2rem 0;
    align-items: center;
  }

  .section-image-2 {
    min-height: auto;
    padding: 2rem 0;
  }

  .section-image-bg,
  .section-image-2-bg {
    position: absolute;
    inset: 0;
  }

  .section-image-bg img,
  .section-image-2-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    left: 0; 
    top: 40%;
    text-align: center;
    padding: var(--spacing-sm);
  }

  .hero-text {
    padding: 1.5rem;
  }

  .cta-button,
  .cta-button-2 {
    width: 100%;
    justify-content: center;
  }

  .mid-btn {
    width: 100%;
    margin-top: var(--spacing-md);
  }

  .timeline {
    padding: var(--spacing-md) 0;
  }

  .timeline-line {
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    z-index: unset;
  }

  .timeline-entry,
  .timeline-entry.left,
  .timeline-entry.right {
    flex-direction: column;
  }

  .timeline-entry {
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }

  .timeline-marker {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 1rem;
  }

  .timeline-content {
    width: 90%;
    margin: 0 auto;
  }

  .timeline-box {
    padding: var(--spacing-sm);
  }

  .timeline-box img {
    max-width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-sm);
  }

  .gallery-split {
    flex-direction: column;
  }

  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .gallery-thumbs .thumb {
    width: 80px;
  }

  .post-navigation {
    flex-direction: column;
    gap: 2rem;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button[type="submit"] {
    width: 100%;
    margin-top: var(--spacing-sm);
  }

  .es-software-features__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .es-software-features__item {
    grid-template-columns: 90px 1fr;
  }

  .es-software-features__icon {
    width: 90px;
    height: 90px;
  }

  .es-form {
    gap: 18px;
  }

  .es-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-gallery-grid--2,
  .product-gallery-grid--3,
  .product-gallery-grid--4 {
    grid-template-columns: 1fr;
  }

  .gallery-stack {
    grid-template-rows: auto;
  }

  .product-gallery-grid--3 .gallery-item--large img,
  .product-gallery-grid--2 .gallery-item img,
  .product-gallery-grid--4 .gallery-item img,
  .gallery-stack .gallery-item img {
    aspect-ratio: 4 / 3;
  }

  .footer-logos {flex-direction: column;}

  .mob-gap{margin: 0 0 15px;}
  .news-filter-buttons {gap: 0.8rem;}
}

@media (max-width: 767px) {
  .contact-section {
    padding: 3rem 0;
  }

  .contact-image {
    min-height: 340px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .location-card-content h3 {
    font-size: 1.75rem;
  }

  .es-modal__dialog {
    width: calc(100vw - 2rem);
    padding: 1.5rem;
    margin-top: 4vh;
  }

  .map-ol {
    width: 88%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

/* =========================
   404 PAGE
========================= */

.es-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--color-accent);
}

.es-404-title {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-secondary);
    line-height: 1;
}

.es-404-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.es-404-search {
    max-width: 400px;
    margin: 0 auto;
}

.es-404-search input[type="search"] {
    width: 100%;
    padding: var(--spacing-xs);
    border: var(--border);
    border-radius: var(--border-radius);
}

.es-404-search input[type="submit"] {
    margin-top: var(--spacing-xs);
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* =========================

   Legal / Info Pages

========================= */

.es-info-wrap {

	width: 86%;;
	margin: 0 auto;
	padding: 0 1.5rem;

}

.es-info-hero {

	padding: 180px 0 60px;
	background: var(--color-bg);

}

.es-info-eyebrow {

	margin-bottom: 1rem;
	font-family: var(--font-heading);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-secondary);

}

.es-info-title {

	margin-bottom: 1.5rem;

}


.es-info-intro p {

	font-size: clamp(1.15rem, 2vw, 1.4rem);
	line-height: 1.6;
	margin: 0;

}

.es-info-meta {

	margin-top: 1.5rem;
	font-size: 0.95rem;
	color: var(--color-muted);

}

.es-info-content-section {

	padding: 0 0 100px;

}

.es-info-content > *:first-child {

	margin-top: 0;

}

.es-info-content h2,

.es-info-content h3,

.es-info-content h4 {

	margin-top: 3rem;
	margin-bottom: 1rem;
	color: var(--color-primary);

}

.es-info-content p,

.es-info-content ul,

.es-info-content ol,

.es-info-content blockquote {

	margin-bottom: 1.5rem;

}

.es-info-content ul,

.es-info-content ol {

	padding-left: 1.5rem;
	list-style: revert;

}

.es-info-content li {

	margin-bottom: 0.6rem;

}

.es-info-content a {

	color: var(--color-secondary);
	text-decoration: underline;
	text-underline-offset: 3px;

}

.es-info-content strong {

	font-weight: 700;

}

.es-info-content table {

	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.95em;

}

.es-info-content th,

.es-info-content td {

	padding: 0.9rem 1rem;
	border: 1px solid rgba(0, 62, 103, 0.15);
	text-align: left;
	vertical-align: top;

}

.es-info-content th {

	font-family: var(--font-heading);
	background: #f6f8fa;

}

.es-info-content hr {

	border: 0;
	height: 1px;
	background: rgba(0, 62, 103, 0.15);
	margin: 2.5rem 0;

}

.es-info-content blockquote {

	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--color-secondary);
	background: #f8f8f8;

}

.es-info-cta-section {

	padding: 0 0 100px;

}

.es-info-cta {

	max-width: 760px;
	padding: 2rem;
	border: 1px solid rgba(0, 62, 103, 0.12);
	border-radius: 16px;
	background: #f8f8f8;

}

.es-info-cta h2 {

	margin-bottom: 1rem;

}

.es-info-cta p {

	margin-bottom: 1.5rem;

}

@media (max-width: 768px) {

	.es-info-hero {
		padding: 130px 0 40px;
	}
	.es-info-content-section {
		padding-bottom: 70px;
	}
	.es-info-cta-section {
		padding-bottom: 70px;
	}
	.es-info-cta {
		padding: 1.5rem;
	}
	.es-info-title {
		max-width: 100%;
	}

}