/* Locksmith Services NYC landing. Palette locked: light grey ground, one red
   action per page, royal blue trust accent, black type, white surfaces. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --ground: #f4f5f7;
  --surface: #ffffff;
  --ink: #0b0d12;
  --ink-2: #3a3f4b;
  --ink-3: #5c6370;
  --line: #d9dde5;
  --red: #e3001b;
  --red-deep: #b80016;
  --blue: #1d4ed8;
  --blue-soft: #e8eefc;
  --green: #16a34a;
  --gold: #fbbc04;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06), 0 2px 6px rgba(11, 13, 18, 0.05);
  --shadow-md: 0 4px 10px rgba(11, 13, 18, 0.07), 0 12px 32px rgba(11, 13, 18, 0.08);
  --shadow-red: 0 6px 16px rgba(227, 0, 27, 0.28), 0 2px 4px rgba(227, 0, 27, 0.2);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ground); border-radius: 8px; }

a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input { font: inherit; color: inherit; }

/* ---------- shell ---------- */
.shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; }

.top-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  transition: transform 0.25s var(--ease);
}
.top-phone:hover { transform: translateY(-1px); }
.top-phone .num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.top-phone .num svg { width: 20px; height: 20px; }
.top-phone .open {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 3px;
}
.top-phone .meta { display: flex; flex-direction: column; align-items: flex-end; }
.top-phone .btn-phone { display: none; }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 6vh, 64px) 0 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.status .dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.status .dot-off { background: var(--ink-3); }
.status .dot-off::after { display: none; }
.status .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 24ch;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(11, 13, 18, 0.12);
}
h1 .accent { color: var(--blue); }
h1.h1-zip { max-width: 20ch; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--ink-2);
}
.rating .g { width: 24px; height: 24px; }
.rating .score { font-size: 20px; font-weight: 900; color: var(--ink); }
.rating .stars { display: inline-flex; gap: 2px; }
.rating .stars svg { width: 18px; height: 18px; fill: var(--gold); }

.pin {
  width: 34px;
  height: 44px;
  margin-top: clamp(16px, 3vh, 30px);
  color: var(--blue);
  filter: drop-shadow(0 8px 10px rgba(29, 78, 216, 0.28));
  animation: hover 2.6s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.lead {
  margin: 14px 0 0;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- zip form ---------- */
.zip-form {
  width: min(100%, 800px);
  margin-top: 20px;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zip-form:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--blue-soft);
}
.zip-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  caret-color: var(--blue);
}
.zip-form input::placeholder { color: #7a8292; letter-spacing: 0; font-weight: 500; }
.zip-form input:focus { outline: none; }
.zip-form input[aria-invalid="true"] { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 18px 30px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(227, 0, 27, 0.34); }
.btn-red:active { transform: translateY(0); }
.btn-red[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.zip-hint {
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}
.zip-hint.show { opacity: 1; }

/* ---------- trust ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ink); }

.network {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
  text-wrap: balance;
}

/* ---------- services ---------- */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0 0 28px;
  list-style: none;
}
.services li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.services li:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.services svg { width: 16px; height: 16px; color: var(--ink); }

/* ---------- result page ---------- */
.dispatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--blue);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dispatch svg { width: 26px; height: 26px; }

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  width: min(100%, 440px);
}
.actions .btn { width: 100%; padding: 20px 30px; font-size: 20px; }
.actions .btn-red { animation: pulse-red 2.4s var(--ease) infinite; }
@keyframes pulse-red {
  0%, 100% { box-shadow: var(--shadow-red); }
  50% { box-shadow: 0 6px 16px rgba(227, 0, 27, 0.28), 0 0 0 10px rgba(227, 0, 27, 0.1); }
}
.actions .btn-red:hover { animation: none; }
.later {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------- schedule panel ---------- */
.sched {
  width: min(100%, 520px);
  margin-top: 18px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: none;
}
.sched.open { display: block; animation: rise 0.45s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.sched h2 { margin: 0 0 4px; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.sched p { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { font-size: 13px; font-weight: 700; color: var(--red); display: none; }
.field.bad .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sched .btn { width: 100%; margin-top: 4px; }
.sched .note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.sched-done { text-align: center; padding: 10px 0; }
.sched-done svg { width: 54px; height: 54px; margin: 0 auto 10px; color: var(--green); }
.sched-done h2 { margin-bottom: 8px; }
.sched-err { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--red); text-align: center; display: none; }
.sched-err.show { display: block; }

/* ---------- local SEO content under the hero ---------- */
.local {
  width: min(100%, 760px);
  margin: 8px auto 48px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.6;
}
.local h2 { margin: 10px 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.local h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.local p { margin: 0 0 12px; max-width: 70ch; }
.local a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hoods { font-weight: 600; }
.zip-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.zip-grid a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.zip-grid a:hover { transform: translateY(-2px); border-color: var(--ink); }
.zip-grid b { font-size: 16px; font-weight: 900; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.zip-grid span { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faq { margin: 0; }
.faq dt { font-weight: 800; color: var(--ink); margin-top: 12px; }
.faq dd { margin: 4px 0 0; }
.nearby { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nearby a { display: inline-block; padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.nearby a:hover { border-color: var(--ink); }
.nearby b { font-weight: 900; }
.back { margin-top: 24px; }

/* ---------- entrance motion: one authored sequence ---------- */
.rise { animation: rise 0.7s var(--ease) both; }
.rise:nth-child(1) { animation-delay: 0.02s; }
.rise:nth-child(2) { animation-delay: 0.1s; }
.rise:nth-child(3) { animation-delay: 0.18s; }
.rise:nth-child(4) { animation-delay: 0.26s; }
.rise:nth-child(5) { animation-delay: 0.32s; }
.rise:nth-child(6) { animation-delay: 0.38s; }
.rise:nth-child(7) { animation-delay: 0.44s; }
.rise:nth-child(8) { animation-delay: 0.5s; }
.rise:nth-child(9) { animation-delay: 0.56s; }
.rise:nth-child(10) { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, 1180px); }
  .top { padding-top: 16px; }
  .brand { font-size: 13px; gap: 7px; white-space: nowrap; }
  .brand svg { width: 22px; height: 22px; }
  .top-phone { flex-direction: row; align-items: center; gap: 0; }
  .top-phone .meta { align-items: flex-end; }
  .top-phone .num { font-size: 17px; gap: 6px; white-space: nowrap; }
  .top-phone .num svg { width: 16px; height: 16px; }
  .top-phone .open { font-size: 11px; margin-top: 1px; }
  .top-phone .btn-phone { display: none; }
  h1 { font-size: clamp(32px, 10vw, 40px); max-width: 14ch; }
  .rating { flex-wrap: wrap; justify-content: center; row-gap: 2px; padding: 10px 16px; }
  .rating .label { width: 100%; font-size: 14px; }
  .lead { font-size: 20px; }
  .zip-form { flex-direction: column; gap: 10px; border-radius: 28px; padding: 8px; }
  .zip-form input { padding: 14px 18px; text-align: center; }
  .zip-form .btn { width: 100%; padding: 18px 22px; }
  .trust { gap: 8px 14px; font-size: 14px; }
  .services { gap: 8px; }
  .services li { font-size: 13px; padding: 8px 13px; }
  .dispatch { font-size: 20px; }
  .actions .btn { font-size: 18px; }
  .row2 { grid-template-columns: 1fr; }
}
