:root {
  --navy: #10233f;
  --navy-deep: #07162b;
  --gold: #c79a37;
  --gold-text: #5f4314;
  --gold-menu: #dec46f;
  --gold-soft: #f2e4bf;
  --ink: #172033;
  --muted: #667085;
  --line: #e7e2d8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 35, 63, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--gold-menu);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 43, 0.99) 0%, rgba(16, 35, 63, 0.96) 48%, rgba(16, 35, 63, 0.88) 100%),
    url("assets/qmsc-banner.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.hero-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  padding: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-text);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.quote-band .eyebrow {
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

.hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  margin: 26px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: var(--navy-deep);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.button.light {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  border-bottom: 5px solid var(--gold);
}

.page-hero-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 70px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.section {
  padding: 76px 0;
}

.section.white {
  background: var(--white);
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.statement {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.2;
  margin: 0;
}

.intro {
  font-size: 1.14rem;
  color: #344054;
}

.focus-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile,
.service-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 35, 63, 0.06);
}

.tile {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--navy);
  font-weight: 800;
}

.service-card {
  padding: 24px;
}

.service-card h3,
.contact-panel h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.service-card p {
  margin: 0;
  color: #475467;
}

.quote-band {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 5px solid var(--gold);
  border-bottom: 5px solid var(--gold);
}

.quote-band .container {
  padding: 64px 0;
}

.quote-band p {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1.22;
}

.side-panel {
  position: sticky;
  top: 110px;
  padding: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-panel h2,
.side-panel h3 {
  color: var(--white);
  margin-top: 0;
}

.side-panel p,
.side-panel li {
  color: rgba(255, 255, 255, 0.84);
}

.side-panel img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
}

.check-list,
.plain-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.founder-placeholder {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.founder-placeholder img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  padding: 18px;
}

.founder-photo-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.founder-note {
  padding: 18px 20px;
  color: #475467;
  font-size: 0.95rem;
  margin: 0;
}

.capability-box {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.contact-panel {
  padding: 26px;
}

.contact-panel p {
  margin: 8px 0;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 26px;
}

.footer-grid {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 62px;
  height: 62px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 5px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.1rem;
}

.copyright {
  width: min(1160px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    border-radius: var(--radius);
  }

  .split,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .narrow,
  .page-hero-inner,
  .hero-content,
  .footer-grid,
  .copyright {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 66px;
  }

  .hero-mark {
    width: 76px;
    height: 76px;
  }

  .section {
    padding: 56px 0;
  }

  .page-hero-inner {
    padding: 56px 0;
  }

  .focus-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }
}
