/* ===========================
   Core variables & font
   =========================== */

:root {
  --bg: #0b1120;
  --bg-alt: #020617;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-alt: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #020617;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.85);
  --max-width: 1040px;
}

@font-face {
  font-family: "EliminatorBrand";
  src: url("/fonts/eliminator.brand.woff2") format("woff2");
  font-display: swap;
}

/* ===========================
   Reset & global layout
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 42%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page,
.ems-page .page,
.police-page .page,
.transit-page .page,
.smartcity-page .page {
  padding-bottom: 750px;
}

/* ===========================
   Page-specific backgrounds
   =========================== */

body.home-page {
  font-size: 17px;
  line-height: 1.6;
  background: #020617
              url("/pix/background.home.jpg")
              center/cover fixed no-repeat;
}

body.what-page {
  font-size: 17px;
  line-height: 1.6;
  background: #020617
              url("/pix/background.what.jpg")
              center/cover fixed no-repeat;
}

body.adam-page {
  background: #020617
              url("/pix/background.story.adam.jpg")
              center/cover fixed no-repeat;
}

body.origin-page {
  background: #020617
              url("/pix/background.story.eliminator.jpg")
              center/cover fixed no-repeat;
}

body.product-page {
  background: #020617
              url("/PreemptionSystems/pix/background.product.jpg")
              center/cover fixed no-repeat;
}

body.fire-page {
  background: #020617
              url("/pix/background.fire.jpg")
              center/cover fixed no-repeat;
}

body.ems-page {
  background: #020617
              url("/pix/background.ems.jpg")
              center/cover fixed no-repeat;
}

body.police-page {
  background: #020617
              url("/pix/background.police.jpg")
              center/cover fixed no-repeat;
}

body.transit-page {
  background: #020617
              url("/pix/background.transit.jpg")
              center/cover fixed no-repeat;
}

body.smartcity-page {
  background: #020617
              url("/pix/background.smartcity.jpg")
              center/cover fixed no-repeat;
}

body.company-page {
  background: #020617
              url("/pix/background.company.jpg")
              center/cover fixed no-repeat;
}

body.testimonials-page {
  background: #020617
              url("/pix/background.testimonials.jpg")
              center/cover fixed no-repeat;
}

body.news-page {
  background: #020617
              url("/pix/background.news.jpg")
              center/cover fixed no-repeat;
}

body.contact-page {
  background: #020617
              url("/pix/background.contact.jpg")
              center/cover fixed no-repeat;
}

/* ===========================
   Header / Nav
   =========================== */

header {
  padding: 18px 20px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316, #b45309 40%, #020617 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 18px rgba(248, 250, 252, 0.12);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.85);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-30deg);
}

.brand-text-main {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ELiMiNATOR branding */

.brand-eliminator {
  font-family: "EliminatorBrand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9em;
}

.brand-eliminator sup {
  font-size: 0.55em;
  top: -0.4em;
  margin-left: 1px;
}

/* Nav links */

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 0.72rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.7);
}

/* Highlight current top-nav item in orange instead of hiding it */
.nav-links .nav-current,
.nav-links .nav-current:hover {
  color: var(--accent);   /* same orange as the EMS pill */
  font-weight: 600;
}

.phone a {
  font-size: 0.78rem;
  color: #38bdf8;
  text-decoration: none;
}

.phone a:hover {
  text-decoration: underline;
}

/* Keep nav in a single row on larger screens */
@media (min-width: 1024px) {
  .nav-inner {
    flex-wrap: nowrap;
  }

  .nav-right {
    flex: 1;
    justify-content: flex-end;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 0.7rem;
  }
}

/* ===========================
   Hero & hero-side
   =========================== */

.hero {
  max-width: var(--max-width);
  margin: 18px auto 26px;
  padding: 20px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.10), transparent 60%),
    rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.65);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.hero-main h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.hero-main p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
}

/* Hero side cards */

.hero-side {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.84),
    rgba(15, 23, 42, 0.76)
  );
  border: 1px solid rgba(148, 163, 184, 0.32);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.hero-side p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===========================
   Buttons & audience nav
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

