/* ==========================================================================
   Best Locksmith SEO — shared design system
   Bebas Neue (display) / Barlow Condensed (eyebrow + sub) / Barlow (body)
   ========================================================================== */

:root {
  /* brand — carried over from the original indigo/violet gradient */
  --indigo: #4f2ae0;
  --indigo-dark: #3a1cae;
  --violet: #7332ed;
  --brass: #f0a92b;
  --brass-dark: #c8871a;

  /* ink + surface */
  --ink: #0d1220;
  --ink-soft: #1b2337;
  --body: #414a5e;
  --muted: #6c7689;
  --line: #e2e6ef;
  --surface: #ffffff;
  --surface-alt: #f5f6fb;
  --surface-deep: #0d1220;

  /* type */
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --sub: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* rhythm */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(13, 18, 32, .06);
  --shadow: 0 10px 30px rgba(13, 18, 32, .10);
  --shadow-lg: 0 24px 60px rgba(13, 18, 32, .16);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1.04;
  margin: 0 0 .5em;
  font-weight: 400;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h4 { font-family: var(--sub); font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.25rem; }
li { margin-bottom: .5em; }
strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }
.section-deep { background: var(--surface-deep); color: #c3cad9; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }
.section-deep a { color: var(--brass); }

.eyebrow {
  font-family: var(--sub);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .82rem;
  color: var(--indigo);
  margin: 0 0 .9rem;
}
.section-deep .eyebrow, .hero .eyebrow { color: var(--brass); }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.3rem); color: var(--muted); }
.section-deep .lede { color: #aab3c6; }
.center { text-align: center; }
.center .lede { margin-inline: auto; max-width: 46rem; }

/* --------------------------------------------------------------- buttons - */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sub); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 1.85rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brass); color: var(--ink); box-shadow: 0 8px 22px rgba(240, 169, 43, .35); }
.btn-primary:hover { background: var(--brass-dark); color: var(--ink); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-dark:hover { background: var(--indigo-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row { justify-content: center; }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(13, 18, 32, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
/* The original logo is solid black on transparent, so invert it for the dark bars. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 40px; filter: invert(1); }
.footer .brand img { height: 46px; }
@media (max-width: 420px) { .brand img { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font-family: var(--sub); text-transform: uppercase; letter-spacing: .1em;
  font-size: .92rem; font-weight: 600; color: #dfe4ee; text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brass); }
.nav-cta { padding: .55rem 1.25rem; font-size: .88rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: #fff;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 74px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(13, 18, 32, .98); padding: .5rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-cta { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; color: #fff;
  padding-block: clamp(8rem, 16vw, 12rem) clamp(4.5rem, 9vw, 8rem);
  background: linear-gradient(160deg, var(--indigo-dark) 0%, var(--indigo) 45%, var(--violet) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% auto;
  width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 169, 43, .22), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero-lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #d9dcf0; max-width: 52ch; margin-bottom: 2rem; }
.hero-inner { position: relative; z-index: 1; }
.hero.center h1, .hero.center .hero-lede { margin-inline: auto; }
.hero-slim { padding-block: clamp(7rem, 13vw, 9.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-slim h1 { max-width: 22ch; }

/* ---------------------------------------------------------------- cards -- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--display); font-size: 2.6rem; line-height: 1;
  color: var(--brass); display: block; margin-bottom: .6rem;
}
.section-deep .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #c3cad9; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: -.05em;
  color: var(--brass); font-weight: 700; font-size: 1.15rem;
}

/* ---------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--brass); line-height: 1; }
.stat span { font-family: var(--sub); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

/* ------------------------------------------------------------- article -- */
.prose { font-size: 1.09rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--ink-soft); }
.prose img, .prose figure { border-radius: var(--radius); margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-family: var(--sub); font-size: .95rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.prose blockquote {
  margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--brass);
  background: var(--surface-alt); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--surface-alt); font-family: var(--sub); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.table-scroll { overflow-x: auto; }

.post-meta {
  font-family: var(--sub); text-transform: uppercase; letter-spacing: .12em;
  font-size: .85rem; color: #c3cad9;
}
.crumbs { font-family: var(--sub); font-size: .92rem; letter-spacing: .06em; margin-bottom: 1rem; }
.crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ----------------------------------------------------------- blog cards -- */
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-family: var(--sub); font-weight: 600; font-size: 1.22rem; line-height: 1.25; letter-spacing: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--indigo); }
.post-card time { font-family: var(--sub); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); }
.post-card p { color: var(--muted); font-size: .98rem; }
.post-card .more { margin-top: auto; font-family: var(--sub); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------------ faq -- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; margin-bottom: .9rem; background: var(--surface);
}
.faq summary {
  font-family: var(--sub); font-weight: 600; font-size: 1.14rem; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- form -- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sub); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--text); font-size: 1rem; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }

/* ------------------------------------------------------------------ cta -- */
.cta-band {
  background: linear-gradient(120deg, var(--indigo-dark), var(--violet));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcd9f5; max-width: 44rem; margin-inline: auto; }

/* --------------------------------------------------------------- footer -- */
.footer { background: var(--surface-deep); color: #99a2b5; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer h4 { color: #fff; font-family: var(--sub); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; margin-bottom: 1rem; }
.footer a { color: #99a2b5; text-decoration: none; }
.footer a:hover { color: var(--brass); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .96rem; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .9rem;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--ink);
  padding: .75rem 1.25rem; z-index: 200; font-family: var(--sub); font-weight: 600;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
