/* =====================================================================
   COBALT SOLUTIONS — site.css
   Cinematic dark-dominant theme for cobaltsolutions.net
   Locked design: IBM Plex typography, cobalt palette, white bright moment
   ===================================================================== */

:root {
  --cobalt-deep: #021830;
  --cobalt-darkest: #010d20;
  --cobalt-mid: #042C53;
  --cobalt-accent: #0047AB;
  --cobalt-bright: #5B9CFF;
  --sky: #B5D4F4;
  --text-light: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.55);
  --hairline: rgba(181, 212, 244, 0.12);
  --hairline-strong: rgba(181, 212, 244, 0.22);
  --white-section: #ffffff;
  --dark-text: #021830;
  --gray-text: #4A5566;
  --gray-muted: #888780;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cobalt-deep);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ============== NAV ============== */
.site-nav {
  background: var(--cobalt-deep);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.site-nav .brand {
  font-weight: 600; font-size: 14px; letter-spacing: 1.6px;
  color: #fff;
}
.site-nav .brand a { color: #fff; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
  font-size: 13px;
}
.site-nav ul a {
  color: var(--text-light);
  transition: color .15s ease;
}
.site-nav ul a:hover { color: #fff; }
.site-nav ul li.menu-item-has-children > a::after {
  content: " ▾"; font-size: 9px; opacity: .65; margin-left: 4px;
}
.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 22px; cursor: pointer; padding: 6px;
}
@media (max-width: 767px) {
  .site-nav ul { display: none; }
  .nav-toggle { display: block; }
  .site-nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cobalt-deep);
    padding: 20px 28px; gap: 18px;
    border-bottom: 1px solid var(--hairline);
  }
}

