/* NeotecMedia: Bootstrap 5.3 with the logo's green. #39b54a (the logo green) is too light for text
   or white button labels, so links and buttons use a darker green of the same hue. */
:root {
  --nm-green: #39b54a;
  --nm-green-dark: #1e7b34;
  --nm-green-darker: #17642a;
  --nm-green-soft: #edf8ef;
  --nm-green-line: #a6d9af;
  --nm-ink: #1d2125;
  --bs-primary: #1e7b34;
  --bs-primary-rgb: 30, 123, 52;
  --bs-primary-bg-subtle: #e3f4e6;
  --bs-primary-border-subtle: #b9e2c0;
  --bs-primary-text-emphasis: #145523;
  --bs-link-color: #1e7b34;
  --bs-link-color-rgb: 30, 123, 52;
  --bs-link-hover-color: #17642a;
  --bs-link-hover-color-rgb: 23, 100, 42;
  --bs-body-color: #1d2125;
  --bs-body-color-rgb: 29, 33, 37;
  --bs-emphasis-color: #1d2125;
}

/* Content is at most 1200px wide (Bootstrap's default is 1320px on large screens) */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

h1, h2, h3, .display-5 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-primary {
  --bs-btn-bg: var(--nm-green-dark);
  --bs-btn-border-color: var(--nm-green-dark);
  --bs-btn-hover-bg: var(--nm-green-darker);
  --bs-btn-hover-border-color: var(--nm-green-darker);
  --bs-btn-active-bg: var(--nm-green-darker);
  --bs-btn-active-border-color: var(--nm-green-darker);
  --bs-btn-disabled-bg: var(--nm-green-dark);
  --bs-btn-disabled-border-color: var(--nm-green-dark);
  --bs-btn-focus-shadow-rgb: 30, 123, 52;
}

.btn-outline-primary {
  --bs-btn-color: var(--nm-green-dark);
  --bs-btn-border-color: var(--nm-green-dark);
  --bs-btn-hover-bg: var(--nm-green-dark);
  --bs-btn-hover-border-color: var(--nm-green-dark);
  --bs-btn-active-bg: var(--nm-green-darker);
  --bs-btn-active-border-color: var(--nm-green-darker);
  --bs-btn-focus-shadow-rgb: 30, 123, 52;
}

/* Header and footer */
.site-header .nav-link {
  font-weight: 500;
}
.site-header .nav-link.active,
.site-header .dropdown-item.active {
  color: var(--nm-green-dark);
  background: transparent;
}
.site-header .dropdown-item.active,
.site-header .dropdown-item:active {
  background: var(--nm-green-soft);
}

.site-footer {
  background: #f6f8f7;
  border-top: 1px solid #e3e8e5;
}
.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.site-footer li {
  margin-bottom: 0.4rem;
}
.site-footer a:not(:hover) {
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-soft {
  background: var(--nm-green-soft);
}
.page-header {
  background: var(--nm-green-soft);
  padding: 3.5rem 0 3rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nm-green-dark);
  margin-bottom: 0.75rem;
}
.hero {
  background: linear-gradient(180deg, var(--nm-green-soft) 0%, #fff 100%);
  padding: 4rem 0 3rem;
  overflow-x: clip; /* the floating badges drift sideways; don't let them widen the page on phones */
}
.hero img,
.illustration {
  max-width: 100%;
  height: auto;
}
/* Illustrations beside page titles and in sections */
.page-header .illustration {
  max-height: 260px;
  width: auto;
}
.section-art {
  max-height: 240px;
  width: auto;
}
@media (min-width: 992px) {
  .section-art {
    max-height: 340px;
  }
}

/* Cards: a light border all round and a soft, even shadow, so all four edges show on white */
.card {
  --bs-card-border-color: #e3eae5;
  --bs-card-border-radius: 1rem;
  --bs-card-inner-border-radius: calc(1rem - 1px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.04);
}

/* Small pieces */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--nm-green-soft);
  color: var(--nm-green-dark);
  font-size: 1.6rem;
  flex-shrink: 0;
}
/* Illustration at the top of a card (Industries page) */
.card-art {
  background: var(--nm-green-soft);
  border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
  padding: 1.25rem 1.5rem 0.75rem;
  text-align: center;
}
.card-art img {
  max-height: 170px;
  width: auto;
}

/* Round icon with a soft green outline */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--nm-green-line);
  background: #fff;
  color: var(--nm-green-dark);
  font-size: 1.75rem;
  flex-shrink: 0;
}
.icon-circle-sm {
  width: 3rem;
  height: 3rem;
  font-size: 1.3rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--nm-green-dark);
}
.check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "\F633"; /* bi-check-lg */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--nm-green-dark);
  font-weight: 700;
}
.x-list li::before {
  content: "\F659"; /* bi-x-lg */
  color: #b02a37;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--nm-green-dark);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--nm-green-dark);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-link-hover {
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card-link-hover:hover {
  border-color: var(--bs-primary-border-subtle);
  box-shadow: 0 0.5rem 1.5rem rgba(16, 24, 40, 0.08);
  transform: translateY(-3px);
}

/* Hero: icons floating around the illustration */
.hero-art {
  position: relative;
  display: inline-block;
}
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--nm-green-line);
  background: #fff;
  color: var(--nm-green-dark);
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
  animation: nm-float 5s ease-in-out infinite;
}
/* Alternate badges drift the other way, each at its own point in the cycle */
.float-badge:nth-of-type(2) { animation-name: nm-float-alt; animation-delay: -1.2s; }
.float-badge:nth-of-type(3) { animation-delay: -2.5s; }
.float-badge:nth-of-type(4) { animation-name: nm-float-alt; animation-delay: -3.7s; }
@keyframes nm-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -10px); }
  50% { transform: translate(0, -20px); }
  75% { transform: translate(-6px, -10px); }
}
@keyframes nm-float-alt {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 10px); }
  50% { transform: translate(0, 18px); }
  75% { transform: translate(6px, 8px); }
}

/* Home page diagram (partials/connect-animation.php) */
.connect-animation {
  width: 100%;
  max-width: 560px;
  height: auto;
  font-family: var(--bs-body-font-family);
}
.connect-flow use {
  animation: nm-dash 1.2s linear infinite;
}
@keyframes nm-dash {
  to { stroke-dashoffset: -28; }
}

/* Content fades in as it scrolls into view (site.js adds .is-visible; without JavaScript nothing is hidden) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .float-badge,
  .connect-flow use {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* In-page anchors (for example /services#seo) stop below the sticky header */
.scroll-target {
  scroll-margin-top: 5rem;
}
/* Privacy policy and terms */
.legal-text {
  max-width: 48rem;
}
.legal-text h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }
  .float-badge {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }
  .hero {
    padding: 2.5rem 0 2rem;
  }
}
