/* Priority Locksmiths — public site styles. Mobile-first. */
:root {
  --navy: #10243e;
  --navy-2: #1a3a5c;
  --navy-3: #0b1a2e;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --green: #15803d;
  --red: #b91c1c;
  --ink: #1f2937;
  --muted: #5b6573;
  --line: #e5e8ec;
  --bg-soft: #f4f6f9;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(16, 36, 62, .10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.section { padding: 44px 0; }
.section.alt { background: var(--bg-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; min-height: 48px; }
.btn-primary { background: var(--amber); color: var(--navy-3); }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }
.btn-block { display: block; width: 100%; }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 14px; padding: 10px 18px; max-width: 1140px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; line-height: 1.12; }
.logo img { height: 42px; width: auto; border-radius: 6px; }
.header-phone { margin-left: auto; text-align: right; line-height: 1.2; }
.header-phone a { color: var(--amber); font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap; line-height: 1.15; }
.header-phone .sub { font-size: .72rem; color: #c7d2e0; line-height: 1.15; }
.header-cta { display: none; }
.nav-toggle { background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
.main-nav { display: none; background: var(--navy-3); }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.main-nav a { display: block; color: #e8edf4; text-decoration: none; padding: 12px 22px; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: var(--navy-2); color: #fff; }
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-block; }
  .main-nav { display: block !important; background: var(--navy-3); }
  .main-nav ul { display: flex; max-width: 1140px; margin: 0 auto; padding: 0 8px; }
  .main-nav a { padding: 11px 14px; font-size: .95rem; }
}

/* mobile sticky action bar */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 60; box-shadow: 0 -3px 12px rgba(0,0,0,.18); }
.mobile-bar a { flex: 1; text-align: center; padding: 13px 6px max(13px, env(safe-area-inset-bottom)); font-weight: 800; font-size: .95rem; text-decoration: none; min-height: 48px; }
.mobile-bar .call { background: var(--green); color: #fff; }
.mobile-bar .request { background: var(--amber); color: var(--navy-3); }
body { padding-bottom: 64px; }
@media (min-width: 920px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* hero */
.hero { background: linear-gradient(150deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%); color: #fff; padding: 48px 0 54px; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.1rem; color: #d6dfeb; max-width: 640px; }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: .9rem; color: #c7d2e0; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { flex: none; }

/* postcode checker card */
.pc-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 24px; color: var(--ink); }
.pc-card h2 { font-size: 1.2rem; }
.pc-row { display: flex; gap: 10px; }
.pc-row input { flex: 1; min-width: 0; }
.pc-result { margin-top: 12px; font-weight: 600; display: none; }
.pc-result.ok { color: var(--green); display: block; }
.pc-result.no { color: var(--red); display: block; }

/* forms */
label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--navy); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c4ccd6; border-radius: 8px; font-size: 1rem; font-family: var(--font); background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--red); font-size: .88rem; margin-top: 4px; font-weight: 600; }
.form-help { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.checkbox-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.checkbox-row label { margin: 0; font-weight: 500; font-size: .93rem; }
.alert { padding: 14px 16px; border-radius: 10px; margin: 14px 0; font-weight: 600; }
.alert-success { background: #ecfdf3; color: var(--green); border: 1px solid #b5e3c4; }
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #f3c1c1; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #c3d8f7; }

/* option grids (lead form) */
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0; }
@media (min-width: 700px) { .option-grid { grid-template-columns: repeat(3, 1fr); } }
.option-grid input[type=radio] { position: absolute; opacity: 0; }
.option-grid .opt { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 10px; min-height: 56px; border: 2px solid #c4ccd6; border-radius: 10px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); margin: 0; font-size: .95rem; }
.option-grid input[type=radio]:checked + .opt { border-color: var(--amber); background: #fff8eb; color: var(--navy); box-shadow: 0 0 0 1px var(--amber); }
.option-grid input[type=radio]:focus-visible + .opt { outline: 3px solid var(--amber); outline-offset: 2px; }
.opt.urgent { border-color: #f0b4b4; }

/* multistep */
.steps-nav { display: flex; gap: 6px; margin-bottom: 20px; }
.steps-nav span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps-nav span.done { background: var(--amber); }
.form-step h2 { margin-top: 0; }
.step-buttons { display: flex; gap: 12px; margin-top: 22px; }
.step-buttons .btn { flex: 1; }
.js .form-step { display: none; }
.js .form-step.active { display: block; }

/* cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 4px rgba(16,36,62,.06); }
.card h3 a { text-decoration: none; color: var(--navy); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: #fff4dd; color: var(--amber-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.card .more { font-weight: 700; text-decoration: none; }

/* steps / how it works */
.how-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: how; }
.how-step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; }
.how-step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.1rem; }

/* reviews */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; }
.review-card .meta { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.verified-badge { display: inline-block; background: #ecfdf3; color: var(--green); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* faqs */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq-item summary { padding: 16px 18px; font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); }

/* location grid */
.loc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.loc-grid a { display: block; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--navy); }
.loc-grid a:hover { border-color: var(--amber); }

/* breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }

/* emergency strip */
.emergency-strip { background: var(--amber); color: var(--navy-3); padding: 14px 0; font-weight: 700; }
.emergency-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
/* boxed variant: rounded call-out used inside articles/content, needs its own side padding */
.emergency-strip.boxed { border-radius: 10px; padding: 18px 22px; }
.emergency-strip.boxed > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }

