/* ==========================================================================
   Ordivue public/marketing site stylesheet
   Brand: dark green #00583F, orange #F47A00, alert red #D71920
   ========================================================================== */

:root {
  --ov-green: #00583F;
  --ov-orange: #F47A00;
  --ov-red: #D71920;
  --ov-text: #17212B;
  --ov-text-soft: #5F6F7D;
  --ov-bg: #F6F8F7;
  --ov-border: #D8E2DE;
  --ov-white: #FFFFFF;
  --ov-max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body.ov-body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ov-text);
  background: var(--ov-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ov-green); }

.ov-container {
  max-width: var(--ov-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .ov-container { padding: 0 18px; }
}

/* ---------- Header / Nav ---------- */

.ov-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ov-white);
  border-bottom: 1px solid var(--ov-border);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.ov-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ov-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.ov-header.is-scrolled .ov-header-inner {
  padding: 10px 24px;
}

.ov-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ov-green);
  text-decoration: none;
}

.ov-logo span.ov-logo-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--ov-orange);
  border-radius: 3px;
}

.ov-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ov-nav-item {
  position: relative;
}

.ov-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  color: var(--ov-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
}

.ov-nav-link:hover,
.ov-nav-link:focus-visible {
  color: var(--ov-green);
  background: var(--ov-bg);
}

.ov-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 8px;
  display: none;
  list-style: none;
  margin: 4px 0 0;
}

.ov-nav-item:hover .ov-dropdown,
.ov-nav-item:focus-within .ov-dropdown {
  display: block;
}

.ov-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ov-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.ov-dropdown a:hover,
.ov-dropdown a:focus-visible {
  background: var(--ov-bg);
  color: var(--ov-green);
}

.ov-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ov-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ov-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.ov-nav-toggle span,
.ov-nav-toggle span::before,
.ov-nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ov-text);
  position: relative;
  transition: transform 0.15s ease;
}

.ov-nav-toggle span::before,
.ov-nav-toggle span::after {
  content: "";
  position: absolute;
}

.ov-nav-toggle span::before { top: -6px; }
.ov-nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */

.ov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ov-btn-primary {
  background: var(--ov-orange);
  color: var(--ov-white);
}

.ov-btn-primary:hover,
.ov-btn-primary:focus-visible {
  background: #d96900;
}

.ov-btn-secondary {
  background: transparent;
  color: var(--ov-green);
  border-color: var(--ov-green);
}

.ov-btn-secondary:hover,
.ov-btn-secondary:focus-visible {
  background: var(--ov-green);
  color: var(--ov-white);
}

.ov-btn-block { width: 100%; }

/* ---------- Sections & layout helpers ---------- */

.ov-section {
  padding: 88px 0;
}

.ov-section-alt {
  background: var(--ov-bg);
}

.ov-section-tint {
  background: #FFF6EC;
}

.ov-eyebrow {
  display: inline-block;
  color: var(--ov-orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  color: var(--ov-green);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }

.ov-text-soft { color: var(--ov-text-soft); }

.ov-section-head {
  max-width: 760px;
  margin: 0 0 40px;
}

.ov-section-head.ov-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Hero ---------- */

.ov-hero {
  padding: 64px 0 80px;
}

.ov-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.ov-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 12px;
}

.ov-hero-link {
  color: var(--ov-green);
  font-weight: 600;
  text-decoration: none;
}

.ov-hero-visual {
  background: var(--ov-bg);
  border: 1px solid var(--ov-border);
  border-radius: 16px;
  padding: 24px;
}

.ov-workflow-tag {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  color: var(--ov-green);
  font-size: 0.9rem;
}

.ov-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ov-flow-chip {
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ov-text);
  white-space: nowrap;
}

.ov-flow-arrow { color: var(--ov-text-soft); }

/* ---------- Value strip ---------- */

.ov-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--ov-border);
  border-bottom: 1px solid var(--ov-border);
}

.ov-value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ov-value-item svg { flex: none; color: var(--ov-orange); }

/* ---------- Cards / grids ---------- */