/* Make paired hero / CTA buttons feel the same size */
.hero-actions .btn {
  min-width: 260px;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(to right, #f97316, #fb923c);
  color: #0b1120;
  border-color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(to right, #fb923c, #f97316);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Audience nav (Overview / Fire / EMS / Police / Transit) under product pages */

.audience-nav {
  margin: 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.audience-nav a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.audience-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.9);
}

.audience-nav a.nav-current {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #111827;
  border-color: transparent;
}

/* ===========================
   Main content & sections
   =========================== */

main {
  flex: 1;
}

.content {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 18px 26px;
}

/* Section glass */

.section {
  margin-top: 20px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.65);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.section p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* EMS-specific glass tweaks */

.ems-page .hero {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent 60%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 70%),
    rgba(15, 23, 42, 0.82);
}

.ems-page .section {
  background: rgba(15, 23, 42, 0.9);
}

/* Product page: make panels a bit more solid so text stands out */
body.product-page .hero,
body.product-page .section {
  background: rgba(15, 23, 42, 0.90);
}

/* Grids */

.section-grid {
  display: grid;
  gap: 18px;
}

.section-grid.two-cols {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.section-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive grids */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-grid.two-cols,
  .section-grid.three-cols,
  .section-grid.four-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 860px) {
  .section-grid.two-cols {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .section-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-grid.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* ===========================
   Cards, lists, specs
   =========================== */

.card {
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Product page cards slightly lighter */

body.product-page .card {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(15, 23, 42, 0.85);
}

/* Pill list (product bullets) */

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.94);
  font-size: 0.9rem;
}

/* Bullet list */

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* Make document links in bullet lists stand out on dark glass */

.bullet-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.bullet-list a:hover {
  color: #fed7aa;
}

/* Inline links on news / origin pages */

body.news-page .content a:not(.btn),
body.origin-page .content a:not(.btn),
body.adam-page .content a:not(.btn) {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.news-page .content a:not(.btn):hover,
body.origin-page .content a:not(.btn):hover,
body.adam-page .content a:not(.btn):hover {
  color: #fed7aa;
}

/* Inline links on contact page (phone/email etc.) */

/* Contact form status alerts */

/* Contact form status alerts */
.alert {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.alert-success {
  border-color: #22c55e;
  color: #bbf7d0;
}

.alert-error {
  border-color: #f97373;
  color: #fecaca;
}


body.contact-page .content a:not(.btn),
body.contact-page .hero-side a {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.contact-page .content a:not(.btn):hover,
body.contact-page .hero-side a:hover {
  color: #fed7aa;
}

/* Subheads */

.subhead {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Audience tiles */

.audience-block {
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out,
    background 150ms ease-out;
}

.audience-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
  background: rgba(3, 10, 24, 0.96);
}


.audience-block p {
  flex: 1;
}

.audience-block .btn {
  align-self: flex-start;
  margin-top: 10px;
}

.audience-block h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

/* CTA band */

.cta-band {
  margin-top: 26px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 60%),
    rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.65);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-text {
  max-width: 540px;
}

.cta-text h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Compatibility highlight band */

.compat-block {
  margin-top: 16px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.45);
  font-size: 0.88rem;
  color: #fed7aa;
}

.callout strong {
  color: #fed7aa;
}

/* Footer */

footer {
  padding: 18px 20px 26px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Footer links – gray by default, orange on hover */

footer a {
  color: var(--muted);                /* gray like other footer text */
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

footer a:hover {
  color: var(--accent);               /* your orange accent */
  opacity: 0.9;
}

footer a:visited {
  color: var(--muted);                /* no purple/blue visited color */
}

/* Small row for Privacy / Terms links */
.footer-links {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.footer-separator {
  color: var(--muted);
}

/* Make Privacy / Terms more visible – orange base, blue on hover */
.footer-links a {
  color: var(--accent);              /* solid orange */
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:visited {
  color: var(--accent);              /* keep them orange even after click */
}

.footer-links a:hover,
.footer-links a:focus {
  color: #60a5fa;                    /* blue on hover */
}


/* ===========================
   Home page typography & blocks
   =========================== */

body.home-page .hero-bubble-title {
  font-size: 1.8rem;
}

body.home-page .hero-bubble-text {
  font-size: 1.05rem;
}

body.home-page .content p,
body.home-page .content li,
body.what-page .content p,
body.what-page .content li {
  font-size: 1.03rem;
}

/* Stronger glass for the compatibility band on the homepage */
body.home-page .compat-block {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(249, 115, 22, 0.8);
  color: #fee2b8;
}

body.home-page .compat-block strong {
  color: #fed7aa;
}

/* ===========================
   Smart City layout tweaks
   =========================== */

.smartcity-page .hero {
  margin-top: 24px;
}

/* Reset Smart City layout to use individual section cards */
.smartcity-page .content {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 18px 26px;
  position: static;
}

.smartcity-page .content::before {
  content: none;
}

.smartcity-page .section {
  margin-top: 20px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.65);
}

.smartcity-page .section + .section {
  margin-top: 20px;
}

.smartcity-page .cta-block {
  margin-top: 26px;
  padding-top: 0;
  border-top: none;
}

/* ===========================
   Home hero slider overrides
   =========================== */

body.home-page .page > .hero.hero-rotator {
  position: relative;
  max-width: var(--max-width);
  margin: 20px auto 32px;
  padding: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
}

/* Sliding track */
body.home-page .page > .hero.hero-rotator .hero-slides {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 100px;
  transition: transform 0.7s ease-in-out;
}

/* Each slide takes full width of the hero card */
body.home-page .page > .hero.hero-rotator .hero-slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  border-radius: 26px;
}

/* Background photo */
body.home-page .page > .hero.hero-rotator .hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.9);
}

/* Content on top of background */
body.home-page .page > .hero.hero-rotator .hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 30px 26px 34px;
  display: flex;
  align-items: center;
}

/* Floating bubble card */
body.home-page .page > .hero.hero-rotator .hero-bubble {
  max-width: 420px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  color: var(--text);
}

/* Key System Benefits cards – frosted glass look */
.product-page .bubble-card {
  background: rgba(15, 23, 42, 0.90);  /* matches current solid feel */
  border-radius: 20px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out,
    background 150ms ease-out;
}

.product-page .bubble-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.product-page .bubble-card p {
  margin: 0;
  line-height: 1.5;
}

.product-page .bubble-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
  background: rgba(3, 10, 24, 0.9);
}

body.home-page .hero-bubble-title {
  font-size: 1.45rem;
}

body.home-page .hero-bubble-text {
  font-size: 0.95rem;
}

/* Arrows */
body.home-page .page > .hero.hero-rotator .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.home-page .page > .hero.hero-rotator:hover .hero-arrow {
  opacity: 1;
  pointer-events: auto;
}

body.home-page .page > .hero.hero-rotator .hero-arrow-prev {
  left: -22px;
}

body.home-page .page > .hero.hero-rotator .hero-arrow-next {
  right: -22px;
}

/* Mobile tweaks for hero slider */
@media (max-width: 768px) {
  body.home-page .page > .hero.hero-rotator {
    margin: 16px 12px 24px;
    border-radius: 20px;
  }

  body.home-page .page > .hero.hero-rotator .hero-slides {
    min-height: 260px;
  }

  body.home-page .page > .hero.hero-rotator .hero-slide-content {
    padding: 24px 16px 28px;
    align-items: flex-end;
  }

  body.home-page .page > .hero.hero-rotator .hero-bubble {
    max-width: 100%;
  }
}

/* ===========================
   Tables & origin page hero text
   =========================== */

/* Comparison tables – extra row breathing room */
.product-page .comparison-table th,
.product-page .comparison-table td {
  padding: 0.65rem 1rem;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  text-align: center;
  width: 6rem;
}

.comparison-table .good {
  font-weight: 700;
  color: #18a34a;
}

.comparison-table .bad {
  font-weight: 700;
  color: #d92323;
}

/* Origin / story hero text styling */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.32);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-highlight {
  color: #fbbf24;
}