/* footer */
.site-footer { background: var(--navy-3); color: #b9c5d4; padding: 44px 0 90px; margin-top: 48px; font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #b9c5d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #21344c; margin-top: 30px; padding-top: 18px; font-size: .82rem; }

/* cookie banner */
.cookie-banner { position: fixed; bottom: 64px; left: 12px; right: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 16px 18px; z-index: 70; max-width: 560px; margin: 0 auto; }
@media (min-width: 920px) { .cookie-banner { bottom: 16px; left: auto; right: 16px; } }
.cookie-banner p { margin: 0 0 12px; font-size: .9rem; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 16px; min-height: 0; font-size: .9rem; }

/* loading states */
@keyframes plk-spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: plk-spin .7s linear infinite; vertical-align: -4px; margin-right: 8px; }
.spinner.dark { border-color: rgba(16,36,62,.25); border-top-color: var(--navy); }
.btn.is-loading { opacity: .85; pointer-events: none; }
.loading-overlay { position: fixed; inset: 0; background: rgba(11, 26, 46, .88); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.loading-overlay[hidden] { display: none; }
.loading-box { text-align: center; color: #fff; max-width: 420px; }
.loading-box .big-spinner { width: 58px; height: 58px; border: 5px solid rgba(255,255,255,.25); border-top-color: var(--amber); border-radius: 50%; animation: plk-spin .8s linear infinite; margin: 0 auto 22px; }
.loading-box h2 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.loading-box p { color: #c7d2e0; min-height: 1.6em; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .spinner, .loading-box .big-spinner { animation-duration: 1.6s; }
}

/* misc */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.badge-green { background: #ecfdf3; color: var(--green); }
.badge-amber { background: #fff8eb; color: var(--amber-dark); }
.badge-red { background: #fef2f2; color: var(--red); }
.badge-grey { background: #f1f3f6; color: var(--muted); }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.split { display: grid; gap: 26px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 24px; border-left: 3px solid var(--line); position: relative; margin-left: 8px; }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); position: absolute; left: -7.5px; top: 16px; }
.timeline .when { font-size: .8rem; color: var(--muted); }
table.data { border-collapse: collapse; width: 100%; background: #fff; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
table.data th { background: var(--bg-soft); color: var(--navy); }

/* ---------------------------------------------------------------- modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,20,40,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; animation: modalFade .12s ease-out; }
.modal-box { background: #fff; color: var(--navy); border-radius: 14px; padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.32); animation: modalPop .14s ease-out; }
.modal-box h3 { margin: 0 0 10px; font-size: 1.15rem; }
.modal-box .modal-msg { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.modal-box .modal-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
/* The shared .btn-outline is white (for the dark header); make it visible on the white modal. */
.modal-box .btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.modal-box .btn-outline:hover { background: var(--bg-soft); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { transform: translateY(6px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- home imagery */
/* Home hero photo background — navy gradient overlay keeps the text legible. */
.home-hero {
  background: linear-gradient(150deg, rgba(11,26,46,.93), rgba(16,36,62,.86) 55%, rgba(26,58,92,.80)),
              url('../images/hero-1.webp');
  background-size: cover;
  background-position: center;
}

/* Image + text feature band */
.media-band { display: grid; gap: 40px; }
.media-item { display: grid; gap: 22px; align-items: center; }
.media-item img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.media-item h2 { margin-top: 0; }
@media (min-width: 760px) {
  .media-item { grid-template-columns: 360px 1fr; }
  .media-item.reverse { grid-template-columns: 1fr 360px; }
  .media-item.reverse img { order: 2; }
}

/* Join-our-network hero photo background */
.join-hero {
  background: linear-gradient(150deg, rgba(11,26,46,.92), rgba(16,36,62,.85) 60%, rgba(26,58,92,.80)),
              url('../images/hero-2.webp');
  background-size: cover;
  background-position: center;
}
