:root {
  --color-bg: #0f172a;
  --color-nav: #1e3a5f;
  --color-nav-active: #2563eb;
  --color-nav-glow: #38bdf8;
  --color-orange: #e85a1c;
  --color-orange-hover: #f97316;
  --color-accent: #22d3ee;
  --color-text: #0f1419;
  --color-muted: #475569;
  --color-card: rgba(255, 255, 255, 0.92);
  --color-closed: #b91c1c;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

picture {
  display: contents;
}

/* With display: contents, picture's children become layout items of the
   parent (grid/flex). <source> must not generate a phantom box. */
picture > source {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: radial-gradient(circle at 10% 10%, #17233d 0%, #0b1220 50%, #080e19 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  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: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px rgba(15, 23, 42, 0.14);
}

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.5rem;
}

.top-bar__left,
.top-bar__right {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.top-bar__right {
  align-items: flex-end;
  text-align: right;
}

.top-bar__contact {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.top-bar__contact a {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.top-bar__contact a:hover {
  color: var(--color-orange);
  text-decoration: none;
}

.brand {
  justify-self: center;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.brand__mark {
  display: block;
  width: min(100px, 22vw);
  height: min(100px, 22vw);
}

.brand__mark picture {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rating {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.rating__stars {
  color: #eab308;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.rating__muted {
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 90, 28, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  text-decoration: none;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 26px rgba(232, 90, 28, 0.48);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--block {
  width: 100%;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.nav-toggle {
  display: none;
  margin: 0 1rem 0.5rem auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  background: linear-gradient(90deg, #1b3556 0%, var(--color-nav) 55%, #22466d 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav--simple .site-nav__list {
  padding-block: 0.45rem;
}

.site-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 0.5rem;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.site-nav__list > li > a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__list > li > a:hover,
.site-nav__list > li > a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.site-nav__list > li > a.is-active {
  background: var(--color-nav-active);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 18px rgba(56, 189, 248, 0.35);
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  min-width: 11rem;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.site-nav__sub a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__sub a:hover {
  background: #f1f5f9;
  text-decoration: none;
}

.has-sub {
  position: relative;
}

.has-sub:hover .site-nav__sub,
.has-sub:focus-within .site-nav__sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.has-sub > a::after {
  content: " ▾";
  font-size: 0.65em;
  opacity: 0.75;
}

.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #1e293b;
  background-image: url("/images/hero.jpg");
  background-image: image-set(
    url("/images/hero.webp") type("image/webp"),
    url("/images/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.45) 44%, rgba(12, 25, 42, 0.3) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: 1.5rem;
  align-items: start;
}

.hero__copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero__bullets {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero__bullets li {
  margin-bottom: 0.25rem;
}

.hero__phone {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.hero__phone a {
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}

.hero__phone a:hover {
  color: var(--color-orange);
  text-decoration: none;
}

.hero__hours {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__hours .status--closed {
  color: var(--color-closed);
}

.hero__hours .status--open {
  color: #15803d;
}

.lead-card {
  background: var(--color-card);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.3);
}

.lead-card__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  text-transform: capitalize;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-nav-active);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--color-closed);
}

.field__error {
  display: block;
  min-height: 1.1em;
  font-size: 0.75rem;
  color: var(--color-closed);
  margin-top: 0.2rem;
}

.lead-form__status {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.875rem;
  font-weight: 600;
}

.lead-form__status.is-success {
  color: #15803d;
}

.lead-form__status.is-error {
  color: var(--color-closed);
}

.trust-strip {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.78) 100%);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.trust-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-strip__icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, #1e3a5f 0%, #2563eb 100%);
  padding: 0.35rem 0;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.2);
}

.dock__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dock__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.site-footer {
  background: #0b1220;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.home-section,
.topic-split,
.content-page,
.home-services-grid,
.service-hub-grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.home-section {
  background: linear-gradient(180deg, #0b1220 0%, #101a2f 100%);
  color: #dbe5f3;
  padding: 2rem 1rem;
}

.home-section--light {
  background: #f8fafc;
  color: #0f172a;
}

.home-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.home-section__inner--narrow {
  max-width: 860px;
}

.home-intro-card {
  background: linear-gradient(145deg, #13203a 0%, #1a2e4f 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 14px 30px rgba(8, 16, 30, 0.35);
}

.home-intro-card h2 {
  margin-top: 0;
  color: #fff;
}

.home-services-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service-card {
  background: linear-gradient(145deg, #13203a 0%, #1a2e4f 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-service-card h3 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.home-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 24px rgba(8, 16, 30, 0.3);
}

.home-service-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-service-card__link:hover {
  text-decoration: none;
}

.home-service-card__link p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.home-service-card__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.home-contact-line,
.home-license {
  margin: 0.6rem 0 0;
}

.placeholder-page {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #0b1220 0%, #101a2f 100%);
}

.placeholder-card {
  width: min(760px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.placeholder-card h1 {
  margin-top: 0;
}

.example-stack {
  display: grid;
  gap: 1rem;
}

.example-card {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.example-card h2,
.example-card h3 {
  margin-top: 0;
}

.example-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.example-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.example-media {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1rem;
  align-items: center;
}

.example-media .example-photo {
  height: 220px;
  margin-bottom: 0;
}

.example-media__body h1,
.example-media__body h2 {
  margin-top: 0;
}

.example-card-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.example-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e7edf5 0%, #dbe5f2 100%);
  color: #10223d;
  font-size: 0.85rem;
  font-weight: 600;
}

.check-list {
  margin: 0;
  padding-left: 1rem;
}

.check-list li + li {
  margin-top: 0.35rem;
}

.quick-facts {
  margin: 0;
  padding-left: 1rem;
}

.quick-facts li + li {
  margin-top: 0.35rem;
}

.contact-lines {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.contact-lines a {
  font-weight: 700;
}

.settings-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.settings-fields {
  display: grid;
  gap: 0.75rem;
  max-height: 60vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.settings-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.settings-input:focus {
  outline: none;
  border-color: var(--color-nav-active);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.settings-field-hint {
  margin: -0.25rem 0 0.35rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.preview-mode-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
  border-bottom: 1px solid #d97706;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.preview-mode-banner a {
  font-weight: 800;
  color: #b45309;
  text-decoration: underline;
}

.preview-mode-banner a:hover {
  color: #92400e;
}

.settings-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.settings-reset-btn {
  background: #e2e8f0;
  color: #0f172a;
}

.settings-reset-btn:hover {
  background: #cbd5e1;
  text-decoration: none;
}

/* Site settings — visual editor */
.page-site-settings {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
}

.page-site-settings .site-settings-editor {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-settings-editor__toolbar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.site-settings-editor__toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.85rem;
}

.site-settings-editor__intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.site-settings-editor__intro p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.45;
  max-width: 52rem;
}

.site-settings-editor__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
}

.site-settings-editor__page-field {
  min-width: 12rem;
  margin: 0;
}

.site-settings-editor__page-field label {
  font-size: 0.8rem;
  font-weight: 600;
}

.site-settings-editor__page-field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.site-settings-editor__status {
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
}

.site-settings-editor__back {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.site-settings-editor__back a {
  color: var(--color-nav-active);
  font-weight: 600;
}

.site-settings-editor__preview-wrap {
  flex: 1;
  min-height: 0;
  padding: 0.75rem;
  background: #1e293b;
}

.site-settings-editor__frame {
  display: block;
  width: 100%;
  height: calc(100vh - 11rem);
  min-height: 420px;
  border: none;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Inline editor (inside preview iframe) */
.inline-editor-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 50%, #dbeafe 100%);
  border-bottom: 1px solid #2563eb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.inline-editor-active .inline-editable {
  cursor: text;
  border-radius: 2px;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.inline-editor-active .inline-editable:hover {
  outline: 2px dashed rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
  background: rgba(219, 234, 254, 0.35);
}

.inline-editor-active .inline-editable:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  background: rgba(219, 234, 254, 0.5);
}

.inline-editor-active .inline-editable-media {
  cursor: pointer;
  transition: outline 0.15s ease;
}

.inline-editor-active .inline-editable-media:hover,
.inline-editor-active .inline-editable-media:focus {
  outline: 3px dashed #d97706;
  outline-offset: 3px;
}

.image-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
}

.image-editor-panel {
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-height: 90vh;
  overflow: auto;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
}

.image-editor-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.image-editor-panel__preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #f8fafc;
}

.image-editor-panel__status {
  min-height: 1.2rem;
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
}

.image-editor-panel__field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.image-editor-panel__field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.image-editor-panel__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.settings-login-card {
  max-width: 28rem;
}

.settings-login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.settings-login-back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-settings-editor__frame {
    height: calc(100vh - 14rem);
    min-height: 320px;
  }

  .site-settings-editor__controls {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .top-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .brand {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0.25rem;
  }

  .top-bar__right {
    align-items: flex-end;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .placeholder-page {
    min-height: calc(100vh - 140px);
  }

  .example-grid,
  .example-grid--2 {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .example-media {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .example-media .example-photo {
    height: 220px;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
  }

  .site-nav__list > li > a {
    border-radius: var(--radius);
  }

  .has-sub .site-nav__sub {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    margin: 0.25rem 0 0.5rem;
  }

  .has-sub .site-nav__sub a {
    color: #e2e8f0;
  }

  .dock {
    top: auto;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
    right: 0.5rem;
    border-radius: 999px;
    padding: 0.25rem;
  }

  .dock__btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
  }
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Content pages (services, FAQ, about, etc.) ——— */

.content-page {
  min-height: calc(100vh - 170px);
  padding: 2rem 1rem 3rem;
  background: linear-gradient(180deg, #0b1220 0%, #101a2f 100%);
}

.content-page__inner {
  max-width: 960px;
  margin: 0 auto;
}

.content-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.content-shell > h1:first-child {
  margin-top: 0;
}

.content-lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 62ch;
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.testimonial blockquote {
  margin: 0 0 0.65rem;
  font-style: italic;
}

.testimonial figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.emergency-banner {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
}

.emergency-banner h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.emergency-banner p {
  margin: 0 0 1rem;
  opacity: 0.95;
}

.emergency-banner a {
  color: #fff;
  font-weight: 700;
}

.mt-lg {
  margin-top: 1.5rem;
}

/* Honeypot form field — kept out of sight and tab order; bots still fill it. */
.field--hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.ml-sm {
  margin-left: 0.5rem;
}

.page-cta-bar {
  margin-top: 1.5rem;
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.65rem 0.85rem;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-list details[open] summary {
  margin-bottom: 0.5rem;
}

.service-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-hub-card {
  display: block;
  padding: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid #e2e8f0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.service-hub-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.service-hub-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-nav__sub a.is-active {
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 600;
}

.has-sub > a.is-active {
  background: var(--color-nav-active);
  color: #fff;
}

.home-services-grid--five {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.home-service-card__img {
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: -1rem -1.1rem 0.75rem;
  width: calc(100% + 2.2rem);
  max-width: none;
  display: block;
}

.home-service-card:has(.home-service-card__img) {
  padding-top: 1rem;
  overflow: hidden;
}

.topic-hero.example-media {
  margin-bottom: 0.5rem;
}

.topic-split {
  display: grid;
  grid-template-columns: minmax(200px, 38%) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid #e2e8f0;
}

.topic-split + .topic-split {
  margin-top: 1rem;
}

.topic-split__media {
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.topic-split__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.topic-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.topic-split h2 {
  margin-top: 0;
}

.service-hub-card__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: block;
}

.content-shell--with-hero {
  padding-top: 1.25rem;
}

@media (max-width: 720px) {
  .topic-split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topic-split__media {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .topic-split__photo {
    min-height: 0;
  }

  .home-service-card__img {
    height: 160px;
  }
}

@media (max-width: 900px) {
  .home-services-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
