/* MercIT Labs — mercitlabs.com */

:root {
  --navy: #112036;
  --blue: #376997;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --border: #e3e8ee;
  --text: #3d4b5f;
  --muted: #6b7a8f;
  --footer-mist: #b9c4d3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }

a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px;
}
.site-footer a:focus-visible { outline-color: #ffffff; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { height: 34px; display: block; }
.site-nav a {
  margin-left: 24px; text-decoration: none; font-weight: 600;
  font-size: 15px; color: var(--navy);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* Hero */
.hero { padding: 88px 0 72px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 0.4em; max-width: 18em;
}
.tagline { font-size: 1.15rem; max-width: 44em; margin: 0; }

/* Products */
.card-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; }

.pill {
  align-self: flex-start; font-size: 0.78rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.pill--blue  { background: #e7eff6; color: var(--blue); }
.pill--gray  { background: #eceff3; color: #5c6b80; }
.pill--green { background: #e6f4ea; color: #1e7e43; }

/* Contact */
.contact { padding: 80px 0; text-align: center; }
.contact-email {
  display: inline-block; margin-top: 8px; font-size: 1.2rem; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }
.alt-path { margin-top: 28px; font-size: 0.95rem; color: var(--muted); }
.alt-path a { color: var(--blue); font-weight: 600; text-decoration: none; }
.alt-path a:hover { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: var(--footer-mist); padding: 36px 0; font-size: 0.9rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo img { height: 26px; display: block; }
.site-footer a { color: var(--footer-mist); }
.site-footer a:hover { color: #ffffff; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 88px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* 404 */
.notfound { text-align: center; padding: 120px 24px; }
.btn {
  display: inline-block; margin-top: 20px; padding: 10px 28px;
  background: var(--blue); color: #ffffff; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--navy); color: #ffffff; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .header-inner { flex-direction: column; }
  .site-nav a { display: inline-block; margin: 0 12px; padding: 10px 4px; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* Home: evidence band */
.evidence { background: var(--bg-alt); padding: 64px 0; }
.evidence-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.evidence h2 { font-size: 1.5rem; }
.evidence p:last-child { margin-bottom: 0; }

/* Long-form pages (capabilities, built, contact) */
.page { max-width: 820px; margin: 0 auto; padding: 64px 24px 88px; }
.page h1 { font-size: 2rem; }
.page h2 { font-size: 1.35rem; margin-top: 2.2em; }
.page h3 { font-size: 1.05rem; margin-top: 1.6em; }
.page .intro { color: var(--muted); }
.page .fineprint { color: var(--muted); font-size: 0.9rem; font-style: italic; margin-top: 3em; }

/* Capabilities: education */
.degree-list { margin: 0; }
.degree-list div { margin: 0 0 18px; }
.degree-list div:last-child { margin-bottom: 0; }
.degree-list dt { font-weight: 600; color: var(--navy); }
.degree-list dd { margin: 2px 0 0; }

/* Capabilities: technical skills */
.skills {
  display: grid; grid-template-columns: max-content 1fr;
  column-gap: 36px; row-gap: 14px; margin: 0 0 64px;
}
.skills dt { font-weight: 600; color: var(--navy); }
.skills dd { margin: 0; }
@media (max-width: 640px) {
  .skills { display: block; margin-bottom: 56px; }
  .skills dt { margin-top: 16px; }
  .skills dt:first-of-type { margin-top: 0; }
  .skills dd { margin-top: 2px; }
}

/* Capabilities: certifications table */
.cert-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 20px; }
.cert-table td:first-child { font-weight: 600; color: var(--navy); }
.cert-table th, .cert-table td {
  text-align: left; padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.cert-table th { color: var(--navy); }
@media (max-width: 640px) {
  .cert-table thead { display: none; }
  .cert-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .cert-table td { display: block; border: none; padding: 2px 0; }
  .cert-table td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--navy); }
  .cert-table td:first-child::before { content: none; }
  .cert-table td:first-child { font-weight: 600; color: var(--navy); }
}

/* Built: product sections */
.product { padding: 48px 0; border-bottom: 1px solid var(--border); }
.product:last-of-type { border-bottom: none; }
.product-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-head h2 { margin: 0; }
.product-docs { margin-top: 20px; }
.product-docs a { display: inline-block; margin-right: 18px; font-weight: 600; text-decoration: none; }

/* Contact page */
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { margin: 12px 0; font-size: 1.1rem; }
.contact-list .addr { font-weight: 600; text-decoration: none; }
.contact-list .addr:hover { text-decoration: underline; }
