/* MRAG Software Solutions — shared site styles */

:root {
  --brand: #0079F6;
  --brand-dark: #0062c9;
  --navy: #001A53;
  --ink: #101828;
  --muted: #4b5566;
  --line: #e2e8f0;
  --ground: #ffffff;
  --panel: #f5f9ff;
  --panel-strong: #eaf2ff;
  --ok: #1a9c5c;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 8px 30px rgba(0, 26, 83, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Circuit-motif background wash, kept faint per brand kit */
.circuit-bg {
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--panel) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: -1px -1px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.brand-lockup .company-name {
  font-size: 0.95rem;
  line-height: 1.15;
}

.brand-lockup .company-name small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

nav.main-nav a:hover { color: var(--brand); text-decoration: none; }

nav.main-nav a.current { color: var(--brand); }

.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

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

/* Hero */
.hero {
  padding: 64px 0 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  background: var(--panel-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.subhead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.trust-strip {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Sections */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy);
  margin: 0 0 8px;
}

.section-kicker {
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 32px;
}

.alt { background: var(--panel); }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p { color: var(--muted); margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

.chip {
  background: var(--panel-strong);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

ul.check-list { list-style: none; padding: 0; margin: 0; }

ul.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--muted);
}

ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}

.steps { counter-reset: step; display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.step .num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step .num::before { content: counter(step); }

.step h3 { margin: 2px 0 6px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.pricing th, table.pricing td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

table.pricing th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

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

.table-scroll { overflow-x: auto; }

details.faq, details.accordion {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #fff;
}

details.faq summary, details.accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

details.faq p { color: var(--muted); margin: 10px 0 2px; }

details.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.accordion summary .count {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--panel);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

details.accordion ul.check-list {
  margin-top: 14px;
}

details.accordion ul.check-list li { font-size: 0.94rem; }

.feature-lede {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 28px;
}

.callout {
  border-left: 4px solid var(--brand);
  background: var(--panel);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.final-cta {
  background: linear-gradient(135deg, var(--navy), var(--brand-dark));
  color: #fff;
  border-radius: 20px;
  padding: 46px;
  text-align: center;
}

.final-cta h2 { color: #fff; margin-top: 0; }
.final-cta p { color: #dbe8ff; max-width: 60ch; margin: 0 auto 24px; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; }

form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

form.contact-form label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  display: grid;
  gap: 6px;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

form.contact-form textarea { resize: vertical; min-height: 90px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-channels .card { margin-bottom: 16px; }

.fine-print {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 10px;
}

/* Products (multi-product catalogue) — one .product-card per MRAG system */
.product-grid {
  display: grid;
  gap: 24px;
}

/* Wide row per product (image | details); stacks on phones. Reads well with one product or many. */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  box-shadow: var(--shadow);
}

.product-card .product-media {
  background: var(--panel);
  border-right: 1px solid var(--line);
  max-height: 360px;
  overflow: hidden;
}

.product-card .product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.product-card .product-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card h3 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.product-card p { margin: 0; color: var(--muted); }

.product-card .product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.status-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e7f7ef;
  color: var(--ok);
}

.btn-sm { padding: 8px 16px; font-size: 0.86rem; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #cdd8f0;
  padding: 44px 0 26px;
  margin-top: 40px;
}

footer.site-footer a { color: #fff; }
footer.site-footer .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

footer.site-footer .foot-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

footer.site-footer .foot-fine {
  font-size: 0.78rem;
  color: #9fb1da;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
}

@media (max-width: 860px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card .product-media { border-right: none; border-bottom: 1px solid var(--line); max-height: 240px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
  }
}

@media (max-width: 560px) {
  .header-actions .hide-sm { display: none; }
  .header-actions .btn { padding: 9px 14px; }
  .grid-3 { grid-template-columns: 1fr; }
  .final-cta { padding: 32px 20px; }
  .step { grid-template-columns: 40px 1fr; }
}
