/* =========================================================================
   CaliforniaQM.com — brand stylesheet
   Palette: deep navy (trust / authority) + orange (energy / call-to-action)
   ========================================================================= */

:root {
  /* Brand — blue */
  --navy-900: #081427;
  --navy-800: #0c1d38;
  --navy-700: #122a52;
  --navy-600: #1c3a6e;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;

  /* Brand — orange */
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;

  /* Neutrals */
  --ink: #0f1b2d;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* System */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 20, 39, .06), 0 1px 3px rgba(8, 20, 39, .08);
  --shadow-md: 0 10px 25px -8px rgba(8, 20, 39, .18), 0 4px 10px -4px rgba(8, 20, 39, .10);
  --shadow-lg: 0 28px 60px -22px rgba(8, 20, 39, .35);
  --maxw: 1140px;
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* -------------------------------------------------------------- Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-800); color: #dbe4f3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--slate { background: var(--slate-50); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--orange-400); }
.lead { font-size: 1.18rem; color: var(--slate-700); max-width: 60ch; }
.section--navy .lead { color: #b9c6dd; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -6px rgba(249,115,22,.6); }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }

/* -------------------------------------------------------------- Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__qm { color: var(--orange-600); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--slate-700); padding: 9px 14px; border-radius: 9px;
}
.nav__links a:hover { color: var(--navy-800); background: var(--slate-100); }
.nav__links a.is-active { color: var(--orange-600); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* -------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #eaf1fb;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(249,115,22,.20), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(37,99,235,.30), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange-400); }
.hero__lead { font-size: 1.22rem; color: #c4d2ea; max-width: 52ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: .9rem; color: #9fb2d2; }
.hero__trust span { display: flex; align-items: center; gap: 7px; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; }
.hero__card .checklist li { color: #dbe6f7; }
.hero__card .checklist .tick { background: rgba(249,115,22,.22); color: var(--orange-400); }
.hero__card .checklist a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.hero__card .checklist a:hover { color: var(--orange-400); text-decoration-color: var(--orange-400); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 8px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--orange-400); line-height: 1; }
.stat__label { font-size: .82rem; color: #aebfdb; margin-top: 6px; }

/* -------------------------------------------------------------- Trust bar */
.trustbar { background: var(--navy-900); color: #8ea3c6; padding: 22px 0; }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; font-family: var(--font-head); font-weight: 500; font-size: .9rem; letter-spacing: .02em; }
.trustbar__inner b { color: #cdd9ee; font-weight: 600; }

/* -------------------------------------------------------------- Cards / grids */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-700)); color: #fff; margin-bottom: 18px;
}
.card__icon--orange { background: linear-gradient(140deg, var(--orange-500), var(--orange-600)); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-700); margin-bottom: 0; font-size: .98rem; }

/* Value list with checks */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--slate-700); }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 7px; margin-top: 2px;
  background: rgba(249,115,22,.14); color: var(--orange-600); display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.section--navy .checklist li { color: #cdd9ee; }
.section--navy .checklist .tick { background: rgba(249,115,22,.22); color: var(--orange-400); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); aspect-ratio: 4/3;
  display: grid; place-items: center; color: #fff; padding: 30px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--orange-500), var(--orange-600)); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--slate-700); font-size: .95rem; margin-bottom: 0; }
.section--navy .step p { color: #c2d0e7; }

/* Pricing / add-on cards */
.tier {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tier--featured { border: 2px solid var(--orange-500); box-shadow: var(--shadow-md); position: relative; }
.tier__badge {
  position: absolute; top: -13px; left: 30px; background: var(--orange-500); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
}
.tier h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tier__price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy-700); margin: 10px 0 4px; }
.tier__price small { font-size: .82rem; color: var(--slate-500); font-weight: 500; }
.tier__desc { color: var(--slate-500); font-size: .95rem; margin-bottom: 20px; }
.tier .checklist { margin-bottom: 26px; }
.tier .btn { margin-top: auto; justify-content: center; }

/* Compare — placeholder QM vs. engaged QM */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.compare__col {
  border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; border: 1px solid var(--slate-200); background: #fff;
}
.compare__col--bad { background: #fdf6f4; border-color: #f3d4cb; }
.compare__col--good { border: 2px solid var(--orange-500); box-shadow: var(--shadow-md); }
.compare__tag {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}
.compare__tag--bad { color: #c0492b; }
.compare__tag--good { color: var(--orange-600); }
.compare__col h3 { font-size: 1.3rem; margin: 4px 0 18px; }
.compare__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.compare__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-700); font-size: .98rem; }
.compare__list .ic { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; margin-top: 2px; }
.compare__list .ic--x { background: #f6dbd3; color: #c0492b; }
.compare__list .ic--ok { background: rgba(249,115,22,.14); color: var(--orange-600); }

@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Quote / testimonial */
.quote {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); color: #e7eefb;
  border-radius: var(--radius-lg); padding: 48px; position: relative;
}
.quote__mark { font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--orange-400); opacity: .6; }
.quote p { font-size: 1.3rem; font-family: var(--font-head); font-weight: 500; color: #fff; }
.quote cite { color: var(--orange-400); font-style: normal; font-weight: 600; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(249,115,22,.25), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c4d2ea; }

/* -------------------------------------------------------------- Blog */
.post-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__band { height: 8px; background: linear-gradient(90deg, var(--orange-500), var(--blue-500)); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--slate-500); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font-head); font-weight: 500; }
.post-card h3 { margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--orange-600); }
.post-card p { color: var(--slate-700); font-size: .96rem; flex: 1; }
.post-card__more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--orange-600); margin-top: 6px; }
.tag { display: inline-block; background: var(--slate-100); color: var(--slate-700); font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; font-family: var(--font-head); letter-spacing: .04em; text-transform: uppercase; }

