/*
Theme Name: ACS Calibration 2026
Theme URI: https://acscalibration.com
Author: ACS Calibration
Description: Custom theme for ACS Calibration — modern storefront-style design (hero, feature strip, card grids, dark footer) in the NIST Traceable blue design system. Preserves all URLs and page content; compatible with Elementor and SiteOrigin content.
Version: 1.4.23
Requires PHP: 7.4
Text Domain: acs2026
*/

/* ============================================================
   Design system — ACS black + teal
   ============================================================ */
:root {
  --teal: #0098b0;        /* Tier 1: logo cyan — GRAPHICS ONLY (icons, borders, fills) */
  --teal-ink: #00889e;    /* Tier 1b: text-safe cyan — cyan-colored text on light bg */
  --teal-dark: #007487;   /* Tier 2: primary action — buttons, links (WCAG AA on white) */
  --teal-deep: #005362;   /* Tier 2b: deep teal for small text on light */
  --teal-soft: #e5f5f8;   /* cyan tint backgrounds */
  --ink: #101e38;         /* Tier 3: midnight navy — headings, body */
  --dark: #0d1830;        /* Tier 3: structural navy — top bar + footer */
  --gray: #5b6572;
  --gray-light: #eef1f5;
  --line: #e2e7ee;
  --bg-soft: #f7f9fc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 38, 76, 0.08);
  --shadow-hover: 0 10px 32px rgba(16, 38, 76, 0.16);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--dark);
  color: #c7d3e4;
  font-size: 0.82rem;
  text-align: center;
  padding: 7px 14px;
}
.announce strong { color: #fff; font-weight: 600; }
.announce a { color: #6fd3e3; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(16, 38, 76, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-logo img { max-height: 64px; width: auto; display: block; }
.site-logo { flex-shrink: 0; }

/* Primary nav (WP menu) */
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 7px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
/* Dropdowns */
.main-nav ul ul {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 6px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 600;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul,
.main-nav li.open > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul li a {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 7px;
}
.main-nav ul ul li a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.main-nav ul ul ul { top: -7px; left: 100%; }
/* Expandable-item arrows inside dropdowns */
.main-nav ul ul li.menu-item-has-children > a::after {
  content: "▸";
  float: right;
  color: var(--teal);
  margin-left: 10px;
}
.main-nav > ul > li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.75em;
  color: var(--teal);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, color 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-dark); color: #fff !important; box-shadow: 0 4px 14px rgba(0, 116, 135, 0.3); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; color: var(--teal-deep) !important; border: 2px solid var(--teal); padding: 10px 24px; }
.btn-outline:hover { background: var(--teal-dark); color: #fff !important; }
.btn-light { background: #fff; color: var(--teal-deep) !important; box-shadow: var(--shadow); }
.btn-light:hover { background: var(--teal-soft); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(120deg, #f1f9fb 0%, #e3f3f7 55%, #d7edf3 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 38px 20px 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.hero h1 { font-size: 2.55rem; margin-bottom: 16px; }
.hero h1 span { color: var(--teal-ink); }
.hero .sub { font-size: 1.1rem; color: var(--gray); margin-bottom: 24px; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  background: #f2fafc;
  border: 1px solid rgba(0, 152, 176, 0.35);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}
.hero-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}
.hero-side h3 { font-size: 1rem; margin-bottom: 18px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-side .affiliation-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.hero-side .affiliation-logos img { max-height: 64px; width: auto; margin: 0 auto; }

/* Hero — NIST-style illustrated version */
.hero h1 .eyebrow-line {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--teal-dark);
  margin-bottom: 10px;
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg {
  width: 100%;
  max-width: 470px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(9, 76, 94, 0.18));
}

/* ============================================================
   Solution / industry tabs (NIST-style)
   ============================================================ */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.tab-btn.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}
.solution-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.solution-card p { color: var(--gray); margin-bottom: 16px; }
.solution-card ul { list-style: none; margin: 0 0 22px; }
.solution-card li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.solution-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--teal);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 39% 76%);
}
.solution-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 280px;
}

