:root {
  --blue: #0074bc;
  --blue-mid: #167ebf;
  --gray: #e6e7e8;
  --line: #eee;
  --ink: #444;
  --black: #000;
  --white: #fff;
  --warn-bg: #fff8e8;
  --warn-ink: #7a4a00;
  --max: 1140px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .55em; line-height: 1.25; color: var(--black); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar {
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  min-height: 42px;
  padding: .35rem 0;
}
.top-bar a img { height: 28px; width: auto; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: .5rem 0;
}
.logo img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--blue); position: relative; border-radius: 1px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem;
}
.site-nav > ul > li > a,
.site-nav .nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .65rem .7rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav .nav-sub-toggle:hover,
.site-nav > ul > li.is-active > a { color: var(--blue); text-decoration: none; }
.has-sub { position: relative; display: inline-flex; align-items: center; }
.has-sub > a, .has-sub .nav-label > a { padding-right: .2rem; }
.has-sub .nav-label { display: inline-flex; }
.nav-sub-toggle { padding-left: .1rem !important; padding-right: .55rem !important; }
.nav-sub-toggle::after {
  content: "";
  width: .35rem; height: .35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .75;
}
.subnav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: .35rem 0;
  z-index: 40;
}
.has-sub.open .subnav,
.has-sub:hover .subnav { display: block; }
.subnav a {
  display: block;
  padding: .55rem 1rem;
  font-size: .84rem;
  color: var(--ink);
  font-weight: 500;
}
.subnav a:hover {
  background: #eef6fc;
  color: var(--blue);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero { position: relative; background: #0a3d66; overflow: hidden; }
.hero-track { position: relative; min-height: 320px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease;
  background: #0a3d66 center / cover no-repeat;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide a {
  display: block; width: 100%; height: 100%;
  position: absolute; inset: 0; z-index: 2;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-prev, .hero-next {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,116,188,.8); color: #fff; font-size: 1.3rem;
  cursor: pointer; display: grid; place-items: center;
}
.hero-prev { left: .75rem; }
.hero-next { right: .75rem; }
.hero-dots {
  position: absolute; bottom: .85rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .45rem; z-index: 4;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--white); }

/* ===== Home sections ===== */
.section-title {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  position: relative;
}
.section-title h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  display: inline-block;
  padding: 0 1rem;
  background: var(--white);
  position: relative;
  z-index: 1;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 50%;
  height: 2px; background: var(--blue-mid); opacity: .35;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin: 1rem 0 2rem;
}
.pain-grid h2 { font-size: 1.15rem; font-weight: 600; }
.pain-grid img { margin: 0 auto 1rem; max-height: 90px; width: auto; }
.arrow-bridge { text-align: center; margin: .5rem 0; }
.arrow-bridge img { margin: 0 auto; max-height: 36px; }

.prospector-band {
  background: var(--blue) url("../images/blue_bg.png") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1rem;
  margin: 1.5rem 0 2.5rem;
}
.prospector-band h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.prospector-band p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.feature-grid .service-icon img { margin: 0 auto 1rem; max-height: 72px; }
.feature-grid h4 { font-size: 1.1rem; color: var(--blue); }
.feature-grid p { font-size: .95rem; }

.btn-pill {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  padding: .75rem 1.4rem;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  text-decoration: none !important;
  border: 2px solid var(--blue);
}
.btn-pill:hover { background: var(--blue-mid); border-color: var(--blue-mid); }
.btn-center { text-align: center; margin: 1.5rem 0 2.5rem; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 2.5rem;
}
.why-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: center;
}
.why-item img { width: 100px; height: auto; }
.why-item h1 { font-size: 1.75rem; color: var(--blue); margin-bottom: .2rem; }
.why-item span { font-size: .95rem; color: var(--ink); }
.lead-intro { text-align: center; max-width: 780px; margin: 0 auto 1.5rem; }

