/* ═══════════════════════════════════════════════════════════════
   AVC SOFTWARE CONSULTING — SHARED DESIGN SYSTEM
   Single source of truth for tokens + components across every page.
   Link this from <head>, then add only page-specific layout CSS
   in that page's own <style> block. Do not duplicate rules already
   defined here — edit here once, every page picks it up.

   Typography: Newsreader (serif, headlines) + Inter (sans, body/UI)
   + JetBrains Mono (labels, tags, data). Load all three via Google
   Fonts in each page's <head>:
   <link href="https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2D4F;
  --navy-mid: #2A5C8A;
  --sky: #4AA8D0;
  --amber: #D4882A;
  --amber-light: #F5A94E;
  --warm-white: #F7F5F2;
  --charcoal: #2C2C2A;
  --muted: #6B6B68;
  --border: #E0DDD8;
  --white: #FFFFFF;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--charcoal); background: var(--warm-white); line-height: 1.6; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }

/* ─────────────────────────────────────────────
   NAV — full multi-page header with hamburger.
   Use on every page except focused landing pages
   (dms.html-style) which keep their minimal header.
   ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px; box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-brand img.nav-oracle-badge { height: 44px; width: auto; cursor: pointer; }
.nav-brand-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo .logo-text { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; }
.nav-logo .logo-text span { color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-family: var(--font-sans);
  font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 6px; cursor: pointer; display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-links a.nav-cta { background: var(--amber); color: var(--white); font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--amber-light); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy);
  z-index: 999; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: rgba(255,255,255,0.82); font-family: var(--font-sans); text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 14px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.mobile-menu .mobile-cta { margin: 16px 24px 0; background: var(--amber); color: var(--white) !important; text-align: center; border-radius: 8px; border-bottom: none !important; padding: 14px 24px !important; font-weight: 700 !important; }

/* Minimal landing-page header (dms.html / agri-life.html pattern) — deliberately no nav links, keeps focus on the page's own CTA */
.landing-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); padding: 0 40px; height: 68px;
  display: flex; align-items: center; gap: 16px;
}
.landing-header img.header-badge { height: 40px; width: auto; }
.landing-header .header-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }
.landing-header .header-brand { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--white); }
.landing-header .header-brand span { color: var(--amber); }

/* ─────────────────────────────────────────────
   LAYOUT PRIMITIVES
   ───────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-light);
}
.section-eyebrow.on-light { color: var(--amber); }
.section-eyebrow .dot { width: 5px; height: 5px; background: var(--amber); flex-shrink: 0; }
.section-title { font-family: var(--font-serif); font-weight: 500; font-size: 34px; color: var(--navy); letter-spacing: -0.01em; }
.section-title.on-dark { color: var(--white); }
.section-sub { font-family: var(--font-sans); font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.section-sub.on-dark { color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 13px 26px; border-radius: 6px; text-decoration: none; cursor: pointer; border: none;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-light); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.btn-outline.on-light { border-color: var(--border); color: var(--navy); }
.btn-outline.on-light:hover { border-color: var(--navy-mid); }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   TAGS / BADGES — sharp, no-pill (established in the
   badge-redesign canvas). Never use border-radius:20px+
   on a small label anywhere in this system.
   ───────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; border: 1px solid;
}
.tag-blue { color: var(--navy-mid); background: rgba(74,168,208,0.08); border-color: rgba(74,168,208,0.28); }
.tag-amber { color: var(--amber); background: rgba(212,136,42,0.08); border-color: rgba(212,136,42,0.3); }
.tag-neutral { color: var(--muted); background: var(--warm-white); border-color: var(--border); }

/* ─────────────────────────────────────────────
   INDEX GRID — a hairline-bordered mosaic of small
   icon+label entries. Use this instead of a wrapped row
   of individually-bordered/pill-shaped chips (the generic
   "integrations we support" widget every AI-generated SaaS
   page ships) — it reads as a technical spec index instead
   of a marketing chip cloud, and reuses the same shared-border
   grid language already used for pain-point cards and tables
   elsewhere in this system.
   ───────────────────────────────────────────── */