@media (max-width: 1020px) {
  .solution-card { grid-template-columns: 1fr; }
}

/* ============================================================
   Feature strip
   ============================================================ */
.feature-strip { border-bottom: 1px solid var(--line); background: #fff; }
.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 20px;
}
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature svg { width: 30px; height: 30px; color: var(--teal); flex-shrink: 0; }
.feature h4 { font-size: 0.95rem; }
.feature p { font-size: 0.82rem; color: var(--gray); line-height: 1.45; }

/* ============================================================
   Sections
   ============================================================ */
section.block { padding: 46px 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-head .eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 1.9rem; margin-bottom: 10px; }
.section-head p { color: var(--gray); }

/* ============================================================
   Card grids
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: block;
  color: var(--ink);
}
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--ink); }
.card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal-dark), var(--teal-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { font-size: 0.86rem; color: var(--gray); margin-bottom: 8px; }
.card .card-link { font-size: 0.84rem; font-weight: 600; color: var(--teal-dark); }

/* Pillar cards (image band cards) */
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.pillar:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pillar .pillar-img { height: 130px; overflow: hidden; }
.pillar .pillar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar .pillar-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { font-size: 0.86rem; color: var(--gray); flex: 1; margin-bottom: 14px; }

/* ============================================================
   Dark accreditation band
   ============================================================ */
