/* ============================================================
   Matthew E. Riggin, PLLC — site styles
   Brand: navy #003B6D + Tinos serif (refined from rigginlaw.com)
   Gold accent & paper background are proposed refinements — see brand-guide.md
   ============================================================ */

:root {
  /* Brand */
  --navy:       #003B6D; /* Primary — their existing brand navy */
  --brand-blue: #0F00A8; /* Logo blue — exact color of the firm logo mark */
  --navy-dk:    #002A4E; /* Deep navy — dark sections, footer */
  --navy-700:   #00335E;
  --gold:       #9C7C3C; /* Refined brass accent (proposed) */
  --gold-soft:  #B89455;
  --gold-ink:   #856933; /* Darker brass for gold text and text on gold: 4.5:1+ on white, cream and paper */
  --paper:     #F6F4EF; /* Warm light background (refinement) */
  --white:      #FFFFFF;

  /* Neutrals */
  --ink:        #1B2733; /* Body text */
  --slate:      #45525E; /* Secondary text */
  --muted:      #656F7A;
  --line:       #E2DED5; /* Warm hairline */
  --line-cool:  #DEE3E8;

  --font-serif: 'Tinos', 'Times New Roman', Georgia, serif;

  --radius:     6px;
  --radius-lg:  10px;
  --max-width:  1140px;
  --shadow:     0 14px 40px rgba(0, 42, 78, 0.10);
  --shadow-sm:  0 4px 14px rgba(0, 42, 78, 0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.18; color: var(--navy); }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}

.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head .eyebrow { display: block; margin-bottom: 10px; }
.section__head h2 { font-size: 40px; }
.section__head h2::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--gold); margin: 16px auto 0;
}
.section__head p { color: var(--slate); font-size: 19px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-serif); font-weight: 700; font-size: 17px;
  letter-spacing: 0.01em;
  min-height: 50px; padding: 0 28px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dk); text-decoration: none; }