/* Article body */
.article { max-width: 760px; margin: 0 auto; }
.article__header { padding: 64px 0 30px; text-align: center; }
.article__header .meta { color: var(--slate-500); font-family: var(--font-head); font-size: .9rem; margin-top: 14px; }
.article__body { font-size: 1.08rem; color: #1f2d40; }
.article__body h2 { margin-top: 2em; }
.article__body h3 { margin-top: 1.6em; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li { margin-bottom: .5em; }
.article__body blockquote {
  margin: 1.6em 0; padding: 6px 24px; border-left: 4px solid var(--orange-500);
  color: var(--slate-700); font-style: italic; background: var(--slate-50);
}
.article__body a { text-decoration: underline; }
.callout {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-left: 4px solid var(--blue-500);
  border-radius: 10px; padding: 20px 24px; margin: 1.8em 0;
}
.callout strong { color: var(--navy-700); }

/* Download card — highlighted free-resource block */
.download-card {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, #fff7f0, #fdeede);
  border: 2px solid var(--orange-500); border-radius: 16px;
  padding: 22px 26px; margin: 2em 0;
  box-shadow: 0 14px 32px -14px rgba(234,88,12,.5);
}
.download-card__icon {
  flex: none; width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  box-shadow: 0 8px 18px -6px rgba(234,88,12,.65);
}
.download-card__body { flex: 1; min-width: 0; }
.download-card__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); }
.download-card h3 { margin: 3px 0 4px; font-size: 1.15rem; }
.download-card p { margin: 0; color: var(--slate-700); font-size: .95rem; }
.download-card .btn { flex: none; }
@media (max-width: 620px) {
  .download-card { flex-direction: column; align-items: flex-start; }
  .download-card .btn { width: 100%; justify-content: center; }
}

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--slate-500); padding: 18px 0 0; font-family: var(--font-head); }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--orange-600); }

/* -------------------------------------------------------------- Forms */
.form { display: grid; gap: 18px; max-width: 620px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 15px;
  border: 1px solid var(--slate-200); border-radius: 11px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.field textarea { min-height: 130px; resize: vertical; }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-900); color: #93a6c7; padding: 64px 0 30px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #93a6c7; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--orange-400); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.footer__brand .brand__qm { color: var(--orange-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #6f84a8; font-size: .85rem; }
.footer__disclaimer { max-width: 70ch; color: #6f84a8; font-size: .82rem; margin-top: 8px; }

/* -------------------------------------------------------------- Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--slate-500); }
.section-head { max-width: 64ch; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin: 0 auto; }
.divider { height: 1px; background: var(--slate-200); border: 0; margin: 0; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 920px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--slate-200); padding: 12px 18px; gap: 2px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 10px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2, .steps, .form__row { grid-template-columns: 1fr; }
  .quote, .cta-band, .section--navy .container > .split { padding: 32px; }
  .quote { padding: 32px; }
  .cta-band { padding: 36px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