.accred { background: linear-gradient(120deg, #0d1830, #16294a); color: #ccdaea; }
.accred-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.accred h2 { color: #fff; font-size: 1.75rem; margin-bottom: 12px; }
.accred p { color: #ccdaea; margin-bottom: 18px; max-width: 580px; }
.accred .facts { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 24px; }
.accred .fact strong { display: block; font-size: 1.5rem; color: #fff; }
.accred .fact span { font-size: 0.82rem; color: #ccdaea; opacity: 0.9; }
.accred-side { text-align: center; }
.accred-side img { max-height: 120px; width: auto; margin: 0 auto 12px; background: #fff; border-radius: var(--radius); padding: 12px; }
.accred-side a { color: #6fd3e3; font-size: 0.85rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--teal-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { color: var(--gray); }

/* ============================================================
   Interior pages
   ============================================================ */
.page-hero {
  background: linear-gradient(120deg, #f1f9fb, #ddf0f5);
  padding: 34px 0 30px;
}
.page-hero .crumbs { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.page-hero .crumbs a { color: var(--teal-dark); }
.page-hero .page-title-band { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.25; }

.content-area { padding: 18px 0 20px; }
.content-area.contained { max-width: var(--maxw); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Long-form content typography (Elementor/classic content) */
.entry-content h1, .entry-content h2 { font-size: 1.6rem; margin: 1.4em 0 0.5em; }
.entry-content h3 { font-size: 1.25rem; margin: 1.2em 0 0.4em; }
.entry-content p { margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 1.2em 0;
}
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.entry-content th { background: var(--teal-soft); text-align: left; padding: 10px 14px; font-size: 0.85rem; }
.entry-content td { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 0.92rem; }

/* Related services module — same card treatment as the instrument-types card */
.related-services { padding: 36px 0 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.related-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.related-grid a:hover { border-color: var(--teal); color: var(--teal-deep); box-shadow: var(--shadow); }

/* Hero variant with photo instead of SVG art */
.hero-art img {
  width: 100%;
  max-width: 470px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(9, 76, 94, 0.22);
}

/* Compact chip grid (instrument subtypes) — centered, 3-up */
.related-grid.compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}
.related-grid.compact a { padding: 9px 12px; font-size: 0.82rem; text-align: center; }
@media (max-width: 640px) { .related-grid.compact { grid-template-columns: repeat(2, 1fr); } }

/* Card wrapper for the subtype chip grid — white card, colored chips
   (contrasts with the gradient capability band that follows) */
.chips-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 36px 30px;
  box-shadow: var(--shadow);
  max-width: 1020px;
  margin: 0 auto;
}
.chips-card .section-head { margin-bottom: 20px; }
.chips-card .related-grid.compact a {
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal-deep);
  font-weight: 600;
}
.chips-card .related-grid.compact a:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow); }
.chips-card .brands-note { margin-top: 18px; margin-bottom: 0; text-align: center; font-size: 0.95rem; color: var(--gray); }
.chips-card .brands-note strong { color: var(--ink); }
@media (max-width: 640px) { .chips-card { padding: 26px 16px 22px; } }

/* Contained capability panel — light treatment, matches section rhythm */
.accred-panel {
  background: linear-gradient(120deg, #e6f4f8, #f7fafc);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}
.accred-panel h2 { color: var(--ink); font-size: 1.55rem; margin-bottom: 10px; }
.accred-panel p { color: var(--gray); margin-bottom: 16px; }
.accred-panel .facts { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.accred-panel .fact strong { display: block; font-size: 1.4rem; color: var(--teal-dark); }
.accred-panel .fact span { font-size: 0.8rem; color: var(--gray); }
@media (max-width: 900px) {
  .accred-panel { grid-template-columns: 1fr; padding: 30px 24px; }
}

/* Full-bleed variant: gradient band spans edge to edge, content stays in container */
.accred-band {
  background: linear-gradient(120deg, #e6f4f8, #f7fafc);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 36px;
}
.accred-panel.bare { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
@media (max-width: 900px) { .accred-band { padding: 28px 0 30px; } }

/* Checkmark lists */
ul.checks { list-style: none; margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
ul.checks li { position: relative; padding-left: 30px; margin: 0 !important; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  background: var(--teal);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 39% 76%);
}
@media (max-width: 640px) { ul.checks { grid-template-columns: 1fr; } }

/* White table card inside dark accred band/panel */
.accred-panel .band-card,
.accred .band-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-hover);
}
.accred-panel .band-card table, .accred .band-card table { width: 100%; border-collapse: collapse; }
.accred-panel .band-card th, .accred .band-card th { background: var(--teal-soft); color: var(--ink); text-align: left; padding: 9px 13px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.accred-panel .band-card td, .accred .band-card td { padding: 9px 13px; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; }
.band-card .nm { display: block; font-size: 0.78rem; color: var(--gray); }

/* Service-page intro split (image + narrative, homepage-style) */
.svc-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}
.svc-intro img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .svc-intro { grid-template-columns: 1fr; }
}

/* Service directory (calibration-services hub) */
.dir-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px 18px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.dir-search svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.dir-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
}
.dir-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.dir-grid { margin-bottom: 8px; }

/* Locations: interactive region split view */
.region-split { display: grid; grid-template-columns: 40% 1fr; gap: 34px; align-items: center; }
.region-map svg { width: 100%; height: auto; display: block; }
.region-map path { fill: var(--teal-soft); stroke: #fff; stroke-width: 2; transition: fill 0.15s ease; cursor: pointer; }
.region-map text { font-family: inherit; font-size: 13px; font-weight: 700; fill: var(--teal-deep); pointer-events: none; }
.region-map a:hover path, .region-map path.hl { fill: var(--teal-dark); }
.region-map a:hover text, .region-map a.hl text { fill: #fff; }
.region-map a.hl path { fill: var(--teal-dark); }
.region-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.state-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.state-card h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.state-card p { color: var(--gray); font-size: 0.85rem; margin: 0 0 6px; }
.state-card .card-link { color: var(--teal-dark); font-weight: 600; font-size: 0.85rem; }
.state-card:hover, .state-card.hl { border-color: var(--teal); box-shadow: var(--shadow); }
@media (max-width: 768px) {
  .region-split { grid-template-columns: 1fr; }
  .region-map { display: none; }
  .region-cards { grid-template-columns: 1fr; }
}

/* Hub: hero with image (image rendered at ~60% of column width) */
.hub-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: center; }
.hub-hero img { width: 62%; display: block; margin-left: auto; border-radius: var(--radius); box-shadow: var(--shadow-hover); }
@media (max-width: 900px) { .hub-hero { grid-template-columns: 1fr; } .hub-hero img { margin: 0 auto; } }

/* Hub: RFQ banner — slim single row */
.rfq-banner {
  background: linear-gradient(120deg, var(--teal-deep), var(--teal-dark));
  color: #fff;
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.rfq-banner p { color: #fff; margin: 0; font-size: 0.98rem; }
.rfq-banner p strong { color: #fff; }
.rfq-banner .btn { background: #fff; color: var(--teal-dark); white-space: nowrap; padding: 9px 18px; }
.rfq-banner .btn:hover { background: var(--teal-soft); }

/* Hub: discipline card spec lists */
.spec-list { list-style: none; margin: 14px 0 18px; padding: 0; }
.spec-list li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 0.9rem; color: var(--gray); }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.discipline-card { display: flex; flex-direction: column; }
.discipline-card .btn { margin-top: auto; align-self: flex-start; }

/* Hub: expandable all-instruments index */
details.idx-acc { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
details.idx-acc summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.idx-acc summary::-webkit-details-marker { display: none; }
details.idx-acc summary::after { content: "+"; color: var(--teal); font-weight: 700; font-size: 1.2rem; }
details.idx-acc[open] summary::after { content: "\2013"; }
details.idx-acc .related-grid { margin-bottom: 18px; }

/* Homepage hero composite: instrument photo + certificate pop-over */
.hero-composite { position: relative; padding-bottom: 40px; padding-left: 18px; }
.hero-composite > img { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(9, 76, 94, 0.22); display: block; }
.cert-pop { position: absolute; left: 0; bottom: 0; width: 74%; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; box-shadow: var(--shadow-hover); }
.cert-pop .cert-head { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; color: var(--teal-deep); margin-bottom: 8px; }
.cert-pop .cert-head svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.cert-pop .cert-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; padding: 5px 0; border-top: 1px solid var(--line); }
.cert-pop .cert-row span { color: var(--gray); }
.cert-pop .cert-row strong { color: var(--ink); }
.cert-pop .cert-row .pass { background: var(--teal-dark); color: #fff; padding: 1px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }

/* Accreditation credential card (ISO 17025 page hero) */
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; box-shadow: var(--shadow-hover); }
.cred-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink); margin-bottom: 12px; }
.cred-card h3 svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }
.cred-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.cred-card .row span { color: var(--gray); white-space: nowrap; }
.cred-card .row strong { color: var(--ink); text-align: right; }
.cred-card .btn { margin-top: 16px; width: 100%; text-align: center; }

/* Homepage industry cards */
.industry-grid .card { display: flex; flex-direction: column; }
.industry-grid .card img.industry-img { width: 100%; height: 172px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.industry-grid .card h3 { font-size: 1.25rem; }
.industry-grid .card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 640px) { .industry-grid .card img.industry-img { height: 140px; } }

/* Homepage mobile polish */
@media (max-width: 640px) {
  .home .hero .hero-art { display: none; }        /* decorative SVG shoves content down on phones */
  .home .hero-inner { padding: 30px 20px 34px; }
  .tab-btn { flex: 1 1 44%; text-align: center; padding: 12px 10px; }  /* tap-friendly 2x2 tabs */
  .solution-img img { max-height: 180px; object-fit: cover; width: 100%; }
  .accred .facts { justify-content: center; }
  .accred-side img { max-width: 220px; margin: 0 auto; }
}

/* Service request form (CF7) */
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
@media (max-width: 640px) { .rfq-grid { grid-template-columns: 1fr; } }
.wpcf7 label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin: 12px 0 4px; }
.wpcf7 select { width: 100%; }
.wpcf7 input[type="file"] { padding: 8px 0; font-size: 0.9rem; }
.entry-content .wpcf7 input[type="submit"] {
  background: var(--teal-dark); color: #fff; border: none; border-radius: 8px;
  padding: 13px 30px; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 18px;
}
.entry-content .wpcf7 input[type="submit"]:hover { background: var(--teal-dark); }
.rfq-fineprint { font-size: 0.85rem; color: var(--gray); margin-top: 12px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); border-radius: 8px; padding: 12px 16px; }

/* ============================================================
   Forms (Ninja/CF7/WPForms inside content)
   ============================================================ */
.entry-content input[type="text"], .entry-content input[type="email"],
.entry-content input[type="tel"], .entry-content textarea, .entry-content select,
.nf-form-cont input[type="text"], .nf-form-cont input[type="email"],
.nf-form-cont input[type="tel"], .nf-form-cont textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  width: 100%;
}
.entry-content input:focus, .entry-content textarea:focus,
.nf-form-cont input:focus, .nf-form-cont textarea:focus {
  outline: 2px solid rgba(0, 152, 176, 0.35);
  border-color: var(--teal);
}
input[type="submit"], button[type="submit"], .wpforms-submit, .nf-form-cont input[type="button"] {
  background: var(--teal-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 12px 26px !important;
  cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover, .nf-form-cont input[type="button"]:hover { background: var(--teal-deep) !important; }

/* ============================================================
   Legacy builder content polish (SiteOrigin / Elementor / MaxButtons)
   ============================================================ */
.entry-content .sow-headline,
.entry-content .elementor-heading-title {
  font-family: inherit !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
}
.entry-content .maxbutton,
.entry-content a.maxbutton {
  background: var(--teal-dark) !important;
  background-image: none !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 116, 135, 0.3) !important;
  text-shadow: none !important;
  transition: background 0.15s !important;
}
.entry-content .maxbutton:hover { background: var(--teal-dark) !important; }
.entry-content .maxbutton .mb-text { color: #fff !important; font-family: inherit !important; font-weight: 600 !important; }
.entry-content iframe { border-radius: var(--radius); max-width: 100%; }
.entry-content .so-panel { margin-bottom: 22px; }
.entry-content .panel-grid-cell .so-panel:last-child { margin-bottom: 0; }
.entry-content .sow-image-container img,
.entry-content .elementor-widget-image img { border-radius: var(--radius); }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: #b9c3d4; font-size: 0.88rem; }
.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 50px 20px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
/* Beat Elementor kit's global text colors inside the dark footer */
.site-footer p, .site-footer li, .site-footer div, .site-footer span, .site-footer address {
  color: #b9c3d4 !important;
}
.site-footer a { color: #9dc3ff !important; }
.site-footer a:hover { color: #fff !important; }
.site-footer h4 { color: #fff !important; }
.footer-cols h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: #b9c3d4; }
.footer-cols a:hover { color: #fff; }
.footer-about img { max-height: 54px; width: auto; margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-about p { margin-bottom: 12px; line-height: 1.55; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #8d99ad;
}

/* ============================================================
   Blog / archive
   ============================================================ */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
article.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
article.post-card h2 { font-size: 1.05rem; margin-bottom: 8px; }
article.post-card h2 a { color: var(--ink); }
article.post-card .meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 8px; }

/* ============================================================
   WP core compatibility
   ============================================================ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.alignleft { float: left; margin: 0 1.2em 0.8em 0; }
.alignright { float: right; margin: 0 0 0.8em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--gray); text-align: center; }
::selection { background: var(--teal-dark); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 44px 20px; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-badges, .btn-row { justify-content: center; }
  .hero-side { max-width: 460px; margin: 0 auto; }
  .feature-strip .container { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .accred-inner { grid-template-columns: 1fr; text-align: center; }
  .accred .facts { justify-content: center; }
  .accred p { margin-left: auto; margin-right: auto; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
    max-height: 75vh;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    max-height: none;
    display: none;
  }
  .main-nav li.open > ul { display: block; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .feature-strip .container { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}
