/* ==========================================================================
   Colon-Cancer-Law.com — modern stylesheet
   Law Office of Joseph A. Hernandez
   Single stylesheet for every page. No external font/CDN dependencies,
   so the whole site renders identically offline (file://) and online.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #0d2033;
  --navy-800: #102b45;
  --navy-700: #13385c;
  --navy-600: #1b4c78;
  --navy-500: #276b9f;

  --teal-600: #0b6e7f;
  --teal-500: #0f8091;
  --teal-100: #e2f1f3;

  --gold-600: #a9772a;
  --gold-500: #c8963e;
  --gold-100: #fbf3e4;

  --ink: #1f2937;
  --ink-soft: #465569;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #f0f4f9;

  --ok-bg: #eef7f0;
  --ok-line: #b6ddc1;
  --warn-bg: #fdf6e7;
  --warn-line: #e8d09a;
  --info-bg: #eef4fb;
  --info-line: #bcd4ec;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(13, 32, 51, .06);
  --shadow: 0 2px 6px rgba(13, 32, 51, .07), 0 8px 24px rgba(13, 32, 51, .05);
  --shadow-lg: 0 4px 12px rgba(13, 32, 51, .09), 0 18px 44px rgba(13, 32, 51, .09);

  --wrap: 1140px;
  --wrap-narrow: 780px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;          /* 16px */
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  color: var(--navy-800);
  line-height: 1.25;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.8rem); margin-top: var(--sp-6); }
h3 { font-size: clamp(1.12rem, .98rem + .6vw, 1.32rem); margin-top: var(--sp-5); }
h4 { font-size: 1.05rem; margin-top: var(--sp-4); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

strong, b { font-weight: 700; color: var(--navy-800); }
em, i { font-style: italic; }

code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}

/* Accessible focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Screen-reader-only helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-700);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--sp-2);
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   4. Header / brand
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  width: 190px;
  max-width: 46vw;
  height: auto;
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
}
.brand__tag {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.brand-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.brand-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.brand-phone__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.brand-phone__num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-700);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--navy-700);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-600); }
.nav-toggle__bars {
  display: inline-block;
  width: 16px; height: 12px;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
}

.site-nav {
  background: var(--navy-700);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.site-nav__item { position: relative; }
.site-nav__item > a,
.site-nav__item > span {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .85rem .85rem;
  color: #eaf2f8;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav__item > a:hover,
.site-nav__item > a:focus-visible,
.site-nav__item.is-current > a {
  background: var(--navy-600);
  color: #fff;
  border-bottom-color: var(--gold-500);
}
.site-nav__item > span { cursor: default; color: #cfe0ee; }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .8;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: var(--sp-2) 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 258px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  z-index: 100;
}
.site-nav__item:hover > .nav-sub,
.site-nav__item:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: .55rem 1rem;
  color: var(--navy-700);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}
.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: var(--surface-alt);
  color: var(--teal-600);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--gold-500); color: #2a1e05; }
.btn--primary:hover { background: var(--gold-600); color: #fff; }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-700);
}
.btn--ghost:hover { border-color: var(--navy-600); background: var(--surface-alt); }
.btn--light { background: #fff; color: var(--navy-700); }
.btn--light:hover { background: var(--gold-100); color: var(--navy-800); }
.btn--lg { padding: .9rem 1.7rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(13,32,51,.94) 0%, rgba(19,56,92,.92) 52%, rgba(11,110,127,.86) 100%),
    var(--navy-800);
  color: #eef4f9;
  padding-block: var(--sp-8);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: var(--sp-7);
  align-items: start;
}
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero p { color: #d5e3ee; font-size: 1.08rem; }
.hero .eyebrow { color: var(--gold-500); }

.hero__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(2px);
}
.hero__card h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: var(--sp-3);
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: var(--sp-3);
  color: #e6eef5;
  font-size: .95rem;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .62rem; height: .34rem;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
}
.card h3 a { text-decoration: none; color: var(--navy-700); }
.card h3 a:hover { text-decoration: underline; color: var(--teal-600); }
.card p { font-size: .94rem; color: var(--ink-soft); }
.card__more {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-600);
}
.card__more:hover { text-decoration: underline; }

.card--accent { border-top: 4px solid var(--teal-500); }
.card--gold { border-top: 4px solid var(--gold-500); }
.card--navy { border-top: 4px solid var(--navy-700); }

/* Stat / fact tiles */
.facts { display: grid; gap: var(--sp-4); grid-template-columns: repeat(4, minmax(0,1fr)); }
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
}
.fact__num {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.fact__label { font-size: .88rem; color: var(--muted); }

/* Trust strip */
.trust {
  background: var(--navy-800);
  color: #d8e5ef;
  padding-block: var(--sp-5);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--sp-5);
}
.trust__item { font-size: .9rem; }
.trust__item strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  margin-bottom: .15rem;
}

