/* 247locksmiths.co.uk — mobile-first stylesheet
   Plain CSS. No external dependencies, no @import, no web fonts, no build step. */

:root {
  --navy: #0b1f33;
  --navy-2: #123152;
  --amber: #ffb020;
  --amber-dark: #e08a00;
  --ink: #16202b;
  --muted: #4c5b6a;
  --line: #d8e0e8;
  --bg: #f5f7fa;
  --white: #ffffff;
  --focus: #0a5cff;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(11, 31, 51, 0.10);
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }

a { color: var(--navy-2); }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; margin-top: 1.6em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Preview notice + placeholders ---------- */
.preview-bar {
  background: #3a2b00;
  color: #ffe9b3;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.4rem 1rem;
  text-align: center;
  margin: 0;
}
.preview-bar strong { color: #fff; }

.ph {
  background: #fff3d6;
  color: #6b4b00;
  border-bottom: 1px dotted #b8860b;
  padding: 0 0.15em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand svg { flex: 0 0 auto; }

.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0.4rem 0 0;
  padding: 0;
}
.site-nav a {
  color: #dbe6f2;
  text-decoration: none;
  padding: 0.5rem 0.4rem;
  display: inline-block;
  border-radius: 6px;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; background: rgba(255,255,255,0.10); }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--amber); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 2rem 0 2.25rem;
}
.hero h1 { color: #fff; font-size: 2rem; }
.hero p { color: #dbe6f2; font-size: 1.05rem; max-width: 60ch; }
.hero-meta { font-size: 0.9rem; color: #b9c9da; margin-top: 0.5rem; }

/* ---------- Sections / cards ---------- */
main { display: block; }
.section { padding: 2rem 0; }
.section--white { background: var(--white); }
.section--tight { padding-top: 1.25rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 > *, .grid-3 > * { min-width: 0; }

.card-list { list-style: none; padding: 0; }
.card-list li { margin: 0; }

.note {
  border-left: 5px solid var(--amber);
  background: var(--white);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.note h2, .note h3 { margin-top: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 2.6rem; margin-bottom: 0.9rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.4em;
  width: 1.1rem; height: 1.1rem;
  background: var(--amber);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.9rem; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "\203A"; margin-left: 0.35rem; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--navy-2); }

/* ---------- Article ---------- */
.article-head { padding: 1.5rem 0 0.5rem; }
.article-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.25rem; }
.article-body { background: var(--white); }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body table { border-collapse: collapse; width: 100%; margin: 0 0 1.25em; font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.article-body th { background: #eef3f8; color: var(--navy); }

.toc { background: #eef3f8; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.toc h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.toc ul { margin: 0; }

.related { background: #eef3f8; border-radius: var(--radius); padding: 1rem 1.1rem; }
.related h2 { margin-top: 0; font-size: 1.15rem; }

/* ---------- Ad slots (layout only — no network code) ---------- */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 90px;
  margin: 1.5rem auto;
  padding: 1rem;
  border: 1px dashed #b9c9da;
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--muted);
  text-align: center;
}
.ad-slot[data-ad-slot="leaderboard"] { min-height: 90px; max-width: 728px; }
.ad-slot[data-ad-slot="in-article"] { min-height: 250px; max-width: 336px; }
.ad-slot__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8a99;
}

/* ---------- Affiliate blocks ---------- */
.affiliate {
  border: 2px solid var(--amber-dark);
  background: #fffaf0;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.affiliate__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin: 0 0 0.6rem;
}
.affiliate h3 { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 0.6rem 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }

/* ---------- Callout ---------- */
.callout {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
.callout h2 { color: #fff; margin-top: 0; }
.callout p { color: #dbe6f2; }
.callout a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c8d6e4;
  margin-top: 2rem;
  padding: 1.75rem 0;
  font-size: 0.92rem;
}
.site-footer h2 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.footer-grid { display: grid; gap: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1.25rem; padding-top: 1rem; font-size: 0.85rem; }

/* ---------- 404 ---------- */
.error-code { font-size: 3rem; font-weight: 800; color: var(--navy); margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.6rem; }
  h2 { font-size: 1.6rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .site-nav { order: 2; flex-basis: auto; }
  .site-nav ul { margin-top: 0; }
  .header-inner { flex-wrap: nowrap; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .preview-bar, .ad-slot, .affiliate { display: none; }
}