.ov-grid {
  display: grid;
  gap: 24px;
}

.ov-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ov-grid-3 { grid-template-columns: repeat(3, 1fr); }

.ov-card {
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: 14px;
  padding: 28px;
}

.ov-card-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
}

.ov-card-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ov-text);
}

.ov-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ov-orange);
}

/* ---------- Workflow steps ---------- */

.ov-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ov-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ov-green);
  color: var(--ov-white);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Comparison ---------- */

.ov-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ov-flow-line {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ov-text-soft);
  word-break: break-word;
}

/* ---------- Architecture diagram ---------- */

.ov-arch {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.ov-arch-stage {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: 14px;
  padding: 20px;
}

.ov-arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ov-text-soft);
  font-size: 1.4rem;
  flex: 0 0 24px;
}

/* ---------- Dashboard preview ---------- */

.ov-dashboard-preview {
  position: relative;
  border: 1px solid var(--ov-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ov-bg);
}

.ov-dashboard-callouts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ov-dashboard-callouts li {
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Tables ---------- */

.ov-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ov-border);
  border-radius: 12px;
  margin: 16px 0 32px;
}

table.ov-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

table.ov-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--ov-green);
  padding: 14px 18px 0;
}

table.ov-table th,
table.ov-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ov-border);
  font-size: 0.92rem;
}

table.ov-table th {
  background: var(--ov-bg);
  color: var(--ov-green);
  font-weight: 700;
}

table.ov-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */

.ov-form-row { margin-bottom: 18px; }

.ov-form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.ov-form-row input,
.ov-form-row select,
.ov-form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ov-border);
  border-radius: 8px;
  font: inherit;
  color: var(--ov-text);
  background: var(--ov-white);
}

.ov-form-row input:focus,
.ov-form-row select:focus,
.ov-form-row textarea:focus {
  outline: 2px solid var(--ov-green);
  outline-offset: 1px;
}

.ov-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.ov-alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.ov-alert-success { background: #E7F3EE; color: var(--ov-green); border: 1px solid #BFDDD1; }
.ov-alert-error { background: #FBE9E9; color: var(--ov-red); border: 1px solid #F3C3C3; }

/* Honeypot field: hidden from real users, present for bots */
.ov-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.ov-footer {
  background: var(--ov-green);
  color: #E4EEEA;
  padding: 64px 0 28px;
}

.ov-footer a { color: #E4EEEA; text-decoration: none; }
.ov-footer a:hover { text-decoration: underline; }

.ov-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.ov-footer h4 {
  color: var(--ov-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.ov-footer ul { list-style: none; margin: 0; padding: 0; }
.ov-footer li { margin-bottom: 10px; font-size: 0.9rem; }

.ov-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #C9DDD3;
}

.ov-os-badges {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.ov-os-badge {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ov-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ov-steps { grid-template-columns: repeat(2, 1fr); }
  .ov-footer-grid { grid-template-columns: 1fr 1fr; }
  .ov-dashboard-callouts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ov-hero-grid { grid-template-columns: 1fr; }
  .ov-compare { grid-template-columns: 1fr; }
  .ov-value-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .ov-nav,
  .ov-header-actions .ov-btn-secondary {
    display: none;
  }

  .ov-header-actions .ov-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body.ov-nav-open .ov-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ov-white);
    border-bottom: 1px solid var(--ov-border);
    padding: 8px 24px 16px;
    gap: 0;
  }

  body.ov-nav-open .ov-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    margin: 0 0 8px;
  }

  .ov-section { padding: 56px 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .ov-grid-2,
  .ov-grid-3 { grid-template-columns: 1fr; }
  .ov-steps { grid-template-columns: 1fr; }
  .ov-footer-grid { grid-template-columns: 1fr; }
  .ov-dashboard-callouts { grid-template-columns: 1fr 1fr; }
  .ov-form-grid { grid-template-columns: 1fr; }
  .ov-arch { flex-direction: column; }
  .ov-arch-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .ov-value-strip { grid-template-columns: 1fr; }
  .ov-dashboard-callouts { grid-template-columns: 1fr; }
}
