/* Metrix Consulting Solutions: brand colors sampled from the existing logo
   (navy #023177, charcoal #2B363F) */
:root {
  --navy-900: #071a3a;
  --navy-800: #0b2a5b;
  --navy-700: #023177;
  --blue-600: #1d5fd1;
  --blue-500: #2f74e6;
  --blue-100: #e6efff;
  --charcoal: #2b363f;
  --ink: #1a2330;
  --muted: #526070;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 26, 58, .08);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body); padding: .95em 1.5em; border-radius: 10px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: 0 6px 18px rgba(2, 49, 119, .25); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { color: var(--navy-700); border-color: #c5d3e8; background: #fff; }
.btn-ghost:hover { border-color: var(--navy-700); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-100); }
.btn-sm { padding: .7em 1.15em; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow-light { color: #9cc0ff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--navy-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47, 116, 230, .14), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(2, 49, 119, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(2, 49, 119, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
.hero .accent { background: linear-gradient(90deg, var(--navy-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.hero-visual { position: relative; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px rgba(7, 26, 58, .12); padding: 22px; }
.dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.dash-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #dbe3ee; }
.dash-title { margin-left: 10px; font: 600 .85rem var(--font-body); color: var(--muted); }
.dash-chart { width: 100%; height: 170px; display: block; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 80px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dash-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue-500), var(--navy-700)); opacity: .85; }
.dash-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; font: 600 .85rem var(--font-body); color: var(--navy-800); box-shadow: var(--shadow);
}
.chip-ico { color: var(--blue-500); font-size: .7rem; }
.chip-a { top: -18px; right: 24px; }
.chip-b { bottom: -18px; left: -22px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-sub { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cddaf0; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100); display: grid; place-items: center; margin-bottom: 20px; }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--navy-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--navy-700), var(--blue-500)); }
.step-num { display: block; font: 800 2rem/1 var(--font-head); color: #c3d4ee; margin-bottom: 16px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.about-grid p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--navy-700); }
.values strong { font-family: var(--font-head); color: var(--navy-900); font-size: 1.1rem; }
.values span { color: var(--muted); font-size: .98rem; }

/* Contact */
.contact { background: radial-gradient(800px 400px at 100% 0%, rgba(47, 116, 230, .35), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dbe6f7; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy p:not(.eyebrow) { font-size: 1.1rem; margin-bottom: 1.8rem; }
.contact-form { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); padding: .8em .95em; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fbfcfe; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 116, 230, .15); background: #fff; }
.form-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--navy-900); color: #a9b8cf; padding: 32px 0; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; }
.site-footer p { margin: 0; }
.site-footer nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #d5e0f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Responsive */
@media (max-width: 1080px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(7, 26, 58, .08); display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav li .btn { margin-top: 14px; width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(1180px, 100% - 40px); }
  .header-inner { height: 68px; }
  .brand img { height: 42px; }
  .site-nav { top: 68px; }
  .cards, .steps, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip-b { left: 8px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Board update */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card-feature { border-top: 3px solid var(--navy-700); }
.lead strong { color: var(--navy-700); font-weight: 600; }
.industries { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.industries h3 { font-size: 1.3rem; }
.industries p { font-size: 1rem !important; }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: #fff; border: 1px solid #cddaf0; color: var(--navy-800); font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 999px; }
.location { font-size: 1rem !important; color: #9cc0ff; margin-top: -.6rem; }
.location::before { content: "\25CF"; margin-right: 8px; font-size: .7em; vertical-align: middle; }
@media (max-width: 1080px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } .industries { padding: 24px; } }
@media (max-width: 560px) { .hero .eyebrow { letter-spacing: .08em; font-size: .74rem; } }

/* Board logo placements: logo shown unaltered (aspect ratio kept, no filters), on white for legibility */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.services-head .section-head { margin-bottom: 0; }
.board-badge {
  flex: none; display: flex; align-items: center; gap: 20px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 24px 14px 14px;
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.board-badge:hover { border-color: #cddaf0; transform: translateY(-2px); }
.board-badge img { width: 150px; height: auto; }
.board-badge-text { font: 700 .95rem/1.35 var(--font-head); color: var(--navy-900); padding-left: 20px; border-left: 1px solid var(--line); }
.hero-board {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 28px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2px 6px 2px 16px;
}
.hero-board span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.hero-board img { width: 92px; height: auto; }
@media (max-width: 900px) {
  .services-head { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 560px) {
  .board-badge { width: 100%; padding: 10px 18px 10px 10px; gap: 14px; }
  .board-badge img { width: 120px; }
  .board-badge-text { padding-left: 14px; font-size: .9rem; }
}

/* Documentation preview */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card-link { display: inline-flex; align-items: center; gap: .35em; margin-top: 16px; font-weight: 600; font-size: .95rem; color: var(--blue-600); text-decoration: none; }
.card-link:hover { color: var(--navy-700); text-decoration: underline; }
.doc-preview { background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%); border-top: 1px solid #dbe6f8; }
.doc-preview .section-head { max-width: 780px; }
.doc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.doc-shot { margin: 0; min-width: 0; }
.browser-frame {
  display: block; text-decoration: none; background: #fff; border: 1px solid #d6dfeb; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(7, 26, 58, .12); transition: transform .2s, box-shadow .2s; cursor: zoom-in;
}
.browser-frame:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(7, 26, 58, .16); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eef2f8; border-bottom: 1px solid #dde4ee; }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e5; flex: none; }
.browser-url {
  flex: 1; min-width: 0; margin-left: 12px; max-width: 260px; height: 20px; line-height: 20px; padding: 0 10px; border-radius: 6px;
  background: #fff; font: 500 .74rem/20px var(--font-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-frame img { width: 100%; height: auto; }
.doc-shot figcaption { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.doc-shot figcaption strong { display: block; font-family: var(--font-head); color: var(--navy-900); font-size: 1.05rem; margin-bottom: 2px; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-note { margin: 0; font-size: .95rem; color: var(--muted); }
.doc-note::before { content: "\25CF"; color: var(--blue-500); margin-right: 8px; font-size: .7em; vertical-align: middle; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; overflow: auto; }
.lightbox::backdrop { background: rgba(7, 26, 58, .82); }
.lightbox-body { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 64px 24px 32px; cursor: zoom-out; }
.lightbox-body img { width: min(1600px, 100%); height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); background: #fff; cursor: default; }
.lightbox-close {
  position: fixed; top: 14px; right: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy-900); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.lightbox-close:hover { background: var(--blue-100); }
html.lightbox-open { overflow: hidden; }
@media (max-width: 900px) {
  .doc-shots { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .doc-foot { flex-direction: column; align-items: stretch; text-align: left; }
  .doc-foot .btn { width: 100%; }
  .browser-bar { height: 28px; padding: 0 10px; }
  .browser-bar .dot { width: 8px; height: 8px; }
  .lightbox-body { padding: 64px 10px 20px; }
}


/* Thank-you page after Netlify Forms submission */
body.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.thanks-page .thanks {
  flex: 1;
  display: flex;
  align-items: center;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(47, 116, 230, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #dbe6f7;
  padding: clamp(72px, 10vw, 120px) 0;
}
.thanks-card {
  width: min(640px, 100%);
  margin-inline: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 48px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  text-align: center;
}
.thanks-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: .5em;
}
.thanks-card p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
@media (max-width: 560px) {
  .thanks-card { padding: 36px 24px; }
}