.btn--gold { background: var(--gold-ink); color: #fff; }
.btn--gold:hover { background: #715A2B; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); text-decoration: none; }
.btn--lg { min-height: 56px; font-size: 18px; padding: 0 34px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dk); color: #D7E0EA; font-size: 14.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__left .dot { color: var(--gold-soft); }
.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: var(--gold-soft); text-decoration: none; }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line-cool); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; color: var(--brand-blue); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 20px; color: var(--navy); white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--gold); }
.brand__tag { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 700; font-size: 16.5px; white-space: nowrap; }
.nav a:hover { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 700; font-size: 20px; color: var(--navy); white-space: nowrap; }
.header__phone:hover { color: var(--gold-ink); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 46px; height: 46px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px auto; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,33,60,0.86), rgba(0,42,78,0.92)),
    url("../assets/img/hero-library.jpg") center/cover no-repeat;
  color: #fff;
}
.hero__inner { max-width: 760px; padding: 104px 0 110px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; font-size: 58px; line-height: 1.1; margin: 16px 0 20px; }
.hero__lead { font-size: 21px; color: #E5EBF1; max-width: 640px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__points { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero__points li { list-style: none; display: flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; font-size: 16.5px; }
.hero__points svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--gold-ink); color: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; text-align: center; }
.trust > .container > div { border-right: 1px solid rgba(255,255,255,0.25); }
.trust > .container > div:last-child { border-right: 0; }
.trust__num { font-weight: 700; font-size: 38px; line-height: 1; }
.trust__label { font-size: 14.5px; letter-spacing: 0.04em; margin-top: 6px; color: #FBF6EC; }

/* ---------- Practice area cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
a.card { display: block; color: var(--ink); }
a.card:hover { text-decoration: none; }
a.card .related__more { margin-top: 16px; }
.card__icon {
  width: 56px; height: 56px; border-radius: 10px;
  background: rgba(0,59,109,0.07); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 16.5px; }
.card--cta {
  background: var(--navy); border-color: var(--navy); border-top-color: var(--gold);
  color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
}
.card--cta h3 { color: #fff; }
.card--cta p { color: #CBD6E1; }
.card--cta .btn { margin-top: 6px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__media {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 440px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,42,78,0.10), rgba(0,42,78,0.34)),
    url("../assets/img/office-consult.jpg") center/cover no-repeat;
}
.about__body h2 { font-size: 36px; margin: 8px 0 16px; }
.about__body p { color: var(--slate); margin-bottom: 16px; }
.people { display: grid; gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 14px; }
.person__avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; letter-spacing: 0.03em;
  border: 2px solid var(--gold);
}
.person__name { font-weight: 700; font-size: 19px; color: var(--navy); }
.person__role { font-size: 15px; color: var(--muted); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; max-width: 960px; margin: 0 auto; }
.why__item { display: flex; gap: 16px; }
.why__item svg { width: 30px; height: 30px; color: var(--gold); flex: none; margin-top: 4px; }
.why__item h4 { font-size: 21px; margin-bottom: 4px; }
.why__item p { color: var(--slate); font-size: 16.5px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm);
}
.review__stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: 14px; }
.review__stars svg { width: 20px; height: 20px; }
.review p { font-size: 17px; color: var(--ink); font-style: italic; }
.review__name { margin-top: 16px; font-weight: 700; color: var(--navy); font-style: normal; }
.review { display: flex; flex-direction: column; }
.review p { flex: 1; }
.review__meta { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; color: var(--muted); }
.reviews__note { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Google rating summary */
.rating {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px;
  max-width: 720px; margin: 0 auto 36px; padding: 22px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rating__score { font-size: 52px; font-weight: 700; line-height: 1; color: var(--navy); }
.rating .review__stars { margin-bottom: 6px; }
.rating__label { color: var(--slate); font-size: 16px; }

/* Single review inside a practice-area page */
.quote {
  margin: 40px 0; padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.quote .review__stars { margin-bottom: 10px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 19px; font-style: italic; color: var(--ink); margin: 0; }
.quote figcaption { margin-top: 12px; font-weight: 700; color: var(--navy); }
.quote figcaption span { font-weight: 400; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(180deg, rgba(0,33,60,0.92), rgba(0,42,78,0.95)),
    url("../assets/img/cta-desk.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 86px 0;
}
.cta-band h2 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.cta-band p { font-size: 20px; margin-bottom: 28px; color: #DCE4EC; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: 36px; margin: 8px 0 12px; }
.contact__intro { color: var(--slate); margin-bottom: 26px; }
.contact__info ul { list-style: none; display: grid; gap: 20px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; color: var(--slate); }
.contact__info svg { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 3px; }
.contact__info strong { color: var(--navy); }
.contact__info a { color: var(--ink); font-weight: 700; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--font-serif); font-size: 17px;
  border: 1px solid #CFD6DC; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__error { color: #B0341D; font-size: 13.5px; margin-top: 5px; display: none; }
.field--invalid .field__error { display: block; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #B0341D; }
.form__success { display: none; background: rgba(0,59,109,0.08); color: var(--navy); border-radius: var(--radius); padding: 14px; font-weight: 700; margin-bottom: 16px; }
.form__success.is-visible { display: block; }
.form__note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 12px; font-style: italic; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dk); color: #B9C6D3; padding: 60px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__lockup { display: flex; align-items: center; gap: 14px; }
.footer__mark { width: 52px; height: 52px; color: #fff; flex: none; }
.footer__wordmark { font-size: 26px; font-weight: 700; color: #fff; }
.footer__wordmark span { color: var(--gold-soft); }
.footer__brand p { margin-top: 12px; max-width: 320px; color: #9FB0BF; font-size: 16px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer h4::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: 8px; }
.footer a { color: #B9C6D3; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; display: grid; gap: 9px; font-size: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; font-size: 13.5px; color: #8497A7; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__disclaimer { max-width: 560px; }

/* ---------- Attorney bio ---------- */
.person__name a { color: inherit; }
.bio-card { text-align: center; }
.bio-card__avatar {
  width: 112px; height: 112px; margin: 4px auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-size: 40px; font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold);
}
.bio-card__name { font-size: 22px; font-weight: 700; color: var(--navy); }
.bio-card__role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.bio-card__facts { list-style: none; text-align: left; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15.5px; color: var(--slate); }
.bio-card__facts strong { display: block; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Reviews page ---------- */
.reviews--masonry { display: block; columns: 3 300px; column-gap: 24px; }
.reviews--masonry .review { display: block; break-inside: avoid; margin-bottom: 24px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.post-card__date { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-ink); font-weight: 700; }
.post-card h2 { font-size: 25px; line-height: 1.25; margin: 8px 0 10px; }
.post-card h2 a { color: var(--navy); }
.post-card p { color: var(--slate); }
.post-card .related__more { display: inline-flex; margin-top: 14px; }
.page-hero--post h1 { font-size: 40px; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  margin-top: 30px; padding: 14px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-style: italic; color: var(--muted);
}
.prose--narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Contact map ---------- */
.map-band { position: relative; min-height: 420px; background: var(--paper); }
.map-band iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-band .container { position: relative; display: flex; align-items: center; min-height: 420px; pointer-events: none; }
.map-card { pointer-events: auto; background: #fff; border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: 0 12px 30px rgba(0,42,78,0.18); max-width: 320px; }
.map-card h3 { font-size: 21px; margin-bottom: 8px; }
.map-card p { color: var(--slate); margin-bottom: 16px; }

/* ---------- 404 ---------- */
.notfound { max-width: 620px; margin: 0 auto; text-align: center; }
.notfound h1 { font-size: 42px; margin: 10px 0 14px; }
.notfound p { color: var(--slate); }
.notfound .aside__links { text-align: left; max-width: 320px; margin: 22px auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .trust > .container > div:nth-child(2) { border-right: 0; }
  .about__media { min-height: 320px; }
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav, .header__phone { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    padding: 16px 24px; box-shadow: var(--shadow); border-top: 1px solid var(--line-cool);
  }
  .nav.is-open a { padding: 10px 0; width: 100%; }
  .nav.is-open a:hover { border-bottom: 0; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 18px; }
  .section { padding: 60px 0; }
  .section__head h2, .cta-band h2 { font-size: 31px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .map-band .container { align-items: flex-end; padding-bottom: 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 9.5px; letter-spacing: 0.1em; }
  /* Header CTA would push the lockup off-screen at this width — the topbar
     call link and the hero buttons carry the conversion here instead. */
  .header__cta .btn { display: none; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .hero__actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__mark { width: 42px; height: 42px; }
  .footer__wordmark { font-size: 21px; }
  .topbar__left { display: none; }
  .topbar .container { justify-content: center; }
  .topbar a { white-space: nowrap; }
}
/* ============================================================
   Practice-area pages (interior template)
   ============================================================ */

/* ---------- Nav dropdown ---------- */
.nav__item { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-serif); font-weight: 700; font-size: 16.5px; color: var(--ink);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav__trigger:hover { color: var(--navy); border-bottom-color: var(--gold); }
.nav__trigger svg { width: 14px; height: 14px; flex: none; transition: transform 180ms ease; }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }
.nav__menu {
  display: none; position: absolute; top: 100%; left: -18px; z-index: 60;
  min-width: 262px; background: #fff; border: 1px solid var(--line-cool);
  border-top: 3px solid var(--navy); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 10px; list-style: none;
}
.nav__item.is-open .nav__menu { display: block; }
.nav__menu a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.nav__menu a:hover { background: rgba(0,59,109,0.06); color: var(--navy); text-decoration: none; border-bottom: 0; }
.nav__menu li + li { margin-top: 1px; }
.nav__menu .nav__menu-all { border-top: 1px solid var(--line-cool); margin-top: 8px; padding-top: 8px; }
.nav__menu .nav__menu-all a { color: var(--navy); font-style: italic; }

/* ---------- Breadcrumb ---------- */
.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--navy); }
.crumbs li[aria-current] { color: var(--navy); font-weight: 700; }
.crumbs .sep { color: var(--muted); }

/* ---------- Interior hero ---------- */
.page-hero {
  background:
    linear-gradient(180deg, rgba(0,33,60,0.88), rgba(0,42,78,0.94)),
    url("../assets/img/hero-library.jpg") center/cover no-repeat;
  color: #fff;
}
.page-hero__inner { max-width: 780px; padding: 66px 0 70px; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: #fff; font-size: 46px; line-height: 1.12; margin: 14px 0 18px; }
.page-hero__lead { font-size: 20px; color: #E5EBF1; max-width: 660px; }
.page-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Article + sidebar layout ---------- */
.pagebody { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 60px; align-items: start; }

.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 30px; }
.prose p { color: var(--slate); }
.prose strong { color: var(--ink); }
.prose > ul:not(.checklist) { list-style: none; display: grid; gap: 12px; }
.prose > ul:not(.checklist) > li { position: relative; padding-left: 30px; color: var(--slate); }
.prose > ul:not(.checklist) > li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.prose h2 + p, .prose h3 + p { margin-top: 12px; }

/* Checklist — "what's included" */
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); font-size: 16.5px; }
.checklist svg { width: 21px; height: 21px; color: var(--gold); flex: none; margin-top: 4px; }
.checklist b { color: var(--navy); display: block; font-size: 17px; }

/* Numbered process — the order is real, not decorative */
.steps { list-style: none; display: grid; gap: 0; margin-top: 26px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding-bottom: 28px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 26px; top: 54px; bottom: 0;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 20px; margin: 13px 0 6px; }
.steps p { color: var(--slate); font-size: 16.5px; }

/* Callout */
.callout {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 28px;
}
.callout h3 { font-size: 19px; margin: 0 0 6px; }
.callout p { color: var(--slate); font-size: 16.5px; margin: 0; }

/* FAQ — native details/summary, no JS needed */
.faq { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 18.5px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--navy-dk); }
.faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.faq .faq__a { padding: 0 0 22px; color: var(--slate); }
.faq .faq__a > * + * { margin-top: 12px; }

/* ---------- Sidebar ---------- */
.aside { position: sticky; top: 104px; display: grid; gap: 20px; }
.aside__card {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 28px 26px; border-top: 3px solid var(--gold);
}
.aside__card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.aside__card p { color: #CBD6E1; font-size: 16px; margin-bottom: 18px; }
.aside__card .btn { width: 100%; justify-content: center; }
.aside__phone {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; color: #fff; font-weight: 700; font-size: 21px;
}
.aside__phone:hover { color: var(--gold-soft); text-decoration: none; }
.aside__phone svg { width: 19px; height: 19px; }
.aside__note { font-size: 13.5px; color: #9FB0BF; text-align: center; margin: 12px 0 0; font-style: italic; }

.aside__box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.aside__box h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 4px; }
.aside__box h3::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: 9px; }
.aside__links { list-style: none; display: grid; gap: 2px; margin-top: 14px; }
.aside__links a { display: block; padding: 9px 0; color: var(--ink); font-weight: 700; font-size: 16.5px; border-bottom: 1px solid var(--line); }
.aside__links li:last-child a { border-bottom: 0; }
.aside__links a:hover { color: var(--navy); text-decoration: none; padding-left: 6px; transition: padding-left 140ms ease; }
.aside__links a[aria-current] { color: var(--navy); }
.aside__links a[aria-current]::before { content: "▸ "; color: var(--gold); }

.aside__facts { list-style: none; display: grid; gap: 14px; margin-top: 16px; }
.aside__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--slate); }
.aside__facts svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.aside__facts strong { color: var(--navy); display: block; }

/* ---------- Related areas ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related__card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--navy); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.related__card h3 { font-size: 21px; margin-bottom: 6px; }
.related__card p { color: var(--slate); font-size: 16px; }
.related__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--navy); font-weight: 700; font-size: 16px; }
.related__more svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .pagebody { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero h1 { font-size: 36px; }
  .page-hero__lead { font-size: 18px; }
  .page-hero__inner { padding: 48px 0 52px; }
  .prose h2 { font-size: 27px; margin-top: 38px; }
  .checklist { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  /* dropdown flattens into the mobile menu */
  .nav.is-open .nav__item { width: 100%; padding-bottom: 0; margin-bottom: 0; }
  /* the trigger becomes a small group label above its links */
  .nav.is-open .nav__trigger {
    pointer-events: none; padding: 14px 0 2px; border: 0;
    font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink);
  }
  .nav.is-open .nav__trigger svg { display: none; }
  .nav.is-open .nav__menu {
    display: block; position: static; border: 0; box-shadow: none;
    border-radius: 0; padding: 0; min-width: 0;
    border-top: 1px solid var(--line-cool);
    margin-top: 6px; padding-top: 6px;
  }
  .nav.is-open .nav__menu a { padding: 10px 0 10px 14px; font-size: 16px; color: var(--slate); }
  .nav.is-open .nav__menu .nav__menu-all { border-top: 0; margin-top: 0; padding-top: 0; }
}
@media (max-width: 520px) {
  .steps li { grid-template-columns: 44px 1fr; gap: 16px; }
  .steps li::before { width: 44px; height: 44px; font-size: 15px; }
  .steps li:not(:last-child)::after { left: 21px; top: 44px; }
  .steps h3 { margin-top: 9px; }
}

/* ============================================================
   Print — keeps the sticky chrome from repeating and stops
   cards, steps and FAQ rows from splitting across a page.
   ============================================================ */
@media print {
  .topbar, .header { position: static; box-shadow: none; }
  .nav, .nav-toggle, .header__cta .btn { display: none; }
  .aside { position: static; }
  .section { padding: 44px 0; }
  .cta-band { padding: 54px 0; }
  .card, .related__card, .aside__card, .aside__box,
  .steps li, .faq details, .callout, .review, .quote, .rating, .why__item {
    break-inside: avoid;
  }
  h1, h2, h3 { break-after: avoid; }
  .faq details { open: open; }
  a[href^="#"]::after { content: ""; }
}
