/* ============================================================
   GLOBAL BASE STYLES
============================================================ */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.5;
}

/* Utility */
.reveal { opacity: 0; transform: translateY(35px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR (GLOBAL)
============================================================ */
.navbar {
  background: linear-gradient(90deg, #002b5c, #004080);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  position: relative;
  z-index: 3000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  gap: 10px;
}

.logo {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
  object-fit: contain !important;
  display: block;
  transition: opacity 0.2s ease;
}

.brand:hover .logo {
  opacity: 0.82;
}

/* NAV MENU */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* Highlight active page */
.nav-menu a.active {
  text-decoration: underline;
  font-weight: 600;
}

/* DROPDOWNS */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 220px;
  border-radius: 6px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 3500;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  color: #002b5c !important;
  padding: 10px 18px;
  display: block;
}

.dropdown-menu a:hover {
  background: #eef5ff;
}

/* ============================================================
   GLOBAL SECTION LAYOUTS
============================================================ */

section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
}

.solutions-grid,
.feature-grid,
.industry-grid,
.template-grid {
  display: grid;
  gap: 20px;
}

/* Card sizes restored to your original proportions */
.solution-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-top: 4px solid #004080;
}

.solution-card img {
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.feature img {
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

.industry-card img {
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

/* Example image */
.example-img {
  width: 85%;
  max-width: 680px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* CTA FOOTER */
.cta-footer {
  background: #004080;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.cta {
  background: #fff;
  color: #004080;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* FOOTER */
footer {
  background: #f1f3f5;
  padding: 16px;
  text-align: center;
  color: #444;
}

html,
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
}

textarea,
input,
button {
  font-family: inherit;
}
/* BPMN example image */
.bpmn-example {
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 40px auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* Prevent overflow */
.bpmn-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.bpmn-demo {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1f34 0%, #122845 100%);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
  overflow: visible;
}

.bpmn-demo h3 {
  margin: 0 0 8px;
  color: #eaf2ff;
}

.bpmn-demo p {
  margin: 0 0 14px;
  color: #c9d9f0;
}

.bpmn-demo-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.bpmn-demo-actions {
  margin-top: 14px;
}

.bpmn-demo-upgrade {
  background: #ffffff;
  color: #0d2f5f;
  border: 1px solid #c6d8f7;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.bpmn-demo-canvas-wrap {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: #ffffff;
}

.bpmn-demo-canvas {
  width: 100%;
  min-height: 360px;
  height: 48vh;
  max-height: 520px;
}

@media (max-width: 768px) {
  .bpmn-demo {
    margin: 24px auto;
    padding: 14px;
    border-radius: 12px;
  }

  .bpmn-demo-canvas {
    min-height: 280px;
    height: 44vh;
  }
}

section.hero {
  max-width: 100%;
  margin: 0;
  padding: 110px 20px 90px;
}

/* ============================================================
   HERO BANNER — shared full-width hero for all pages
============================================================ */
.hero-banner {
  background: linear-gradient(90deg, #002b5c, #004080);
  color: #fff;
  text-align: center;
  padding: 90px 24px 80px;
  overflow: hidden;
  position: relative;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.07), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}

/* Override global section constraints */
section.hero-banner,
header.hero-banner {
  max-width: 100%;
  margin: 0;
}

.hero-banner .hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero-banner p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* CTA buttons inside hero-banner */
.hero-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #002b5c;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-cta-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: none;
}

.hero-cta-btn.secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero-banner,
  section.hero-banner,
  header.hero-banner {
    padding: 60px 20px;
  }

  .hero-banner h1 {
    font-size: 28px;
  }

  .hero-banner p {
    font-size: 16px;
  }
}
