/* ============================================================
   Vertexo — shared stylesheet
   Industrial / engineering-led visual system
   ============================================================ */

:root {
  --color-bg: #f5f7f9;
  --color-surface: #ffffff;
  --color-ink: #1b232c;
  --color-muted: #5b6672;
  --color-border: #e2e6ea;
  --color-primary: #10293f;
  --color-primary-light: #1d4a70;
  --color-accent: #e8862c;
  --color-accent-dark: #c76c1a;
  --radius: 6px;
  --max-width: 1160px;
  --shadow-sm: 0 1px 2px rgba(16, 41, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 41, 63, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--color-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-ink); }

.lede {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 780px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-accent {
  background: var(--color-accent);
  color: #1b232c;
}
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand svg { height: 30px; width: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #d7dee5;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn { margin-top: 10px; }
}

/* ---------- Nav dropdown (Capabilities) ---------- */
.dropdown { position: relative; }
.dropdown > a::after { content: " \25BE"; font-size: 0.7em; }
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  display: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li { padding: 0 18px; margin: 0; border: none; width: auto; }
.dropdown-menu a { display: block; padding: 10px 0; color: #d7dee5; font-size: 0.92rem; }
@media (max-width: 860px) {
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding-left: 14px;
  }
  .dropdown-menu li { border-bottom: none; padding: 4px 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1 { color: #fff; }
.hero .lede { color: #cfd9e2; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-surface); }
.section-header { max-width: 720px; margin-bottom: 40px; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-muted); margin-bottom: 12px; }
.card .card-link { font-weight: 600; font-size: 0.9rem; }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(232, 134, 44, 0.12);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- Industry chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { color: var(--color-muted); margin: 0; }

/* ---------- Callout / CTA band ---------- */
.callout {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: #cfd9e2; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-row-2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-primary-light); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--color-muted); }
#form-success { display: none; background: #e9f6ec; border: 1px solid #bfe3c8; color: #1e5c30; padding: 14px 18px; border-radius: var(--radius); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #cfd9e2;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b8c4cf; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9fadb8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--color-muted); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