/* ===========================
   PDF / Video / Doc glass modals
   =========================== */

.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.pdf-modal.is-open {
  display: flex;
}

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.pdf-modal-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  height: 80vh;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pdf-modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 24px 24px;
}

/* Video & article glass modals (reuse PDF modal look) */

.video-modal,
.doc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.video-modal.is-open,
.doc-modal.is-open {
  display: flex;
}

.video-modal-backdrop,
.doc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.video-modal-inner,
.doc-modal-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  height: 80vh;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.video-modal-header,
.doc-modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-modal-body,
.doc-modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.video-modal-body video {
  width: 100%;
  height: 100%;
  display: block;
}

.doc-modal-scroll {
  max-height: 100%;
  padding: 14px 18px;
  overflow-y: auto;
}

/* Close buttons for all glass modals */

.pdf-modal-close,
.video-modal-close,
.doc-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-modal-close:hover,
.video-modal-close:hover,
.doc-modal-close:hover {
  color: #e5e7eb;
}

/* ===========================
   Contact page hero bullets
   =========================== */

.hero-bullets {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-bullets .hero-bullet-prefix {
  white-space: nowrap;
}

.hero-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fed7aa;
  flex-shrink: 0;
}

/* ===========================
   Contact page form styling
   =========================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent-alt);
  outline-offset: 1px;
  border-color: var(--accent-alt);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-lead {
  margin: 2px 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form .btn-primary {
  margin-top: 4px;
  align-self: flex-start;
}

/* ===========================
   Testimonials page layout
   =========================== */

