/* MaH Quests Enterprises — static interim site
   No external fonts, scripts or images: everything is served from this domain. */

:root {
  --navy: #0f2340;
  --navy-2: #1f3864;
  --blue: #2e74b5;
  --blue-soft: #e8f0f9;
  --gold: #c9a227;
  --gold-dark: #9c7c14;
  --ink: #18212f;
  --muted: #566176;
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 35, 64, .06), 0 6px 20px rgba(15, 35, 64, .06);
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--navy); color: var(--gold);
  font-weight: 800; font-size: 17px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b23a; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); }
.btn-outline:hover { background: var(--navy-2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(1200px 500px at 85% -10%, #2a4f86 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #13305a 100%);
  color: #dfe7f3;
  padding: 92px 0 84px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: 1.2rem; max-width: 60ch; color: #cbd6e6; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.page-hero { padding: 72px 0 60px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 2.9rem); }

/* Proof stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: -44px; position: relative; box-shadow: var(--shadow);
}
.stat { background: #fff; padding: 26px 24px; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; color: var(--navy); font-weight: 750; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px;
}
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 600; font-size: 15px; }
.card-accent { border-top: 4px solid var(--gold); }

.pillar h3 { display: flex; align-items: center; gap: 10px; }
.pillar .num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-size: 14px; font-weight: 700; flex: none;
}

.metrics { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.metrics div { font-size: 14px; color: var(--muted); line-height: 1.3; }
.metrics b { display: block; font-size: 1.15rem; color: var(--navy); }

/* Credential strip */
.cred-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cred {
  display: inline-flex; flex-direction: column; padding: 12px 16px; min-width: 150px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.cred b { color: var(--navy); font-size: 15px; }
.cred span { color: var(--muted); font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy-2); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .03em; }
tbody tr:nth-child(even) td { background: #f8fafd; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-weight: 700; color: var(--navy); width: 90px; text-align: center; }
tfoot td { background: var(--blue-soft); font-weight: 700; color: var(--navy); }

/* Service detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: 1.6rem; }
.service .intro { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}
.checklist strong { color: var(--navy); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li { padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; }

.callout {
  border-left: 4px solid var(--gold); background: #fffaf0; padding: 18px 22px; border-radius: 0 8px 8px 0;
  color: var(--ink);
}

/* CTA band */
.cta-band { background: var(--navy); color: #cfd9e8; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list h3 { font-size: 1rem; margin-bottom: 4px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-size: 1.15rem; font-weight: 600; }
address { font-style: normal; }

/* Footer */
.site-footer { background: #0b1a31; color: #a9b6ca; padding: 60px 0 28px; font-size: 15px; }
.site-footer a { color: #d9e2ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-text small { color: #8fa0b8; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 40px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  .nav {
    margin: 0 -20px; padding: 0 12px 4px; width: calc(100% + 40px);
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 76px; }
  .page-hero { padding: 52px 0 44px; }
  section { padding: 60px 0; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .cta-band, .site-footer { display: none; }
  .hero { background: none; color: var(--ink); padding: 20px 0; }
  .hero h1 { color: var(--navy); }
}

/* Mobile nav: let the menu row scroll inside the header instead of widening the page */
@media (max-width: 720px) {
  .site-header nav { flex: 1 0 100%; min-width: 0; overflow: hidden; }
  .nav { margin: 0 -20px; width: auto; }
}

/* Real logo and partner badges */
.brand-logo { height: 62px; width: auto; }
.site-header .header-inner { min-height: 84px; padding-top: 8px; padding-bottom: 8px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.footer-logo img { width: 196px; height: auto; }
.badge-strip, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge-strip { margin-bottom: 18px; }
.badge-row { margin-bottom: 18px; }
.badge-strip img, .badge-row img {
  height: 100px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px;
}
.badge-row .btn { margin-left: 6px; }
.card-logo { height: 56px; margin-bottom: 14px; display: flex; align-items: center; }
.card-logo img { height: 56px; width: auto; }
@media (max-width: 720px) {
  .brand-logo { height: 50px; }
  .site-header .header-inner { min-height: 0; }
  .badge-strip img, .badge-row img { height: 76px; }
}
