:root {
  --navy: #002347;
  --navy-2: #003f7d;
  --orange: #ff5005;
  --ink: #0f0a1a;
  --text: #1b122f;
  --muted: #5b5172;
  --surface: #f0f5fa;
  --panel: #ffffff;
  --line: #dedae6;
  --maxw: 1180px;
  --radius: 10px;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --topbar-h: 2.85rem;
  --header-h: 4.75rem;
}

/* Self-hosted fonts (matches live Impreza: Montserrat + Open Sans) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Montserrat-400.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/Montserrat-600.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Montserrat-700.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/OpenSans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/OpenSans-600.ttf") format("truetype");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body, 1rem);
  font-weight: var(--weight-body, 400);
  color: var(--text);
  background: var(--panel);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-weight: var(--weight-heading, 600); }
h1, h2, h3, h4, .nav > li > a, .topbar__btn { font-family: var(--font-heading); }
a { color: var(--color-link, var(--navy-2)); }
a:hover { color: var(--color-link-hover, var(--orange)); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-block; font-weight: var(--weight-btn, 500); text-decoration: none;
  padding: .65rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--btn-primary-bg, var(--orange)); color: #fff; }
.btn--primary:hover { background: var(--btn-primary-hover, var(--orange-hover, #e64604)); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
/* outline button for light backgrounds */
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--sm { padding: .42rem .95rem; font-size: .9rem; }
.btn:focus-visible { outline: 3px solid rgba(0,63,125,.45); outline-offset: 2px; }

/* ---- site chrome (topbar + header) ---- */
.site-chrome { position: relative; z-index: 50; }