/* --------------------------------------------------------------------------
   9. Page shell / breadcrumbs / article
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6) var(--sp-5);
}
.breadcrumbs {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-600); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

.page-head h1 { margin-bottom: var(--sp-3); }
.page-head .lead { max-width: 68ch; margin-bottom: 0; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-7);
  align-items: start;
  padding-block: var(--sp-7);
}

.prose { max-width: 74ch; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); margin-block: var(--sp-4); }

.figure-right {
  float: right;
  width: 250px;
  max-width: 42%;
  margin: 0 0 var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
.figure-right img { width: 100%; margin: 0; border-radius: 0; }
.figure-right figcaption {
  font-size: .78rem;
  color: var(--muted);
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--line);
}
@media (max-width: 620px) {
  .figure-right { float: none; width: 100%; max-width: 100%; margin: 0 0 var(--sp-4); }
}

/* Sidebar */
.sidebar { display: grid; gap: var(--sp-5); position: sticky; top: var(--sp-4); }
@media (max-width: 980px) { .sidebar { position: static; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.panel h2, .panel h3 { margin-top: 0; font-size: 1.05rem; }
.panel--cta {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border-color: var(--navy-800);
  color: #dbe7f1;
}
.panel--cta h2, .panel--cta h3 { color: #fff; }
.panel--cta p { color: #cddce9; font-size: .93rem; }
.panel--cta .btn { width: 100%; margin-top: var(--sp-3); }

.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { margin-bottom: var(--sp-2); font-size: .93rem; }
.panel-list a { text-decoration: none; font-weight: 600; }
.panel-list a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   10. Callouts
   -------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--info-line);
  border-left: 4px solid var(--navy-500);
  background: var(--info-bg);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-5);
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--gold-500); }
.callout--ok { background: var(--ok-bg); border-color: var(--ok-line); border-left-color: #3f8f57; }
.callout--legal {
  background: var(--surface-alt);
  border-color: var(--line-strong);
  border-left-color: var(--muted);
  font-size: .88rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-block: var(--sp-5); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--surface);
}
table.data caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--navy-800);
  padding-bottom: var(--sp-2);
}
table.data th, table.data td {
  border: 1px solid var(--line);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: var(--navy-700);
  color: #fff;
  font-weight: 600;
  border-color: var(--navy-600);
}
table.data tbody tr:nth-child(even) { background: var(--surface-alt); }

/* --------------------------------------------------------------------------
   12. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--sp-3); margin: 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.4rem;
  font-weight: 700;
  color: var(--teal-600);
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq-item[open] > summary::before { content: "\2013"; }
.faq-item > summary:hover { background: var(--surface-alt); }
.faq-item__body {
  padding: 0 var(--sp-5) var(--sp-5) calc(var(--sp-5) + 1.4rem + var(--sp-3));
  color: var(--ink-soft);
  font-size: .95rem;
}
.faq-item__body p:last-child { margin-bottom: 0; }

/* Question index list */
.q-index { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.q-index li { margin: 0; }
.q-index a {
  display: block;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-700);
}
.q-index a:hover { background: var(--surface-alt); border-left-color: var(--gold-500); }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-700), var(--teal-600));
  color: #eaf3f8;
  padding-block: var(--sp-7);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d6e6ef; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c9d8;
  padding-block: var(--sp-7) var(--sp-5);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.site-footer p { color: #a9bccd; }
.site-footer a { color: #cfdcea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--sp-2); }

.footer-contact { font-style: normal; line-height: 1.8; }
.footer-contact a { color: #fff; font-weight: 600; }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
  color: #93a8bb;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.footer-disclaimer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8rem;
  color: #8fa5b8;
  line-height: 1.65;
}

/* Back to top */
.to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-700);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--teal-600); }

/* --------------------------------------------------------------------------
   15. Prose extras
   -------------------------------------------------------------------------- */
.prose .figure-right { margin-top: var(--sp-2); }
.prose h2 + p, .prose h3 + p { margin-top: 0; }

.glossary { margin: 0; }
.glossary dt {
  font-weight: 700;
  color: var(--navy-800);
  margin-top: var(--sp-4);
}
.glossary dd {
  margin: var(--sp-1) 0 var(--sp-3);
  color: var(--ink-soft);
  font-size: .95rem;
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  margin-bottom: var(--sp-5);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  border: 1px solid var(--teal-500);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}
.steps > li > h3 { margin-top: 0; }

.related {
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding-block: var(--sp-6); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand-bar { padding-block: var(--sp-3); }
  .brand__logo { width: 150px; }

  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; padding-block: var(--sp-2); }
  .site-nav__item > a,
  .site-nav__item > span { padding: .7rem .35rem; border-bottom: 1px solid rgba(255,255,255,.12); white-space: normal; }
  .site-nav__item > a:hover, .site-nav__item.is-current > a { border-bottom-color: rgba(255,255,255,.12); }

  /* Sub-menus always visible & indented on small screens (no hover needed) */
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(255,255,255,.06);
    padding: var(--sp-1) 0 var(--sp-2) var(--sp-4);
    min-width: 0;
  }
  .nav-sub a { color: #d8e6f1; padding: .45rem .5rem; }
  .nav-sub a:hover, .nav-sub a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
  .caret { display: none; }
}

@media (max-width: 720px) {
  .brand-cta .btn { display: none; }
  .brand-cta .btn--primary { display: inline-flex; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .trust__grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-6); }
  body { font-size: .98rem; }
}

/* --------------------------------------------------------------------------
   17. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header .site-nav,
  .nav-toggle,
  .to-top,
  .cta-band,
  .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap, .layout { max-width: none; display: block; padding: 0; }
  .sidebar { display: none; }
  .site-footer { background: #fff; color: #000; }
  .site-footer h2, .site-footer h3, .site-footer a { color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .panel, .faq-item { box-shadow: none; border: 1px solid #999; }
}