/* ============== EYEBROW + HEADINGS ============== */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--cobalt-bright);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow.light-bg { color: var(--gray-muted); }
h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.8vw, 38px); line-height: 1.18; }
h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; }
p { margin: 0 0 16px; line-height: 1.6; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--cobalt-accent); color: #fff;
}
.btn.primary:hover { background: #0055d6; }
.btn.secondary {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn.dark {
  background: var(--cobalt-accent); color: #fff;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  background: var(--cobalt-deep);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(0,71,171,0.40) 0%, rgba(2,24,48,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,212,244,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,212,244,0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  opacity: .5;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero h1 { color: #fff; margin: 0 0 22px; }
.hero .lede {
  font-size: 16px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.hero .ctas {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.video-wrap {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 9;
  background: #0A0A0B;
}
.video-wrap iframe, .video-wrap img {
  display: block; width: 100%; height: 100%; border: 0;
}
.video-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.video-badge .live {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #39FF14;
  margin-right: 8px;
  box-shadow: 0 0 8px #39FF14;
  vertical-align: 1px;
}

/* ============== SECTION: dark with subtle grid ============== */
.dark-section {
  position: relative;
  background: var(--cobalt-deep);
  padding: 80px 0;
}
.dark-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(181,212,244,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,212,244,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.dark-section .container { position: relative; z-index: 2; }

/* ============== CAPABILITIES ============== */
.cap {
  display: grid;
  grid-template-columns: 64px 200px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
}
.cap:last-child { border-bottom: 0; }
.cap .icon-tile {
  width: 64px; height: 64px;
  border: 1px solid rgba(181,212,244,0.20);
  background: rgba(0,71,171,0.10);
  display: flex; align-items: center; justify-content: center;
}
.cap .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--cobalt-bright);
}
.cap .title {
  font-size: 22px; font-weight: 500; color: #fff;
  margin-top: 2px; letter-spacing: -0.2px;
}
.cap .desc {
  font-size: 14px; color: var(--text-light);
  line-height: 1.55;
  max-width: 540px;
}
@media (max-width: 767px) {
  .cap {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 14px 16px;
  }
  .cap .icon-tile { width: 48px; height: 48px; grid-row: 1 / 3; }
  .cap .desc { grid-column: 2; }
}

/* ============== PRODUCT SECTION (WHITE BRIGHT MOMENT) ============== */
.product {
  background: var(--white-section);
  color: var(--dark-text);
  padding: 88px 0;
}
.product h2 {
  font-size: clamp(32px, 4.5vw, 46px);
  color: var(--cobalt-deep);
  margin: 0 0 16px;
}
.product .sub {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 620px;
  margin: 0 0 38px;
  line-height: 1.55;
}
.product-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F4F8 0%, #DDE3EA 100%);
  padding: 40px 40px 24px;
}
.product-img-wrap .caption {
  position: absolute; bottom: 12px; right: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--gray-text);
  letter-spacing: 1.5px;
}
.product .explore-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--cobalt-accent);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ============== PLATFORM TILES ============== */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 767px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  background: linear-gradient(180deg, rgba(4,44,83,0.6) 0%, rgba(1,13,32,0.7) 100%);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  aspect-ratio: 16 / 13;
  padding: 18px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.platform .art {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
}
.platform .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 3px; color: #fff;
}
.platform .corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--cobalt-bright);
}
.platform .corner.tl { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.platform .corner.tr { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.platform .corner.bl { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.platform .corner.br { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }

/* ============== APPLICATIONS STRIP ============== */
.apps {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}
.apps .h {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--cobalt-bright);
  margin-bottom: 14px;
}
.apps .list {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ============== INSIGHTS (HOMEPAGE TEASER + ARCHIVE) ============== */
.insights-section { padding: 72px 0; }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  background: rgba(4,44,83,0.35);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 24px;
  transition: border-color .15s ease;
}
.insight-card:hover { border-color: var(--hairline-strong); }
.insight-card .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.insight-card .excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============== SINGLE POST (Insights / Newsroom) ============== */
.post-hero {
  padding: 64px 0 40px;
  background: var(--cobalt-deep);
  border-bottom: 1px solid var(--hairline);
}
.post-hero .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cobalt-bright);
  margin-bottom: 18px;
}
.post-hero h1 {
  max-width: 800px;
  color: #fff;
  margin-bottom: 16px;
}
.post-body {
  background: var(--white-section);
  color: var(--dark-text);
  padding: 64px 0 96px;
}
.post-body .container { max-width: 760px; }
.post-body h2 {
  color: var(--cobalt-deep);
  margin: 40px 0 16px;
  font-size: 28px;
}
.post-body h3 {
  color: var(--cobalt-deep);
  margin: 32px 0 12px;
  font-size: 20px;
}
.post-body p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 18px;
}
.post-body img {
  margin: 32px 0;
  border-radius: 6px;
}
.post-body blockquote {
  border-left: 3px solid var(--cobalt-accent);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--cobalt-deep);
  font-style: italic;
}
.post-body a { color: var(--cobalt-accent); border-bottom: 1px solid currentColor; }
.post-body code, .post-body pre {
  font-family: 'IBM Plex Mono', monospace;
  background: #F0F4F8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

/* ============== GENERIC PAGE ============== */
.page-hero {
  background: var(--cobalt-deep);
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(0,71,171,0.30) 0%, rgba(2,24,48,0) 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  margin-bottom: 14px;
  max-width: 800px;
}
.page-hero .lede {
  font-size: 16px;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.55;
}
.page-content {
  background: var(--white-section);
  color: var(--dark-text);
  padding: 72px 0 96px;
}
.page-content .container { max-width: 860px; }
.page-content h2 {
  color: var(--cobalt-deep);
  margin: 40px 0 16px;
}
.page-content p {
  color: var(--gray-text);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 18px;
}

/* ============== CONTACT FORM (Contact Form 7) ============== */
.contact-form-wrap {
  background: rgba(4,44,83,0.35);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 36px;
  max-width: 640px;
}
.wpcf7 label,
.contact-form-wrap label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--cobalt-bright);
  margin-bottom: 8px;
  margin-top: 18px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(1,13,32,0.6);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
}
.wpcf7 textarea, .contact-form-wrap textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus,
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus {
  outline: none; border-color: var(--cobalt-bright);
}
.wpcf7 input[type="submit"],
.contact-form-wrap button[type="submit"] {
  background: var(--cobalt-accent);
  color: #fff;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  margin-top: 24px;
}
.wpcf7 input[type="submit"]:hover,
.contact-form-wrap button[type="submit"]:hover { background: #0055d6; }
.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  background: rgba(57,255,20,0.08);
  border: 1px solid rgba(57,255,20,0.25);
  color: #fff;
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--cobalt-darkest);
  color: var(--text-light);
  padding: 56px 0 36px;
}
.site-footer .brand-mark {
  font-weight: 600; font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer .blurb {
  font-size: 12px; line-height: 1.55;
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(181,212,244,0.78);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 600px) { .site-footer .grid { grid-template-columns: 1fr; } }
.site-footer .col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 500;
  margin: 0 0 14px;
}
.site-footer .col ul { list-style: none; padding: 0; margin: 0; }
.site-footer .col li { font-size: 13px; line-height: 2; }
.site-footer .col a { color: var(--text-light); }
.site-footer .col a:hover { color: #fff; }
.site-footer .meta {
  display: flex; justify-content: space-between;
  padding-top: 22px;
  font-size: 11px;
  color: rgba(181,212,244,0.5);
  letter-spacing: 0.5px;
  flex-wrap: wrap; gap: 12px;
}

/* ============== PRODUCT SHOT MODULES (CNG sensor page) ============== */
.product-shot {
  margin-bottom: 56px;
}
.product-shot:last-child { margin-bottom: 0; }
.product-shot__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(2, 24, 48, 0.12);
}
.product-shot__title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.product-shot__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--cobalt-accent);
}
.product-shot__name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--cobalt-deep);
  line-height: 1.1;
}
.product-shot__desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--gray-muted);
  text-transform: uppercase;
}
.product-shot__img {
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F4F8 0%, #DDE3EA 100%);
  padding: 40px;
  position: relative;
}
.product-shot__img--small { padding: 32px; }
.product-shot__img img { display: block; width: 100%; height: auto; }
.product-shots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .product-shots-row { grid-template-columns: 1fr; }
  .product-shot__name { font-size: 22px; }
}

/* ============== UTILITY ============== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============== NAV DROPDOWN ============== */
.site-nav .primary-menu > li { position: relative; }
.site-nav .primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--cobalt-deep);
  border: 1px solid var(--hairline);
  border-top: 0;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 60;
}
.site-nav .primary-menu li:hover > .sub-menu,
.site-nav .primary-menu li:focus-within > .sub-menu { display: block; }
.site-nav .primary-menu .sub-menu li { display: block; }
.site-nav .primary-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}
.site-nav .primary-menu .sub-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

/* ============== CONTACT BUTTONS (mailto cards) ============== */
.contact-options {
  display: grid;
  gap: 12px;
  max-width: 680px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 26px;
  background: rgba(4, 44, 83, 0.35);
  border: 1px solid rgba(181, 212, 244, 0.12);
  border-radius: 6px;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.contact-btn:hover {
  border-color: rgba(91, 156, 255, 0.45);
  background: rgba(0, 71, 171, 0.18);
  transform: translateX(2px);
}
.contact-btn__label {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.1px;
}
.contact-btn__desc {
  font-size: 11px;
  color: rgba(181, 212, 244, 0.65);
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}