.banner-cta {
  background: center / cover no-repeat;
  color: var(--white);
  padding: 4.5rem 1rem;
  text-align: center;
  margin: 0 0 0;
}
.banner-cta.customer { background-image: url("../images/bg21.jpg"); }
.banner-cta.marketing { background-image: url("../images/bg24.jpg"); text-align: right; }
.banner-cta.service { background-image: url("../images/bg23.jpg"); }
.banner-cta .inner { max-width: var(--max); margin: 0 auto; }
.banner-cta.marketing .inner { max-width: 480px; margin-right: 0; margin-left: auto; text-align: left; }
.banner-cta h2, .banner-cta .banner-title {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .75rem;
}
.banner-cta p { color: var(--white); font-size: 1.05rem; }
.banner-cta .btn-pill { background: var(--white); color: var(--blue) !important; border-color: var(--white); margin-top: 1rem; }
.banner-cta .btn-pill:hover { background: #eef6fc; }

.final-cta { padding: 2.5rem 0 3rem; text-align: center; }

/* ===== Inner pages ===== */
.inner-banner {
  min-height: 200px;
  background: var(--blue) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.inner-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.35));
}
.inner-banner h1 {
  position: relative; z-index: 1;
  color: var(--white);
  background: rgba(0,116,188,.88);
  padding: .85rem 1.25rem;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 8% 0;
  width: fit-content;
  max-width: min(100% - 2rem, 40rem);
}
.page-content {
  padding: 2.5rem 0 3.5rem;
}
.page-content .legacy {
  color: var(--ink);
  font-size: .95rem;
}
.page-content .legacy img { display: inline-block; vertical-align: middle; }
.page-content .legacy .title2 h2,
.page-content .legacy h2 .text {
  color: var(--blue);
}
.page-content .legacy .similerbut_bg a,
.page-content .legacy .btn-primary a {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: .7rem 1.2rem;
  font-weight: 700;
  text-decoration: none !important;
}
.page-content .legacy table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-content .legacy td, .page-content .legacy th {
  border: 1px solid var(--line);
  padding: .5rem .65rem;
  vertical-align: top;
}

/* Tabs (CRM etc.) */
.tabs { margin: 1.5rem 0; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.25rem;
}
.tab-list button {
  background: var(--gray);
  border: 0;
  padding: .65rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-list button.is-active {
  background: var(--white);
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.product-tour-subhead {
  font-weight: 700;
  color: var(--blue);
  margin: 1rem 0 .4rem;
  font-size: 1.05rem;
}
.blue-panel {
  background: var(--blue);
  color: #fff;
  padding: 2rem 1.25rem;
  margin: 2rem 0;
}
.blue-panel h3, .blue-panel .product-tour-subheadblu {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.blue-panel p { color: #fff; }

/* Forms */
.form-band {
  background: var(--blue-mid);
  padding: 2.5rem 0;
  color: #fff;
}
.form-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  padding: 1.5rem;
  max-width: 640px;
}
.form-card.light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.form-grid { display: grid; gap: .85rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-control {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #ccc;
  font: inherit;
  background: #fff;
  color: #222;
}
.form-control:focus { outline: 2px solid var(--blue-mid); border-color: var(--blue); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #f0d9a8;
  font-size: .92rem;
}
.form-status.is-visible { display: block; }
.form-error { color: #b00020; font-size: .8rem; display: none; }
.form-group.is-invalid .form-error { display: block; }
.form-group.is-invalid .form-control { border-color: #b00020; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.address-box {
  background: var(--gray);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.address-box p { margin-bottom: .75rem; }
.address-box a { font-weight: 600; }

.page-intro { text-align: center; margin-bottom: 1.5rem; }
.page-intro h1, .page-intro h2 { color: var(--blue); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
.price-card {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.price-card h2 { color: var(--blue); font-size: 1.4rem; }
.price-card h3 { font-size: 1.6rem; margin: .5rem 0; }
.price-card h4 { color: var(--ink); font-weight: 600; font-size: 1rem; }
.price-card ul { text-align: left; margin-top: 1rem; }
.price-card li {
  list-style: disc;
  margin-left: 1.2rem;
  margin-bottom: .4rem;
  font-size: .92rem;
}

/* Footer */
.site-footer {
  background: #2a2a2a;
  color: #ccc;
  font-size: .85rem;
  margin-top: auto;
}
.footer-main { padding: 2.75rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.75rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-footer p, .site-footer li { color: #ccc; font-size: .84rem; line-height: 1.55; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.social-icons { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-icons img { width: 32px; height: 32px; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid #444;
  padding: 1rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
}
.footer-bottom a { color: #bbb; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pain-grid, .feature-grid, .why-grid, .contact-layout { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 80px 1fr; }
  .banner-cta.marketing { text-align: center; }
  .banner-cta.marketing .inner { margin: 0 auto; text-align: center; }
  .hero-track { min-height: 220px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
    z-index: 60;
  }
  .site-nav.is-open { display: block; }
  .header-main { position: relative; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav > ul > li > a, .site-nav .nav-sub-toggle {
    width: 100%; justify-content: space-between;
    padding: .85rem .35rem; border-bottom: 1px solid #f0f0f0;
  }
  .has-sub { flex-wrap: wrap; width: 100%; }
  .subnav { position: static; border: 0; width: 100%; display: none; padding-left: .75rem; }
  .has-sub.open .subnav { display: block; }
  .has-sub:hover .subnav { display: none; }
  .has-sub.open:hover .subnav { display: block; }
  .form-grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top-bar a img { height: 24px; }
  .logo img { height: 42px; }
  .inner-banner { min-height: 160px; }
}