/* orange utility bar — matches live site */
.topbar { background: var(--topbar-bg, var(--orange)); color: #fff; font-size: .95rem; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  min-height: var(--topbar-h);
}
.topbar__phone { color: #fff; font-weight: var(--weight-topbar-phone, 600); text-decoration: none; font-family: var(--font-heading); font-size: 1rem; }
.topbar__phone:hover { color: #fff; text-decoration: underline; }
.topbar__actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.topbar__btn {
  display: inline-block; padding: .45rem 1rem; border-radius: .3rem;
  background: var(--topbar-btn-bg, var(--navy)); color: #fff !important; font-weight: var(--weight-topbar-btn, 500); font-size: .88rem;
  text-decoration: none; white-space: nowrap; transition: background .15s;
}
.topbar__btn:hover { background: var(--topbar-btn-hover, var(--navy-2)); color: #fff; }

/* header — solid on auth pages, transparent gradient overlay on hero pages */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .65rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.site-brand { flex: 0 0 auto; }
.site-brand__logo { height: auto; display: block; }
.site-brand__logo--light { display: none; width: 319px; max-width: 42vw; height: 40px; object-fit: contain; object-position: left center; }
.site-brand__logo--dark { display: block; width: min(280px, 38vw); height: auto; }
.site-nav {
  flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center;
  min-width: 0;
}

/* hero pages: chrome overlays the hero photo (live Impreza transparent header) */
body.has-hero .site-chrome {
  position: absolute; top: 0; left: 0; right: 0;
}
body.has-hero .site-header {
  background: linear-gradient(180deg, rgba(0,35,71,.96) 0%, rgba(0,35,71,.72) 55%, transparent 100%);
  border-bottom: 0;
}
body.has-hero .site-brand__logo--light { display: block; }
body.has-hero .site-brand__logo--dark { display: none; }

/* auth / form pages keep solid white bar + dark logo */
body.auth-page .site-chrome { position: relative; }
body.auth-page .site-header { background: #fff; border-bottom: 1px solid var(--line); }
body.auth-page .site-brand__logo--light { display: none; }
body.auth-page .site-brand__logo--dark { display: block; }

/* primary nav (list + dropdowns) */
.nav-toggle { position: absolute; left: -9999px; }
.nav-burger { display: none; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s;
}
body.has-hero .nav-burger span, body.has-hero .nav-burger span::before, body.has-hero .nav-burger span::after { background: #fff; }
.nav-burger span { position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

.nav { list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: .05rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; color: var(--nav-color, var(--navy)); text-decoration: none; font-weight: var(--weight-nav, 500);
  font-size: var(--size-nav, 1.05rem);
  padding: .5rem .85rem; border-radius: 0; border-bottom: 0; letter-spacing: .01em;
}
.nav > li:last-child > a { padding-right: 0; }
.nav > li > a:hover, .nav > li:focus-within > a { color: var(--nav-hover, var(--orange)); background: transparent; }
body.has-hero .nav > li > a { color: var(--nav-hero-color, #fff); }
body.has-hero .nav > li > a:hover, body.has-hero .nav > li:focus-within > a { color: var(--nav-hover, var(--orange)); background: transparent; }
.nav > li.nav-active > a { color: var(--nav-active, var(--orange)); }
body.has-hero .nav > li.nav-active > a { color: var(--nav-active, var(--orange)); }
.has-sub > a::after { content: " \25be"; font-size: .65em; opacity: .75; margin-left: .15em; }
.subnav {
  list-style: none; margin: 0; padding: .4rem; position: absolute; top: calc(100% + 2px); left: 0;
  min-width: 14rem; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,35,71,.14); display: grid; gap: .1rem; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .14s, transform .14s;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: .5rem .7rem; border-radius: 8px; border: 0; color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: var(--weight-subnav, 400); }
.subnav a:hover { background: var(--surface); color: var(--nav-hover, var(--orange)); }

/* ---- hero (home + interior page heroes with photo backgrounds) ---- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  display: flex; align-items: center;
}
.hero__bg, .page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: center 10% / cover no-repeat;
  transform: scale(1.01);
}
.hero__overlay, .page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,35,71,.82) 0%, rgba(0,35,71,.48) 42%, rgba(0,35,71,.12) 100%);
}
.hero {
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 2rem);
  min-height: clamp(32rem, 58vw, 44rem);
}
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 1.75rem);
  min-height: clamp(30rem, 54vw, 42rem);
}
.hero__inner, .page-hero__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__inner--split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.hero__media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.hero__accent {
  position: absolute; right: -1%; bottom: 0; z-index: 1;
  width: min(40%, 500px); opacity: .28; pointer-events: none;
}
.hero__eyebrow { color: var(--hero-eyebrow, var(--orange)); font-weight: var(--weight-hero-eyebrow, 600); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: var(--size-hero-h1, clamp(2rem, 4vw, 3.2rem)); margin: .5rem 0 1rem; line-height: 1.1; font-weight: var(--weight-hero-h1, 600); color: #fff; }
.hero p { font-size: 1.15rem; max-width: 40rem; color: var(--hero-lead, #d7e4f5); }
.hero__actions { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.page-hero__crumbs { font-size: .82rem; color: rgba(255,255,255,.72); margin: 0 0 .65rem; font-family: var(--font-body); }
.page-hero__crumbs a { color: rgba(255,255,255,.88); text-decoration: none; }
.page-hero__crumbs a:hover { color: var(--nav-hover, var(--orange)); }
.page-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 3rem); margin: 0 0 .55rem; line-height: 1.08;
  font-weight: var(--weight-heading, 600); text-transform: uppercase; letter-spacing: .02em;
}
.page-hero p { color: #e8f0fa; max-width: 46rem; margin: 0; font-size: 1.05rem; font-weight: 400; }

/* ---- sections ---- */
.section { padding: 4rem 1.25rem; }
.section--surface { background: var(--surface); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section h2 { font-family: var(--font-heading); font-size: var(--size-section-h2, clamp(1.6rem, 3vw, 2.3rem)); font-weight: var(--weight-heading, 600); color: var(--heading-color, var(--ink)); margin: 0 0 .4rem; }
.section__lead { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin: 0 0 .4rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---- forms (shared system) ---- */
input, select, textarea, button { font: inherit; }
.form { margin: 0; }
.field { display: block; margin: 0 0 1.15rem; }
.field__label { display: block; font-weight: 600; color: var(--navy); margin: 0 0 .4rem; font-size: .95rem; }
.field__hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.input,
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="tel"], .form input[type="number"], .form input[type="search"],
.form input[type="date"], .form input[type="time"], .form select, .form textarea {
  display: block; width: 100%; padding: .7rem .85rem; font-size: 1rem; line-height: 1.4;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.input::placeholder, .form input::placeholder, .form textarea::placeholder { color: #9b93ad; }
.input:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(0,63,125,.15);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }

/* ---- auth card (staff sign in / set password) ---- */
.auth { background: var(--surface); display: flex; justify-content: center; align-items: flex-start; padding: clamp(2rem, 6vw, 4.5rem) 1.25rem; min-height: 60vh; }
.auth-card {
  background: var(--panel); width: 100%; max-width: 27rem;
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,35,71,.10); padding: clamp(1.5rem, 4vw, 2.4rem);
}
.auth-card h2 { margin: 0 0 .35rem; color: var(--ink); font-size: 1.6rem; }
.auth-card__lead { color: var(--muted); margin: 0 0 1.5rem; font-size: .95rem; }
.auth-card__alt { margin: 1rem 0 0; }
.auth-card__note { color: var(--muted); font-size: .85rem; margin: 1.25rem 0 0; }
.auth-card__note code { background: var(--surface); padding: .1rem .35rem; border-radius: 5px; }

/* admin hub (app/manage.html) */
.manage-hub { max-width: 52rem; }
.manage-hub__role { text-transform: capitalize; }
.manage-hub__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  width: 100%;
  min-height: 25rem;
}
.manage-hub__btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
a.manage-hub__btn:hover {
  border-color: var(--navy-2);
  box-shadow: 0 8px 24px rgba(0, 35, 71, 0.08);
}
.manage-hub__btn-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.manage-hub__btn-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.manage-hub__btn--soon {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--surface);
}
.manage-hub__btn--soon .manage-hub__btn-title { color: var(--muted); }

/* admin data grids (app/manage-users.html) */
body.admin-page .auth { padding-top: 1.5rem; padding-bottom: 3rem; }
body.admin-page .auth-card.manage-hub { max-width: none; width: 100%; }
.admin-surface { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem 3rem; }
.admin-subnav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  margin-bottom: 1.25rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line);
}
.admin-hub-link,
.admin-subnav__back { font-weight: 600; color: var(--navy-2); text-decoration: none; }
.admin-hub-link:hover,
.admin-subnav__back:hover { color: var(--orange); }
.admin-subnav__title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); }
.admin-flash { padding: .7rem 1rem; border-radius: 10px; font-weight: 600; margin-bottom: 1rem; }
.admin-flash--ok { background: rgba(0,63,125,.08); color: var(--navy); border: 1px solid rgba(0,63,125,.2); }
.admin-flash--err { background: rgba(155,44,44,.1); color: #7a2222; border: 1px solid rgba(155,44,44,.3); }
.admin-section { margin-bottom: 2.5rem; }
.admin-section__head h2 { margin: 0 0 .35rem; font-size: 1.35rem; color: var(--ink); }
.admin-section__lead { margin: 0; color: var(--muted); font-size: .92rem; max-width: 52rem; }
.admin-section__sub { margin: 1.5rem 0 .75rem; font-size: 1.05rem; color: var(--ink); font-family: var(--font-heading); }
.theme-weight-select { width: 100%; font: inherit; padding: .5rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-table-wrap--grid { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-table--grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table--grid th,
.admin-table--grid td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table--grid th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--surface); white-space: nowrap;
}
.admin-table--grid tr.grid-row--dirty { background: rgba(255,80,5,.06); }
.grid-inp {
  width: 100%; min-width: 4.5rem; font: inherit; font-size: .86rem;
  padding: .35rem .45rem; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.grid-inp:focus { outline: 2px solid rgba(255,80,5,.35); border-color: var(--orange); }
.grid-inp--num { max-width: 4.5rem; }
.grid-inp--role { min-width: 11rem; }
.admin-meta { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.grid-readonly { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.grid-id { font-size: .78rem; }
.admin-table__actions { white-space: nowrap; }
.admin-table__actions .admin-inline-form { display: inline-block; margin-left: .2rem; vertical-align: middle; }
.admin-add-panel { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }
.admin-add-panel summary { font-weight: 600; cursor: pointer; margin-bottom: .75rem; }
.admin-form--inline { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.admin-form--settings { max-width: 42rem; }
.admin-form--settings .field-grid { margin: 0; }
.admin-form--settings .field { margin-bottom: 0; }
.admin-form--settings .field--wide { grid-column: 1 / -1; }
.admin-form__actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  margin-top: 1.25rem; padding-top: 0.25rem;
}
.admin-page .btn--outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.admin-page .btn--outline:hover { background: var(--surface); border-color: var(--navy-2); color: var(--navy); }
.admin-form--inline .admin-field { flex: 1 1 10rem; margin: 0; }
.admin-field--wide { flex: 1 1 100%; }
.admin-field--grow { flex: 1 1 16rem; }
.admin-form--import { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: .5rem; }
.admin-import-panel { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-import-panel__hint { margin: .5rem 0 0; font-size: .86rem; color: var(--muted); }
.admin-import-progress { margin: .75rem 0 0; font-weight: 600; color: var(--navy-2); }
.admin-table--customers .grid-inp--name { min-width: 10rem; }
.admin-table--customers .grid-inp--st { max-width: 3rem; }
tr.grid-row--focus { background: rgba(0,63,125,.08); outline: 2px solid rgba(0,63,125,.25); }
.admin-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.u-hidden { display: none !important; }
.btn--danger { background: #9b2c2c; color: #fff; border-color: transparent; }
.btn--danger:hover { background: #7a2222; color: #fff; }
.site-footer a.admin-settings-link,
.app-bar__actions a.admin-settings-link {
  font-weight: 600; text-decoration: none;
}
.site-footer a.admin-settings-link { color: rgba(255,255,255,.92); }
.site-footer a.admin-settings-link:hover { color: #fff; text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8rem; margin: 1.4rem 0 1rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alert { padding: .7rem .9rem; border-radius: var(--radius); font-weight: 600; margin: 0 0 1.1rem; font-size: .92rem; }
.auth-alert--error { background: #fdecea; color: #b00020; border: 1px solid #f5c6c0; }
.auth-alert--ok { background: #e8f3ff; color: var(--navy); border: 1px solid #bcdcff; }

/* ---- footer ---- */
.site-footer { background: var(--footer-bg, var(--navy)); color: var(--footer-text, #c7d6ec); margin-top: 0; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem;
}
.site-footer__logo { width: 220px; margin-bottom: 1rem; }
.site-footer__lead { color: var(--footer-text, #aebfd8); opacity: 0.92; }
.site-footer__h { color: var(--footer-heading, #fff); font-size: 1rem; margin: 0 0 .75rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin: .35rem 0; }
.site-footer__col a { color: var(--footer-link, #c7d6ec); text-decoration: none; }
.site-footer__col a:hover { color: var(--footer-link-hover, var(--orange)); }
.site-footer__phone { color: var(--footer-phone, #fff); font-size: 1.5rem; font-weight: var(--weight-footer-phone, 600); text-decoration: none; }
.site-footer__phone:hover { color: var(--footer-phone-hover, var(--orange)); }
.site-footer__note { color: #93a7c6; font-size: .9rem; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bar p { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem; font-size: .82rem; color: #8ea3c4; }

/* ---- interior page hero (uses shared .page-hero rules above) ---- */


/* ---- prose (article body) ---- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2.2rem; }
.prose h3 { color: var(--navy); margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

/* ---- checklist (orange ticks) ---- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--text); }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  width: 1.3rem; height: 1.3rem; background: var(--orange); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}

/* ---- split (text + media) ---- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,35,71,.16); }

/* ---- CTA band ---- */
.cta-band { background: var(--orange); color: #fff; }
.cta-band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: .35rem 0 0; color: #fff5ef; }
.cta-band .btn--ghost { border-color: #fff; }
.cta-band__phone { color: #fff; font-weight: 800; font-size: 1.6rem; text-decoration: none; white-space: nowrap; }

/* ---- award band ---- */
.award { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.award__badge { width: 150px; }

/* ---- testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote__text { margin: 0 0 1rem; color: var(--text); font-style: italic; }
.quote__by { margin: 0; font-weight: 700; color: var(--navy); }
.quote__loc { color: var(--muted); font-weight: 500; }

/* ---- service cards w/ icon ---- */
.card--svc { display: flex; flex-direction: column; }
.card--svc .card__icon { width: 56px; height: 56px; margin-bottom: .9rem; }
.card--svc .btn { margin-top: auto; align-self: flex-start; }
.card a.card__more { margin-top: 1rem; display: inline-block; font-weight: 700; color: var(--orange); text-decoration: none; }
.card a.card__more:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .nav-burger { display: inline-flex; align-items: center; padding: .55rem; margin-left: auto; cursor: pointer; }
  .hero__inner--split { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__accent { display: none; }
  .hero__media { max-width: 28rem; }
  .site-nav { order: 5; width: 100%; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-toggle:checked ~ .site-nav { max-height: 1500px; }
  body.has-hero .nav-toggle:checked ~ .site-nav {
    background: rgba(0,35,71,.97); margin: 0 -1.25rem; padding: .5rem 1.25rem 1rem;
  }
  .nav { flex-direction: column; align-items: stretch; gap: 0; margin: .5rem 0 0; }
  .nav > li > a { padding: .7rem .25rem; }
  .has-sub > a::after { content: ""; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; min-width: 0;
  }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split--reverse .split__media { order: 0; }
}
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .form .field--row { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* site theme editor (app/manage-site-theme.html) */
.theme-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 2rem;
  align-items: start;
}
.theme-editor__preview-wrap { position: sticky; top: 1rem; }
.theme-preview {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-family: var(--font-body);
  font-size: var(--size-body, 1rem);
  color: var(--text);
}
.theme-preview__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.theme-preview__label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.theme-preview__block { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.theme-preview__block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.theme-preview__body { margin: 0; color: var(--text); font-weight: var(--weight-body, 400); }
.theme-preview__h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--size-section-h2, clamp(1.6rem, 3vw, 2.3rem));
  font-weight: var(--weight-heading, 600);
  color: var(--heading-color, var(--ink));
}
.theme-preview__link { color: var(--color-link, var(--navy-2)); font-weight: var(--weight-link, 500); }
.theme-preview__link:hover { color: var(--color-link-hover, var(--orange)); }
/* Reuse live .nav rules; compact layout + simulated hover in preview only */
.theme-preview__nav-sample.nav {
  flex-wrap: wrap;
  gap: .05rem;
  justify-content: flex-start;
}
.theme-preview__nav-sample.nav > li > a {
  padding: .35rem .55rem;
}
.theme-preview__nav-light .theme-preview__nav-hover { color: var(--nav-hover, var(--orange)); }
.theme-preview__nav-light .nav > li.nav-active > a { color: var(--nav-active, var(--orange)); }
.theme-preview__block--hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  margin: 0 -1rem 1rem;
  padding: 1rem;
  border-bottom: 0;
  border-radius: 8px;
}
.theme-preview__nav-sample--hero > li > a { color: var(--nav-hero-color, #fff); }
.theme-preview__nav-sample--hero .theme-preview__nav-hover,
.theme-preview__nav-sample--hero > li.nav-active > a { color: var(--nav-hover, var(--orange)); }
.theme-preview__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--topbar-bg, var(--orange));
  color: #fff;
  font-size: .88rem;
}
.theme-preview__topbar .topbar__btn {
  padding: .35rem .75rem;
  border-radius: .3rem;
  background: var(--topbar-btn-bg, var(--navy));
  color: #fff !important;
  font-weight: var(--weight-topbar-btn, 500);
  font-size: .82rem;
  text-decoration: none;
}
.theme-preview__topbar .topbar__btn:hover { background: var(--topbar-btn-hover, var(--navy-2)); }
.theme-preview__hero {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.theme-preview__hero .hero__eyebrow {
  margin: 0 0 .35rem;
  color: var(--hero-eyebrow, var(--orange));
  font-weight: var(--weight-hero-eyebrow, 600);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}
.theme-preview__hero h1 {
  margin: 0 0 .5rem;
  font-family: var(--font-heading);
  font-size: var(--size-hero-h1, clamp(2rem, 4vw, 3.2rem));
  font-weight: var(--weight-hero-h1, 600);
  line-height: 1.1;
}
.theme-preview__hero p { margin: 0; color: var(--hero-lead, #d7e4f5); font-size: .95rem; }
.theme-preview__footer {
  padding: 1rem;
  border-radius: 8px;
  background: var(--footer-bg, var(--navy));
  color: var(--footer-text, #c7d6ec);
  font-size: .88rem;
}
.theme-preview__footer .site-footer__h { color: var(--footer-heading, #fff); margin: 0 0 .35rem; font-size: 1rem; }
.theme-preview__footer .site-footer__lead { margin: 0 0 .5rem; opacity: .92; }
.theme-preview__footer .site-footer__phone {
  display: block;
  color: var(--footer-phone, #fff);
  font-size: 1.25rem;
  font-weight: var(--weight-footer-phone, 600);
  text-decoration: none;
  margin-bottom: .35rem;
}
.theme-preview__footer .site-footer__phone:hover { color: var(--footer-phone-hover, var(--orange)); }
.theme-preview__footer a { color: var(--footer-link, #c7d6ec); }
.theme-preview__footer a:hover { color: var(--footer-link-hover, var(--orange)); }
.theme-color-field { display: flex; gap: .4rem; align-items: center; }
.theme-color-field input[type="text"] { flex: 1; min-width: 0; }
.theme-color-pick {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .theme-editor { grid-template-columns: 1fr; }
  .theme-editor__preview-wrap { position: static; order: -1; }
}
