/* QuickKey Mobile Locksmith — styles
   Palette: paper / deep-blue ink / safety yellow accent. One radius: 6px. */

:root {
  --paper: #f7f5ef;
  --ink: #17233d;
  --blue: #14418f;
  --blue-deep: #0f3170;
  --yellow: #ffc21a;
  --yellow-deep: #e0a800;
  --line: #d9d4c3;
  --muted: #5b6272;
  --radius: 6px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.15em; }

p { margin: 0 0 1em; }
a { color: var(--blue); }
ul, ol { margin: 0 0 1em; padding: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Emergency strip ---------- */
.alert-bar {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  padding: 10px 16px;
}
.alert-bar p { margin: 0; font-size: 0.95rem; font-weight: 500; }
.alert-call {
  color: var(--ink); font-weight: 700;
  text-decoration-thickness: 2px; text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--blue); flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.02em; line-height: 1;
}
.brand-word em { font-style: normal; color: var(--blue); }
.brand-sub {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border-left: 2px solid var(--line); padding-left: 10px;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-big { padding: 17px 32px; font-size: 1.1rem; }
.header-call { padding: 11px 18px; font-size: 0.95rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-inner { padding: 84px 24px 96px; max-width: 860px; }
.hero-kicker {
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero-accent { color: var(--yellow); }
.hero-sub { font-size: 1.2rem; max-width: 34em; color: #dfe6f5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero .btn-ghost { color: #fff; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.95rem; color: #dfe6f5; }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; background: var(--yellow);
}
/* hazard-stripe baseboard */
.hero-stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-lede { font-size: 1.12rem; color: var(--muted); max-width: 40em; }

/* ---------- Price list (ledger style) ---------- */
.price-list { margin: 44px 0 8px; border-top: 3px solid var(--ink); }
.price-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.price-info { flex: none; max-width: 62%; }
.price-info p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.leader {
  flex: 1 1 auto; min-width: 24px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-6px);
}
.price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--blue); margin: 0; white-space: nowrap;
}
.price .per { font-size: 0.95rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.fine { color: var(--muted); font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 40px 0 0; display: grid; gap: 8px; }
.steps li {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  line-height: 1; color: var(--blue);
  background: var(--yellow);
  width: 64px; height: 64px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Service area ---------- */
.area-list {
  list-style: none; margin-top: 36px;
  columns: 3; column-gap: 32px;
}
.area-list li {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 10px 0 10px 26px; position: relative;
  break-inside: avoid; border-bottom: 1px solid var(--line);
}
.area-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 9px; height: 9px; background: var(--blue);
}

/* ---------- Quote section ---------- */
.quote-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
}
.quote-phone a, .quote-mail a { color: var(--ink); }
.quote-form-wrap {
  background: var(--paper); border: 3px solid var(--ink);
  border-radius: var(--radius); padding: 32px;
  box-shadow: 8px 8px 0 var(--yellow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-done { padding: 24px 4px; }
.done-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  text-transform: uppercase; margin-bottom: 0.4em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd6e6; padding: 56px 0 120px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 24px;
}
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word em { color: var(--yellow); }
.footer-brand p { font-size: 0.95rem; margin-top: 10px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--yellow); }
.demo-disclaimer {
  font-size: 0.9rem; color: #aeb7cc; max-width: 60em;
  border-left: 4px solid var(--yellow); padding-left: 16px;
}
.demo-disclaimer strong { color: #fff; }
.copy { font-size: 0.85rem; color: #8b94a9; margin: 16px 0 0; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--yellow); color: var(--ink);
  text-decoration: none; font-weight: 600;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  align-items: center; justify-content: center; gap: 10px;
  border-top: 3px solid var(--ink);
}
.call-bar svg { width: 22px; height: 22px; flex: none; }
.call-bar strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Reveal (opacity + translate only) ----------
   Hidden states apply only when JS runs (html.js), so the page
   still reads perfectly if the script ever fails. */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
html.no-motion .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-inner { gap: 14px; }
  .header-call { margin-left: auto; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .call-bar { display: flex; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 150px; }
  .area-list { columns: 2; }
  .price-info { max-width: 100%; }
  .price-row { flex-wrap: wrap; }
  .leader { display: none; }
  .price { width: 100%; }
}
@media (max-width: 430px) {
  body { font-size: 17px; }
  .brand-sub { display: none; }
  .header-call { font-size: 0.85rem; padding: 10px 12px; }
  .quote-form-wrap { padding: 22px 18px; box-shadow: 5px 5px 0 var(--yellow); }
  .step-num { width: 52px; height: 52px; font-size: 2rem; }
}