.index-grid { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.index-item {
  display: flex; align-items: center; gap: 10px; flex: 1 1 200px;
  padding: 16px 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.index-item i { font-size: 17px; color: var(--muted); flex-shrink: 0; }
.index-item span { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--navy); }
.index-grid.on-dark { border-color: rgba(255,255,255,0.14); }
.index-grid.on-dark .index-item { border-color: rgba(255,255,255,0.14); }
.index-grid.on-dark .index-item i { color: rgba(255,255,255,0.4); }
.index-grid.on-dark .index-item span { color: #fff; }
@media (max-width: 640px) { .index-item { flex: 1 1 45%; padding: 14px 16px; } }

/* ─────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 30px 26px; box-shadow: 0 24px 60px rgba(27,45,79,0.06);
}
.card h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
.card p { font-family: var(--font-sans); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.card-icon {
  width: 42px; height: 42px; border-radius: 8px; background: rgba(212,136,42,0.08);
  border: 1px solid rgba(212,136,42,0.28); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 19px; height: 19px; color: var(--amber); }

/* ─────────────────────────────────────────────
   SOLUTION-FLOW DIAGRAM — the process-diagram pattern
   used in place of fake UI screenshots or stat pills.
   ───────────────────────────────────────────── */
.flow-panel { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 36px 30px 30px; box-shadow: 0 24px 60px rgba(27,45,79,0.08); }
.flow-caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.flow-row { display: flex; align-items: flex-start; }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 104px; flex-shrink: 0; }
.flow-icon-circle { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--warm-white); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; flex-shrink: 0; }
.flow-icon-circle svg { width: 19px; height: 19px; color: var(--navy-mid); }
.flow-step.terminal .flow-icon-circle { border-color: var(--amber); background: rgba(212,136,42,0.08); }
.flow-step.terminal .flow-icon-circle svg { color: var(--amber); }
.flow-step .f-label { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.flow-step .f-sub { font-size: 11px; color: var(--muted); line-height: 1.4; }
.flow-connector { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: 22px; min-width: 16px; font-family: var(--font-mono); font-size: 18px; color: var(--border); }
.flow-gl { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; text-align: center; }
.flow-gl svg { width: 14px; height: 14px; color: var(--sky); flex-shrink: 0; }
.flow-gl-text { font-family: var(--font-mono); font-size: 11px; color: var(--navy-mid); }
.flow-gl-text b { color: var(--navy); }
@media (max-width: 640px) {
  .flow-row { flex-direction: column; align-items: stretch; }
  .flow-step { flex-direction: row; width: auto; text-align: left; gap: 14px; }
  .flow-step .flow-icon-circle { margin-bottom: 0; }
  .flow-step .f-text { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
  .flow-connector { padding-top: 4px; padding-bottom: 4px; padding-left: 21px; justify-content: flex-start; transform: rotate(90deg); transform-origin: left center; width: 18px; }
}

/* ─────────────────────────────────────────────
   TABBED FRAMEWORK / DETAIL LAYOUT
   (left tab list, right detail panel)
   ───────────────────────────────────────────── */
.tab-layout { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
/* min-width: 0 lets these grid items shrink below their content's natural
   width — without it, .tab-list's row of buttons (below) forces the whole
   grid, and the page, wider than the viewport instead of scrolling internally. */
.tab-list { display: flex; flex-direction: column; background: var(--warm-white); border-right: 1px solid var(--border); min-width: 0; }
.tab-panels { min-width: 0; }
.tab-item { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 20px 24px; background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; font-family: var(--font-sans); width: 100%; }
.tab-item:last-child { border-bottom: none; }
.tab-item .tab-num { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.tab-item .tab-name { font-size: 14px; font-weight: 700; color: var(--charcoal); line-height: 1.35; }
.tab-item.active { background: var(--white); }
.tab-item.active .tab-num { color: var(--amber); }
.tab-item.active .tab-name { color: var(--navy); }
.tab-panels { position: relative; padding: 40px 44px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 12px; }
.tab-panel p.desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 480px; margin-bottom: 24px; }
.tab-caps { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tab-caps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--charcoal); line-height: 1.5; }
.tab-caps svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--amber); }
@media (max-width: 980px) {
  .tab-layout { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .tab-item { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; width: auto; }
}
@media (max-width: 640px) { .tab-panels { padding: 28px 22px; } }

/* ─────────────────────────────────────────────
   CHECKMARK LIST (used across capability lists,
   compliance items, etc.)
   ───────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.check-list svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--amber); }
.check-list.on-dark li { color: rgba(255,255,255,0.72); }
.check-list.on-dark svg { color: var(--sky); }
.check-list b { font-weight: 600; }

/* ─────────────────────────────────────────────
   FORM COMPONENTS (multi-step qualification, and
   generic single-step contact forms alike)
   ───────────────────────────────────────────── */
.form-card { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 40px; box-shadow: 0 24px 60px rgba(27,45,79,0.08); }
.form-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.form-progress-seg { flex: 1; height: 2px; background: var(--border); }
.form-progress-seg.done { background: var(--amber); }
.form-progress-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-question { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 20px; font-family: var(--font-sans); }
.form-option-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.form-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--charcoal); font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.form-option:hover { border-color: var(--sky); }
.form-option .radio-dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; position: relative; }
.form-option:has(input:checked) .radio-dot { border-color: var(--amber); }
.form-option:has(input:checked) .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); }
.form-option:has(input:checked) { border-color: var(--amber); background: rgba(212,136,42,0.05); }
.form-option input { position: absolute; opacity: 0; pointer-events: none; }
.form-fieldset { margin: 22px 0; display: flex; flex-direction: column; gap: 16px; border: none; padding: 0; }
.form-fieldset legend { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--charcoal); cursor: pointer; }
.form-check input { width: 15px; height: 15px; accent-color: var(--amber); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.form-fields .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 6px; font-family: var(--font-sans); font-size: 14px; color: var(--charcoal); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--sky); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.form-back { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; }
.form-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: 6px; border: none; cursor: pointer; background: var(--amber); color: var(--white); margin-left: auto; }
.form-btn svg { width: 15px; height: 15px; }
.form-alt { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.form-alt a { color: var(--navy-mid); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.active { display: block; }
.form-success svg { width: 40px; height: 40px; color: var(--amber); margin: 0 auto 16px; }
.form-success h3 { font-family: var(--font-serif); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .form-card { padding: 26px 20px; }
  .form-fields { grid-template-columns: 1fr; }
  .form-fields .full { grid-column: 1; }
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 40px 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.footer-brand h3 span { color: var(--amber); }
.footer-brand p { font-family: var(--font-sans); font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 16px; }
.footer-brand .award-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--amber-light); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-family: var(--font-sans); font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; cursor: pointer; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--font-sans); font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─────────────────────────────────────────────
   GLOBAL RESPONSIVE — nav + generic containers
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tab-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img, .nav-brand img.nav-oracle-badge { height: 36px; }
  .nav-logo .logo-text { display: none; }
  .nav-brand-divider { display: none; }
  nav { padding: 0 20px; }
  .landing-header { padding: 0 20px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 26px; }
}
