/* =========================================================
   Quality One Corp — Design System
   Navy + Gold corporate palette, Fortune-500 grade
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1d3a;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-600: #1d3a6e;
  --navy-500: #284b91;
  --gold-600: #b08c3a;
  --gold-500: #c9a961;
  --gold-400: #d8be7d;
  --gold-100: #f5ecd2;
  --cream-100: #faf7f0;
  --cream-200: #f3ecdc;
  --slate-900: #0e1628;
  --slate-700: #1a2540;
  --slate-500: #4a5878;
  --slate-400: #6b7894;
  --slate-200: #d9deea;
  --slate-100: #eef1f7;
  --white: #ffffff;
  --success: #1a8754;
  --danger: #b32b2b;

  /* Type scale */
  --serif: "Playfair Display", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 29, 58, 0.06), 0 1px 3px rgba(10, 29, 58, 0.08);
  --shadow-md: 0 6px 18px rgba(10, 29, 58, 0.08), 0 2px 6px rgba(10, 29, 58, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 29, 58, 0.18);
  --transition: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-600); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 0.9rem;
}
.lede { font-size: 1.15rem; color: var(--slate-500); max-width: 62ch; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--cream { background: var(--cream-100); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.86); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-400); }
.section--navy a:hover { color: var(--white); }
.center { text-align: center; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn--primary:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--navy-900); }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 999px;
  transition: all var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-900); background: var(--slate-100); }
.nav__cta { margin-left: 10px; }
.nav__phone {
  font-weight: 600;
  color: var(--navy-800);
  margin-right: 6px;
  font-size: 0.95rem;
}
.nav__phone:hover { color: var(--gold-600); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-900);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-100); flex-direction: column; align-items: stretch; padding: 14px 24px 22px; gap: 0; box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav__cta { margin-left: 0; margin-top: 8px; align-self: flex-start; }
  .nav__phone { padding: 10px 16px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0 clamp(96px, 12vw, 160px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(201,169,97,0.18), transparent 38%),
    radial-gradient(circle at 8% 90%, rgba(40,75,145,0.55), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero__title { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin-bottom: 0.7em; }
.hero__title em { font-style: normal; color: var(--gold-400); }
.hero__sub { font-size: 1.18rem; color: rgba(255,255,255,0.82); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__trust { margin-top: 36px; font-size: 0.85rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 360px; margin: 0 auto; }
}

/* ---------- Trusted-by strip ---------- */
.trusted {
  padding: 36px 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
}
.trusted__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 18px;
}
.trusted__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 56px;
  opacity: 0.78;
}
.trusted__row svg { color: var(--slate-500); }

/* ---------- Cards / pillars ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-200); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center;
  color: var(--gold-400);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-500); margin-bottom: 0; }

.card--alt { background: var(--cream-100); border-color: var(--cream-200); }
.card--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.86); }
.card--ghost h3 { color: var(--white); }
.card--ghost p { color: rgba(255,255,255,0.72); }
.card--ghost .card__icon { background: rgba(255,255,255,0.06); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding: 36px 0;
  text-align: center;
}
.stat-strip .stat__num { font-family: var(--serif); font-size: 2.4rem; color: var(--navy-900); display: block; }
.stat-strip .stat__label { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--slate-500); text-transform: uppercase; font-weight: 600; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; } }

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin: 0 auto; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- How-it-works steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  border: 1px solid var(--slate-100);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-600);
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate-500); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Vertical cards (with image-style icon) ---------- */
.vertical-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.vertical-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vertical-card__top {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  position: relative;
  display: grid; place-items: center;
  color: var(--gold-400);
}
.vertical-card__top svg { width: 64px; height: 64px; }
.vertical-card__top::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(201,169,97,0.2), transparent 50%);
}
.vertical-card__body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.vertical-card__body h3 { margin: 0 0 8px; }
.vertical-card__body p { color: var(--slate-500); flex: 1; }
.vertical-card__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 8px;
}

/* ---------- Pull-quote ---------- */
.pullquote {
  background: var(--cream-100);
  border-left: 4px solid var(--gold-500);
  padding: 32px 36px;
  border-radius: var(--radius-md);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--navy-900);
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-style: normal;
  color: var(--slate-500);
  margin-top: 14px;
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 80% 50%, rgba(201,169,97,0.22), transparent 50%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: clamp(56px, 8vw, 88px) 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 60ch; margin: 0 auto 24px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-700);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(40,75,145,0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 4px; }
.field--check label { font-size: 0.84rem; font-weight: 400; color: var(--slate-500); line-height: 1.5; }
.form__actions { display: flex; gap: 12px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-family: var(--sans); font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 10px; }
.footer__brand .brand { color: var(--white); margin-bottom: 16px; }
.footer__brand p { font-size: 0.95rem; max-width: 38ch; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 12px;
}
.footer__legal a { margin-left: 18px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  background:
    radial-gradient(circle at 90% 10%, rgba(201,169,97,0.15), transparent 40%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: clamp(72px, 10vw, 120px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header .lede { color: rgba(255,255,255,0.82); margin: 0 auto; max-width: 640px; }
.page-header .eyebrow { color: var(--gold-400); }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Lists with check icons ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--slate-100);
  font-size: 0.98rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08c3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Tables ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td { padding: 16px 18px; text-align: left; }
.compare th { background: var(--navy-900); color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tr:not(:last-child) td { border-bottom: 1px solid var(--slate-100); }
.compare tr:nth-child(even) td { background: var(--cream-100); }

/* ---------- Tag chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  background: var(--cream-200);
  color: var(--navy-800);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--slate-100); border: 0; margin: 0; }
.spacer-md { height: 32px; }
.spacer-lg { height: 56px; }

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--slate-500); }
.serif { font-family: var(--serif); }
.lh-tight { line-height: 1.25; }
.mb-0 { margin-bottom: 0 !important; }
.mt-md { margin-top: 24px; }

/* Skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 6px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: var(--white); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
