/* Salt Lake security sites - shared stylesheet.
   Two brands, one system: residential softens the shapes, commercial squares
   them off and adds comparison tables. Original styling; no third-party CSS. */

:root {
  --bg: #100d18;
  --bg-deep: #0a0810;
  --panel: #1b1627;
  --panel-2: #221c30;
  --line: #342a48;
  --line-soft: #2a2239;
  --text: #f7f4ee;
  --muted: #cbc4d5;
  --gold: #f2b90d;
  --gold-soft: #ffd75c;
  --ink: #1a1404;
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1120px;
  --space: clamp(3.25rem, 7vw, 5.5rem);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
}

[data-site="home"] {
  --radius: 14px;
  --radius-lg: 22px;
  --panel: #1c1626;
  --panel-2: #241d31;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img, svg, video, table { max-width: 100%; }
svg { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.wrap--narrow { width: min(720px, 100% - 2.5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  z-index: 50;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 8, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-right: auto;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 1.02rem; display: block; }
.brand-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav .nav-cta a {
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
  border-bottom: 0;
}
.site-nav .nav-cta a:hover { background: var(--gold-soft); color: var(--ink); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%;
    border-top: 1px solid var(--line-soft);
    padding: 0.6rem 0 1rem;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { padding: 0.85rem 0.15rem; width: 100%; border-bottom: 0; }
  .site-nav .nav-cta a { margin-top: 0.75rem; text-align: center; padding: 0.8rem 1rem; }
  .js .site-nav[hidden] { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.25rem) 0 var(--space);
  background:
    radial-gradient(90rem 40rem at 78% -12%, rgba(242, 185, 13, 0.11), transparent 62%),
    linear-gradient(180deg, #140f1e 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }
.hero .lede { max-width: 38ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); color: var(--ink); }
.btn-secondary { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

.hero-points {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.hero-points li { padding-left: 1.6rem; position: relative; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero-art {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.hero-art figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* Headline, explanation and CTA stay ahead of decorative media on mobile. */
  .hero-art { order: 2; }
}

/* ---------- sections ---------- */

.section { padding: var(--space) 0; }
.section--panel { background: linear-gradient(180deg, rgba(27, 22, 39, 0.75), rgba(16, 13, 24, 0)); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 2.6rem); }

.grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.card .card-link::after { content: " \2192"; }
.card-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 0.7rem; }

[data-site="business"] .card { border-left: 3px solid var(--line); }
[data-site="business"] .card:hover { border-left-color: var(--gold); }
[data-site="home"] .card { background: linear-gradient(170deg, var(--panel-2), var(--panel)); }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.spec-list li {
  border-top: 2px solid var(--line);
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.spec-list strong { display: block; color: var(--text); margin-bottom: 0.2rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(242, 185, 13, 0.14);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 34rem; }
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding: 0.9rem 1rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--panel-2); color: var(--text); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
th[scope="row"] { color: var(--text); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .faq-body { padding: 1.1rem 1.25rem; color: var(--muted); }

/* ---------- notes, callouts, CTA band ---------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(242, 185, 13, 0.05);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.note strong { color: var(--text); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.cta-band {
  background: linear-gradient(120deg, #1d1729 0%, #241a2e 55%, #2a1e22 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4.5vw, 3rem);
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--muted); max-width: 58ch; }

.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- article ---------- */

.article-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.article-meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p { color: #ece7f3; }
.prose .cite a { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 0.72em; }
.refs { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.refs ol { color: var(--muted); font-size: 0.93rem; padding-left: 1.3rem; }
.refs li { margin-bottom: 0.5rem; }
.refs a { overflow-wrap: anywhere; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.post-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.post-list h2 { font-size: 1.35rem; }
.post-list h2 a { text-decoration: none; }

/* ---------- form ---------- */

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: #15111f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
  min-width: 0;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #ff9b8a; }
.field-error { color: #ffb3a4; font-size: 0.88rem; min-height: 0; }
.field-error:empty { display: none; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; }
.checkbox label { font-weight: 600; font-size: 0.95rem; }

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #ffb3a4; }
.form-status[data-state="success"] { color: var(--gold-soft); }
.form-status[data-state="pending"] { color: var(--muted); }
.form-status[data-state="unconfirmed"] { color: #ffd88a; }

form[aria-busy="true"] .btn-primary { opacity: 0.6; }

/* Shown in the served HTML and removed by contact.js once the enhanced form is
   live, so a blocked script is visible instead of silently degrading. */
.form-error-block {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid #ffd88a;
  background: rgba(255, 216, 138, .08);
  color: #ffd88a;
  font-size: .95rem;
}

.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

#form-actions:empty { display: none; }

/* A locked attempt keeps its values visible but not editable. */
[data-locked] { opacity: .8; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: var(--space) 0 2.5rem;
  margin-top: var(--space);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@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;
  }
}

@media (prefers-contrast: more) {
  :root { --muted: #e4dff0; --line: #5b4c77; }
}