.testimonials-page .hero {
  margin-top: 22px;
}

.testimonial-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Video testimonial grid */

.video-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width: 860px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.video-card {
  border-radius: 18px;
  padding: 10px 10px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
}

.video-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 8px;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.video-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.video-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================================
   CCC Contact Page – EmailOctopus form
   ================================ */

#ccc-contact-form {
  max-width: 640px;
}

/* Make the embedded EO form look like our house style */
#ccc-contact-form form {
  display: block;
  background: rgba(0, 0, 0, 0.65);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Labels */
#ccc-contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* Inputs, selects, textareas */
#ccc-contact-form input[type="text"],
#ccc-contact-form input[type="email"],
#ccc-contact-form input[type="tel"],
#ccc-contact-form select,
#ccc-contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.9);
  color: #f5f5f5;
  font-size: 0.95rem;
}

/* Bigger message box */
#ccc-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Submit button (EO sometimes renders as button or input[type=submit]) */
#ccc-contact-form button,
#ccc-contact-form input[type="submit"] {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: #ff7a00; /* adjust if your primary accent differs */
  color: #000;
}

/* Button hover */
#ccc-contact-form button:hover,
#ccc-contact-form input[type="submit"]:hover {
  filter: brightness(1.1);
}

/* Optional: ELiMiNATOR-style heading if you use it near the form */
.eliminator-heading {
  font-family: "Eliminator", "Oswald", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===========================
   Legal pages – contact links & back pill
   =========================== */

.legal-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.legal-contact a:hover {
  color: #fed7aa;
}

/* Pill-style back link for legal pages */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1120;
  font-size: 0.8rem;
  text-decoration: none;
  margin-top: 12px;
}

.back-pill:hover {
  opacity: 0.9;
}

/* --- CCC header tweaks (dev) ---------------------------------------- */

/* Make whole brand block a home link and keep it white */
header .brand-link {
  display: inline-flex;
  align-items: center;
  /* slightly smaller gap so nav has more room */
  gap: 4px;
  text-decoration: none;
  color: #ffffff !important;
}

header .brand-link:visited,
header .brand-link:active {
  color: #ffffff !important;
}

header .brand-link:hover {
  opacity: 0.9;
}

/* Brand text sizing - a little bigger than stock, but not huge */
header .brand-text-main {
  font-size: 16px;   /* was 18px */
  font-weight: 600;
}

header .brand-text-sub {
  font-size: 11px;
}

/* Nav link sizing & keep them on one line */
header .nav-links {
  white-space: nowrap;   /* don't wrap nav items */
}

header .nav-links a {
  font-size: 14px;       /* was 15px – small bump over original, but fits */
}

/* Keep phone number together too */
header .phone {
  white-space: nowrap;
}






